query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
private $listCinema; no me parece correcto utilizar un atributo extra para solo un metodo, asi que paso la vaariable por parametro a la funcion que necesito
public function __construct() { //$this->cinemaDAO = new CinemaDAOJson(); $this->cinemaDAO = new CinemaDAO(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function maquetacioItemsAgendaHoudini($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $id_newsletter, $registre, $pathEditora)\n{\n global $CONFIG_URLBASE , $CONFIG_URLUPLOADIM; \n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n \n $registre['ORIGEN'] = '<h4><a href=\"'.$CONFIG_URLBASE . $pathEditora . $registre['ID'] . '/' . $registre['URL_TITOL'] . '\" rel=\"external\" style=\"text-decoration:none;\">'.$registre['TITOL'].'</a></h4>';\n $imatge = $registre['IMATGE1'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMATGE1'] . '\" style=\"width: 159px;\" class=\"left\"/>' : '';\n \n return '<li id=\"ageh_reg' . $id_registre . '\" class=\"box removable stylable '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t ' . $imatge . '\n\t\t\t\t'.$registre['ORIGEN'].'\n\t\t\t\t'.$registre['RESUM'].'\n\t\t\t</div>\n\t\t</li>';\n}", "function maquetacioItemsCaixes($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $registre)\n{\n global $CONFIG_estilsElement;\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n //return '<li class=\"box removable\">\n return '<li id=\"box_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'.$registre['TEXT'].'\n\t\t\t</div>\n\t\t</li>';\n}", "function maquetacioItemsNotHoudini($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $id_newsletter, $registre, $pathEditora)\n{\n global $CONFIG_URLBASE, $CONFIG_URLUPLOADIM, $CONFIG_estilsElement;\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n $imatge = $registre['IMATGE1'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMATGE1'] . '\" style=\"width: 159px;\" class=\"left\"/>' : '';\n return '<li id=\"noth_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'. $imatge .'\n\t\t\t\t<h4><a href=\"'.$CONFIG_URLBASE . $pathEditora . '/' . $registre['ID'] . '/' . $registre['URL_TITOL'].'\" rel=\"external\">'.$registre['TITOL'].'</a></h4>\n\t\t\t\t<p>'.$registre['RESUM'].'</p>\n\t\t\t</div>\n\t\t</li>';\n}", "function listar($camposMostrar,$campo,$operador,$valor,$separador,$inicio,$fin)\n\t\t{\n\t\t\t$tablas=\"menciones*\".$this->tabla;\n\t\t\t$campos=\"en.mencion*en.apellidos*en.mencion\".$campo;\n\t\t\t$operadores=\"=*=*=\".$operador;\n\t\t\t$valores=\"me.id*\".$valor;\n\t\t\t$config=new config($tablas,$this->id,\"en.codigo*en.apellidos*en.nombres*en.maestria*me.nombre*en.anoEgreso*en.ofEnlace\",$campos,$operadores,$valores,\"AND*AND\",\"\",\"\",\"me*en\",$inicio,$fin);\n\t\t\t$config->enlazar();\n\t\t\t$a=$config->conn->crearConsultaMultiple();\n\t\t\treturn $a;\n\t\t}", "function cl_far_listacontroladomed() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"far_listacontroladomed\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function getLista(){\n\n }", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Cms_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Cms_type\", \"entier\", \"get_type\", \"set_type\");\n\t$laListeChamps[]=new dbChamp(\"Cms_title\", \"text\", \"get_title\", \"set_title\");\n\t$laListeChamps[]=new dbChamp(\"Cms_description\", \"text\", \"get_description\", \"set_description\");\n\t$laListeChamps[]=new dbChamp(\"Cms_thumbnail_loc\", \"text\", \"get_thumbnail_loc\", \"set_thumbnail_loc\");\n\t$laListeChamps[]=new dbChamp(\"Cms_file\", \"text\", \"get_file\", \"set_file\");\n\t$laListeChamps[]=new dbChamp(\"Cms_youtube\", \"text\", \"get_youtube\", \"set_youtube\");\n\t$laListeChamps[]=new dbChamp(\"Cms_content_loc\", \"text\", \"get_content_loc\", \"set_content_loc\");\n\t$laListeChamps[]=new dbChamp(\"Cms_player_loc\", \"text\", \"get_player_loc\", \"set_player_loc\");\n\t$laListeChamps[]=new dbChamp(\"Cms_duration\", \"text\", \"get_duration\", \"set_duration\");\n\t$laListeChamps[]=new dbChamp(\"Cms_tag\", \"text\", \"get_tag\", \"set_tag\");\n\t$laListeChamps[]=new dbChamp(\"Cms_category\", \"text\", \"get_category\", \"set_category\");\n\t$laListeChamps[]=new dbChamp(\"Cms_family_friendly\", \"entier\", \"get_family_friendly\", \"set_family_friendly\");\n\t$laListeChamps[]=new dbChamp(\"Cms_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\t$laListeChamps[]=new dbChamp(\"Cms_statut\", \"entier\", \"get_statut\", \"set_statut\");\n\treturn($laListeChamps);\n}", "public function linea_colectivo();", "function maquetacioItemsBlog($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $registre)\n{\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n $imatge = $registre['IMG'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMG'] . '\" style=\"width:159px\" class=\"left\"/>' : '';\n\n return '<li id=\"bloc_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'.$imatge.'\n\t\t\t\t<p>'.$registre['DATA_POST'].'</p>\n\t\t\t\t<h4><a href=\"'.$info_registre['guid'].'\" rel=\"external\">'.$registre['TITOL'].'</a></h4>\n\t\t\t\t<p>'.$registre['RESUM_MOSTRAR'].'</p>\n\t\t\t</div>\n\t\t</li>';\n}", "public function ShowListCinemaView($listCinema, $message = '')\n {\n require_once(VIEWS_PATH.\"cinema-list.php\");\n\n }", "public function listarbiofinCE(){\n $stmt = $this->objPDO->prepare(\"SELECT b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,(e.emp_nombres||' '||e.emp_appaterno||' '||e.emp_apmaterno) as medico,\n list(m.descr_muestra)as muestras from sisanatom.biopsia b \n inner join sisanatom.detalle_bioce db on b.id_biopsia=db.id_biopsia\n inner join sisanatom.muestras_biopsia mb on b.id_biopsia=mb.id_biopsia inner join empleados e on b.patologo_responsable=e.emp_id\n inner join sisanatom.muestra m on m.id_muestra=mb.id_muestrarem\n where b.estado_biopsia=3 and b.condicion_biopsia='A'\n group by b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,medico\");\n $stmt->execute();\n $pacientes = $stmt->fetchAll(PDO::FETCH_OBJ);\n return $pacientes;\n }", "function adiHijo($lista) {\n\t\t$this->listas[] = $lista;\n\t}", "function listarConceptoCta(){\n\t\t$this->procedimiento='pre.f_concepto_cta_sel';\n\t\t$this->transaccion='PRE_CCTA_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_concepto_cta','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_auxiliar','int4');\n\t\t$this->captura('id_cuenta','int4');\n\t\t$this->captura('id_concepto_ingas','int4');\n\t\t\n\t\t$this->captura('id_centro_costo','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\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 \n\t \n\t $this->captura('nro_cuenta','varchar');\n $this->captura('nombre_cuenta','varchar');\n $this->captura('desc_gestion','int4');\n $this->captura('id_gestion','int4');\n $this->captura('desc_centro_costo','text');\n $this->captura('desc_auxiliar','text');\n $this->captura('desc_cuenta','text');\n \n $this->captura('codigo_partida','varchar');\n $this->captura('nombre_partida','varchar');\n $this->captura('desc_partida','text');\n \n \n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function mostrar()\n\t{\n\t\t$db = Db::conectar();\n\t\t$listaColegios = null;\n\t\t$select = $db->query('SELECT * FROM colegios ORDER BY idColegios DESC');\n\t\tforeach ($select->fetchAll() as $colegio1) {\n\t\t\t$myColegio = new Colegios();\n\t\t\t$myColegio->setIdColegios($colegio1['idColegios']);\n\t\t\t$myColegio->setColegio($colegio1['colegio']);\n\t\t\t$myColegio->setCantonCantonId($colegio1['canton_cantonId']);\n\t\t\t$myColegio->setTipoColegioTipoColegioId($colegio1['tipoColegio_tipoColegioId']);\n\t\t\t$myColegio->setColegioscodigo($colegio1['colegioscodigo']);\n\t\t\t$myColegio->setColegiosOculto($colegio1['colegiosOculto']);\n\t\t\t$myColegio->setColegiosAccion($colegio1['colegiosAccion']);\n\t\t\t$myColegio->setColegiosfecha($colegio1['colegiosfecha']);\n\t\t\t$myColegio->setColegiosuser($colegio1['colegiosuser']);\n\t\t\t$listaColegios[] = $myColegio;\n\t\t}\n\t\treturn $listaColegios;\n\t}", "public function listar(){\r\n }", "function buscaMaiorLanceCrescente ($listaDeLances){ \n usort($listaDeLances, array($this, 'comparaLancesCrescente')); //ordena lista\n $maiorlance = $this->buscaMaiorLance($listaDeLances);\n return $maiorlance;\n }", "function listarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_sel';\n\t\t$this->transaccion='ADQ_COT_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t\n\t\t$this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\n $this->setParametro('tipo_interfaz','tipo_interfaz','varchar');\n $this->setParametro('historico','historico','varchar');\n \n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cotizacion','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('estado','varchar');\n\t\t$this->captura('lugar_entrega','varchar');\n\t\t$this->captura('tipo_entrega','varchar');\n\t\t$this->captura('fecha_coti','date');\n\t\t$this->captura('numero_oc','varchar');\n\t\t$this->captura('id_proveedor','int4');\n\t\t$this->captura('desc_proveedor','varchar');\n\t\t\n\t\t$this->captura('fecha_entrega','date');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('moneda','varchar');\n\t\t$this->captura('id_proceso_compra','int4');\n\t\t$this->captura('fecha_venc','date');\n\t\t$this->captura('obs','text');\n\t\t$this->captura('fecha_adju','date');\n\t\t$this->captura('nro_contrato','varchar');\n\t\t\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\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('id_estado_wf','integer');\n\t\t$this->captura('id_proceso_wf','integer');\n\t\t$this->captura('desc_moneda','varchar');\n\t\t$this->captura('tipo_cambio_conv','numeric');\n\t\t$this->captura('email','varchar');\n\t\t$this->captura('numero','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('id_obligacion_pago','int4');\n\t\t$this->captura('tiempo_entrega','varchar');\n\t\t$this->captura('funcionario_contacto','varchar');\n\t\t$this->captura('telefono_contacto','varchar');\n\t\t$this->captura('correo_contacto','varchar');\n\t\t$this->captura('prellenar_oferta','varchar');\n\t\t$this->captura('forma_pago','varchar');\n\t\t$this->captura('requiere_contrato','varchar');\n\t\t$this->captura('total_adjudicado','numeric');\n\t\t$this->captura('total_cotizado','numeric');\n\t\t$this->captura('total_adjudicado_mb','numeric');\n\t\t$this->captura('tiene_form500','varchar');\n\t\t$this->captura('correo_oc','varchar');\n\n\t\t$this->captura('id_gestion','int4');\n\n\t\t$this->captura('cuce','varchar');\n\t\t$this->captura('fecha_conclusion','date');\n\t\t$this->captura('id_solicitud','int4');\n\t\t$this->captura('justificacion','text');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function listado();", "public function mostrarMarcasTipo($tipoCerveza){\n $link = Conexion::conectar();\n $sql = \"SELECT DISTINCT marca\n FROM wonderlist WHERE tipoCerveza = '$tipoCerveza'\";\n $stmt = $link->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);}", "function rec_empresa_list(){\n\t\t}", "public function verMarcaslista(){\n\t\t\t//$this->producto->set(\"marca\",$marca);\n\t\t\t$resultado=$this->producto->verMarcaslista();\n\t\t return $resultado;\n\t\t\t\n\t\t}", "protected abstract function getIListar();", "public function getCuisineAttribute()\n {\n // {\n $cuisineIds = explode(\",\",$this->cuisine_id);\n $cuisine = [];\n foreach ($cuisineIds as $id)\n {\n array_push($cuisine, Cuisine::where('id',$id)->first(['name','image']));\n }\n return $cuisine;\n // }\n }", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xdc_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_cms_description\", \"entier\", \"get_cms_description\", \"set_cms_description\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_classe\", \"entier\", \"get_classe\", \"set_classe\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_classeid\", \"entier\", \"get_classeid\", \"set_classeid\");\n\treturn($laListeChamps);\n}", "public function getMarca(){ return $this->marca;}", "function __construct( $valores , $lista ) {\n\t\t$this->valores = $valores;//pasamos el valor de los datos que queremos mostrar\n\t\t$this->render( $this->valores, $lista );//llamamos a la función render donde se mostrará la vista DELETE con los campos correspondientes\n\t}", "public function obtener_colectivo();", "function clade_context_clade_convert_list() {\n return array(\n 'tid' => t('Clade ID'),\n 'name' => t('Clade name'),\n 'description' => t('Clade description'),\n );\n}", "public static function listaCitaMedico($dni){\n\t\t\t//$medico = new GestorMedicos();\n\t\t\t//$paciente = new GestorPacientes();\n\n\t\t\t$numCol = GM::buscaNumColegiado($dni); //$medico->buscaNumColegiado($dni);\n\t\t\t$lista = GC::getListaCitaMedico($numCol); //$this->ListaCitas->getListaCitaMedico($numCol);\n \t\t$iterator = $lista->getIterator();\n\n \t\twhile($iterator->valid()){\n\n \t$id = $iterator->current()->getId();\n\t\t\t\t$numAfiliado = $iterator->current()->getNumAfiliado();\n\t\t\t\t$pacienteNombre = GP::buscaPaciente($numAfiliado)->getNombre();//$paciente->buscaPaciente($numAfiliado)->getNombre();\n\t\t\t\t$pacienteApellidos = GP::buscaPaciente($numAfiliado)->getApellidos();//$paciente->buscaPaciente($numAfiliado)->getApellidos();\n\t\t\t\t$fecha = $iterator->current()->getFecha();\n \t$hora = $iterator->current()->getHora();\n \t$paciente = $pacienteNombre . ' '. $pacienteApellidos;\n \t$html = <<<EOS\n\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td>$hora</th>\n\t\t\t\t\t<td>$pacienteNombre $pacienteApellidos\n\t\t\t\t\t<td><a href=\"historial.php?data=$paciente&num=$numAfiliado\">$numAfiliado</a></td>\n\t <td><a href=\"informe.php?data=$numAfiliado\"><img class=\"informe\" src=\"img/informe.png\"></a></td>\n\t\t\t\t</tr>\n\nEOS;\n\t\t\t\techo $html;\n\t\t\t\t$iterator->next();\n\t\t\t}\n\t\t}", "public function listoAction() \n { \n $form = new Formulario(\"form\");\n // valores iniciales formulario (C)\n $id = $this->params()->fromRoute('id', 0);\n \n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter'); \n $d = new AlbumTable($this->dbAdapter);\n $pos = strpos($id, \".\"); \n $idIasp = substr($id, 0 , $pos ); // Id item aspectos \n $idCar = substr($id, $pos+1 , 100 ); // id Cargo\n $form->get(\"id\")->setAttribute(\"value\",$idIasp); \n $form->get(\"id2\")->setAttribute(\"value\",$idCar); \n \n if ($id==0)\n { \n $data = $this->request->getPost();\n $idIasp = $data->id; \n } \n $datos = $d->getGeneral(\"select a.*, b.nombre as nomAsp,c.texto, c.a, c.b, c.c, c.d, c.e, a.tipo \n from t_asp_cargo_i a \n inner join t_asp_cargo b on b.id=a.idAsp \n left join t_cargos_a c on c.idIasp=a.id \n where a.idAsp=\".$idIasp); \n \n // ------------------------ Fin valores del formulario \n if($this->getRequest()->isPost()) // Actulizar datos\n {\n $request = $this->getRequest();\n if ($request->isPost()) { \n \n $u = new CargosA($this->dbAdapter);// ------------------------------------------------- 3 FUNCION DENTRO DEL MODELO (C) \n $data = $this->request->getPost();\n $d->modGeneral(\"Delete from t_cargos_a where idAsp=\".$data->id);\n //print_r($data);\n foreach ($datos as $dato){\n $idLc = $dato['id'];\n $nombre = '';\n if ($dato['tipo'] == 1)// Texto \n {\n $texto = '$data->text'.$idLc;\n eval(\"\\$nombre = $texto;\"); \n } \n $a = 0;$b = 0;$c = 0;$d = 0;$e = 0;\n if ($dato['tipo'] == 2)// Lista de opciones \n {\n $texto = '$data->comenNa'.$idLc;\n eval(\"\\$a = $texto;\"); \n $texto = '$data->comenNb'.$idLc;\n eval(\"\\$b = $texto;\"); \n $texto = '$data->comenNc'.$idLc;\n eval(\"\\$c = $texto;\"); \n $texto = '$data->comenNd'.$idLc;\n eval(\"\\$d = $texto;\"); \n $texto = '$data->comenNe'.$idLc;\n eval(\"\\$e = $texto;\"); \n }\n $u->actRegistro( $data->id2, $data->id, $dato['id'],$nombre, $a, $b, $c, $d, $e);\n }\n $this->flashMessenger()->addMessage('');\n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'o/'.$data->id.\".\".$data->id2);\n } \n }else{ \n if ($id > 0) // Cuando ya hay un registro asociado\n {\n $u=new CargosA($this->dbAdapter); // ---------------------------------------------------------- 4 FUNCION DENTRO DEL MODELO (C) \n //$datos = $u->getRegistroId($id);\n } \n } \n $valores=array\n (\n \"titulo\" => $this->tfor,\n \"form\" => $form,\n \"datos\" => $datos, \n 'url' => $this->getRequest()->getBaseUrl(),\n 'id' => $id,\n 'idCar' => $idCar,\n \"ttablas\" => 'Aspecto, Item, Opciones',\n \"lin\" => $this->lin\n ); \n return new ViewModel($valores); \n }", "function maquetacioItemsRSS($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $registre)\n{\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n //ORIGEN RSS\n $registre['origen'] = ($registre['LINK1'] != '') ? '<a href=\"'.$registre['LINK1'].'\" rel=\"external\" style=\"color: '.$color_titol.'; text-decoration:none;\">'.$registre['TITOL'].'</a>' : '';\n\n\n return '<li id=\"rss_reg' . $id_registre . '\" class=\"box removable stylable '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t<h4>'.$registre['origen'].'</h4>\n\t\t\t\t'. $registre['RESUM'].'\n\t\t\t</div>\n\t\t</li>';\n}", "function candidatosXLista($id){\n\t\t $sql = \"SELECT C.idlista, L.nombrelista,nombrecandidato, apellidocandidato, cargocandidato, imagencandidato\n\t\t FROM candidato C LEFT JOIN LISTA L ON C.idlista = L.idlista\n\t\t WHERE C.idlista = \".$id.\"order by cargocandidato ASC ;\";\n\t\treturn $sql;\n\t }", "static public function mdlListarCancelaciones($tabla, $item, $valor, $orden, $fechadev1, $fechadev2){\n\n\tif($item != null){\n\n\t}else{\n\t\t$where='fecha_salida>=\"'.$fechadev1.'\" AND fecha_salida<=\"'.$fechadev2.'\" ';\n \n\t\t$where.=' group by cv.num_cancelacion ORDER BY cv.'.$orden.' ASC';\n\t\t//$where.=' ORDER BY '.$orden.' DESC';\n \n\t\t//$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE \".$where); \n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT cv.`id`, cv.num_cancelacion, cv.`id_cliente`,cli.nombre,cv.`num_salida`,cv.`fecha_salida`, sum(cv.`cantidad`) AS cant, SUM(IF(cv.`es_promo` = 0, cv.`cantidad`*cv.`precio_venta`,0)) AS sinpromo, SUM(IF(cv.`es_promo` = 1, cv.`precio_venta`,0)) AS promo,cv.`ultusuario`,cv.`ultmodificacion` FROM cancela_venta cv\n\t\tINNER JOIN clientes cli ON cli.id=cv.id_cliente\n\t\tWHERE \".$where); \n\n\t\t$stmt -> execute();\n\n\t\treturn $stmt -> fetchAll();\n\n\t}\n\n\t$stmt = null;\n\n}", "public function buscar($param){\n //verEstructura($param);\n $where = \" true \";\n if ($param<>NULL){\n if (isset($param['idinscripcion']))\n $where.=\" and idinscripcion =\".$param['idinscripcion'];\n if (isset($param['cofecha']))\n $where.=\" and cofecha =\".$param['cofecha'];\n if (isset($param['idusuario']))\n $where.=\" and idusuario =\".$param['idusuario'];\n }\n $arreglo = inscripcion::listar($where);\n return $arreglo;\n }", "public function listeLigne_mouvement(){\n\t\t\t\t\t $sql = \"SELECT * FROM ligne_mouvement\";\n\t\t\t\t\t if($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t return $this->db->query($sql)->fetchAll();\n\t\t\t\t\t }else{\n\t\t\t\t\t return null;\n\t\t\t\t\t }\n\t\t\t\t\t }", "public function __construct()\n\t\t\t\t{\n\t\t\t\t\t$this->miLista \t=\tarray();\t\t\t\t\t\n\t\t\t\t}", "public function buscar($param){\n $where = \" true \";\n /*if ($param<>NULL){\n if (isset($param['id']))\n $where.=\" and id =\".$param['id'];\n if (isset($param['descrip']))\n $where.=\" and descrip ='\".$param['descrip'].\"'\";\n }*/\n $arreglo = Menu::listar($where); \n return $arreglo;\n \n \n \n \n }", "protected function armaColeccionMapeoCarac() {\n $dao = new PGDAO();\n $where = $this->strZpTprop();\n $strSql = $this->COLECCIONMAPEOCARAC . \" WHERE tipoprop in (\" . $where . \");\";\n $arrayRet = $this->leeDBArray($dao->execSql($strSql));\n\treturn $arrayRet;\n }", "public function Listar($orden) { //Función para listar las pruebas\r\n\r\n\t\t\t\t$this->Pruebas=array(); //Hay que vaciar el array de objetos Pruebas\r\n\t\t\t \r\n\t\t\t\tif(!empty($orden)){ //Si el parámetro $orden no está vacío\r\n \r\n\t\t\t\t $consulta=\"select * from prueba order by \" . $orden; //Creo la consulta. En este caso no se puede hacer con consultas preparadas\r\n\t\t\t\t $param=array(); //Creo un array para pasarle parámetros\r\n\t\t\t\t\r\n\t\t\t\t $this->Consulta($consulta,$param); //Ejecuto la consulta\r\n\t\t\t\t \r\n\t\t\t\t\t\t \r\n\t\t\t\t foreach ($this->datos as $fila) //Recorro el array de la consulta\r\n\t\t\t\t {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t $pru = new Prueba(); //Creo un nuevo objeto\r\n\t\t\t\t\t\t\t\t\t\t\t //Le seteo las variables, y así me ahorro el constructor \r\n\t\t\t\t\t $pru->__SET(\"idPrueba\",$fila[\"idPrueba\"]);\r\n\t\t\t\t\t $pru->__SET(\"nombrePrueba\",$fila[\"nombrePrueba\"]);\r\n\t\t\t\t\t $pru->__SET(\"aparatosNecesarios\",$fila[\"aparatosNecesarios\"]);\r\n\t\t\t\t\t $pru->__SET(\"descripcion\",$fila[\"descripcion\"]);\r\n\t\t\t\t\t \r\n\t\t\t\t\t $this->Pruebas[]=$pru; //Meto la prueba en el array de Pruebas\r\n\t\t\t\t\t}\r\n \r\n\t\t\t\t}else{\r\n \r\n\t\t\t\t $consulta=\"select * from prueba\";\r\n\r\n\t\t\t\t $param=array(); //Creo un array para pasarle parámetros\r\n\t\t\t\t\r\n\t\t\t\t $this->Consulta($consulta,$param); //Ejecuto la consulta\r\n\t\t\t\t \r\n\t\t\t\t\t\t \r\n\t\t\t\t foreach ($this->datos as $fila) //Recorro el array de la consulta\r\n\t\t\t\t {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t $pru = new Prueba(); //Creo un nuevo objeto\r\n\t\t\t\t\t\t\t\t\t\t\t //Le seteo las variables, y así me ahorro el constructor \r\n\t\t\t\t\t $pru->__SET(\"idPrueba\",$fila[\"idPrueba\"]);\r\n\t\t\t\t\t $pru->__SET(\"nombrePrueba\",$fila[\"nombrePrueba\"]);\r\n\t\t\t\t\t $pru->__SET(\"aparatosNecesarios\",$fila[\"aparatosNecesarios\"]);\r\n\t\t\t\t\t $pru->__SET(\"descripcion\",$fila[\"descripcion\"]);\r\n\t\t\t\t\t \r\n\t\t\t\t\t $this->Pruebas[]=$pru; //Meto la prueba en el array de Pruebas\r\n \r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}", "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 }", "function listar_simbolos_especiales_limit($id_tipo_palabra,$letra,$id_tipo_simbolo,$idioma,$inicial,$cantidad,$registrado) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos_especiales.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($idioma==99) { $sql_idioma=''; } \n\t\telseif ($idioma==98) { $sql_idioma='AND simbolos_especiales.castellano=1'; }\n\t\telseif ($idioma==97) { $sql_idioma='AND simbolos_especiales.castellano=0 AND simbolos_especiales.id_idioma=0'; } \n\t\telse { $sql_idioma='AND simbolos_especiales.id_idioma='.$idioma.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos_especiales.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos_especiales.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\tif ($letra=='todas') { $sql_letra=''; } else { $sql_letra=$letra; }\n\t\t\n\t\t$query = \"SELECT simbolos_especiales.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos_especiales, palabras, tipos_simbolos\n\t\tWHERE simbolos_especiales.id_palabra=palabras.id_palabra\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_idioma\n\t\t$mostrar_registradas\n\t\tAND palabras.palabra LIKE '$sql_letra%%'\n\t\tORDER BY palabras.palabra asc\n\t\tLIMIT $inicial,$cantidad\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function listar_simbolos_limit($id_tipo_palabra,$letra,$id_tipo_simbolo,$idioma,$inicial,$cantidad,$registrado) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($idioma==99) { $sql_idioma=''; } \n\t\telseif ($idioma==98) { $sql_idioma='AND simbolos.castellano=1'; }\n\t\telseif ($idioma==97) { $sql_idioma='AND simbolos.castellano=0 AND simbolos.id_idioma=0'; } \n\t\telse { $sql_idioma='AND simbolos.id_idioma='.$idioma.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\tif ($letra=='todas') { $sql_letra=''; } else { $sql_letra=$letra; }\n\t\t\n\t\t$query = \"SELECT simbolos.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos, palabras, tipos_simbolos\n\t\tWHERE simbolos.id_palabra=palabras.id_palabra\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_idioma\n\t\t$mostrar_registradas\n\t\tAND palabras.palabra LIKE '$sql_letra%%'\n\t\tORDER BY palabras.palabra asc\n\t\tLIMIT $inicial,$cantidad\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "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}", "function Listeconsommation()\n\t{\n\t\t$cnn = getConnexion('tpi-fictif');\n\t\t$i = 0;\n\t\t//Permet de savoir plus facilement si login correct ou pas\n\t\t$consom = [];\n\t\t$stmt = $cnn -> prepare('SELECT `ID`, `Nom`, `Prix` FROM `consommation`');\n\t\t$stmt -> execute();\n\t\t//Remplissange tab 2 dimensions pour avoir les infos qu'on souhaite\n\t\t//Passage en param plus facile\n\t\twhile ($row = $stmt->fetch(PDO::FETCH_OBJ)) {\n\t\t\t$consom[$i][0] = $row->ID;\n\t\t\t$consom[$i][1] = $row->Nom;\n\t\t\t$consom[$i][2] = $row->Prix;\n\t\t\t$i++;\n\t\t}\n\t\tif(!empty($consom))\n\t\t{\n\t\t\treturn $consom;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function getWholinemeList(){\n return $this->_get(2);\n }", "function listar_simbolos_arasaac_limit($id_tipo_palabra,$letra,$id_tipo_simbolo,$inicial,$cantidad,$registrado,$marco,$contraste,$tipo_letra,$mayusculas,$minusculas,$castellano,$ruso,$rumano,$arabe,$chino,$bulgaro,$polaco,$ingles,$frances,$catalan) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($castellano==0 &&($ruso==1 || $rumano==1 || $arabe==1 || $chino==1 || $bulgaro==1 || $polaco==1 || $ingles==1 || $frances==1 || $catalan==1)) { \n\t\t\n\t\t\t$sql_idioma_superior='AND simbolos.sup_con_texto=0 ';\n\t\t\t$sql_idioma_inferior='AND (simbolos.inf_idioma=99999 ';\n\t\t\t\t\tif ($castellano==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=0 '; } \n\t\t\t\t\tif ($ruso==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=1 '; } \n\t\t\t\t\tif ($rumano==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=2 '; } \n\t\t\t\t\tif ($arabe==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=3 '; } \n\t\t\t\t\tif ($chino==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=4 '; } \n\t\t\t\t\tif ($bulgaro==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=5 '; } \n\t\t\t\t\tif ($polaco==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=6 '; } \n\t\t\t\t\tif ($ingles==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=7 '; }\n\t\t\t\t\tif ($frances==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=8 '; }\n\t\t\t\t\tif ($catalan==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=9 '; } \n\t\t\t$sql_idioma_inferior.= ' )';\t\t\t\n\t\t\n\t\t} elseif ($castellano==1) { \n\t\t\n\t\t\tif ($ruso==1 || $rumano==1 || $arabe==1 || $chino==1 || $bulgaro==1 || $polaco==1 || $ingles==1 || $frances==1 || $catalan==1) {\n\t\t\t\n\t\t\t\t$sql_idioma_inferior='AND simbolos.inf_idioma=0 ';\n\t\t\t\t$sql_idioma_superior='AND (simbolos.inf_idioma=99999 ';\n\t\t\t\t\t\tif ($ruso==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=1 '; } \n\t\t\t\t\t\tif ($rumano==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=2 '; } \n\t\t\t\t\t\tif ($arabe==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=3 '; } \n\t\t\t\t\t\tif ($chino==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=4 '; } \n\t\t\t\t\t\tif ($bulgaro==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=5 '; } \n\t\t\t\t\t\tif ($polaco==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=6 '; } \n\t\t\t\t\t\tif ($ingles==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=7 '; }\n\t\t\t\t\t\tif ($frances==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=8 '; }\n\t\t\t\t\t\tif ($catalan==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=9 '; } \n\t\t\t\t$sql_idioma_superior.= ' )';\n\t\t\t\n\t\t\t} elseif ($ruso==0 && $rumano==0 && $arabe==0 && $chino==0 && $bulgaro==0 && $polaco==0 && $ingles==0 && $frances==0 && $catalan==0) {\n\t\t\t\n\t\t\t\t$sql_idioma_superior='AND simbolos.sup_con_texto=0 ';\n\t\t\t\t$sql_idioma_inferior='AND simbolos.inf_idioma=0 ';\n\t\t\t\n\t\t\t}\n\t\t\n\t\t\n\t\t} elseif ($castellano==0 && $ruso==0 && $rumano==0 && $arabe==0 && $chino==0 && $bulgaro==0 && $polaco==0 && $ingles==0 && $frances==0 && $catalan==0) {\n\t\t\n\t\t\t$sql_idioma_inferior='';\n\t\t\t$sql_idioma_inferior='';\n\t\t}\n\t\t\n\t\t\n\t\tif ($minusculas == 1 && $mayusculas == 1) {\n\t\t \t$sql_mayusculas='AND (simbolos.inf_mayusculas=1 OR simbolos.inf_mayusculas=0)';\n\t\t} elseif ($minusculas == 1) { \n\t\t $sql_mayusculas='AND (simbolos.inf_mayusculas=0)';\n\t\t} elseif ($mayusculas == 1) { \n\t\t\t$sql_mayusculas='AND (simbolos.inf_mayusculas=1)';\n\t\t} elseif ($minusculas == 0 && $mayusculas == 0) { \n\t\t\t$sql_mayusculas='AND (simbolos.inf_mayusculas=1 OR simbolos.inf_mayusculas=0)';\n\t\t}\n\t\t\n\t\tif ($tipo_letra==99) { $sql_tipo_letra=''; } \n\t\telse { $sql_tipo_letra='AND (simbolos.sup_font='.$tipo_letra.' OR simbolos.inf_font='.$tipo_letra.')'; }\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($marco==99) { $sql_marco=''; } \n\t\telse { $sql_marco='AND simbolos.marco='.$marco.''; }\n\t\t\n\t\tif ($contraste==99) { $sql_contraste=''; } \n\t\telse { $sql_contraste='AND simbolos.contraste='.$contraste.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\tif ($letra=='todas') { $sql_letra=''; } else { $sql_letra=$letra; }\n\t\t\n\t\t$query = \"SELECT simbolos.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos, palabras, tipos_simbolos\n\t\tWHERE simbolos.id_palabra=palabras.id_palabra\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_marco\n\t\t$sql_contraste\n\t\t$sql_tipo_letra\n\t\t$mostrar_registradas\n\t\t$sql_mayusculas\n\t\t$sql_idioma_inferior\n\t\t$sql_idioma_superior\n\t\tAND palabras.palabra LIKE '$sql_letra%%'\n\t\tORDER BY palabras.palabra asc\n\t\tLIMIT $inicial,$cantidad\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function modalidades_juegos_admin_listar ( ) {\t\n\t$result_set_Modalidad_Juego = db_query( \"SELECT * FROM {eSM_Modalidad_Juego} ORDER BY id_Modalidad_Juego ASC\" );\n\t\t\n\t$output = '<div class=\"form_item\">Lista de modalidades dadas de alta en la base de datos.</div>';\n\t$header = array (t('Name'), t('Plataforma'), t('Game'), t('Min Jugadores'), t('Max Jugadores'), '');\n\t\n\t//Pondremos un listado de modalidads disponibles\n\twhile( $Modalidad_Juego = db_fetch_object( $result_set_Modalidad_Juego ) ) {\n\t\t$result_set_Plataforma = db_query( \"SELECT * from {eSM_Plataforma} WHERE id_Plataforma = %d \", $Modalidad_Juego->id_Plataforma );\n\t\t\n\t\t$Plataforma = db_fetch_object( $result_set_Plataforma );\n\t\t\n\t\t$row = array();\n\t\t$row[] = $Modalidad_Juego->Nombre;\t\t\t\n\t\t$row[] = $Plataforma->Nombre;\n\t\t$row[] = $Modalidad_Juego->Nombre_Juego;\n\t\t$row[] = $Modalidad_Juego->Minimo_Jugadores;\n\t\t$row[] = $Modalidad_Juego->Maximo_Jugadores;\n\t\t$row[] = l( t( 'Editar' ), 'admin/base_datos_externa/modalidades/'.$Modalidad_Juego->id_Modalidad_Juego.'/editar' );\n\t\t\n\t\t$rows[] = $row;\n\t}\n\t$output .= theme('table', $header, $rows);\n\t\n\t$output .= l(t('Agregar modalidad'), 'admin/base_datos_externa/modalidades/insertar');\n\treturn $output;\n}", "private function f_ListarValidado(){\n $lobj_AccesoZona = new cls_AccesoZona;\n //creo la peticion\n $pet = array(\n 'operacion' => 'buscarZonas',\n 'codigo_usuario' => $_SESSION['Con']['Nombre']\n );\n //guardo los datos en el objeto y gestiono para obtener una respuesta\n $lobj_AccesoZona->setPeticion($pet);\n $zona = $lobj_AccesoZona->gestionar();\n $cadenaBusqueda = ' where codigo_zona in(';\n if($zona['success'] == 1){\n for($x = 0;$x < count($zona['registros']) - 1; $x++){\n $cadenaBusqueda .= $zona['registros'][$x].',';\n }\n $cadenaBusqueda .= $zona['registros'][count($zona['registros']) - 1].' ';\n }\n $cadenaBusqueda .= \") \";\n $cadenaBusqueda .= ($this->aa_Atributos['valor']=='')?'':\"and nombre_finca like '%\".$this->aa_Atributos['valor'].\"%'\";\n $ls_SqlBase=\"SELECT * FROM agronomia.vfinca $cadenaBusqueda\";\n $orden = ' order by codigo_productor,letra';\n $ls_Sql = $this->f_ArmarPaginacion($ls_SqlBase,$orden);\n $x=0;\n $la_respuesta=array();\n $this->f_Con();\n $lr_tabla=$this->f_Filtro($ls_Sql);\n while($la_registros=$this->f_Arreglo($lr_tabla)){\n $la_respuesta[$x]['codigo']=$la_registros['codigo_productor'];\n $la_respuesta[$x]['nombre']=$la_registros['codigo_productor'].'-'.$la_registros['letra'];\n $la_respuesta[$x]['id_finca']=$la_registros['id_finca'];\n $x++;\n }\n $this->f_Cierra($lr_tabla);\n $this->f_Des();\n $this->aa_Atributos['registros'] = $la_respuesta;\n $lb_Enc=($x == 0)?false:true;\n return $lb_Enc;\n }", "function listarMaquinaria(){\n\t\t$this->procedimiento='snx.ft_maquinaria_sel';\n\t\t$this->transaccion='SNX_MAQ_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_maquinaria','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('potencia','numeric');\n\t\t$this->captura('peso','numeric');\t\t\n\t\t$this->captura('maquinaria','varchar');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('valor','numeric');\n\t\t$this->captura('valormat','numeric');\n\t\t$this->captura('id_factorindexacion','int4');\n\t\t$this->captura('desc_factorindexacion','varchar');\n\t\t$this->captura('id_tipopreciomaquinaria','int4');\n\t\t$this->captura('tipopreciomaquinaria','varchar');\n\t\t$this->captura('id_ambitoprecio','int4');\n\t\t$this->captura('ambitoprecio','varchar');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function listarSolicitudModalidades()\r\n {\r\n $this->procedimiento = 'adq.f_solicitud_modalidades_sel';\r\n $this->transaccion = 'ADQ_SOLMODAL_SEL';\r\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\r\n\r\n\r\n $this->setParametro('id_funcionario_usu', 'id_funcionario_usu', 'int4');\r\n $this->setParametro('tipo_interfaz', 'tipo_interfaz', 'varchar');\r\n $this->setParametro('historico', 'historico', 'varchar');\r\n\r\n\r\n //Definicion de la lista del resultado del query\r\n $this->captura('id_solicitud', 'int4');\r\n $this->captura('estado_reg', 'varchar');\r\n $this->captura('id_solicitud_ext', 'int4');\r\n $this->captura('presu_revertido', 'varchar');\r\n $this->captura('fecha_apro', 'date');\r\n $this->captura('estado', 'varchar');\r\n $this->captura('id_funcionario_aprobador', 'int4');\r\n $this->captura('id_moneda', 'int4');\r\n $this->captura('id_gestion', 'int4');\r\n $this->captura('tipo', 'varchar');\r\n $this->captura('num_tramite', 'varchar');\r\n $this->captura('justificacion', 'text');\r\n $this->captura('id_depto', 'int4');\r\n $this->captura('lugar_entrega', 'varchar');\r\n $this->captura('extendida', 'varchar');\r\n\r\n $this->captura('posibles_proveedores', 'text');\r\n $this->captura('id_proceso_wf', 'int4');\r\n $this->captura('comite_calificacion', 'text');\r\n $this->captura('id_categoria_compra', 'int4');\r\n $this->captura('id_funcionario', 'int4');\r\n $this->captura('id_estado_wf', 'int4');\r\n $this->captura('fecha_soli', 'date');\r\n $this->captura('fecha_reg', 'timestamp');\r\n $this->captura('id_usuario_reg', 'int4');\r\n $this->captura('fecha_mod', 'timestamp');\r\n $this->captura('id_usuario_mod', 'int4');\r\n $this->captura('usr_reg', 'varchar');\r\n $this->captura('usr_mod', 'varchar');\r\n\r\n $this->captura('id_uo', 'integer');\r\n\r\n $this->captura('desc_funcionario', 'text');\r\n $this->captura('desc_funcionario_apro', 'text');\r\n $this->captura('desc_uo', 'text');\r\n $this->captura('desc_gestion', 'integer');\r\n $this->captura('desc_moneda', 'varchar');\r\n $this->captura('desc_depto', 'varchar');\r\n $this->captura('desc_proceso_macro', 'varchar');\r\n $this->captura('desc_categoria_compra', 'varchar');\r\n $this->captura('id_proceso_macro', 'integer');\r\n $this->captura('numero', 'varchar');\r\n $this->captura('desc_funcionario_rpc', 'text');\r\n $this->captura('obs', 'text');\r\n $this->captura('instruc_rpc', 'varchar');\r\n $this->captura('desc_proveedor', 'varchar');\r\n $this->captura('id_proveedor', 'integer');\r\n $this->captura('id_funcionario_supervisor', 'integer');\r\n $this->captura('desc_funcionario_supervisor', 'text');\r\n $this->captura('ai_habilitado', 'varchar');\r\n $this->captura('id_cargo_rpc', 'integer');\r\n $this->captura('id_cargo_rpc_ai', 'integer');\r\n $this->captura('tipo_concepto', 'varchar');\r\n $this->captura('revisado_asistente', 'varchar');\r\n $this->captura('fecha_inicio', 'date');\r\n $this->captura('dias_plazo_entrega', 'integer');\r\n $this->captura('obs_presupuestos', 'varchar');\r\n $this->captura('precontrato', 'varchar');\r\n $this->captura('update_enable', 'varchar');\r\n $this->captura('codigo_poa', 'varchar');\r\n $this->captura('obs_poa', 'varchar');\r\n $this->captura('contador_estados', 'bigint');\r\n\r\n $this->captura('nro_po', 'varchar');\r\n $this->captura('fecha_po', 'date');\r\n\r\n $this->captura('importe_total', 'numeric');\r\n $this->captura('prioridad', 'varchar');\r\n $this->captura('id_prioridad', 'integer');\r\n $this->captura('list_proceso', 'integer[]');\r\n\r\n $this->captura('cuce', 'varchar');\r\n $this->captura('fecha_conclusion', 'date');\r\n $this->captura('presupuesto_aprobado', 'varchar');\r\n\r\n $this->captura('tipo_modalidad', 'varchar');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n //echo($this->consulta);exit;\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "public function listar($inicio = 0, $cantidad = 0, $excepcion = NULL, $condicion = NULL, $idCurso = NULL) {\n global $sql, $configuracion;\n\n /* * * Validar la fila inicial de la consulta ** */\n if (!is_int($inicio) || $inicio < 0) {\n $inicio = 0;\n }\n\n /* * * Validar la cantidad de registros requeridos en la consulta ** */\n if (!is_int($cantidad) || $cantidad <= 0) {\n $cantidad = 0;\n }\n\n /* * * Validar que la condición sea una cadena de texto ** */\n if (!is_string($condicion)) {\n $condicion = '';\n }\n\n /* * * Validar que la excepción sea un arreglo y contenga elementos ** */\n if (isset($excepcion) && is_array($excepcion) && count($excepcion)) {\n $excepcion = implode(',', $excepcion);\n $condicion .= 'ac.id NOT IN (' . $excepcion . ') AND ';\n }\n\n /* * * Definir el orden de presentación de los datos ** */\n if ($this->listaAscendente) {\n $orden = 'ac.fecha_publicacion ASC';\n } else {\n $orden = 'ac.fecha_publicacion DESC';\n }\n\n $tablas = array(\n 'ac' => 'actividades_curso'\n );\n\n $columnas = array(\n 'id' => 'ac.id',\n 'idCurso' => 'ac.id_curso',\n 'idUsuario' => 'ac.id_usuario',\n 'titulo' => 'ac.titulo',\n 'descripcion' => 'ac.descripcion',\n 'fechaPublicacion' => 'UNIX_TIMESTAMP(ac.fecha_publicacion)',\n 'fechaLimite' => 'UNIX_TIMESTAMP(ac.fecha_limite)',\n 'diasRestantes' => 'DATEDIFF(ac.fecha_limite, NOW())'\n );\n\n $condicion .= 'ac.id_curso = \"'.$idCurso.'\"';\n\n if (is_null($this->registros)) {\n $sql->seleccionar($tablas, $columnas, $condicion);\n $this->registros = $sql->filasDevueltas;\n }\n\n $consulta = $sql->seleccionar($tablas, $columnas, $condicion, '', $orden, $inicio, $cantidad);\n\n $lista = array();\n if ($sql->filasDevueltas) {\n\n while ($actividad = $sql->filaEnObjeto($consulta)) {\n $actividad->icono = $configuracion['SERVIDOR']['media'] . $configuracion['RUTAS']['imagenesEstilos'] . 'activity.png';\n $lista[] = $actividad;\n }\n }\n\n return $lista;\n }", "function getListMarca()\n{\n global $conn;\n /*\n *query da disciplina\n */\n $sqld = \"SELECT\n cat_id,\n cat_titulo\n\n FROM \".TABLE_PREFIX.\"_categoria\n WHERE cat_status=1 AND cat_area='Marca'\n ORDER BY cat_titulo\";\n\n $disciplina = array();\n if(!$qryd = $conn->prepare($sqld))\n echo divAlert($conn->error, 'error');\n\n else {\n\n $qryd->execute();\n $qryd->bind_result($id, $titulo);\n\n while ($qryd->fetch())\n $disciplina[$id] = $titulo;\n\n $qryd->close();\n\n\n }\n\n return $disciplina;\n}", "public function ListarMovimientoCajas()\n{\n self::SetNames();\n \n if($_SESSION[\"acceso\"] == \"cajero\") {\n\n\n $sql = \"SELECT * FROM movimientoscajas WHERE codigo = '\".$_SESSION[\"codigo\"].\"'\";\n\t\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\n\n\t\t\t} else {\n\n\t\t\t$sql = \"SELECT * FROM movimientoscajas\";\n\t\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n}", "public function getListado() {\n return $this->listado;\n }", "private function listauteur() {\n\t\t$this->_ctrlAuteur = new ControleurAuteur();\n\t\t// cree un auteur\n\t\tif(isset($_SESSION['error_auteur_cree'])) {unset($_SESSION['error_auteur_cree']); }\n\t\tif(isset($_POST['cree_auteur'])) {\n\t\t\t$nom = Utils::getPost('nom_auteur');\n\t\t\tif ($nom ) {\n\t\t\t\t$nom = Utils::filtreForte($nom);\n\t\t\t\tif (strlen($nom) > 2) { \n\t\t\t\t\t$this->_ctrlAuteur->creeAuteur($nom);\n\t\t\t\t} else {\n\t\t\t\t\t\t\t$_SESSION['error_auteur_cree'] = 'Minimum trois caractères !!!';\n\t\t\t\t\t\t\theader(\"Location: index.php?controler=ajoutauteur\");\n\t\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Exception('Valeur introdui incorect !!!');\n\t\t\t}\n\t\t} \n\n\t\t// modifie un auteur\n\t\tif(isset($_SESSION['error_auteur_modifie'])) unset($_SESSION['error_auteur_modifie']);\n\t\tif(isset($_POST['modifie_auteur'])){\n\t\t\t$nom = Utils::getPost('nom_auteur_m');\n\t\t\t$id = Utils::getPost('id_auteur_m');\n\t\t\tif ($nom && $id) {\n\t\t\t\t\t$id = Utils::filtreForte($id);\n\t\t\t\t\t$nom = Utils::filtreForte($nom);\n\t\t\t\t\t\tif (strlen($nom) > 2) {\n\t\t\t\t\t\t\t$this->_ctrlAuteur->auteurModifieBD($id, $nom);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$_SESSION['error_auteur_modifie'] = 'Minimum trois caractères !!!';\n\t\t\t\t\t\t\theader(\"Location: index.php?controler=mauteur&id=\".$id);\n\t\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception('Valeur introdui incorect !!!');\n\t\t\t\t}\n\n\t\t}\n\n\t\t$this->_ctrlAuteur->auteurListe();\n\t}", "public function get_cargos($centro_costo){\n\t\t\t\n\t\t\t\n\t\t\ttry { \n\t\t\t\tglobal $conn;\n\t\t\t\t$sql=\"SELECT distinct c.cod_car, C.NOM_CAR \n\t\t\t\t\t FROM CARGOS C, CENTROCOSTO2 AREA, EMPLEADOS_BASIC EPL\n\t\t\t\t\t\tWHERE \n\t\t\t\t\t EPL.COD_CC2='\".$centro_costo.\"'\n\t\t\t\t\t\tAND EPL.COD_CAR=C.COD_CAR\n\t\t\t\t\t\torder by nom_car asc\n\t\t\t\t\t\t\";\n\t\t\t\t\t\t\n\t\t\t\t$rs=$conn->Execute($sql);\n\t\t\t\twhile($fila=$rs->FetchRow()){\n\t\t\t\t\t$this->lista[]=array(\"codigo\" => $fila[\"cod_car\"],\n\t\t\t\t\t\t\t\t\t\t \"cargos\"=> utf8_encode($fila[\"NOM_CAR\"]));\n\t\t\t\t}\n\t\t\t\n\t\t\t\treturn $this->lista;\n\t\t\t\t\n\t\t\t}catch (exception $e) { \n\n\t\t\t var_dump($e); \n\n\t\t\t adodb_backtrace($e->gettrace());\n\n\t\t\t} \n\t\t\n\t\t}", "public function get_Cargos(){\n $listar = $this->pdo->prepare(\"SELECT * FROM th_cargos WHERE car_flag =1 ORDER BY car_titulo ASC\");\n $listar->execute();\n return $listar;\n }", "public function Lista_Ciudades()//FUNCION PARA LLAMAR LA LISTA DE DEPARTAMENTOS\n {\n \n include('conexion.php');\n \n\n $Consulta_Ciudad = \"SELECT * FROM p_ciudad ORDER BY ciud_nombre\";\n\t\t\t $Resultado_Consulta_Ciudad = $conexion->prepare($Consulta_Ciudad);\n $Resultado_Consulta_Ciudad->execute();\n\t\t\t\t\t while ($f = $Resultado_Consulta_Ciudad->fetch())\t\n {\n\t\t\t\t\t\t echo '<option value=\"'.$f[ciud_codigo].'\">'.$f[ciud_nombre].'</option>';\n }\n \n }", "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 }", "public function listoAction()\n {\n $form = new Formulario(\"form\");\n $id = (int) $this->params()->fromRoute('id', 0);\n $form->get(\"id\")->setAttribute(\"value\",\"$id\"); \n \n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $u=new AlbumTable($this->dbAdapter); // ---------------------------------------------------------- 1 FUNCION DENTRO DEL MODELO (C) \n\n $dat = $u->getGeneral1(\"Select * from t_nivel_cargo where id = \".$id); \n\n $valores=array\n (\n \"titulo\" => 'Lista de chequeo asociada a '.$dat['nombre'],\n 'url' => $this->getRequest()->getBaseUrl(),\n \"datos\" => $u->getLcheq($id), \n \"datos2\" => $u->getLcheqTcon($id),\n \"form\" => $form,\n \"lin\" => $this->lin\n ); \n return new ViewModel($valores); \n \n }", "function listadeTodosLiderDao(){\r\n require_once (\"../conexao.php\");\r\n require_once (\"../modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $resultado = mysql_query(\"Select Matricula,Nome from membros where LiderCelula = 'S' order by Nome\") or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n $listaMembro = array();\r\n \r\n $i=0;\r\n \r\n \r\n while ($registro = mysql_fetch_assoc($resultado)){\r\n \r\n if($registro[\"Nome\"] != \"\"){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n \r\n\t $listaMembro[$i] = $membro;\r\n\t}\r\n $i++;\r\n }\r\n\t\treturn $listaMembro;\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco();\r\n }", "function listarPerfil( $perfil, $camposExtras = array(), $prefixo = '' ) {\r\n\t// @requer obterArray()\r\n\tglobal $campos, $perfis, $listas;\r\n\tif ( !is_array( $camposExtras ) )\r\n\t\t$camposExtras = array();\r\n\t$camposPerfil = $camposExtras + obterArray( obterArray( $perfis, $perfil ), 'campos' );\r\n\t$lista = array();\r\n\tforeach ( $camposPerfil as $campo => $obrigatorio ) {\r\n\t\t$slug = $prefixo\r\n\t\t\t? $prefixo . '_' . $campo\r\n\t\t\t: $campo\r\n\t\t;\r\n\t\tif ( isset( $_POST[ $slug ] ) ) {\r\n\t\t\tif ( isset( $campos[ $campo ] ) )\r\n\t\t\t\t$nome = $campos[ $campo ]['nome'];\r\n\t\t\telse\r\n\t\t\t\t$nome = ucwords( $campo );\r\n\t\t\tif ( isset( $campos[ $campo ] ) && isset( $campos[ $campo ]['lista'] ) )\r\n\t\t\t\t$valor = $listas[ $campos[ $campo ]['lista'] ]['valores'][ $_POST[ $slug ] ];\r\n\t\t\telse\r\n\t\t\t\t$valor = $_POST[ $slug ];\r\n\t\t\t$lista[] = \"$nome: $valor\";\r\n\t\t}\r\n\t}\r\n\treturn implode( \"\\r\\n\", $lista );\r\n}", "function ADO_Listar_Medico_Por_Sede_Y_Fecha_Cita($arreglo){\n\n $rs=$this->db->query\n (\n \"select ci.idmed ,tra.paternotra||' '||tra.maternotra||' '||tra.nombretra as medico\n from om_general.cp_tb_citas ci inner join om_general.cp_tb_trabajador tra on\n ci.idmed=tra.idtra inner join om_general.cp_tb_contrato co on\n ci.idper=co.idper where ci.fechacita between '\".$arreglo[\"fechadel\"].\"' and '\".$arreglo[\"fechaal\"].\"'\n and ci.idsede='\".$arreglo[\"sedeid\"].\"'\n group by ci.idmed,tra.paternotra,tra.maternotra,tra.nombretra\n order by ci.idmed asc\"\n );\n $flag=false;\n $data=array();\n if($rs->num_rows()>0){\n $flag=true;\n foreach($rs->result() as $row){\n $data[]=array\n (\n \"idmed\"=>$row->idmed,\n \"medico\"=>$row->medico\n );\n }\n }\n\n return array\n (\n \"success\"=>$flag,\n \"data\"=>$data\n );\n\n }", "function evt__efs_lista__modificacion($registros)\n\t{\n\t\t/*\n\t\t\tComo en el mismo request es posible dar una efs de alta y seleccionarla,\n\t\t\ttengo que guardar el ID intermedio que el ML asigna en las efss NUEVAS,\n\t\t\tporque ese es el que se pasa como parametro en la seleccion\n\t\t\t*/\n\t\t$orden = 1;\n\t\tforeach(array_keys($registros) as $id)\n\t\t{\n\t\t\t//Creo el campo orden basado en el orden real de las filas\n\t\t\t$registros[$id]['orden'] = $orden;\n\t\t\t$orden++;\n\t\t\t$accion = $registros[$id][apex_ei_analisis_fila];\n\t\t\tunset($registros[$id][apex_ei_analisis_fila]);\n\t\t\tswitch($accion){\n\t\t\t\tcase 'A':\n\t\t\t\t\t//Por defecto el campo 'columnas' es igual a $this->campo_clave\n\t\t\t\t\t$registros[$id]['columnas'] = $registros[$id][$this->campo_clave];\n\t\t\t\t\t$this->id_intermedio_efs[$id] = $this->get_tabla()->nueva_fila($registros[$id]);\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'B':\n\t\t\t\t\t$this->get_tabla()->eliminar_fila($id);\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'M':\n\t\t\t\t\t//---Si se cambia un identificador que estaba ligado con us columna se cambia tambien el valor de la columna\n\t\t\t\t\t$anterior_id = $this->get_tabla()->get_fila_columna($id, $this->campo_clave);\n\t\t\t\t\t$anterior_col = $this->get_tabla()->get_fila_columna($id, 'columnas');\n\t\t\t\t\tif ($anterior_id != $registros[$id][$this->campo_clave]) {\n\t\t\t\t\t\tif ($anterior_id == $anterior_col) {\n\t\t\t\t\t\t\t$registros[$id]['columnas'] = $registros[$id][$this->campo_clave];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->get_tabla()->modificar_fila($id, $registros[$id]);\n\t\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\t}", "function listadeMembroCelulaDao($matricula){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $resultado = mysql_query(\"Select Matricula,Nome from celulas c join celulamembro e on e.CodCelula = c.Codigo join membros m on e.CodMembro = m.Matricula WHERE c.Codigo = $matricula\") or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n $listaMembro = array();\r\n \r\n $i=0;\r\n $achou=FALSE;\r\n \r\n if($resultado != \"\"){\r\n \r\n while ($registro = mysql_fetch_assoc($resultado)){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n \r\n\t $listaMembro[$i] = $membro;\r\n \r\n\t $i++;\r\n $achou = true;\r\n\t}\r\n \r\n }\r\n\t\treturn $listaMembro;\r\n if($achou){\r\n mysql_free_result($registro);\r\n }\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco(); \r\n }", "function listar_originales_idioma_limit($registrado,$inicial,$cantidad,$id_tipo,$letra,$filtrado,$orden,$id_subtema,$id_idioma,$tipo_pictograma,$txt_locate,$sql) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND imagenes.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($id_tipo==99) { $sql_tipo=''; } \n\t\telse { $sql_tipo='AND palabras.id_tipo_palabra='.$id_tipo.''; }\n\t\t\n\t\tif (isset($sql) && $sql !='') { \n\t\t\t\t$sql_subtema='AND palabra_subtema.id_palabra=palabras.id_palabra\n\t\t\t\t'.$sql; \n\t\t\t\t$subtema_tabla=',palabra_subtema.*';\n\t\t\t\t$subtema_tabla_from=', palabra_subtema';\n\t\t} else {\n\t\t\t\n\t\t\tif ($id_subtema==99999) { \n\t\t\t\t$sql_subtema=''; \n\t\t\t\t$subtema_tabla='';\n\t\t\t\t$subtema_tabla_from='';\n\t\t\t} \n\t\t\telse { \n\t\t\t\t$sql_subtema='AND palabra_subtema.id_palabra=palabras.id_palabra\n\t\t\tAND palabra_subtema.id_subtema='.$id_subtema.''; \n\t\t\t\t$subtema_tabla=',palabra_subtema.*';\n\t\t\t\t$subtema_tabla_from=', palabra_subtema';\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($letra==\"\") { $sql_letra=''; } \n\t\telse { \n\t\t\n\t\t\tswitch ($txt_locate) { \n\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t$sql_letra=\"AND traducciones_\".$id_idioma.\".traduccion LIKE '$letra%%'\";\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 2:\n\t\t\t\t$sql_letra=\"AND traducciones_\".$id_idioma.\".traduccion LIKE '%%$letra%%'\";\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 3:\n\t\t\t\t$sql_letra=\"AND traducciones_\".$id_idioma.\".traduccion LIKE '%%$letra'\"; \n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 4:\n\t\t\t\t$sql_letra=\"AND traducciones_\".$id_idioma.\".traduccion='$letra'\"; \n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t$sql_letra=\"AND traducciones_\".$id_idioma.\".traduccion LIKE '$letra%%'\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t\t\n\t\tif ($filtrado==1) { $sql_filtrado='imagenes.ultima_modificacion'; } \n\t\telseif ($filtrado==2) { $sql_filtrado='palabras.palabra'; }\n\t\t\n\t\t$query = \"SELECT DISTINCT imagenes.id_imagen,imagenes.imagen,\n\t\timagenes.fecha_creacion,imagenes.ultima_modificacion,\n\t\tpalabras.id_palabra,palabras.id_tipo_palabra,\n\t\ttraducciones_\".$id_idioma.\".traduccion,traducciones_\".$id_idioma.\".explicacion,\n\t\ttraducciones_\".$id_idioma.\".id_traduccion,traducciones_\".$id_idioma.\".id_idioma \n\t\t$subtema_tabla\n\t\tFROM palabra_imagen, imagenes, palabras, traducciones_\".$id_idioma.\" $subtema_tabla_from\n\t\tWHERE imagenes.estado=1\n\t\tAND traducciones_\".$id_idioma.\".id_palabra=palabra_imagen.id_palabra\n\t\tAND traducciones_\".$id_idioma.\".id_palabra=palabras.id_palabra\n\t\tAND traducciones_\".$id_idioma.\".traduccion IS NOT NULL\n\t\t$sql_letra\n\t\t$sql_tipo\n\t\t$sql_subtema\t\n\t\tAND imagenes.id_tipo_imagen=$tipo_pictograma\n\t\tAND palabra_imagen.id_imagen=imagenes.id_imagen\n\t\t$mostrar_registradas\n\t\tORDER BY $sql_filtrado $orden \n\t\tLIMIT $inicial,$cantidad\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function carrinho(){\n\t\t\t$this->items = array();\n\t\t}", "public function listarSocios() {\r\n $sql = \"select j.nombre,j.apellido,j.cedula,j.fechanac, j.porcentaje, m.nombre from juntadirectiva as j, municipio as m \"\r\n\t\t .\" where j.ciudadnac = m.id\";\t\t\r\n $respuesta = $this->object->ejecutar($sql);\r\n $this->construirListadoSocio($respuesta);\r\n }", "function listar(){\n\trequire './moduloprestamos/modelos/prestamosModelo.php';\n\n\t//Le pide al modelo todos los items\n\t$items = buscarTodosLosItems();\n\n\t//Pasa a la vista toda la información que se desea representar\n\trequire './moduloprestamos/vistas/listar.php';\n}", "protected function IdCancionEnLista ($nombreCancion,$nombreLista)\n {\n $cancionEnLista = Model_tiene::find('all', array\n (\n 'where' => array\n (\n array('id_cancion'=>$this->idNameSong($nombreCancion)),\n array('id_lista'=>$this->idNameList($nombreLista))\n )\n ));\n if(!empty($cancionEnLista))\n {\n $id=0;\n foreach ($cancionEnLista as $key => $value)\n {\n $id = $cancionEnLista[$key]->id_cancion;\n }\n return $id; \n }\n }", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xps_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xps_cms_prepend\", \"entier\", \"get_cms_prepend\", \"set_cms_prepend\");\n\t$laListeChamps[]=new dbChamp(\"Xps_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\treturn($laListeChamps);\n}", "function listarCitasDisponibles()\n\t\t{\n\t\t\t$dia = $this->uri->segment(3);\n\t\t\t$mes = $this->uri->segment(4);\n\t\t\t$year = $this->uri->segment(5);\n\t\t\t$diaDeLaSemana = date('N',mktime(0, 0, 0, $mes, $dia, $year));\n\t\t\t\n\t\t\t//Obetenemos los arrays de horarios del dia de la semana concreto\n\t\t\t$diasSemana = $this->PacienteModel->getCalendario();\n\t\t\tforeach ($diasSemana as $value) {\n\t\t\t\tif($diaDeLaSemana == $value->Dia)\n\t\t\t\t{\n\t\t\t\t\t$horaInicio = explode(':', $value->HoraInicio);\n\t\t\t\t\t$horaFin = explode(':', $value->HoraFin);\n\t\t\t\t\t$duracionCita[] = $value->DuracionCita;\n\t\t\t\t\t$unixInicio[] = mktime($horaInicio[0], $horaInicio[1], 0, $mes, $dia, $year);\n\t\t\t\t\t$unixFin[] = mktime($horaFin[0], $horaFin[1], 0, $mes, $dia, $year);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Comprobamos las citas planificadas para el dia concreto\n\t\t\t$data = $this->PacienteModel->getCitasDisponibles($dia, $mes, $year);\n\t\t\tforeach ($data as $value) {\n\t\t\t\t$aux = explode(\" \", $value->FechaIni);\n\t\t\t\t$aux = $aux[1];\n\t\t\t\t$aux = explode(\":\", $aux);\n\t\t\t\t$hora[] = $aux[0];\n\t\t\t\t$min[] = $aux[1];\n\t\t\t}\n\t\t\t\n\t\t\t//Si no hay ninguna cita se ponen los arrays fuera de rango\n\t\t\tif(!isset($hora) && !isset($min))\n\t\t\t{\n\t\t\t\t$hora[0] = -1;\n\t\t\t\t$min[0] = -1;\n\t\t\t}\n\n\t\t\t//Visualizamos las citas disponibles\n\t\t\techo '<ul class=\"list-group\">';\n\t\t\techo '<li class=\"list-group-item\">'.date('d-m-Y',mktime(0, 0, 0, $mes, $dia, $year)).'</li>';\n\t\t\tfor($j = 0; $j < sizeof($unixInicio); $j++)\n\t\t\t\tfor($i = $unixInicio[$j]; $i < $unixFin[$j]; $i += 60*$duracionCita[$j] )\n\t\t\t\t{\n\t\t\t\t\tif ( (in_array(date('H',$i), $hora) && in_array(date('i',$i), $min) )\n\t\t\t\t\t\t|| time()>$i )\n\t\t\t\t\t\techo '<li class=\"list-group-item\">'.date('H:i',$i).'</li>';\n\t\t\t\t\telse \n\t\t\t\t\t\techo '<li class=\"list-group-item active\">\n\t\t\t\t\t\t\t<a style=\"color: black;\" onclick=\"crearCita(\\''.$this->session->userdata('id').'\\',\n\t\t\t\t\t\t\t\\''.date('Y-m-d H:i:s',$i).'\\',\n\t\t\t\t\t\t\t\\''.date('Y-m-d H:i:s',$i + 60 * $duracionCita[$j]).'\\'\n\t\t\t\t\t\t\t)\">'.date('H:i',$i).'</a></li>';\n\t\t\t\t}\n\t\t\techo '</ul>';\n\t\t}", "function joueContre($adversaire, $lieu, $date) // trois argument définis pour la première fois\n{\n // contenant les infos de la rencontre\n array_push($this->rencontres, [\"adversaire\" => $adversaire, \n \"lieu\" => $lieu, \n \"date\" => $date\n\n ]); // on range les données dans le tableau rencontres, tableau de niveau 2\n\n}", "public function getCinema()\n {\n return $this->cinema;\n }", "public function listar_liberados_controlador(/*$privilegio,$codigo*/){\n\t\t\t\t\t\n\t\t\t\t\t$tabla=\"\";\n\t\t\t\t\t//Consulta para la busqueda de reasignación de hardware \n\t\t\t\t\t//Para la búsqueda se utilizo una tabla dinamica de la plantilla de Gentellas Master\n\t\t\t\t\t$consulta=\"SELECT *,T1.hardwareqr FROM hardware as T1, hardware_ingreso as T2, estado_info_hardware as T3, estado_asignacion_hardware as T4, tipo_hardware as T5, marca_hardware as T6, modelo_hardware as T7, color_hardware as T8, informe_ingreso_hardware as T9, empleados as T10, cargo as T11, departemento as T12, empresa as T13 WHERE T1.hiserie=T2.hiserie AND T2.estadoinfoharcodigo=T3.estadoinfoharcodigo AND T3.estadoinfoharnombre='APROBADO' AND T2.estadoasigharcodigo=T4.estadoasigharcodigo AND T4.estadoasigharnombre='NO REASIGNADO' AND T2.tipohardwarecodigo=T5.tipohardwarecodigo AND T2.marcahardwarecodigo=T6.marcahardwarecodigo AND T2.modelohardwarecodigo=T7.modelohardwarecodigo AND T2.colorhardwarecodigo=T8.colorhardwarecodigo AND T2.icodigo=T9.icodigo AND T1.empleadocodigo=T10.empleadocodigo AND T10.cargocodigo=T11.cargocodigo AND T11.departamentocodigo=T12.departamentocodigo AND T12.empresacodigo=T13.empresacodigo\n\t\t\t\t\t\";\n\n\t\t\t\t\t$conexion = mainModel::conectar();\n\t\t\t\t\t$datos = $conexion->query($consulta);\n\t\t\t\t\t$datos= $datos->fetchAll();\n\n\t\t\t\t\t\n\t\t\t//InicioTabla_______________________________________________________________\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t\n\t\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>#</th>\n\t\t\t\t\t<th>COD. DE INVENTARIO</th>\n\t\t\t\t\t<th>SERIE DEL HARDWARE</th>\n\t\t\t\t\t<th>TIPO DE HARDWARE</th>\n\t\t\t\t\t<th>MARCA DE HARDWARE</th>\n\t\t\t\t\t<th>MODELO DE HARDWARE</th>\n\t\t\t\t\t<th>COLOR DE HARDWARE</th>\n\t\t\t\t\t<th>FECHA DE INGRESO</th>\n\t\t\t\t\t\n\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t<th>ACCIONES</th>\n\t\t\t\t\t\n\t\t\t\t\t';\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\n\t\t\t\t\t\t//}\n\t\t\t\t\t$tabla.='</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>';\n\t\t\t\t\t\n\t\t\t\t\t$contador=0;\n\t\t\t\t\tforeach ($datos as $rows) {\n\t\t\t\t\t\t$contador=$contador+1;\n\t\t\t\t\t\t$a=$rows['hiserie'];\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>'.$contador.'</td>\n\t\t\t\t\t\t<td>'.$rows['hiserie'].'</td>\n\t\t\t\t\t\t<td>'.$rows['serireexterno'].'</td>\n\t\t\t\t\t\t<td>'.$rows['tipohardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['marcahardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['modelohardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['colorhardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['hifecha'].'</td>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t<form method=\"POST\" action=\"'.SERVERURL.'reasignacioninfo/\">\n\t\t\t\t\t\t<input type=\"hidden\" value=\"'.($a).'\" name=\"codigo\">\n\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"><i class=\"fa fa-folder-open-o\"></i> Ingresar</button>\n\t\t\t\t\t\t</form> \n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t';\n\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\t\t/*$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<form action=\"'.SERVERURL.'ajax/administradorAjax.php\" method=\"POST\" class=\"FormularioAjax\" data-form=\"delete\" entype=\"multipart/form-data\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"codigo-del\" value=\"'.mainModel::encryption($rows['CuentaCodigo']).'\"></input>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"privilegio-admin\" value=\"'.mainModel::encryption($privilegio).'\"></input>\n\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-danger btn-raised btn-xs\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-delete\"></i>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<div class=\"RespuestaAjax\"></div>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t';*/\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//$contador++;\n\t\t\t\t//}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t';\n\t\t\t//Fin Tabla__________________________________________________________________\n\t\t\t\t\t\treturn $tabla;\n\t\t\t\t\t}", "function cuentabancos(){\n\t\t\t$sql=$this->query(\"select m.IdPoliza,m.Cuenta,c.description,c.manual_code\n\t\t\tfrom cont_movimientos m,cont_polizas p,cont_accounts c,cont_config conf\n\t\t\twhere m.cuenta=c.account_id and c.currency_id=2 \n\t\t\tand c.`main_father`=conf.CuentaBancos and p.idtipopoliza!=3 and m.TipoMovto not like '%M.E%'\n\t\t\tand m.IdPoliza=p.id and p.activo=1 and m.Activo=1 group by m.Cuenta\n\t\t\t\");\n\t\t\treturn $sql;\n\t\t}", "function __construct($id_maquina, $fecha_cambio) {\r\n $this->_id_maquina = $id_maquina;\r\n $this->_fecha_cambio = $fecha_cambio;\r\n $this->_condicion_unicidad = null;\r\n $this->_id_hash = $id_maquina;\r\n }", "function desList(){\n\t$sql = 'SELECT * FROM votos';\n\t$resultado = mysql_query($sql);\n\t\n\twhile($row = mysql_fetch_array($resultado)){\n\t\toculta( $row['cancion'] );\n \t}\n}", "public function getCampi()\n {\n return $this->hasMany(Campo::class, ['id' => 'campo_id'])->viaTable('internato_campo', ['internato_id' => 'id'])\n ->orderBy(['data_arrivo' => SORT_DESC]);;\n }", "public function listarPorCpf(){\n $query = \"select * from usuario where cpf=?\";\n\n //preparando a consulta para a execução\n $stmt=$this->conn->prepare($query);\n\n //vamos fazer um blind(ligação) do cpf pesquisado\n //com o paramêtro da consulta, neste caso é o \n //ponto de interrogação\n $stmt ->bindParam(1,$this->cpf);\n\n //executar efetivamente a consulta \n $stmt ->execute();\n\n //Organizar os dados retornados da consulta para \n // a exibição em formato de json\n // Vamos usar uma variavel e um array para associar \n // os campos da tabela\n $linha = $stmt->fetch(PDO::FETCH_ASSOC);\n\n //organizar no objeto usuario(aqrquivo usuario.php)\n //os dados retornados\n //da tabela usuario que está no banco de dados\n \n $this->idusuario = $linha['idusuario'];\n $this->email = $linha['email'];\n $this->senha = $linha['senha'];\n $this->nome = $linha['nome'];\n $this->cpf = $linha['cpf'];\n $this->telefone = $linha['telefone'];\n $this->foto = $linha['foto'];\n\n\n }", "function listadeMembrodaDao($nome){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $resultado = mysql_query(\"Select * from membros where Nome LIKE '%$nome%'\") or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n $listaMembro = array();\r\n \r\n $i=0;\r\n $achou=FALSE;\r\n \r\n if($resultado != \"\"){\r\n \r\n while ($registro = mysql_fetch_assoc($resultado)){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n $membro->setSexo($registro['Sexo']); \r\n $membro->setData($registro['DataNascimento1']); \r\n $membro->setRg($registro['Rg']);\r\n $membro->setCpf($registro['Cpf']); \r\n $membro->setEstadocivil($registro['EstadoCivil']);\r\n $membro->setNatural($registro['Naturalidade']); \r\n $membro->setProfissao($registro['Profissao']); \r\n $membro->setEscola($registro['Escolaridade']); \r\n $membro->setPai($registro['Pai']); \r\n $membro->setMae($registro['Mae']); \r\n $membro->setNecessidade($registro['NecessidadeEspeciais']);\r\n\t $membro->setFone($registro['Fone']); \r\n $membro->setFilho($registro['Filho']); \r\n $membro->setFormacao($registro['FormacaoEclesiatica']);\r\n $membro->setMembrasia($registro['IntegracaoMembrasia']); \r\n $membro->setFuncao($registro['Funcao']); \r\n $membro->setParticipou($registro['JaParticipou']);\r\n\t $membro->setTrabalhando($registro['Trabalhando']); \r\n $membro->setViajando($registro['EstadoAtual']); \r\n $membro->setCongrega($registro['Congrega']); \r\n $membro->setRua($registro['Rua']); \r\n $membro->setBairro($registro['Bairro']); \r\n $membro->setCasa($registro['Casa']); \r\n $membro->setStatus($registro['Status']);\r\n \r\n\t $listaMembro[$i] = $membro;\r\n \r\n\t $i++;\r\n $achou = true;\r\n\t}\r\n \r\n }\r\n\t\treturn $listaMembro;\r\n if($achou){\r\n mysql_free_result($registro);\r\n }\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco(); \r\n }", "function getCampos(){\n\t\t$this->con->executa( \"select id, campo from workflow_campos\");\n\t\t\t//$this->con->navega();\n\n\t\t\t$i=0;\n\t\t\twhile ($this->con->navega(0)){\n\t\t\t\t$campos[ strtolower(trim($this->con->dados[\"id\"])) ] = strtolower(trim($this->con->dados[\"campo\"]));\n\n\t\t\t\t$i++;\n\t\t\t}\n $campos = $this->globais->ArrayMergeKeepKeys( $this->globais->SYS_ADD_CAMPOS, $campos);\n //$campos[ \"entradanoposto\" ] = \"entradanoposto\";\n //$array[\"FETCH\"] [$this->con->dados[\"idprocesso\"]][\"entradanoposto\" ] = $this->con->dados[\"wt_inicio\"] ;\n\n\t\treturn $campos;\n\n\t}", "function expositor_list(){\n return expositor_novo();\n}", "function listarCotizacionRPC(){\n $this->procedimiento='adq.f_cotizacion_sel';\n $this->transaccion='ADQ_COTRPC_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n \n \n $this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\n $this->setParametro('tipo_interfaz','tipo_interfaz','varchar');\n $this->setParametro('id_funcionario_rpc','id_funcionario_rpc','int4');\n $this->setParametro('historico','historico','varchar');\n \n //Definicion de la lista del resultado del query\n $this->captura('id_cotizacion','int4');\n $this->captura('estado_reg','varchar');\n $this->captura('estado','varchar');\n $this->captura('lugar_entrega','varchar');\n $this->captura('tipo_entrega','varchar');\n $this->captura('fecha_coti','date');\n $this->captura('numero_oc','varchar');\n $this->captura('id_proveedor','int4');\n $this->captura('desc_proveedor','varchar');\n $this->captura('fecha_entrega','date');\n $this->captura('id_moneda','int4');\n $this->captura('moneda','varchar');\n $this->captura('id_proceso_compra','int4');\n $this->captura('fecha_venc','date');\n $this->captura('obs','text');\n $this->captura('fecha_adju','date');\n $this->captura('nro_contrato','varchar');\n $this->captura('fecha_reg','timestamp');\n $this->captura('id_usuario_reg','int4');\n $this->captura('fecha_mod','timestamp');\n $this->captura('id_usuario_mod','int4');\n $this->captura('usr_reg','varchar');\n $this->captura('usr_mod','varchar');\n $this->captura('id_estado_wf','integer');\n $this->captura('id_proceso_wf','integer');\n $this->captura('desc_moneda','varchar');\n $this->captura('tipo_cambio_conv','numeric');\n $this->captura('id_solicitud','integer');\n\t\t$this->captura('id_categoria_compra','integer');\n\t\t$this->captura('numero','varchar');\n $this->captura('num_tramite','varchar');\n $this->captura('tiempo_entrega','varchar');\n\t\t$this->captura('requiere_contrato','varchar');\n\t\t$this->captura('total_adjudicado','numeric');\n\t\t$this->captura('total_cotizado','numeric');\n\t\t$this->captura('total_adjudicado_mb','numeric');\n\n\t\t$this->captura('id_gestion','int4');\n\n \n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n \n //Devuelve la respuesta\n return $this->respuesta;\n }", "function listar_simbolos_arasaac($id_tipo_palabra,$letra,$id_tipo_simbolo,$registrado,$marco,$contraste,$tipo_letra,$mayusculas,$minusculas,$castellano,$ruso,$rumano,$arabe,$chino,$bulgaro,$polaco,$ingles,$frances,$catalan) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($minusculas == 1 && $mayusculas == 1) {\n\t\t \t$sql_mayusculas='AND (simbolos.inf_mayusculas=1 OR simbolos.inf_mayusculas=0)';\n\t\t} elseif ($minusculas == 1) { \n\t\t $sql_mayusculas='AND (simbolos.inf_mayusculas=0)';\n\t\t} elseif ($mayusculas == 1) { \n\t\t\t$sql_mayusculas='AND (simbolos.inf_mayusculas=1)';\n\t\t} elseif ($minusculas == 0 && $mayusculas == 0) { \n\t\t\t$sql_mayusculas='AND (simbolos.inf_mayusculas=1 OR simbolos.inf_mayusculas=0)';\n\t\t}\n\t\t\n\t\t\n\t\tif ($castellano==0 &&($ruso==1 || $rumano==1 || $arabe==1 || $chino==1 || $bulgaro==1 || $polaco==1 || $ingles==1 || $frances==1 || $catalan==1)) { \n\t\t\n\t\t\t$sql_idioma_superior='AND simbolos.sup_con_texto=0 ';\n\t\t\t$sql_idioma_inferior='AND (simbolos.inf_idioma=99999 ';\n\t\t\t\t\tif ($castellano==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=0 '; } \n\t\t\t\t\tif ($ruso==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=1 '; } \n\t\t\t\t\tif ($rumano==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=2 '; } \n\t\t\t\t\tif ($arabe==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=3 '; } \n\t\t\t\t\tif ($chino==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=4 '; } \n\t\t\t\t\tif ($bulgaro==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=5 '; } \n\t\t\t\t\tif ($polaco==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=6 '; } \n\t\t\t\t\tif ($ingles==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=7 '; }\n\t\t\t\t\tif ($frances==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=8 '; }\n\t\t\t\t\tif ($catalan==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=9 '; } \n\t\t\t$sql_idioma_inferior.= ' )';\t\t\t\n\t\t\n\t\t} elseif ($castellano==1) { \n\t\t\n\t\t\tif ($ruso==1 || $rumano==1 || $arabe==1 || $chino==1 || $bulgaro==1 || $polaco==1 || $ingles==1 || $frances==1 || $catalan==1) {\n\t\t\t\n\t\t\t$sql_idioma_inferior='AND simbolos.inf_idioma=0 ';\n\t\t\t$sql_idioma_superior='AND (simbolos.inf_idioma=99999 ';\n\t\t\t\t\tif ($ruso==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=1 '; } \n\t\t\t\t\tif ($rumano==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=2 '; } \n\t\t\t\t\tif ($arabe==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=3 '; } \n\t\t\t\t\tif ($chino==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=4 '; } \n\t\t\t\t\tif ($bulgaro==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=5 '; } \n\t\t\t\t\tif ($polaco==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=6 '; } \n\t\t\t\t\tif ($ingles==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=7 '; }\n\t\t\t\t\tif ($frances==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=8 '; }\n\t\t\t\t\tif ($catalan==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=9 '; } \n\t\t\t$sql_idioma_superior.= ' )';\n\t\t\t\n\t\t\t} elseif ($ruso==0 && $rumano==0 && $arabe==0 && $chino==0 && $bulgaro==0 && $polaco==0 && $ingles==0 && $frances==0 && $catalan==0) {\n\t\t\t\n\t\t\t\t$sql_idioma_superior='AND simbolos.sup_con_texto=0 ';\n\t\t\t\t$sql_idioma_inferior='AND simbolos.inf_idioma=0 ';\n\t\t\t\n\t\t\t}\n\t\t\n\t\t} elseif ($castellano==0 && $ruso==0 && $rumano==0 && $arabe==0 && $chino==0 && $bulgaro==0 && $polaco==0 && $ingles==0 && $frances==0 && $catalan==0) {\n\t\t\n\t\t\t$sql_idioma_inferior='';\n\t\t\t$sql_idioma_inferior='';\n\t\t}\n\t\t\n\t\tif ($tipo_letra==99) { $sql_tipo_letra=''; } \n\t\telse { $sql_tipo_letra='AND (simbolos.sup_font='.$tipo_letra.' OR simbolos.inf_font='.$tipo_letra.')'; }\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($marco==99) { $sql_marco=''; } \n\t\telse { $sql_marco='AND simbolos.marco='.$marco.''; }\n\t\t\n\t\tif ($contraste==99) { $sql_contraste=''; } \n\t\telse { $sql_contraste='AND simbolos.contraste='.$contraste.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\tif ($letra=='todas') { $sql_letra=''; } else { $sql_letra=$letra; }\n\t\t\n\t\t$query = \"SELECT simbolos.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos, palabras, tipos_simbolos\n\t\tWHERE simbolos.id_palabra=palabras.id_palabra\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_marco\n\t\t$sql_contraste\n\t\t$sql_tipo_letra\n\t\t$sql_mayusculas\n\t\t$sql_idioma_inferior\n\t\t$sql_idioma_superior\n\t\t$mostrar_registradas\n\t\tAND palabras.palabra LIKE '$sql_letra%%'\n\t\tORDER BY palabras.palabra asc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function relatorioDeCelulaPart2Dao($idCelula,$idMembro){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetocelula.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n $resultado = mysql_query(\"Select c.NomeCelula, m.Nome from celulas c join celulamembro e on e.CodCelula = c.Codigo join membros m on e.CodMembro = m.Matricula order by c.NomeCelula\") or die (\"Nao foi possivel realizar a busca 2\".mysql_error());\r\n \r\n $listaMembro = array();\r\n \r\n $i=0;\r\n\r\n if($resultado){\r\n \r\n while ($registro = mysql_fetch_assoc($resultado)){ \r\n\t $celula = new objetocelula();\r\n $celula->setNome($registro['NomeCelula']);\r\n $celula->setNomeMembro($registro['Nome']);\r\n\t $listaMembro[$i] = $celula;\r\n\t $i++;\r\n\t}\r\n }\r\n \r\n\tmysql_free_result($resultado);\r\n $objDao->freebanco(); \r\n return $listaMembro;\r\n }", "public function listar_disciplinas($anolectivo, $turma, $classe)\n\t{\n\t\t$this->db->select('*');\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t// select tudo\n\t\t$this->db->from('notas_disciplina');\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t// da tbl matricula\n\t\t$this->db->where(\"anolectivo_id\", $anolectivo);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// filtro - anolectivo\n\t\t$this->db->where(\"turma_id\", $turma);\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t// filtro - turma\n\t\t$this->db->join('turma', 'turma.id_turma = notas_disciplina.turma_id', 'left');\t\t\t\t\t\t\t// join turma e matricula\n\t\t$this->db->join('classe', 'classe.id_classe = turma.classe_id', 'left');\t\t\t\t\t\t\t\t// Join tbl classe [turma]\n\t\t$this->db->join('anolectivo', 'anolectivo.id_ano = notas_disciplina.anolectivo_id', 'left');\t\t\t// join ano lectivo e matricula\n\t\t$this->db->join('periodo', 'periodo.id_periodo = turma.periodo_id', 'left');\t\t\t\t\t\t\t// join periodo e turma\n\t\t$dados[\"listagem_alunos\"] = $this->db->get()->row();\t\t\t\t\t\t\t\t\t\t\t\t\t// retorna 1 linha\n\t\tif ( empty($dados[\"listagem_alunos\"]) )\n\t\t{\n\t\t\techo $this->session->set_flashdata('msg',\"<div class='alert alert-warning text-center'>NÃO EXISTEM ALUNOS MATRICULADOS NA TURMA E ANO LECTIVO SELECIONADO</div>\");\t\n\t\t\tredirect('home/docente');\n\t\t}\n\t\telseif ( !empty($dados[\"listagem_alunos\"]) )\n\t\t{\n\n\t\t\t$this->db->select('*');\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// seleciona tudo\n\t\t\t$this->db->from('notas_disciplina');\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// de notas disciplina\n\t\t\t$this->db->where(\"anolectivo_id\", $anolectivo);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// filtro - anolectivo\n\t\t\t$this->db->where(\"turma_id\", $turma);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// filtro - turma\n\t\t\t$this->db->join('disciplina', 'disciplina.id_disciplina = notas_disciplina.disciplina_id', 'left');\t\t// join turma e matricula\n\t\t\t$this->db->join('anolectivo', 'anolectivo.id_ano = notas_disciplina.anolectivo_id', 'left');\t\t\t// join turma e matricula\n\t\t\t$this->db->join('turma', 'turma.id_turma = notas_disciplina.turma_id', 'left');\t\t\t\t\t\t\t// join turma e matricula\n\t\t\t$this->db->join('classe', 'classe.id_classe = turma.classe_id');\t\t\t\t\t\t\t\t\t\t// Join tbl classe [turma]\n\t\t\t$this->db->group_by('notas_disciplina.disciplina_id');\t\t\t\t\t\t\t\t\t\t\t\t\t// agrupamento\n\t\t\t$dados['disciplinas'] = $this->db->get()->result();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// retorna várias linhas\n\t\t\t/* ---------------------------------------------------------------------------------------------------------------------------- */\n\t\t\t$this->load->view('layout/cabecalho');\n\t\t\t$this->load->view('layout/menu_lateral_docente');\n\t\t\t$this->load->view('conteudo/_secretaria/_disciplina/ver_disciplinas', $dados);\n\t\t\t$this->load->view('layout/rodape');\n\t\t\t$this->load->view('layout/script');\n\t\t}\n\t}", "public function mostrar1(){\n\t\t\t$db=DB::conectar();\n\t\t\t$listarComentarios=[];\n\t\t\t$select=$db->query('SELECT * FROM comentarios WHERE activo=0');\n\n\t\t\tforeach ($select->fetchAll() as $comentario) {\n\t\t\t\t$myComentario = new Comentario();\n\t\t\t\t$myComentario->setIdproducto($comentario['idproducto']);\t\t\t\t\n\t\t\t\t$myComentario->setIp($comentario['ip']);\n\t\t\t\t$myComentario->setFecha($comentario['fecha']);\n\t\t\t\t$myComentario->setComentario($comentario['comentario']);\n\t\t\t\t$myComentario->setEstrellas($comentario['estrellas']);\n\t\t\t\t$myComentario->setActivo($comentario['activo']);\n\t\t\t\t$myComentario->setEmail($comentario['email']);\n\t\t\t\t$listarComentarios[]=$myComentario;\n\t\t\t\t# code...\n\t\t\t}\n\t\t\treturn $listarComentarios;\n\t\t}", "public function getCadastro($lista_id){\n\t\t$lista = Lista::findOrFail($lista_id);\n\t\t$this->layout->content = View::make('tarefas.cadastro',compact('lista'))->with('lista_id', $lista_id);\n\t}", "public function ListarCertificados($columna,$condicion,$like,$limite){\n $bd = BaseDatos::getInstance();\n $condicion_compuesta = false;\n\t\t$sql = 'SELECT \n\t\t\t\t`Id_Certificado`,`Codigo`,`Metodo`,\n\t\t\t\t`nivel`,`Fecha_Creacion`,\n\t\t\t\t`Ultima_Modificacion` \n\t\t\t\tFROM \n\t\t\t\t`tipos_de_certificados` ';\n \n if ((!$columna == '0') && (!$condicion == '0')): \n if ($like == true): \n $sql = $sql . ' WHERE @columna LIKE @condicion '; \n else:\n $sql = $sql . ' WHERE (@columna @condicion) '; \n endif; \n $condicion_compuesta = true;\n endif; \n $sql = $sql . ' LIMIT @limit;'; \n \n $bd->CreateCommand($sql); \n $bd->AsignarParamNumero('@limit',$limite); \n \n if (($like == true) && ($condicion_compuesta == true)): \n $bd->AsignarParamCadenaSola('@columna', $columna);\n $bd->AsignarParamCadena('@condicion',$condicion . '%'); \n elseif (($like == false) && ($condicion_compuesta == true)): \n $bd->AsignarParamCadenaSola('@columna', $columna);\n $bd->AsignarParamCadenaSola('@condicion',$condicion);\n \n endif; \n\t\t$Certificados = $bd->Consult();\t\t\n\t\t$rows = count($Certificados);\t \n\t\t$MisCertificados = array();\n\t\t\n\t\tfor ($i = 0;$i < $rows - 1;$i++):\n\t\t\t\n\t\t\tforeach ($Certificados[$i] as $indide):\n\t\t\t\t$miCertificado = new Certificado();\n\t\t\t\t$miCertificado->IdCertificado_ = $Certificados[$i]['Id_Certificado'];\n\t\t\t\t$miCertificado->Codigo_ = $Certificados[$i]['Codigo'];\n\t\t\t\t$miCertificado->Metodo_ = $Certificados[$i]['Metodo'];\n\t\t\t\t$miCertificado->Nivel_ = $Certificados[$i]['nivel'];\n\t\t\t\t$miCertificado->FechaCreacion_ = $Certificados[$i]['Fecha_Creacion'];\n\t\t\t\t$miCertificado->Modificacion_ = $Certificados[$i]['Ultima_Modificacion'];\n\t\t\t\t$MisCertificados[$i] = $miCertificado;\t\t\t\n\t\t\tendforeach;\n\t\tendfor;\n\t\t\n\t\treturn $MisCertificados;\n \n\t\t\t\t\t\t\n\t}", "function palabraDescubierta($coleccionLetras){\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n}", "function get_listado($anio_lectivo)\n\t{\n\t\t$sql_1 = \"(SELECT t_p.id_periodo,\n t_p.fecha_inicio,\n t_p.fecha_fin,\n\t\t\t t_p.anio_lectivo,\n t_c.numero,\n '----' as turno,\n 'Cuatrimestre' as tipo_periodo\n FROM periodo as t_p\n JOIN cuatrimestre t_c ON (t_p.id_periodo=t_c.id_periodo AND t_p.anio_lectivo=$anio_lectivo))\n \n \";\n \n $cuatrimestre=toba::db('gestion_aulas')->consultar($sql_1);\n \n $sql_2=\" \n (SELECT t_p.id_periodo,\n t_p.fecha_inicio,\n t_p.fecha_fin,\n t_p.anio_lectivo,\n t_ef.turno,\n t_ef.numero,\n 'Examen Final' as tipo_periodo\n FROM periodo t_p \n JOIN examen_final t_ef ON (t_p.id_periodo=t_ef.id_periodo AND t_p.anio_lectivo=$anio_lectivo))\";\n \n $examen_final=toba::db('gestion_aulas')->consultar($sql_2);\n \n $sql_3=\"(SELECT t_p.id_periodo,\n t_p.fecha_inicio,\n t_p.fecha_fin,\n t_p.anio_lectivo,\n 'Curso de Ingreso' as tipo_periodo,\n '----' as numero,\n t_ci.facultad as turno\n FROM periodo t_p \n JOIN curso_ingreso t_ci ON (t_p.id_periodo=t_ci.id_periodo AND t_p.anio_lectivo=$anio_lectivo)\n )\";\n \n $curso_ingreso=toba::db('gestion_aulas')->consultar($sql_3);\n \n $this->unificar_periodos(&$cuatrimestre, $examen_final);\n \n $this->unificar_periodos(&$cuatrimestre, $curso_ingreso);\n \n return $cuatrimestre;\n \n }", "public function getMarque()\n{\nreturn $this->marque;\n}", "public function getDisciplinas() {\n\n if (!isset($this->aDisciplinas) && count($this->aDisciplinas) == 0) {\n\n if (count($this->aListaAtividades) > 0) {\n\n $sListaRecursoHumano = implode(\",\", $this->aListaAtividades);\n $oDaoRelacaoTrabalho = db_utils::getDao(\"relacaotrabalho\");\n $sCamposRelacaoTrabalho = \" distinct ed12_i_codigo\";\n $sWhereRelacaoTrabalho = \" ed75_i_rechumano in({$sListaRecursoHumano}) \";\n $sOrderRelacaoTrabalho = \" ed12_i_codigo \";\n $sSqlRelacaoTrabalho = $oDaoRelacaoTrabalho->sql_query(null,\n $sCamposRelacaoTrabalho,\n $sOrderRelacaoTrabalho,\n $sWhereRelacaoTrabalho);\n $rsRelacaoTrabalho = $oDaoRelacaoTrabalho->sql_record($sSqlRelacaoTrabalho);\n $iTotalLinhas = $oDaoRelacaoTrabalho->numrows;\n\n if ($iTotalLinhas > 0) {\n\n for ($iContador = 0; $iContador < $iTotalLinhas; $iContador++) {\n\n $oDadosRelacaoTrabalho = db_utils::fieldsMemory($rsRelacaoTrabalho, $iContador);\n $oDisciplina = DisciplinaRepository::getDisciplinaByCodigo( $oDadosRelacaoTrabalho->ed12_i_codigo );\n $this->aDisciplinas[] = $oDisciplina;\n }\n unset($oDisciplina);\n }\n }\n }\n return $this->aDisciplinas;\n }", "function cl_criterioavaliacaodisciplina() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"criterioavaliacaodisciplina\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function listar_simbolos($id_tipo_palabra,$letra,$id_tipo_simbolo,$idioma,$registrado) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($idioma==99) { $sql_idioma=''; } \n\t\telseif ($idioma==98) { $sql_idioma='AND simbolos.castellano=1'; }\n\t\telseif ($idioma==97) { $sql_idioma='AND simbolos.castellano=0 AND simbolos.id_idioma=0'; } \n\t\telse { $sql_idioma='AND simbolos.id_idioma='.$idioma.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\tif ($letra=='todas') { $sql_letra=''; } else { $sql_letra=$letra; }\n\t\t\n\t\t$query = \"SELECT simbolos.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos, palabras, tipos_simbolos\n\t\tWHERE simbolos.id_palabra=palabras.id_palabra\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_idioma\n\t\t$mostrar_registradas\n\t\tAND palabras.palabra LIKE '$sql_letra%%'\n\t\tORDER BY palabras.palabra asc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "private function liste() {\n\t\t$this->_ctrlLivre = new ControleurLivre();\n\n\t\t// modifie livre\n\t\tif(isset($_SESSION['error_livre_modifie'])) unset($_SESSION['error_livre_modifie']);\n\t\tif(isset($_POST['modifie_livre'])){\n\t\t\t\t$id = Utils::getPost('id_livre_m');\n\t\t\t\t$titre = Utils::getPost('nom_livre_m');\n\t\t\t\t$annee = Utils::getPost('annee_livre_m');\n\t\t\t\t$auteur = Utils::getPost('auteur_livre_m');\n\t\t\t\t$resume = Utils::getPost('resume_livre_m');\n\t\t\t\tif ($id && $titre && $annee && $auteur && $resume) {\n\t\t\t\t\t$id = Utils::filtreForte($id);\n\t\t\t\t\t$annee = Utils::filtreForte($annee);\n\t\t\t\t\t$annee = intval($annee);\n\t\t\t\t\t$titre = Utils::filtreForte($titre);\n\t\t\t\t\t$auteur = Utils::filtreForte($auteur);\n\t\t\t\t\t$resume = Utils::filtreForte($resume);\n\t\t\t\t\t\tif (strlen($annee) > 2 && strlen($titre) > 2 && strlen($resume) > 2) {\n\t\t\t\t\t\t\t$this->_ctrlLivre->modifieLivre($id, $annee, $titre, $auteur, $resume);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$_SESSION['error_livre_modifie'] = 'Minimum trois caractères !!!';\n\t\t\t\t\t\t\theader(\"Location: index.php?controler=mlivre&id=\".$id);\n\t\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception('Valeur introdui incorect !!!');\n\t\t\t\t}\n\t\t\t}\n\n\t\t// cree livre\n\t\tif(isset($_SESSION['error_livre_cree'])) unset($_SESSION['error_livre_cree']);\n\t\tif(isset($_POST['cree_livre'])){\n\t\t\t\t$titre = Utils::getPost('nom_livre');\n\t\t\t\t$annee = Utils::getPost('annee_livre');\n\t\t\t\t$auteur = Utils::getPost('auteur_livre');\n\t\t\t\t$resume = Utils::getPost('resume_livre');\n\t\t\t\tif ($titre && $annee && $auteur && $resume) {\n\t\t\t\t\t$annee = Utils::filtreForte($annee);\n\t\t\t\t\t$annee = intval($annee);\n\t\t\t\t\t$titre = Utils::filtreForte($titre);\n\t\t\t\t\t$auteur = Utils::filtreForte($auteur);\n\t\t\t\t\t$resume = Utils::filtreForte($resume);\n\t\t\t\t\t\tif (strlen($annee) > 2 && strlen($titre) > 2 && strlen($resume) > 2) {\n\t\t\t\t\t\t\t$this->_ctrlLivre->creeLivre($annee, $titre, $auteur, $resume);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$_SESSION['error_livre_cree'] = 'Minimum trois caractères !!!';\n\t\t\t\t\t\t\theader(\"Location: index.php?controler=ajoutuser\");\n\t\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception('Valeur introdui incorect !!!');\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t$filtreArray = ['titre', 'annee', 'nom_auteur'];\n\t\t$ordreArray = ['ASC', 'DESC'];\n\t\t\tif(Utils::getGet('filtre')&& Utils::getGet('ordre')) {\n\t\t\t\t\t\t\t$filtre = Utils::getGet('filtre');\n\t\t\t\t\t\t\t$ordre = Utils::getGet('ordre');\n\t\t\t\t\t\t\tif (!$filtre || !in_array($filtre, $filtreArray)) { \n\t\t\t\t\t\t\t\tthrow new Exception('Tri invalide !!!'); }\n\t\t\t\t\t\t\t\telseif (!$ordre || !in_array($ordre, $ordreArray)) { \n\t\t\t\t\t\t\t\t\tthrow new Exception('Ordre invalide !!!'); } \n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t$this->_ctrlLivre->livreListe($filtre,$ordre); \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else { $this->_ctrlLivre->livreListe(); }\n\t}", "function listar_simbolos_especiales($id_tipo_palabra,$letra,$id_tipo_simbolo,$idioma,$registrado) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos_especiales.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($idioma==99) { $sql_idioma=''; } \n\t\telseif ($idioma==98) { $sql_idioma='AND simbolos_especiales.castellano=1'; }\n\t\telseif ($idioma==97) { $sql_idioma='AND simbolos_especiales.castellano=0 AND simbolos_especiales.id_idioma=0'; } \n\t\telse { $sql_idioma='AND simbolos_especiales.id_idioma='.$idioma.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos_especiales.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos_especiales.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\tif ($letra=='todas') { $sql_letra=''; } else { $sql_letra=$letra; }\n\t\t\n\t\t$query = \"SELECT simbolos_especiales.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos_especiales, palabras, tipos_simbolos\n\t\tWHERE simbolos_especiales.id_palabra=palabras.id_palabra\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_idioma\n\t\t$mostrar_registradas\n\t\tAND palabras.palabra LIKE '$sql_letra%%'\n\t\tORDER BY palabras.palabra asc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function listaTodosAniversariantesdeHojeDao(){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $dataAtual = Date(\"Y-m-d\");\r\n $mes = $dataAtual[5].$dataAtual[6];\r\n $dia = $dataAtual[8].$dataAtual[9];\r\n //echo \"Mes \". $mes. \"Dia \".$dia;\r\n \r\n// $dbconn = mysqli_connect ($objDao->getServer(),$objDao->getUsername(),$objDao->getPassword(),$objDao->getDb());\r\n \r\n// $resultado = mysqli_query ($dbconn,\"CALL aniversariantedehoje($mes,$dia)\");\r\n $consulta=\"SELECT Matricula,Nome,DataNascimento1,Fone FROM membros WHERE MONTH(DataNascimento1) = $mes AND DAY(DataNascimento1)=$dia\";\r\n \r\n $resultado = mysql_query($consulta) or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n \r\n $listaMembro = array();\r\n \r\n $i=0;\r\n \r\n while ($registro = mysql_fetch_array($resultado, MYSQL_ASSOC)){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n $membro->setData($registro['DataNascimento1']); \r\n $membro->setFone($registro['Fone']); \r\n \r\n\t $listaMembro[$i] = $membro;\r\n \r\n\t $i++;\r\n\t}\r\n \r\n \r\n\t\treturn $listaMembro;\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco();\r\n \r\n \r\n }", "function listar_anuncios($opcao){\n $arrayAnuncios=[];\n //Peciso disto por causa de pesquisas pelo nome/localizacao e pelas pesquisas das caracteristicas\n $saber=0;\n $nova=\"\";\n if($opcao==-1)$saber=2;\n if(!strcmp($opcao[0],\"*\")==true){\n\n for ($i=0; $i <strlen($opcao) ; $i++) {\n if($i!=0) $nova.=$opcao[$i];\n\n }\n $saber++;\n $opcao=$nova;\n }\n //\n global $mybd;\n if($opcao==-1 && $saber==2){\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=1;\");\n }else if(!strcmp($opcao,\"\") && $saber==0){\n //devolve todos os anuncios\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio;\");\n }else if(strcmp($opcao,\"\") && $saber==0){ //devolve todos os anuncios COM AS caracteristicas especificas\n $query=\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=1 $opcao;\";\n $STH = $mybd->DBH->prepare($query);\n }else if($saber==1){\n\n //pesquisa todos os anuncios com pesquisa de nome\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio WHERE (anu_titulo LIKE '%$opcao%' OR anu_morada LIKE '%$opcao%') and anu_estado=1;\");\n $STH->bindParam(1, $opcao);\n }\n $STH->execute();\n $STH->setFetchMode(PDO::FETCH_OBJ);\n $i=0;\n\t\t\twhile($row = $STH->fetch()){\n $arrayAnuncios[$i]=new Anuncio($row->anu_id,$row->anu_titulo,$row->anu_descricao,$row->uti_id,$row->anu_morada,$row->anu_telefone,$row->anu_email,$row->anu_codigopostal,$row->anu_data,$row->anu_disponibilidade,$row->anu_estado,$row->anu_preco,null,$row->anu_wcprivativo,$row->anu_mobilada,$row->anu_utensilios,$row->anu_internet,$row->anu_raparigas,$row->anu_rapazes,$row->anu_despesas,$row->anu_animais,$row->anu_latitude,$row->anu_longitude);\n $i++;\n }\n return $arrayAnuncios;\n }" ]
[ "0.6550661", "0.62753904", "0.62744635", "0.6170346", "0.6088247", "0.6032018", "0.60286194", "0.5989045", "0.59887904", "0.59847224", "0.59581906", "0.5955071", "0.5888481", "0.58444995", "0.5788297", "0.57337695", "0.57230145", "0.5719931", "0.56941587", "0.5681536", "0.56803477", "0.5678673", "0.56648403", "0.56613684", "0.5635707", "0.563315", "0.56129855", "0.5608728", "0.56032044", "0.56026566", "0.5585695", "0.55837446", "0.5576102", "0.55551046", "0.55517256", "0.55485", "0.5532343", "0.552808", "0.55237055", "0.5513359", "0.54991937", "0.54936165", "0.54922074", "0.54910785", "0.54840875", "0.5477268", "0.54762733", "0.5462883", "0.5460929", "0.54509413", "0.5446609", "0.54429597", "0.54400283", "0.54368705", "0.5436431", "0.54242206", "0.54237956", "0.5422317", "0.5420355", "0.54127747", "0.5409869", "0.54057044", "0.53976", "0.5389587", "0.5387253", "0.53864896", "0.5385752", "0.53823197", "0.53816444", "0.53726506", "0.53717035", "0.5369275", "0.5365", "0.53587466", "0.53526175", "0.5348995", "0.53465015", "0.53446436", "0.5335898", "0.5335614", "0.5332888", "0.53289604", "0.532657", "0.5324905", "0.53230935", "0.5321326", "0.53209084", "0.5320281", "0.5320148", "0.53145653", "0.5310717", "0.53019696", "0.53010213", "0.5291062", "0.5290114", "0.52890193", "0.528679", "0.5284789", "0.52833784", "0.527454", "0.52687395" ]
0.0
-1
$listCinema = $cinemaList; // no hace falta asignar la variable a otra variable en este ambito ya que lo trae del otro metodo
public function ShowListCinemaView($listCinema, $message = '') { require_once(VIEWS_PATH."cinema-list.php"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDashboardCinemaList(){\n $cinema_ads = Cinemas::all();\n return view('backend.mediatypes.cinemas.cinema-list', ['cinema_ads' => $cinema_ads]);\n }", "function getLista(){\n\n }", "public function getCinema()\n {\n return $this->cinema;\n }", "function searchMoviesFromCinema($sCinema, array $aCinemas, array $aMovies)\n{\n $aSearchMovies = array();\n foreach ($aCinemas[$sCinema]['rooms'] as $iMovieId) {\n $aSearchMovies[] = $aMovies[$iMovieId];\n }\n\n return $aSearchMovies;\n}", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Cms_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Cms_type\", \"entier\", \"get_type\", \"set_type\");\n\t$laListeChamps[]=new dbChamp(\"Cms_title\", \"text\", \"get_title\", \"set_title\");\n\t$laListeChamps[]=new dbChamp(\"Cms_description\", \"text\", \"get_description\", \"set_description\");\n\t$laListeChamps[]=new dbChamp(\"Cms_thumbnail_loc\", \"text\", \"get_thumbnail_loc\", \"set_thumbnail_loc\");\n\t$laListeChamps[]=new dbChamp(\"Cms_file\", \"text\", \"get_file\", \"set_file\");\n\t$laListeChamps[]=new dbChamp(\"Cms_youtube\", \"text\", \"get_youtube\", \"set_youtube\");\n\t$laListeChamps[]=new dbChamp(\"Cms_content_loc\", \"text\", \"get_content_loc\", \"set_content_loc\");\n\t$laListeChamps[]=new dbChamp(\"Cms_player_loc\", \"text\", \"get_player_loc\", \"set_player_loc\");\n\t$laListeChamps[]=new dbChamp(\"Cms_duration\", \"text\", \"get_duration\", \"set_duration\");\n\t$laListeChamps[]=new dbChamp(\"Cms_tag\", \"text\", \"get_tag\", \"set_tag\");\n\t$laListeChamps[]=new dbChamp(\"Cms_category\", \"text\", \"get_category\", \"set_category\");\n\t$laListeChamps[]=new dbChamp(\"Cms_family_friendly\", \"entier\", \"get_family_friendly\", \"set_family_friendly\");\n\t$laListeChamps[]=new dbChamp(\"Cms_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\t$laListeChamps[]=new dbChamp(\"Cms_statut\", \"entier\", \"get_statut\", \"set_statut\");\n\treturn($laListeChamps);\n}", "function list_jenis_kelamin() {\n $list = ['laki - laki', 'perempuan'];\n \n return $list;\n}", "function desList(){\n\t$sql = 'SELECT * FROM votos';\n\t$resultado = mysql_query($sql);\n\t\n\twhile($row = mysql_fetch_array($resultado)){\n\t\toculta( $row['cancion'] );\n \t}\n}", "function adiHijo($lista) {\n\t\t$this->listas[] = $lista;\n\t}", "static function listaStilova(){\n\t\t$stilovi=\"\";\n\t\treturn $stilovi;\n\t}", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xdc_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_cms_description\", \"entier\", \"get_cms_description\", \"set_cms_description\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_classe\", \"entier\", \"get_classe\", \"set_classe\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_classeid\", \"entier\", \"get_classeid\", \"set_classeid\");\n\treturn($laListeChamps);\n}", "function cheezeList($cheezeList){\n $cheezeListView = \"\\nLes frommages : \\n\";\n for($i=0;$i<count($cheezeList);$i++){\n $cheezeListView .= $i.\")\".$cheezeList[$i].\"\\n\";\n }\n return $cheezeListView;\n }", "function create_movie_lists() {\n\t\tforeach($movie_list as $current_movie) {\n\t\t\tmake_one_movie_list($current_movie);\n\t\t}\n\t}", "function getListMarca()\n{\n global $conn;\n /*\n *query da disciplina\n */\n $sqld = \"SELECT\n cat_id,\n cat_titulo\n\n FROM \".TABLE_PREFIX.\"_categoria\n WHERE cat_status=1 AND cat_area='Marca'\n ORDER BY cat_titulo\";\n\n $disciplina = array();\n if(!$qryd = $conn->prepare($sqld))\n echo divAlert($conn->error, 'error');\n\n else {\n\n $qryd->execute();\n $qryd->bind_result($id, $titulo);\n\n while ($qryd->fetch())\n $disciplina[$id] = $titulo;\n\n $qryd->close();\n\n\n }\n\n return $disciplina;\n}", "function buscaMaiorLanceCrescente ($listaDeLances){ \n usort($listaDeLances, array($this, 'comparaLancesCrescente')); //ordena lista\n $maiorlance = $this->buscaMaiorLance($listaDeLances);\n return $maiorlance;\n }", "public function setCinema($cinema)\n {\n $this->cinema = $cinema;\n\n return $this;\n }", "public function index(Cinemas $cinema)\n {\n $cinemas = array();\n return view('cinemas.show',compact('cinemas'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "function listar_meses()\n{\n $meses = [\n '1' => 'Enero',\n '2' => 'Febrero',\n '3' => 'Marzo',\n '4' => 'Abril',\n '5' => 'Mayo',\n '6' => 'Junio',\n '7' => 'Julio',\n '8' => 'Agosto',\n '9' => 'Septiembre',\n '10' => 'Octubre',\n '11' => 'Noviembre',\n '12' => 'Diciembre',\n ];\n\n return $meses;\n}", "function outputContinents() {\r\n $continents = new ContinentCollection();\r\n $continents->loadCollection();\r\n \r\n $result = $continents->getArray();\r\n \r\n for($i=0;$i<$continents->getCount();$i++){\r\n \r\n echo '<li class=\"list-group-item\"><a href=\"#\">' . $result[$i]->getContinentName() . '</a></li>';\r\n \r\n }\r\n}", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xps_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xps_cms_prepend\", \"entier\", \"get_cms_prepend\", \"set_cms_prepend\");\n\t$laListeChamps[]=new dbChamp(\"Xps_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\treturn($laListeChamps);\n}", "public function listar(){\r\n }", "function listado();", "public function list();", "public function list();", "public function list();", "function resetList(){\n\n\t$sql = 'SELECT * FROM votos';\n\t$resultado = mysql_query($sql);\n\t\n\twhile($row = mysql_fetch_array($resultado)){\n\t\tvisible( $row['cancion'] );\n \t}\n\n}", "public function getCampusList(){\n $campuses = \"\";\n $sql = \"SELECT * FROM campus ORDER BY campusName ASC\";\n $result = db::returnallrows($sql);\n foreach($result as $campus){\n $campuses .= \"<option value='\".$campus['campusid'].\"'>\".$campus['campusName'].\"</option>\";\n }\n \n return $campuses;\n\n }", "function listarCitasDisponibles()\n\t\t{\n\t\t\t$dia = $this->uri->segment(3);\n\t\t\t$mes = $this->uri->segment(4);\n\t\t\t$year = $this->uri->segment(5);\n\t\t\t$diaDeLaSemana = date('N',mktime(0, 0, 0, $mes, $dia, $year));\n\t\t\t\n\t\t\t//Obetenemos los arrays de horarios del dia de la semana concreto\n\t\t\t$diasSemana = $this->PacienteModel->getCalendario();\n\t\t\tforeach ($diasSemana as $value) {\n\t\t\t\tif($diaDeLaSemana == $value->Dia)\n\t\t\t\t{\n\t\t\t\t\t$horaInicio = explode(':', $value->HoraInicio);\n\t\t\t\t\t$horaFin = explode(':', $value->HoraFin);\n\t\t\t\t\t$duracionCita[] = $value->DuracionCita;\n\t\t\t\t\t$unixInicio[] = mktime($horaInicio[0], $horaInicio[1], 0, $mes, $dia, $year);\n\t\t\t\t\t$unixFin[] = mktime($horaFin[0], $horaFin[1], 0, $mes, $dia, $year);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Comprobamos las citas planificadas para el dia concreto\n\t\t\t$data = $this->PacienteModel->getCitasDisponibles($dia, $mes, $year);\n\t\t\tforeach ($data as $value) {\n\t\t\t\t$aux = explode(\" \", $value->FechaIni);\n\t\t\t\t$aux = $aux[1];\n\t\t\t\t$aux = explode(\":\", $aux);\n\t\t\t\t$hora[] = $aux[0];\n\t\t\t\t$min[] = $aux[1];\n\t\t\t}\n\t\t\t\n\t\t\t//Si no hay ninguna cita se ponen los arrays fuera de rango\n\t\t\tif(!isset($hora) && !isset($min))\n\t\t\t{\n\t\t\t\t$hora[0] = -1;\n\t\t\t\t$min[0] = -1;\n\t\t\t}\n\n\t\t\t//Visualizamos las citas disponibles\n\t\t\techo '<ul class=\"list-group\">';\n\t\t\techo '<li class=\"list-group-item\">'.date('d-m-Y',mktime(0, 0, 0, $mes, $dia, $year)).'</li>';\n\t\t\tfor($j = 0; $j < sizeof($unixInicio); $j++)\n\t\t\t\tfor($i = $unixInicio[$j]; $i < $unixFin[$j]; $i += 60*$duracionCita[$j] )\n\t\t\t\t{\n\t\t\t\t\tif ( (in_array(date('H',$i), $hora) && in_array(date('i',$i), $min) )\n\t\t\t\t\t\t|| time()>$i )\n\t\t\t\t\t\techo '<li class=\"list-group-item\">'.date('H:i',$i).'</li>';\n\t\t\t\t\telse \n\t\t\t\t\t\techo '<li class=\"list-group-item active\">\n\t\t\t\t\t\t\t<a style=\"color: black;\" onclick=\"crearCita(\\''.$this->session->userdata('id').'\\',\n\t\t\t\t\t\t\t\\''.date('Y-m-d H:i:s',$i).'\\',\n\t\t\t\t\t\t\t\\''.date('Y-m-d H:i:s',$i + 60 * $duracionCita[$j]).'\\'\n\t\t\t\t\t\t\t)\">'.date('H:i',$i).'</a></li>';\n\t\t\t\t}\n\t\t\techo '</ul>';\n\t\t}", "public function verMarcaslista(){\n\t\t\t//$this->producto->set(\"marca\",$marca);\n\t\t\t$resultado=$this->producto->verMarcaslista();\n\t\t return $resultado;\n\t\t\t\n\t\t}", "public function lists();", "public function Lista_Ciudades()//FUNCION PARA LLAMAR LA LISTA DE DEPARTAMENTOS\n {\n \n include('conexion.php');\n \n\n $Consulta_Ciudad = \"SELECT * FROM p_ciudad ORDER BY ciud_nombre\";\n\t\t\t $Resultado_Consulta_Ciudad = $conexion->prepare($Consulta_Ciudad);\n $Resultado_Consulta_Ciudad->execute();\n\t\t\t\t\t while ($f = $Resultado_Consulta_Ciudad->fetch())\t\n {\n\t\t\t\t\t\t echo '<option value=\"'.$f[ciud_codigo].'\">'.$f[ciud_nombre].'</option>';\n }\n \n }", "public function mostrar()\n\t{\n\t\t$db = Db::conectar();\n\t\t$listaColegios = null;\n\t\t$select = $db->query('SELECT * FROM colegios ORDER BY idColegios DESC');\n\t\tforeach ($select->fetchAll() as $colegio1) {\n\t\t\t$myColegio = new Colegios();\n\t\t\t$myColegio->setIdColegios($colegio1['idColegios']);\n\t\t\t$myColegio->setColegio($colegio1['colegio']);\n\t\t\t$myColegio->setCantonCantonId($colegio1['canton_cantonId']);\n\t\t\t$myColegio->setTipoColegioTipoColegioId($colegio1['tipoColegio_tipoColegioId']);\n\t\t\t$myColegio->setColegioscodigo($colegio1['colegioscodigo']);\n\t\t\t$myColegio->setColegiosOculto($colegio1['colegiosOculto']);\n\t\t\t$myColegio->setColegiosAccion($colegio1['colegiosAccion']);\n\t\t\t$myColegio->setColegiosfecha($colegio1['colegiosfecha']);\n\t\t\t$myColegio->setColegiosuser($colegio1['colegiosuser']);\n\t\t\t$listaColegios[] = $myColegio;\n\t\t}\n\t\treturn $listaColegios;\n\t}", "function carrinho(){\n\t\t\t$this->items = array();\n\t\t}", "function listaDisciplina(){\n return getDisciplina();\n }", "function formulaires_ajouter_abonne_charger_dist($liste){\r\n\t$valeurs = array('email'=>'','liste'=>$liste);\r\n return $valeurs;\r\n}", "public function listar() {\n $conexion = new Conexion();\n $consulta = $conexion->prepare('SELECT * FROM facultad');\n $consulta->execute();\n $ces = null;\n\n $tabla_datos = $consulta->fetchAll(PDO::FETCH_ASSOC);\n\n $astraba = array();\n\n\n foreach ($tabla_datos as $con => $valor) {\n $ces = $tabla_datos[$con][\"nombre\"];\n\n array_push($astraba, $ces);\n }\n return $astraba;\n }", "public function ListarMovimientoCajas()\n{\n self::SetNames();\n \n if($_SESSION[\"acceso\"] == \"cajero\") {\n\n\n $sql = \"SELECT * FROM movimientoscajas WHERE codigo = '\".$_SESSION[\"codigo\"].\"'\";\n\t\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\n\n\t\t\t} else {\n\n\t\t\t$sql = \"SELECT * FROM movimientoscajas\";\n\t\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n}", "public function list(): array\n {\n \n }", "public function getCuisineAttribute()\n {\n // {\n $cuisineIds = explode(\",\",$this->cuisine_id);\n $cuisine = [];\n foreach ($cuisineIds as $id)\n {\n array_push($cuisine, Cuisine::where('id',$id)->first(['name','image']));\n }\n return $cuisine;\n // }\n }", "function buscaMaiorLanceDecrescente ($listaDeLances){\n usort($listaDeLances, array($this, 'comparaLancesDecrescente')); \n $maiorlance = $this->buscaMaiorLance($listaDeLances);\n return $maiorlance;\n }", "function initialisation(){\r\n $array_champs = array(\"nb_nombres\" => 0, \"liste_nombres\" => array(), \"cout_petit\" => INF);\r\n\r\n return $array_champs;\r\n}", "function getChambreListId(){\n try {\n $sql = 'select id_chambre, numero_chambre from chambre_hospitalisation order by id_chambre desc';\n $resilt = $this->executeRequete($sql)->fetchAll();\n return $resilt;\n //var_dump($resilt);\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n }", "function listar(){\n\trequire './moduloprestamos/modelos/prestamosModelo.php';\n\n\t//Le pide al modelo todos los items\n\t$items = buscarTodosLosItems();\n\n\t//Pasa a la vista toda la información que se desea representar\n\trequire './moduloprestamos/vistas/listar.php';\n}", "function cl_far_listacontroladomed() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"far_listacontroladomed\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function rec_empresa_list(){\n\t\t}", "function li_isvedimas($masyvas, $mas_link){\n $ilgis = count($masyvas);\n for ($i=0; $i < $ilgis; $i++) { ?>\n <li><?php echo($masyvas[$i][$mas_link]); ?></li>\n <?php\n } \n}", "protected function mapeo($value){\r\n $value=is_array($value) ? $value : [];\r\n $resp=array();\r\n $resp = array_map(function($p){\r\n return new CinemaRoom($p['nombre_sala'],$p['is3d'],$p['capacidad'],$p['id_cine1'],$p['id_sala']);\r\n },$value);\r\n return count($resp) > 1 ? $resp : $resp['0'];//hay que checkear del otro lado si esta devolviendo un obj o un array\r\n }", "function listar_anuncios($opcao){\n $arrayAnuncios=[];\n //Peciso disto por causa de pesquisas pelo nome/localizacao e pelas pesquisas das caracteristicas\n $saber=0;\n $nova=\"\";\n if($opcao==-1)$saber=2;\n if(!strcmp($opcao[0],\"*\")==true){\n\n for ($i=0; $i <strlen($opcao) ; $i++) {\n if($i!=0) $nova.=$opcao[$i];\n\n }\n $saber++;\n $opcao=$nova;\n }\n //\n global $mybd;\n if($opcao==-1 && $saber==2){\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=1;\");\n }else if(!strcmp($opcao,\"\") && $saber==0){\n //devolve todos os anuncios\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio;\");\n }else if(strcmp($opcao,\"\") && $saber==0){ //devolve todos os anuncios COM AS caracteristicas especificas\n $query=\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio where anu_estado=1 $opcao;\";\n $STH = $mybd->DBH->prepare($query);\n }else if($saber==1){\n\n //pesquisa todos os anuncios com pesquisa de nome\n $STH = $mybd->DBH->prepare(\"Select anu_id,uti_id,anu_titulo,anu_descricao,anu_morada,anu_email,anu_estado,anu_telefone,anu_codigopostal,anu_disponibilidade,anu_wcprivativo,anu_mobilada,anu_utensilios,anu_internet,anu_rapazes,anu_raparigas,anu_despesas,anu_animais,anu_latitude,anu_longitude,anu_data,anu_preco from anuncio WHERE (anu_titulo LIKE '%$opcao%' OR anu_morada LIKE '%$opcao%') and anu_estado=1;\");\n $STH->bindParam(1, $opcao);\n }\n $STH->execute();\n $STH->setFetchMode(PDO::FETCH_OBJ);\n $i=0;\n\t\t\twhile($row = $STH->fetch()){\n $arrayAnuncios[$i]=new Anuncio($row->anu_id,$row->anu_titulo,$row->anu_descricao,$row->uti_id,$row->anu_morada,$row->anu_telefone,$row->anu_email,$row->anu_codigopostal,$row->anu_data,$row->anu_disponibilidade,$row->anu_estado,$row->anu_preco,null,$row->anu_wcprivativo,$row->anu_mobilada,$row->anu_utensilios,$row->anu_internet,$row->anu_raparigas,$row->anu_rapazes,$row->anu_despesas,$row->anu_animais,$row->anu_latitude,$row->anu_longitude);\n $i++;\n }\n return $arrayAnuncios;\n }", "public function carrouselListAction()\n {\n $listFilter = new Llv_Services_Cms_Filter_Carrousel();\n// $listFilter->online = true;\n $listFilter->includeDeleted = false;\n $this->view->assign('list', Llv_Context_Cms::getInstance()->carrouselGetList($listFilter));\n }", "function getCampos(){\n\t\t$this->con->executa( \"select id, campo from workflow_campos\");\n\t\t\t//$this->con->navega();\n\n\t\t\t$i=0;\n\t\t\twhile ($this->con->navega(0)){\n\t\t\t\t$campos[ strtolower(trim($this->con->dados[\"id\"])) ] = strtolower(trim($this->con->dados[\"campo\"]));\n\n\t\t\t\t$i++;\n\t\t\t}\n $campos = $this->globais->ArrayMergeKeepKeys( $this->globais->SYS_ADD_CAMPOS, $campos);\n //$campos[ \"entradanoposto\" ] = \"entradanoposto\";\n //$array[\"FETCH\"] [$this->con->dados[\"idprocesso\"]][\"entradanoposto\" ] = $this->con->dados[\"wt_inicio\"] ;\n\n\t\treturn $campos;\n\n\t}", "public function marca()\n {\n $lista_marcas=Marca::TraerLista_Marca();\n\n //logica de las marcas\n $alfabeto = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','Ñ','O','P','Q','R','S','T','U','V','W','X','Y','Z'); \n $seccion_marcas=\"\";\n foreach ($alfabeto as $char)\n { \n $ul1=\"\";\n $ul2=\"\";\n $ul3=\"\";\n $flag=1;\n $letraok=false;\n foreach ($lista_marcas as $indice => $item)\n {\n $n=ucfirst($item->nombre);\n if (substr($n, 0, 1)==$char)\n { \n switch ($flag)\n {\n case 1:\n $letraok=true; \n $ul1.='<li>'.$n.'</li>';\n $flag=2;\n break;\n case 2:\n $ul2.='<li>'.$n.'</li>'; \n $flag=3;\n break;\n case 3:\n $ul3.='<li>'.$n.'</li>'; \n $flag=1;\n break;\n } \n unset($lista_marcas[$indice]);\n } \n }\n if ($letraok)\n {\n $seccion_marcas.='<h5>'.$char.'</h5>';\n $seccion_marcas.='<div class=\"row\">';\n $seccion_marcas.='<div class=\"col-md-4\"> <ul>'. $ul1.'</ul> </div>';\n $seccion_marcas.='<div class=\"col-md-4\"> <ul>'. $ul2.'</ul> </div>';\n $seccion_marcas.='<div class=\"col-md-4\"> <ul>'. $ul3.'</ul> </div>';\n $seccion_marcas.='</div>';\n } \n\n }\n //\n return view('web.marca',compact('seccion_marcas'));\n }", "public function __construct()\n\t\t\t\t{\n\t\t\t\t\t$this->miLista \t=\tarray();\t\t\t\t\t\n\t\t\t\t}", "function maquetacioItemsAgendaHoudini($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $id_newsletter, $registre, $pathEditora)\n{\n global $CONFIG_URLBASE , $CONFIG_URLUPLOADIM; \n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n \n $registre['ORIGEN'] = '<h4><a href=\"'.$CONFIG_URLBASE . $pathEditora . $registre['ID'] . '/' . $registre['URL_TITOL'] . '\" rel=\"external\" style=\"text-decoration:none;\">'.$registre['TITOL'].'</a></h4>';\n $imatge = $registre['IMATGE1'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMATGE1'] . '\" style=\"width: 159px;\" class=\"left\"/>' : '';\n \n return '<li id=\"ageh_reg' . $id_registre . '\" class=\"box removable stylable '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t ' . $imatge . '\n\t\t\t\t'.$registre['ORIGEN'].'\n\t\t\t\t'.$registre['RESUM'].'\n\t\t\t</div>\n\t\t</li>';\n}", "function get_ListarClase(){\n\t$query = $this->db->query('SELECT id_clase, nombre_clase FROM clase');\n\t\n\t//si hay resultados \n\tif ($query->num_rows() > 0){\n\t\t//almacenamos en una matriz bidimensional\n\t\tforeach($query->result() as $row)\n\t\t$arrDatos[htmlspecialchars($row->id_clase, ENT_QUOTES)]=htmlspecialchars($row->nombre_clase,ENT_QUOTES);\n\t\t$query->free_result();\n\t\treturn $arrDatos;\n\t}\n\t\t\n\t$this->db->order_by('id_clase ASC');\n\treturn $this->db->get('clase')->result();\n\t}", "function clade_context_clade_convert_list() {\n return array(\n 'tid' => t('Clade ID'),\n 'name' => t('Clade name'),\n 'description' => t('Clade description'),\n );\n}", "function expositor_list(){\n return expositor_novo();\n}", "static function listaSkripti(){\n\t\t$skripte=\"\";\n\t\treturn $skripte;\n\t}", "function index(){\r\n $data['censos'] = $this->Censos->listar()->censos->censo;\r\n $data['censistas'] = $this->Censos->listarCensistas()->censistas->censista;\r\n $data['departamentos'] = $this->Departamentos->listar()->departamentos->departamento;\r\n $data['titulo'] = 'Lista Censos';\r\n $data['nombre'] = 'Censista';\r\n $this->load->view('censo/listar',$data);\r\n }", "public function listar(Request $request){\n // $campus->sigla = \"BRT\";\n // $campus->nome = \"IFSP Barretos\";\n // $campus->save();\n\n $cordenadores = Coordenacao::with('campus')->with('user')->get();\n\n // dd($cordenadores);\n return view('coordenacao.listar')->with([\n \"cordenadores\" => $cordenadores\n ]);\n }", "public function listadoRaza(){\n \n\t\t$data= $this->Model_maestras->BuscarRaza();\n\t\n\t\techo($data); \n\t \n\n\t}", "function listerchambre(){\n \n try {\n $sql = \"SELECT * FROM chambre_hospitalisation ORDER BY id_chambre DESC\";\n \n// $resultat = $this->executeRequete($sql)->fetchAll();\n $result = $this->executeRequete($sql)->fetchAll();\n \n// var_dump($resultat);\n// die();\n return $result;\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n }", "function listaAprovados($nota){\n return $aprovados = array_filter($nota, validaMedia);\n}", "public function listeLigne_mouvement(){\n\t\t\t\t\t $sql = \"SELECT * FROM ligne_mouvement\";\n\t\t\t\t\t if($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t return $this->db->query($sql)->fetchAll();\n\t\t\t\t\t }else{\n\t\t\t\t\t return null;\n\t\t\t\t\t }\n\t\t\t\t\t }", "public function listarbiofinCE(){\n $stmt = $this->objPDO->prepare(\"SELECT b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,(e.emp_nombres||' '||e.emp_appaterno||' '||e.emp_apmaterno) as medico,\n list(m.descr_muestra)as muestras from sisanatom.biopsia b \n inner join sisanatom.detalle_bioce db on b.id_biopsia=db.id_biopsia\n inner join sisanatom.muestras_biopsia mb on b.id_biopsia=mb.id_biopsia inner join empleados e on b.patologo_responsable=e.emp_id\n inner join sisanatom.muestra m on m.id_muestra=mb.id_muestrarem\n where b.estado_biopsia=3 and b.condicion_biopsia='A'\n group by b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,medico\");\n $stmt->execute();\n $pacientes = $stmt->fetchAll(PDO::FETCH_OBJ);\n return $pacientes;\n }", "function agregarJuego($coleccionJuegos,$puntos,$indicePalabra){\n $coleccionJuegos[] = array(\"puntos\"=> $puntos, \"indicePalabra\" => $indicePalabra); \n return $coleccionJuegos;\n}", "function list_searcheable_acf(){\n $list_searcheable_acf = array(\"google_description\");\n return $list_searcheable_acf;\n}", "public function show(cuisine $cuisine)\n {\n //\n }", "public function getWholinemeList(){\n return $this->_get(2);\n }", "function index()\n {\n return $this->dp->getAllCinema();\n }", "function appearanceList($appearanceList)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT * FROM appearance WHERE id_appearance = %s\",\n\t\t\t\t\t\t\t\t\t\t GetSQLValueString($appearanceList, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"list\"];\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "public function setListar($value)\n\t{\n\t\t$this->listar = $value;\n\t}", "function buscaMenorLanceCrescente ($listaDeLances){\n usort($listaDeLances, array($this, 'comparaLancesCrescente')); \n $menorlance = $this->buscaMenorLance($listaDeLances);\n return $menorlance;\n }", "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}", "public function show($movieid)\n {\n \n //$movie = Movie::find(1);\n //$movie->cinema()->attach(3);\n\n\n $movie = Movie::find($movieid);\n\n foreach ($movie->cinema as $cinema) {\n echo $cinema->name;\n \n }\n\n \n }", "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 }", "public function copyTryCarrito(){\n\n $carrito = $_SESSION['carrito'];\n\n $resList = array();\n\n foreach($carrito as $item){\n if($item[0] == $this -> producto){\n $item[1] = $this -> cantidad;\n array_push($resList, $item);\n }else{\n array_push($resList, $item);\n }\n }\n return $resList;\n }", "public function movie_list() {\n $data[\"movies\"] = $this->Movie->findAll();\n\n // Capa de la Vista\n $view['body'] = $this->load->view(\"core/movies/list\", $data, TRUE);\n $view['title'] = \"Listado de películas\";\n $this->parser->parse('core/templates/body', $view);\n }", "public function listaVisitantes(){\n \n }", "public function listarSocios() {\r\n $sql = \"select j.nombre,j.apellido,j.cedula,j.fechanac, j.porcentaje, m.nombre from juntadirectiva as j, municipio as m \"\r\n\t\t .\" where j.ciudadnac = m.id\";\t\t\r\n $respuesta = $this->object->ejecutar($sql);\r\n $this->construirListadoSocio($respuesta);\r\n }", "public function mostrarMarcasTipo($tipoCerveza){\n $link = Conexion::conectar();\n $sql = \"SELECT DISTINCT marca\n FROM wonderlist WHERE tipoCerveza = '$tipoCerveza'\";\n $stmt = $link->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);}", "function listarCalificacion(){\n $db = new Conexion();\n $optionC = \"\";\n $sql2 = $db->consulta(\"SELECT cod_calificacion, dsc_calificacion FROM vtama_calificacion_prospecto\");\n\n while($key2 = $db->recorrer($sql2)){\n $optionC .= '<option value=\"'.$key2['cod_calificacion'].'\">'.$key2['dsc_calificacion'].'</option>';\n }\n return $optionC;\n}", "public function get_Cargos(){\n $listar = $this->pdo->prepare(\"SELECT * FROM th_cargos WHERE car_flag =1 ORDER BY car_titulo ASC\");\n $listar->execute();\n return $listar;\n }", "public function campus_list()\r\n\t{\r\n\t\t$api_urls = $this->config->item('api_urls');\r\n\t\t$url = $api_urls['campus'];\r\n\t\t$method = 'GET';\r\n\t\t$result = $this->call_api($url,$method,false,false);\r\n\t\treturn $result;\r\n\t}", "function fct_moteur_recherche ($mescriteres) {\nglobal $valeurs_criteres;\n\t$moteur = \"\";\n\tforeach ($valeurs_criteres as $libelle_critere => $liste_items) {\n\t\t$liste_critere = \"\";\n\t\t$refcritere = substr($libelle_critere, 0, 3);\n\t\tforeach ($liste_items as $libelle_item => $valeur_item) {\n\t\t\t$mescriteres_encours = $mescriteres;\n\t\t\tif ($libelle_critere == \"feuille\") $img_critere = \"feuille_\".strtolower(fct_remove_accents($libelle_item));\n\t\t\telseif ($libelle_critere == \"fleur\") $img_critere = \"fleur_\".strtolower(fct_remove_accents($libelle_item));\n\t\t\tif (($mescriteres[$refcritere]['code'] >= 0) && ($mescriteres[$refcritere]['code'] == $valeur_item)) {\n\t\t\t\t$class_lien = ' class=\"criselect\"';\n\t\t\t\t$mescriteres_encours[$refcritere]['code'] = -1;\n\t\t\t\tif (($libelle_critere == \"feuille\") || ($libelle_critere == \"fleur\")) $img_critere .= \"_r\";\n\t\t\t} else {\n\t\t\t\t$class_lien = '';\n\t\t\t\t$mescriteres_encours[$refcritere]['code'] = $valeur_item;\n\t\t\t}\n\t\t\t$url_lien = fct_code_lien_url ($mescriteres_encours);\n\t\t\tif (($libelle_critere == \"feuille\") || ($libelle_critere == \"fleur\")) $libelle_item = '<img src=\"interface/'.$img_critere.'.gif\" border=\"0\">';\n\t\t\t$liste_critere .= '<li'.$class_lien.'><a href=\"'.$url_lien.'\">'.$libelle_item.'</a></li>'.\"\\n\";\n\t\t}\n\t\tif ($libelle_critere == \"taille\") $libelle_critere .= ' (cm)';\n\t\tif ($libelle_critere == \"feuille\") $moteur .= '<ul class=\"feuille\">'.\"\\n\";\n\t\telseif ($libelle_critere == \"fleur\") $moteur .= '<ul class=\"fleur\">'.\"\\n\";\n\t\telse $moteur .= '<ul>'.\"\\n\";\n\t\t$moteur .= '<li class=\"libelle\">'.ucfirst($libelle_critere).'</li>'.\"\\n\";\n\t\t$moteur .= $liste_critere;\n\t\t$moteur .= '</ul>'.\"\\n\";\n\t}\n\treturn $moteur;\n}", "function get_crs_ids ($courses_list){\n $array_list=array();\n for($i = 0 ; $i<count($courses_list); $i++){\n array_push($array_list, $courses_list[$i][\"Crs_id\"]);\n }\n //var_dump($array_list);\n return $array_list;\n}", "function Listeconsommation()\n\t{\n\t\t$cnn = getConnexion('tpi-fictif');\n\t\t$i = 0;\n\t\t//Permet de savoir plus facilement si login correct ou pas\n\t\t$consom = [];\n\t\t$stmt = $cnn -> prepare('SELECT `ID`, `Nom`, `Prix` FROM `consommation`');\n\t\t$stmt -> execute();\n\t\t//Remplissange tab 2 dimensions pour avoir les infos qu'on souhaite\n\t\t//Passage en param plus facile\n\t\twhile ($row = $stmt->fetch(PDO::FETCH_OBJ)) {\n\t\t\t$consom[$i][0] = $row->ID;\n\t\t\t$consom[$i][1] = $row->Nom;\n\t\t\t$consom[$i][2] = $row->Prix;\n\t\t\t$i++;\n\t\t}\n\t\tif(!empty($consom))\n\t\t{\n\t\t\treturn $consom;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function getChansonList(){\n // return \"chanson.php/\".$id; \n return $this->rootUrl().\"liste\"; \n }", "public function getLista() {\r\n\t\treturn $this->lista; \r\n\t}", "public function ListarArqueoCaja()\n{\n\tself::SetNames();\n\t\n\tif($_SESSION[\"acceso\"] == \"cajero\") {\n\n\n $sql = \" select * FROM arqueocaja INNER JOIN cajas ON arqueocaja.codcaja = cajas.codcaja WHERE cajas.codigo = '\".$_SESSION[\"codigo\"].\"'\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n\n\n\t} else {\n\n\t$sql = \" select * FROM arqueocaja INNER JOIN cajas ON arqueocaja.codcaja = cajas.codcaja\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n\n\t}\n}", "public function getAutoposList(){\n return $this->_get(2);\n }", "public function liste(){\n $clientMdb = new clientMoralRepository();\n \n $data['clientsM'] = $clientMdb->liste();\n return $this->view->load(\"clientMoral/liste\", $data);\n }", "public function getArrayByCinemaId($cinemaId){\n $query=\"SELECT * from $this->tableName where id_cinema=$cinemaId\";\n try{\n $this->connection=Connection::getInstance();\n $results=$this->connection->execute($query);\n $cinema=$this->cinemaDao->getById($cinemaId);\n }catch(Exception $ex){\n throw $ex;\n }\n $roomList=array();\n foreach ($results as $room) {\n $roomList[]=new Room($room[\"id_room\"],\n $room[\"capacity\"],\n $room[\"ticket_price\"],\n $room[\"descript\"],\n $cinema); \n }\n return $roomList;\n }", "public function testSetGetCinema()\n {\n $newCinema = new Cinema([\n 'name' => 'Some Cinema',\n ]);\n self::assertInstanceOf(CinemaSeat::class, $this->cinemaSeat->setCinema($newCinema));\n\n $cinema = $this->cinemaSeat->getCinema();\n self::assertInstanceOf(Cinema::class, $cinema);\n self::assertEquals($newCinema->getName(), $cinema->getName());\n }", "public function listar_marcas(){\n\t\t$this->db->order_by('desmarca','ASC'); \n\n\t\t// vamos informar a tabela e trazer o resultado \n\t\treturn $this->db->get('marca')->result(); \n\n\t}", "function getFachschaftList(){\n\t$sqlx = \"SELECT id, fachschaft from fachschaft;\";\n\t$result = array();\n\t$myresult = $this->conn->query($sqlx);\n\twhile($row = $myresult->fetch_assoc()) {\n\t\t$result[] = $row;\n\t}\n\treturn $result;\n}", "public function saucesList($sauceList){\n $sauceListView = \"\\nLes sauces : \\n\";\n for($i=0;$i<count($sauceList);$i++){\n $sauceListView .= $i.\")\".$sauceList[$i].\"\\n\";\n }\n return $sauceListView;\n }", "public function index(Cinema $cinema)\n {\n $startingAfter = $this->getStartingAfter($cinema);\n $endOfDay = $startingAfter->copy()->endOfDay();\n\n $movieIds = Showing::where('start_time', '>=', $startingAfter->toDateTimeString())\n ->where('start_time', '<=', $endOfDay->toDateTimeString())\n ->where('cinema_id', $cinema->id)->distinct()->lists('movie_id')->unique();\n\n // There are no movies left for today, try tomorrow (this should be moved to the app in the future)\n if(!count($movieIds)) {\n $startingAfter = Carbon::tomorrow();\n $endOfDay = $startingAfter->copy()->endOfDay();\n\n $movieIds = Showing::where('start_time', '>=', $startingAfter->toDateTimeString())\n ->where('start_time', '<=', $endOfDay->toDateTimeString())\n ->where('cinema_id', $cinema->id)->distinct()->lists('movie_id')->unique();\n }\n\n $movies = Movie::whereIn('id', $movieIds)->with(array('details', 'showings' => function($q) use ($startingAfter, $endOfDay, $cinema)\n {\n $q->where('start_time', '>=', $startingAfter->toDateTimeString());\n $q->where('start_time', '<=', $endOfDay->toDateTimeString());\n $q->where('cinema_id', $cinema->id);\n\n }))->orderBy('tomato_meter', 'desc')->get();\n\n foreach($movies as $movie) {\n // set if they are new\n // did they have a session 1 week ago?\n $movie->new = Showing::where('movie_id', $movie->id)\n ->where('cinema_id', $cinema->id)\n ->where('start_time', '>', Carbon::today($cinema->timezone)->subDays(7))\n ->where('start_time', '<', Carbon::today($cinema->timezone)->subDays(6))->count() == 0;\n }\n return Fractal::collection($movies, new MovieTransformer)->responseJson(200);\n }", "public function type_movie_list() {\n\n // Capa de Modelo, carga la data \n $data[\"types_movie\"] = $this->Type_movie->findAll();\n\n // Capa de la Vista\n $view['body'] = $this->load->view(\"core/types_movie/list\", $data, TRUE);\n $view['title'] = \"Listado de tipos de películas\";\n $this->parser->parse('core/templates/body', $view);\n }", "function outputCitiesList() {\r\n\t$cities = new CityCollection();\r\n\t$cities->loadCollection();\r\n \r\n\t$result = $cities->getArray();\r\n \r\n\tfor($i=0;$i<$cities->getCount();$i++){\r\n\t\techo '<option value=\"'. $result[$i]->getCityCode(). '\">' . $result[$i]->getAsciiName() . '</option>';\r\n\t}\r\n}", "function listaPinchos(){\n\t\t$pincho = new Pincho();\n\t\treturn $pincho->listar();\n\t}", "function obtener_Nombres_Cercas($usuario,$connection){\n\t$query_cercas = \"SELECT name FROM id_cercas WHERE user='$usuario'\";\n\t$resultado1 = $connection->query($query_cercas);\n\t$devuelto = array();\n\twhile ($row1 = $resultado1->fetch_assoc()){\n\t\tforeach($row1 as $row){\n\t\tarray_push($devuelto,$row);\n\t}\n\t}\n\n\treturn($devuelto);\n}" ]
[ "0.6279741", "0.61171144", "0.60118836", "0.5939055", "0.5793099", "0.57706267", "0.56923914", "0.5651858", "0.5648707", "0.5567089", "0.556347", "0.5562617", "0.55115795", "0.5507636", "0.5489906", "0.5476377", "0.54567397", "0.5450356", "0.54264987", "0.5423006", "0.54149956", "0.53847235", "0.53847235", "0.53847235", "0.53567946", "0.5352176", "0.53383654", "0.5294735", "0.5280318", "0.5278154", "0.52745163", "0.52728367", "0.5269734", "0.5261354", "0.5239195", "0.5232874", "0.52086246", "0.5207037", "0.51859766", "0.51814616", "0.5179967", "0.51777977", "0.516412", "0.5162153", "0.51585096", "0.5157693", "0.51537377", "0.5144107", "0.51429224", "0.5138651", "0.51334226", "0.51329076", "0.5129159", "0.5126828", "0.5126755", "0.5115678", "0.511227", "0.5095397", "0.50935304", "0.50906146", "0.50723636", "0.5070766", "0.50687206", "0.5066833", "0.50663614", "0.5063337", "0.50613415", "0.50514525", "0.5046691", "0.50446284", "0.504253", "0.504077", "0.504033", "0.5036292", "0.5036239", "0.5033932", "0.50330275", "0.5030641", "0.5021148", "0.5019052", "0.5009567", "0.500335", "0.50012493", "0.49971876", "0.49941632", "0.49819845", "0.49779308", "0.4969016", "0.4958885", "0.49499556", "0.49462473", "0.4945317", "0.49346575", "0.49312294", "0.49269974", "0.49255234", "0.49217263", "0.4921062", "0.4918975", "0.49146527" ]
0.627559
1
Retourne la factorielle d'un entier naturel
function factorielle($n) : float { return ($n === 0) ? 1 : $n*factorielle($n-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function factor();", "public function getFactor()\n\t{\n\t\treturn $this->factor;\n\t}", "public function getTipoPerfilFlu()\r\n\t{\r\n\t\tif($this->tipo == 1){\r\n\t\t\tif($this->aletaFluA == 1){\r\n\t\t\t\treturn 'Perfil 10,1 x 9';\r\n\t\t\t}else{return 'Perfil 7x 6';}\r\n\t\t}else{return 'Perfil 2,6 x 8,5';}\r\n\t}", "public function intensidad(){\n if($this->PP03F < 35 && $this->PP03G == 1 && $this->PP03H == 1)\n {\n return 1;\n }\n if($this->caracteristicas->CH06 >= 10 && $this->PP03G == 1 && $this->PP01E == 5)\n {\n return 2;\n }\n if( $this->PP03F > 40)\n {\n return 3;\n }\n if($this->PP01E == 5)\n {\n return 4;\n }\n}", "public function getTipoAletaFlu()\r\n\t{\r\n\t\tif($this->tipo == 1){\r\n\t\t\tif($this->aletaFluA == 1){\r\n\t\t\t\treturn 'Aleta Aire 10';\r\n\t\t\t}else{\r\n\t\t\t\treturn 'Aleta Aire 7';\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn 'Aleta de Aceite';\r\n\t\t}\r\n\t}", "abstract function getEmissionFactors();", "public function luas()\n {\n return $this->panjang * $this->lebar;\n }", "function valorLlamada($tipo)\n{\n if ($tipo == \"internacional\")\n {\n return 2;\n }\n else if ($tipo == \"larga\")\n {\n return 0.75;\n }\n\n return 0.2; // corta\n}", "function calculDeterminent($tab)\n {\n\n $detemninent = $tab[0][1] * (-1) * (($tab[1][0] * $tab[2][2]) - ($tab[1][2] * $tab[2][0])) +\n $tab[1][1] * (1) * (($tab[0][0] * $tab[2][2]) - ($tab[2][0] * $tab[0][2])) +\n $tab[2][1] * (-1) * (($tab[0][0] * $tab[1][2]) - ($tab[1][0] * $tab[0][2]));\n\n return $detemninent;\n }", "public function luas_Persegi()\n {\n $hitung = $this->lebar * $this->panjang;\n return $hitung;\n }", "public function getAgriculturalInsuranceDiscountFactor()\n {\n return isset($this->AgriculturalInsuranceDiscountFactor) ? $this->AgriculturalInsuranceDiscountFactor : null;\n }", "public function categoriaInactivos(){\n if($this->nolaboral->V21_M >= 1)\n {\n return 1;\n }\n if($this->nolaboral->V8_M == 1 && $this->nolaboral->V9_M == 1 && $this->nolaboral->V10_M == 1)\n {\n return 2;\n }\n if($this->caracteristicas->CH10 == 1 && $this->PP01E == 2)\n {\n return 3;\n }\n if($this->PP01E == 2)\n {\n return 4;\n }\n if($this->caracteristicas->CH06 < 6)\n {\n return 5;\n }\n if($this->discapacidad())\n {\n return 6;\n }\n\n}", "function getSuit() :int{\n return intdiv($this->getNumber(),8) + 1;\n }", "function peso_ideal(float $altura, string $sexo){\n\n if($sexo == \"F\"){\n return (62.1 * $altura) - 44.7;\n }elseif($sexo == \"M\"){\n return (72.2 * $altura) - 58;\n }else{\n return \"Sexo invalido\";\n }\n}", "public function getLifeInsuranceDiscountFactor()\n {\n return isset($this->LifeInsuranceDiscountFactor) ? $this->LifeInsuranceDiscountFactor : null;\n }", "public function keliling()\n {\n return 2*($this->panjang + $this->lebar);\n }", "function getMontantArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantHT']));\n else return 0;\n }", "public function getSelfVitality()\n {\n return $this->get(self::_SELF_VITALITY);\n }", "public function recevoir()\n {\n\n $this->degats += 5;\n\n if ($this->degats >= 100)\n {\n return self::PERSONNAGE_TUE;\n }\n\n return self::PERSONNAGE_FRAPPE;\n\n }", "function calcularPrecio($nivel,$precio){\n\t$resultado = $precio*$nivel; // precio edificios\n\treturn $resultado;\n}", "public function getDecscricionfisicaSuelo(){\n return $this->decscricionfisicaSuelo;\n }", "public function getChapeau();", "public function getFECHANACIMIENTO()\r\n {\r\n return $this->FECHA_NACIMIENTO;\r\n }", "public function isVariableNumerica(){ return false; }", "function kalorinormal($g, $tb){\n\tif($g == \"Pria\"){\n\t\t$kb = beratbadanideal($tb, $g) * 30;\n\t}else if($g == \"Wanita\"){\n\t\t$kb = beratbadanideal($tb, $g) * 25;\n\t}\nreturn $kb;\n}", "public function getExercice()\n {\n return $this->ligne->getSousCategorie()->getCategorie()->getBudget()->getExercice();\n }", "function getFactors(int $number):array {\n for ($i = 2; $i < $number; $i++) {\n // Si le modulo de $number divisé par $i est 0, il s'agit d'un facteurs de ce nombre\n if($number % $i == 0){\n $factors[] = $i;\n }\n }\n var_dump($factors);\n return $factors;\n}", "public function getTipoPerfilVen()\r\n\t {\r\n\t \tif($this->aletaVenA == 0){\r\n\t \t\treturn 'Perfil 7 x 15';\r\n\t \t}else{\r\n\t \t\treturn 'Perfil 10.1 x 12';\r\n\t \t}\r\n\t }", "public function calculateFactor($number){\n\n //Variables that define the multiples of three and five\n $ofThree = $number%3 === 0;\n $ofFive = $number%5 === 0;\n $ofBoth = $ofThree && $ofFive;\n\n //Push all the answers to the container\n $container = [];\n array_push($container, $ofThree, $ofFive, $ofBoth, false);\n $size = 3;\n \n $count = 0;\n $count_true = 0;\n $index = 0;\n \n //Finds the first true, add 1 to the end to match the values later\n while($container[$index] !== true && $index < $size){\n $index++;\n }\n $index++;\n\n //Counts the total number of trues\n while($count < $size){\n $count_true += $container[$count];\n $count++;\n }\n\n //Array that contains the map for the answer\n $arr_values = [0 => $number, 1 => 'Linio', 2 => 'IT', 3 => 'Linianos'];\n\n //Only if that evaluate if there is one true and gives the value with $index\n if($count_true == 1){\n return $arr_values[$index];\n }\n\n //Return the arr value in case there is less or more than one true\n return $arr_values[$count_true];\n }", "public function getF()\n {\n if (isset($this->f)) {\n return $this->f;\n }\n\n if (isset($this->b)) {\n // f = (a-b)/a\n return ($this->a - $this->b) / $this->a;\n }\n\n if (isset($this->rf)) {\n // r = 1/rf\n return 1 / $this->rf;\n }\n }", "function promedio_general($vector){ \n $promedio=0;\n foreach ($vector as $key => $value) {\n foreach ($value as $c => $n) {\n $promedio=$promedio+$n;\n }\n }\n return ($promedio/10);\n }", "function gesuchtes_feld($angabe,$tabelle,$gegebene_spalte,$gesuchte_spalte) {\n\t$mysqli=MyDatabase();\n\t$abfrage=\"SELECT `$gesuchte_spalte` FROM `$tabelle` WHERE `$gegebene_spalte`='$angabe'\";\n\tif ($result=$mysqli->query($abfrage)) {\n\t\twhile ($row=$result->fetch_object()) {\n\t\t\t$gesuchter_wert=$row->$gesuchte_spalte;\n\t\t\t}\n\t\t}\t\n\tif (!isset($gesuchter_wert)) {$gesuchter_wert=0;}\n\treturn $gesuchter_wert;\n}", "function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "abstract public function getNumberOfMaterialByUnit(): ?float;", "function getMontantTTCArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantTTC']));\n else return 0;\n }", "public function getTipoRecorteFlu()\r\n\t{\r\n\t\tif($this->tipo == 1){\r\n\t\t\tif($this->aletaFluA == 1){\r\n\t\t\t\treturn 'Recorte Aire 10';\r\n\t\t\t}else{return 'Recorte Aire 7';}\r\n\t\t}else{return 'Recorte de Aceite';}\r\n\t}", "public function getPotencia()\n {\n return 2.0;\n }", "public function geefKlantFacturen() {\n $id = $_SESSION['gebruiker']->geefKlant_id();\n $sql = 'SELECT * FROM `facturen` WHERE `klant_id` = :klan_id';\n $stmnt = $this->db->prepare($sql);\n $stmnt->bindParam(':klant_id', $id);\n $stmnt->execute();\n $facturen = $stmnt->fetchAll(\\PDO::FETCH_CLASS, __NAMESPACE__ . '\\Factuur');\n return $facturen;\n }", "function larFactor($number){\n // prime numbers\". So, 2*2*3 = 12; {2,3} are prime numbers.\n // A prime number is a number that can be divided only by one or itself.\n // \n // We're looking for the larges prime factor of a number. In our example, the answer is:3 \n // \n // Our algorithm? \n // \n // When should it stop? : When the product of the numbers is greater or equal to the passed\n // number.\n // \n // 2*2*2*2 = 16 {2} is the largest prime number.\n // 3*5 = 15, {5} is the largest prime number. \n // \n $count = 2; //Smallest primer number\n while($count*$count <= $number){\n \tif($number%$count==0){\n \t\t$number=$number/$count;\n \t}else{\n \t\t$count++;\n \t}\n }\n return $number;\n\n}", "function niveles($area){\n\t\tif ($area->cveentidad2=='0') return 1;\n\t\tif ($area->cveentidad3=='0') return 2;\n\t\tif ($area->cveentidad4=='0') return 3;\n\t\tif ($area->cveentidad5=='0') return 4;\n\t\tif ($area->cveentidad6=='0') return 5;\n\t\tif ($area->cveentidad7=='0') return 6;\n\t}", "public function peso_cesta(){\r\n\t\t\t$peso = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$peso+=($elArticulo->peso*$elArticulo->unidades);\r\n\t\t\t\tparent::$log->debug(\"Peso $elArticulo->articulo= $elArticulo->peso(kg) * $elArticulo->unidades(u) = \".($elArticulo->unidades*$elArticulo->peso).\" Peso acumulado de la cesta=\".$peso);\r\n\t\t\t}\r\n\t\t\treturn $peso;\r\n\t\t}", "abstract public function getUnitOfMaterial(): string;", "public function getMontantParticulier() {\n return $this->montantParticulier;\n }", "public function getBachilleratofecha()\n\t{\n\t\treturn $this->bachilleratofecha;\n\t}", "public function smanjiCenu(){\n if($this->getGodiste() < 2010){\n $discount=$this->cenapolovnogauta*0.7;\n return $this->cenapolovnogauta=$discount;\n }\n return $this->cenapolovnogauta; \n }", "public function getCFU(): int\n {\n return array_reduce($this->esami, function ($acc, $esame) {\n return $acc + $esame->cfu * $esame->in_cdl;\n }, 0);\n }", "public function getMataPelajaran();", "public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}", "public function getIteneraryEquivFareAmount()\n {\n return $this->IteneraryEquivFareAmount;\n }", "function getMontantTVAArticle($numserie) {\n // if ($this->calculmontant) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantTTC'] - $this->article[$numserie]['montantHT'])));\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantHT'] * ($this->TVA / 100))));\n else return 0;\n }", "function get_franimeischdisc_pid($fid,$pid)\r\n\t{\r\n\t\t$ddet_res = $this->db->query(\"select menuid,catid,brandid from king_deals a join king_dealitems b on a.dealid = b.dealid where pnh_id = ? \",$pid);\r\n\t\tif($ddet_res->num_rows())\r\n\t\t{\r\n\t\t\t$ddet = $ddet_res->row_array();\r\n\t\t\treturn @$this->db->query(\"select scheme_type,credit_value,if(scheme_type,concat(credit_value,'%'),concat('Rs ',credit_value)) as disc,\r\n\t\t\t\t\t\t\t\t\t\t\tmenuid,categoryid,brandid \r\n\t\t\t\t\t\t\t\t\t\t\tfrom imei_m_scheme \r\n\t\t\t\t\t\t\t\t\t\t\twhere franchise_id = ? and brandid = ? and categoryid = ? and menuid = ?\r\n\t\t\t\t\t\t\t\t\t\t\tand unix_timestamp() between scheme_from and scheme_to \r\n\t\t\t\t\t\t\t\t\t\t\tand is_active = 1 order by id desc limit 1\",array($fid,$ddet['brandid'],$ddet['catid'],$ddet['menuid']))->row()->disc;\r\n\t\t}\r\n\t\treturn 0;\t\r\n\t}", "public function totalq1($modalite)\r\n\t{\r\n\t$conge = new Default_Model_Conge();\r\n\t$debut_mois = $this->getAnnee_reference().'-01-01';\r\n\t$fin_mois = $this->getAnnee_reference().'-12-31'; // il faut la remplacer par l'annee de reference\r\n\t\r\n\t\r\n\t$jours_ouvres_de_annee_ref = $conge->joursOuvresDuMois($debut_mois,$fin_mois);\r\n\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t$personne = new Default_Model_Personne();\r\n\t$id_entite =1; // MBA : pourquoi entite 1 pour personne? \r\n\t$personne = $personne->fetchall('id_entite ='.$id_entite. '&&'. 'id ='.$this->getPersonne()->getId());\r\n\t//var_dump($personne);\r\n\tif (null!==$personne)\r\n\t\r\n\t{\r\n\t\tif ($modalite == 4)\r\n\t\t{\r\n\t\t\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t\t\tif($nbr_heurs_ouvrees_annee >1607)\r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t\telseif($nbr_heurs_ouvrees_annee <1607.5)\r\n\t\t\t{\r\n\t\t\t\treturn 1.0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 5 ||$modalite == 6 )\r\n\t\t{\r\n\t\t\t$nbr_jours_ouvrees_annee = $jours_ouvres_de_annee_ref-243;\r\n\t\t\tif($nbr_jours_ouvrees_annee < 10)\r\n\t\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t\t}\r\n\t\t\telseif($nbr_jours_ouvrees_annee >10)\r\n\t\t\t{\r\n\t\t\t\treturn $nbr_jours_ouvrees_annee;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 1 ||$modalite == 2 ||$modalite == 3)\r\n\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\telse return 0;\r\n\t\r\n\t}", "public function getFEmi()\n {\n return $this->f_emi;\n }", "public function getCodiceFiscale(){ return $this->codiceFiscale;}", "function getProportional() {return $this->_proportional;}", "public function getTabPerPerson() {\n \n $this->tip = floatVal($this->tab) * floatVal( $this->service) ;\n $this->tabWithTip = floatVal($this->tab) + floatVal( $this->tip) ;\n $this->tabPerPerson = floatVal( $this->tabWithTip) / floatVal( $this->split) ;\n $this->tabPerPerson = number_format( $this->tabPerPerson, 2, '.', '');\n return $this->tabPerPerson;\n }", "function Tn_eco($level,$MBn) // CT sai neu level >=7\n{\n\treturn round(3000*pow(2-($level-1)/10,$level-1)*$MBn);\n}", "public function getF() {}", "function get_fakultas(){\n\t}", "public function ford()\n\t\t{\n\t\t\tif ($this->_depth <= 2.5)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telseif ($this->_depth < 3.0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse{return 2;}\n\t\t}", "public function getFrequencia() {\n return $this->sFrequencia;\n }", "public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "protected function get_probality( ) {\n// depending on the temperature, Heat Index or Wind Chill Temperature is calculated.\n// Format is tt/dd where tt = temperature and dd = dew point temperature. All units are\n// in Celsius. A 'M' preceeding the tt or dd indicates a negative temperature. Some\n// stations do not report dew point, so the format is tt/ or tt/XX.\n\n if (preg_match('#^PROB([0-9]{2})#',$this->current_group_text,$pieces)) {\n $this->tend++;\n $this->wxInfo['ITEMS'][$this->tend]['CODE_PROBABILITY'] = $this->current_group_text;\n $this->wxInfo['ITEMS'][$this->tend]['PROBABILITY'] = $pieces[1];\n $this->tend--;\n $this->current_ptr++;\n $this->current_group++;\n return;\n }\n\n $this->current_group++;\n\n }", "public function cesta_sin_iva(){\r\n\t\t\t$total = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$precio = $elArticulo->oferta>0?$elArticulo->oferta:$elArticulo->precio;\r\n\t\t\t\t$total+= round($elArticulo->unidades*$precio,2);\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn $total;\r\n\t\t}", "function f_obj($individu){\n\t\t$cluster = count($individu); //menghitung jumlah cluster berdasarkan individu\n\t\t$target = 10;\n\t\t$hasil = 0;\n\t\tfor ($i=0; $i < $cluster; $i++) { \n\t\t\t$hasil += $individu[$i];\n\t\t}\n\n\t\t$evaluasi = abs($hasil - $target);\n\t\treturn $evaluasi; //nilai fitness masih 0-10\n\t}", "function getPlural();", "function weight_factor($section, $rating_rules){\r\n\t$weight_fact = 1 ;\r\n\tforeach($rating_rules as $kew=> $val){\r\n\t\tif(!empty($section) & $val['RatingRule']['section'] == $section){\r\n\t\t\t$weight_fact=$val['RatingRule']['Weight_factor'];\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\treturn ($weight_fact);\r\n}", "function obtenerFolleto($edicion){\n\t\t$concurso = new Concurso();\n\t\t$res = $concurso->recuperar($edicion);\n\t\treturn $res['folleto'];\n\t}", "public function getVitality()\n {\n return $this->get(self::_VITALITY);\n }", "public function getVitality()\n {\n return $this->get(self::_VITALITY);\n }", "public function getVitality()\n {\n return $this->get(self::_VITALITY);\n }", "public function getTonicDiscount()\n {\n }", "function get_status_lima($nilai) {\r\n\t\t\r\n\t\tif ($nilai < 0.6)\r\n\t\t\t$hasil = \"LoS A\";\r\n\t\telse if ($nilai >= 0.6 && $nilai < 0.7)\r\n\t\t\t$hasil = \"LoS B\";\r\n\t\telse if ($nilai >= 0.7 && $nilai < 0.8)\r\n\t\t\t$hasil = \"LoS C\";\r\n\t\telse if ($nilai >= 0.8 && $nilai < 0.9)\r\n\t\t\t$hasil = \"LoS D\";\r\n\t\telse if ($nilai >= 0.9 && $nilai < 1.0)\r\n\t\t\t$hasil = \"LoS E\";\r\n\t\telse if ($nilai >= 1.0)\r\n\t\t\t$hasil = \"LoS F\";\r\n\r\n\t\treturn $hasil;\r\n\t}", "function nbProduit(){\n\t$nombre = 0; \n\t\n\tif(isset($_SESSION['panier']['quantite'])){\n\t\tfor($i=0; $i < count($_SESSION['panier']['quantite']); $i++){\n\t\t// On tourne autant de fois qu'il y a de références dans le panier (nombre de ligne dans le petit tableau des quantités)\n\t\t\t$nombre += $_SESSION['panier']['quantite'][$i];\n\t\t}\n\t}\n\t\n\treturn $nombre;\n}", "public function getproduct_feathered()\n\t\t{\n\t\t\t$query = \"SELECT * FROM tbl_product WHERE type = '0'\";\n\t\t\t$result = $this->db->select($query);\n\t\t\treturn $result;\n\t\t}", "function entropy($jumlah, $total){\n\t\t$entropy = -(($jumlah/$total)*log(($jumlah/$total),2));\n\t\treturn $entropy;\n\t}", "function getUtilisation(){\n\n $total = $this-> getTotalWeight() ;\n \n return round(($total / $this->capacity) * 100, 2);\n\n }", "public function carFuel()\n {\n return parent::getFuel();\n }", "public function getPerPersonEquivFareAmount()\n {\n return $this->PerPersonEquivFareAmount;\n }", "function Tn_eco_oth($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "public function getCierre_menor_inversion()\n {\n return $this->cierre_menor_inversion;\n }", "function factorial($numero) {\r\n if ($numero >= 2) { // Creamos una condicion, un punto donde la funcion no vuelva a llamarse\r\n return ($numero * factorial($numero - 1)); // llamamos a la funcion ya creada pero modificandole\r\n // el parátro para que la condicion anteriormente escrita se cumple en algun momento\r\n } else {\r\n return true; // devolvemos el número obtenido al llegar a $numero[0]\r\n }\r\n}", "public function getEier()\n {\n return $this->delta_eier;\n }", "function getPrixArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['prix']));\n else return 0;\n }", "function getMeilleurFlasheurPartie ($id_partie) {\n\tglobal $bdd;\n\t$row = getListeJoueursPartie($id_partie);\n\t$nbFlashsMax = 0;\n\t$compteur=0;\n\t$meilleursFlasheurs = array();\n\tforeach($row as $joueur)\n\t\t{\n\t\t\tif ($nbFlashsMax < getNombreFlashsJoueur($joueur[\"id_joueur\"]))\n\t\t\t\t$nbFlashsMax = getNombreFlashsJoueur($joueur[\"id_joueur\"]);\n\t\t}\n\tforeach($row as $joueur)\n\t\t{\n\t\t\tif ($nbFlashsMax == getNombreFlashsJoueur($joueur[\"id_joueur\"]))\n\t\t\t\t{\n\t\t\t\t\t$meilleursFlasheurs[$compteur]=$joueur[\"login\"];\n\t\t\t\t\t$compteur++;\n\t\t\t\t}\n\t\t}\n\treturn $meilleursFlasheurs;\n}", "function getQteArticle($numserie) {\n if (isset($this->article[$numserie]['qte'])) return ($this->article[$numserie]['qte']);\n else return 0;\n }", "function meterTomile($e){\n$getTotal = $e*0.000621371;\nreturn $getTotal;\n}", "public function fm() {\n return $this->_fm;\n }", "function calculerSurface ($longueur, $largeur, $hauteur)\r\n{\r\n $surfaceGrandMur = $longueur * $hauteur;\r\n $surfacePetitMur = $largeur * $hauteur;\r\n $surfaceTotale = ($surfaceGrandMur + $surfacePetitMur) * 2;\r\n \r\n return $surfaceTotale;\r\n // return 2 * $hauteur * ($longueur + $largeur);\r\n}", "function factor($valor)\n\t{\t\t\n\t\t$min=$this->CI->config->item('factor_min');\n\t\t$max=$this->CI->config->item('factor_max');\n\t\tif($valor<$min||$valor>$max)\n\t\t{\n\t\t\t$this->CI->form_validation->set_message('factor', \"El campo %s debe contener un valor entre {$min} y {$max}.\");\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function getNatureCode()\n {\n return $this->natureCode;\n }", "function Tn_eco_cra($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn/2);\n}", "public function getPer()\n {\n return $this->get(self::_PER);\n }", "function calcul_panier() {\n\tglobal $a_tva;\n\n\t$montant = 0;\n\n\tif (isset($_SESSION['catalogue']['panier']['articles']) && is_array($_SESSION['catalogue']['panier']['articles'])) {\n\t\tinclude_once DIMS_APP_PATH.'/modules/catalogue/class_article.php';\n\n\t\tforeach ($_SESSION['catalogue']['panier']['articles'] as $ref => $fields) {\n\t\t\t$article = new article();\n\t\t\t$article->open($ref);\n\n\t\t\t$prix = catalogue_getprixarticle($article, $fields['qte']);\n\t\t\t$prixaff = catalogue_afficherprix($prix, $a_tva[$article->fields['PCTVA']]);\n\n\t\t\t$montant += $prixaff * $fields['qte'];\n\t\t}\n\t}\n\n\t$_SESSION['catalogue']['panier']['montant'] = $montant;\n}", "public function getPermanency(){\r\n\t\treturn $this->permanency;\r\n\t}", "public function getIntituleChoix()\n {\n return $this->intituleChoix;\n }", "public function frapper(Personnage $perso)\n {\n\n if($perso->id == $this->id)\n {\n return self::CEST_MOI;\n }\n\n return $perso->recevoir();\n }", "function get_tarifKilometrique() {\n return $this->tarifKilometrique;\n }", "function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) {\n\t\n\tglobal $conn;\n\tglobal $PRIMARY_TB;\n\t\n\t// Check if all the parameters are valid\n\tif (!$Atom1) {\n\t\tdie(\"Atom 1 is not specified.\");\n\t} elseif (!$Atom2) {\n\t\tdie(\"Atom 2 is not specified.\");\n\t} elseif (!$BondOrder) {\n\t\tdie(\"Bond order is not specified.\");\n\t}\n\n\t$query_str = \"SELECT Factor FROM $tb_name \".\n\t \"WHERE (Atom1='$Atom1' AND Atom2='$Atom2')\".\n\t \"AND BondOrder=$BondOrder\";\n\t$result = $conn->query($query_str);\n\t\n\t\n\t// Everything is ok\n\tif ($result->num_rows == 1) {\n\t\t$row = $result->fetch_assoc();\n\t\treturn $row['Factor'];\n\t}\n\t\n\t// There is something wrong\n\tif ($BondOrder == 1) {\n\t\t$boName = \"single\";\n\t} elseif ($BondOrder == 2) {\n\t\t$boName = \"double\";\n\t} elseif ($BondOrder == 3) {\n\t\t$boName = \"tripple\";\n\t} else {\n\t\t$boName = $BondOrder;\n\t}\n\n\t// If such bond DNE, print error\n\tif($result->num_rows == 0) {\n\t\tif ($tb_name == $PRIMARY_TB) {\n\t\t\tdie(\"The $Atom1-$Atom2 $boName bond does not exist in the database.\");\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}\n\t\n\t// If there are multiple entries\n\tif ($result->num_rows > 1) {\n\t\tdie(\"There are multiple entries in the database of the $Atom1-$Atom2 $boName bond.\");\n\t}\n\t\n}" ]
[ "0.70454997", "0.67482513", "0.6197337", "0.618654", "0.5987969", "0.5954576", "0.5905647", "0.59008706", "0.5749215", "0.57446134", "0.5723674", "0.57175153", "0.5676326", "0.5631187", "0.56191003", "0.5619026", "0.5601062", "0.5542638", "0.55066085", "0.55051106", "0.54901487", "0.54687065", "0.5450703", "0.54463446", "0.54245794", "0.5421516", "0.54158866", "0.54049826", "0.5396804", "0.53853583", "0.53771913", "0.53717875", "0.5370876", "0.536603", "0.5365964", "0.5359861", "0.5355408", "0.5346597", "0.53441525", "0.53415346", "0.53351593", "0.5330482", "0.532422", "0.53090006", "0.5266019", "0.5261218", "0.5255067", "0.5248553", "0.5244651", "0.5242184", "0.52409685", "0.52393", "0.52377707", "0.52349716", "0.5233267", "0.5222825", "0.52217203", "0.5215128", "0.52090365", "0.5206519", "0.5196524", "0.51954246", "0.51822925", "0.5172621", "0.5169635", "0.51694787", "0.51654243", "0.51645434", "0.51628065", "0.5161075", "0.5161075", "0.5161075", "0.5159439", "0.5154428", "0.515351", "0.51520735", "0.5150786", "0.5150218", "0.51461124", "0.5144792", "0.51437646", "0.5143536", "0.5142767", "0.51413906", "0.5139518", "0.5136762", "0.51366675", "0.51278096", "0.512757", "0.5122441", "0.511734", "0.51151395", "0.51083624", "0.51038915", "0.5101804", "0.5100578", "0.50995564", "0.50970775", "0.50952053", "0.50935835" ]
0.5873743
8
set sessionID because shopware does not set it if its an API call
public function __construct( Boot $boot, ProductPageConfiguratorLoader $productConfiguratorServiceLoader, StructEncoder $encoder, RequestStack $requestStack, ProductListingLoader $productLoader, $dispatcher ) { $token = substr(bin2hex($requestStack->getCurrentRequest()->headers->get("sw-context-token")),0,32); if(isset($token) && !isset($_SESSION['_sf2_attributes']['sessionId'])) { $_SESSION['_sf2_attributes'] = array('sessionId' =>$token); } parent::__construct($boot,$productConfiguratorServiceLoader,$dispatcher,$productLoader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function set_session_id() {\n $this->sessionid = static::$sessionidmockup;\n }", "public function get_session_id()\n {\n }", "public function getSessionID();", "function setSessionID($session){\n\t\t$element = array('sessionID' => $session);\t\t\n\t\t$this->setHeader('SessionHeaderValue', $element);\n\t}", "public static function getSessionid();", "public function updateId() {\n $this->Id = session_id();\n }", "function put_id() {\n \n if($this->name == \"\") {\n $this->name = $this->classname;\n }\n \n // if we stop using the session id- we should remove the session id from\n // the current QUERYSTRING/ or the HTTP_GET_VARS ????\n die(\"This has not been coded yet.\");\n }", "final function setSession_id($value) {\n\t\treturn $this->setSessionId($value);\n\t}", "function set_id ($id)\r\n {\r\n $_SESSION[\"id\"] = $id;\r\n }", "protected function setSessionId($id) {\r\n\t\t$this->id = $id;\r\n\t}", "private function _set_new_session_id($id) {\n\t\t$this->_session_config['_started_session_id'] = $id;\n\t\tZamp::$core->_config['session_settings']['_started_session_id'] = $id;\n\t}", "public static function regenerateSessionid();", "public function getSessionID(){\r\n\t\treturn $this->sessionID;\r\n\t}", "protected function regenerateSessionId() {}", "protected function regenerateSessionId() {}", "function sess_id()\n {\n return session_id();\n }", "protected function getSessionId()\n {\n return \\Session::getId();\n }", "public function getSessionid()\n {\n return $this->sessionid;\n }", "function cemhub_campaign_tracking_generate_session($campaign_source_id){\n $_SESSION[CEMHUB_CAMPAIGN_SOURCE_SESSION] = $campaign_source_id;\n}", "protected function _getId ()\n {\n return session_id();\n }", "public function setSession($sessionID)\r\n {\r\n $this->$sessionID = $sessionID;\r\n }", "protected function setSessionCookie() {}", "public static function setCurrentID($id) {\n Session::put(Privilege::SESSION_NAME_ID, $id);\n }", "public function __construct()\n {\n session_start();\n $this->id = session_id();\n }", "public function iniciar() {\r\n session_regenerate_id();\r\n }", "public function getSessionID()\n {\n return $this->sessionID;\n }", "public function addToSession() {\n $s = Session::getInstance();\n $key = $this->sessionId;\n $s->$key = $this->getId();\n if ($s->$key === null) {\n Log::warn(\"Adding null user ID to session\");\n }\n $this->setAuthed(true);\n }", "public function getSessionId() {}", "final function getSession_id() {\n\t\treturn $this->getSessionId();\n\t}", "protected function setSessionData()\n {\n $responseData = $this->response->getBody();\n if (strlen($responseData) > 0) {\n $contents = str_replace('$SID', $this->session->getName() . '=' . $this->session->getId(), $responseData);\n $contents = str_replace('$SESSION_NAME', $this->session->getName(), $contents);\n $this->response->replaceBody(str_replace('$SESSION_ID', $this->session->getId(), $contents));\n }\n }", "public function startSession($id){\n\n }", "public function setSessionID($sessID){\r\n\t\t$this->sessionID = $sessID;\r\n\t}", "public static function phpunit_mockup_session_id($sessionid) {\n static::$sessionidmockup = $sessionid;\n }", "function set_session($session_name, $session_value) {\n clear_session($session_name);\n $_SESSION[APP_ID . $session_name] = $session_value;\n return $_SESSION[APP_ID . $session_name];\n}", "public function getSessionID() {\n if(isset($this->data['booking']['session']['id'])) {\n return $this->data['booking']['session']['id'];\n }\n return null;\n\n }", "public function getSessionID()\n {\n return $this->_session;\n }", "function get_id ()\r\n {\r\n return $_SESSION[\"id\"];\r\n }", "protected function getSessionId() {\r\n\t\treturn $this->id;\r\n\t}", "public function getSessionID() {\n return $this->sessionID;\n }", "public function setSessionToken() {\n\t\t\t$session_token = hash('sha256', microtime());\n\t\t\t$_SESSION['session_token'] = $session_token;\n\t\t\treturn $session_token;\n\t\t}", "protected static function setUpSessionId (\\MvcCore\\IRequest $req) {\n\t\t$sessionCookieName = session_name();\n\t\t$rawCookieHeader = ';' . trim($req->GetHeader('Cookie', '-,=;a-zA-Z0-9') ?: '', ';') . ';';\n\t\t$sessionId = NULL;\n\t\tif (preg_match_all(\"#;\\s?{$sessionCookieName}\\s?\\=([^;]+)#\", $rawCookieHeader, $matches)) {\n\t\t\t$rawSessionIds = isset($matches[1]) ? $matches[1] : [];\n\t\t\tif (count($rawSessionIds) === 1)\n\t\t\t\t$sessionId = $rawSessionIds[0];\n\t\t\t// if count is higher than 1, it's session fixation atack request, \n\t\t\t// then generate new session id for response.\n\t\t}\n\t\tif ($sessionId === NULL) \n\t\t\t$sessionId = static::createId();\n\t\t$_COOKIE[$sessionCookieName] = $sessionId;\n\t\tsession_id($sessionId);\n\t}", "public function setSessionId($id)\n {\n $this->_sessionId = $id;\n }", "private function openSession() {\n $this->sessionId = isset($_POST['key']) ? $_POST['key'] : (isset($_GET['key']) ? $_GET['key'] : 'null');\n\n if($this->sessionId == 'null' || strlen($this->sessionId) === 0) {\n $this->sessionId = rand(0, 999999999);\n }\n\n session_id($this->sessionId);\n session_name(\"gibSession\");\n session_start();\n }", "private function initSession()\n {\n // Start the session\n session_start();\n\n // Create session id constant\n define('SID', session_id());\n }", "private function createSession()\n {\n session_regenerate_id(TRUE);\n $this->session = array();\n $this->session['legit'] = $this->sessionHash();\n $this->session['id'] = $this->userId;\n if (!$this->userId) {\n $this->voidCookie();\n }\n }", "function session()\n {\n if (!API_MODE) {\n session_name('SKELETON');\n session_start();\n } else {\n ini_set('session.use_cookies', '0');\n }\n }", "function getSessionId() {\n\t\treturn $this->session_id;\n\t}", "private function setSessionKey()\n {\n $this->sessionKey = 'formfactory.captcha.' . $this->formRequestClass;\n }", "public function setId($id): void\n {\n session_id($id);\n }", "private function sesja() {\r\n session_start();\r\n if (!isset($_SESSION['id'])) {\r\n $_SESSION['id'] = 0;\r\n }\r\n }", "private function setId($id)\n {\n $session = new Zend_Session_Namespace('Unodor_Account');\n $session->idaccount = $id;\n }", "function StoreTestId($testID)\n {\n StartSession();\n \n $_SESSION[GetTestIdIdentifier()] = $testID;\n }", "protected function generateSessionToken() {}", "public function createSessionId() {}", "protected function setupSession()\n\t{\n\t\t$name = $this->appType . \"id\";\n\t\tsession_name($name);\n\n\t\t$path = getenv(\"P_SESSION_DIR\") ?: $GLOBALS[\"BASE_DIR\"] . \"/session\";\n\t\tif (! is_dir($path)) {\n\t\t\tif (! mkdir($path, 0777, true))\n\t\t\t\tjdRet(E_SERVER, \"fail to create session folder: $path\");\n\t\t}\n\t\tif (! is_writeable($path))\n\t\t\tjdRet(E_SERVER, \"session folder is NOT writeable: $path\");\n\t\tsession_save_path ($path);\n\n\t\tini_set(\"session.cookie_httponly\", 1);\n\n\t\t$path = getenv(\"P_URL_PATH\");\n\t\tif ($path)\n\t\t{\n\t\t\t// e.g. path=/cheguanjia\n\t\t\tini_set(\"session.cookie_path\", $path);\n\t\t}\n\t}", "public function sessionAction(Request $request){\n $session = $request->getSession();\n $session->set('user_id',4);\n }", "function processResult($id)\n{\n session_start();\n $_SESSION['ID'] = $id;\n $_SESSION['start'] = time();\n ini_set('session.use_only_cookies', 1);\n\n\n}", "public function setSessionID($val)\n {\n $this->_session = $val;\n return $this;\n }", "public function getSession()\r\n {\r\n return $this->sessionID;\r\n }", "private function getSessionId()\n {\n $request = Request::factory(self::$apiUrl . self::$authPath)\n ->method(Request::POST)\n ->headers('content-type', 'application/json')\n ->body(json_encode([\n 'domain' => self::$apiDomain,\n 'apiKey' => self::$apiKey,\n ]))\n ->execute();\n $setCookie = $request->headers('set-cookie');\n preg_match('/JSESSIONID=(?<id>\\w+);/', $setCookie, $jSessionId);\n\n return $jSessionId['id'];\n }", "public function setSessionTokenFromRegistry() {}", "function sec_session_start() {\n\t $session_name = 'sec_session_id'; // Set a custom session name\n\t $secure = false; // Set to true if using https.\n\t $httponly = true; // This stops javascript being able to access the session id. \n\n\t ini_set('session.use_only_cookies', 1); // Forces sessions to only use cookies. \n\t $cookieParams = session_get_cookie_params(); // Gets current cookies params.\n\t session_set_cookie_params(ConfigFunctions::getSessionLength(true), $cookieParams[\"path\"], $cookieParams[\"domain\"], $secure, $httponly); \n\t session_name($session_name); // Sets the session name to the one set above.\n\t session_start(); // Start the php session\n\t session_regenerate_id(); // regenerated the session, delete the old one. \n\t}", "public function updateSession(){\n # code...\n }", "public function getSessionID()\n {\n return $this->getKey('SessionID');\n }", "public function getSessionId();", "public function getSessionId();", "public function storeSession() {}", "function _session_regenerate_id()\r\n {\r\n $old_session_id = session_id();\r\n $old_session_data = $_SESSION;\r\n\r\n // regenerate session id and store it\r\n session_regenerate_id();\r\n $new_session_id = session_id();\r\n\r\n // switch to the old session and destroy its storage\r\n session_id($old_session_id);\r\n session_destroy();\r\n\r\n // switch back to the new session id and send the cookie\r\n session_id($new_session_id);\r\n session_start();\r\n\r\n // restore the old session data into the new session\r\n $_SESSION = $old_session_data;\r\n\r\n // update the session creation time\r\n $_SESSION['regenerated'] = _get_time();\r\n\r\n // end the current session and store session data.\r\n session_write_close();\r\n }", "public function set_session($name , $id){\r\n $_SESSION['name']=$name;\r\n $_SESSION['id']=$id;\r\n header(\"Location:index.php\");\r\n }", "function store_id_in_session($username)\n{\n $_SESSION['username'] = $username;\n $_SESSION['loggedin'] = true;\n}", "function vtws_extendSession(){\n\t\tglobal $adb,$API_VERSION,$application_unique_key;\n\t\tif(isset($_SESSION[\"authenticated_user_id\"]) && $_SESSION[\"app_unique_key\"] == $application_unique_key){\n\t\t\t$userId = $_SESSION[\"authenticated_user_id\"];\n\t\t\t$sessionManager = new SessionManager();\n\t\t\t$sessionManager->set(\"authenticatedUserId\", $userId);\n\t\t\t$crmObject = VtigerWebserviceObject::fromName($adb,\"Users\");\n\t\t\t$userId = vtws_getId($crmObject->getEntityId(),$userId);\n\t\t\t$vtigerVersion = vtws_getVtigerVersion();\n\t\t\t$resp = array(\"sessionName\"=>$sessionManager->getSessionId(),\"userId\"=>$userId,\"version\"=>$API_VERSION,\"vtigerVersion\"=>$vtigerVersion);\n\t\t\treturn $resp;\n\t\t}else{\n\t\t\tthrow new WebServiceException(WebServiceErrorCode::$AUTHFAILURE,\"Authencation Failed\");\n\t\t}\n\t}", "function sec_session_start() {\n $session_name = 'msitadmissions'; // Set a custom session name\n $secure = false; // Set to true if using https.\n $httponly = true; // This stops javascript being able to access the session id. \n \n ini_set('session.use_only_cookies', 1); // Forces sessions to only use cookies. \n\t\t$cookieParams = session_get_cookie_params(); // Gets current cookies params.\n session_set_cookie_params($cookieParams[\"lifetime\"], $cookieParams[\"path\"], $cookieParams[\"domain\"], $secure, $httponly); \n session_name($session_name); // Sets the session name to the one set above.\n session_start(); // Start the php session\n session_regenerate_id(); // regenerated the session, delete the old one. \n}", "function _RegenerateId()\n {\n if ($this->regenerate_id && function_exists('session_regenerate_id')) {\n if (version_compare('5.1.0', phpversion(), '>=')) {\n //session_regenerate_id(true);\n } else {\n \t//session_regenerate_id();\n }\n }\n }", "function startSession(){\r\n\r\n\t\tsession_name(\"phpBMS\".preg_replace('/\\W/',\"\",APPLICATION_NAME).\"v096ID\");\r\n\t\tsession_start();\r\n\r\n\t}", "public static function regenerate_sid() {\n\t\t$key = self::generate_sid();\n\t\tdatabase()->start_query('sessions', 'UPDATE')\n\t\t\t->set(array('key' => $key))\n\t\t\t->where(array('key' => self::$sid))\n\t\t\t\t->run();\n\t\tself::setcookie($key);\n\t}", "private function session_id()\r\n {\r\n return md5(__FILE__ . \"_\" . $_SERVER[\"HTTP_HOST\"]);\r\n }", "function setSessionId($value) {\n\t\treturn $this->setColumnValue('session_id', $value, Model::COLUMN_TYPE_INTEGER);\n\t}", "public function getSessionId() {\n $this->_session_id = $this->pub_session_id;\n return $this->pub_session_id;\n }", "public function __construct()\n {\n if (!session_id()) {\n session_start();\n }\n }", "public function __construct()\n {\n $this->sessionKey = \"WebsiteUserManager\";\n }", "public function generateSessionIdentifier($store_id = null){\n\n if(is_null($store_id)){\n\n $store = Mage::app()->getStore();\n $store_id = $store->getId();\n }\n $sessionIdentifier = null;\n $cookie = Mage::getModel('core/cookie');\n //session identifier format :favizone_connection_identifier_idStore\n //if(!empty($cookie->get('favizone_connection_identifier_'.$store_id)) != \"\" && !is_null($cookie->get('favizone_connection_identifier_'.$store_id))){\n if($cookie->get('favizone_connection_identifier_'.$store_id)){\n\n $sessionIdentifier = Mage::getModel('core/cookie')->get('favizone_connection_identifier_'.$store_id);\n }\n else{\n\n $sender = Mage::helper('favizone_recommender/sender');\n $data = Mage::helper('favizone_recommender/data');\n $data_to_send = array( \"key\" => $this->getApplicationKey());\n\n $result = $sender->postRequest($data->getRegisterProfiletUrl(), $data_to_send);\n $result = json_decode($result,true);\n if($result['response'] == 'authorized' || $result['response'] == 'success' ){\n\n $cookie->set('favizone_connection_identifier_'.$store_id, $result['identifier'], Favizone_Recommender_Helper_Data::getLifeTime(), '/', null, false, false);\n\n $abTest = $this->getStoreInfo($store_id)->getAbTest();\n $abTest = ($abTest == 'true');\n if(!$abTest){\n\n $cookie->set('favizone_visit_'.$store_id, true, null, '/', null, false, false);\n }\n \n $sessionIdentifier = $result['identifier'];\n }\n }\n return $sessionIdentifier;\n }", "private function sessionRegenerateId()\n {\n // even if the session were hijacked, it will be expired very soon, so doing this way we reduce chance of users's (or admin's) account penetration\n // again, it's not 100% way to do secure accounts, but it makes hijacking harder\n // and yes, i almost copied code from php.net ;)\n\n // step 0. make sure that session is active\n if (session_status() !== PHP_SESSION_ACTIVE) {\n session_start();\n }\n\n // step 1: create new session id\n $newSessionID = session_create_id($this->sessionIDPrefix);\n\n // outdated session, we don't need it\n $this->unsetSESSION('session_created');\n\n // step 2: push time of regenerating into current session\n $this->setSESSION('session_annihilated', time());\n\n // step 3: save new session id into old session\n $this->setSESSION('new_session_id', $newSessionID);\n\n // step 4: generate new session id and keep old session\n session_regenerate_id(false);\n\n // see? we create new session with new identifier, but old session is still alive!\n // in this session we don't need new id and destroy time\n $this->unsetSESSION('session_annihilated');\n $this->unsetSESSION('new_session_id');\n\n // and create time of creating to check it later\n $this->setSESSION('session_created', time());\n }", "public function persistSessionToken() {}", "public function persistSessionToken() {}", "public function persistSessionToken() {}", "public function persistSessionToken() {}", "protected function get_user_id() {\n session_start();\n \n return session_id();\n }", "public function __construct()\n {\n if(!session_id()) {\n session_start();\n }\n }", "function get_id () {\n\t\treturn $this->session_id ?: false;\n\t}", "public static function getSessionId(){\n return self::$sessionId;\n }", "private function __setSession($email){\n $_SESSION['wifiGuardSharingEmail'] = $email;\n $sessionID = sha1(uniqid(mt_rand()).$_SERVER['REMOTE_ADDR']);\n $_SESSION[\"wifiGuardSharingID\"] = $sessionID; \n $arr = array(\n 'sessionID' => $sessionID\n );\n dibi::query('UPDATE `user` SET ', $arr, \n 'WHERE `email`=%s', $email);\n }", "public static function getId(){\n\t\treturn session_id();\n\t}", "private function set_keys() {\n\t\t$this->skeleton->load('customers_id', !empty($_SESSION['customer_id'])?$_SESSION['customer_id']:NULL);\n\t\t$this->skeleton->load('customers_extra_logins_id', !empty($_SESSION['customer_extra_login_id'])?$_SESSION['customer_extra_login_id']:NULL);\n\n\t\t// this will set the ID as the session value, if one is found, otherwise if there is an existing cart for this user, pull it out\n\t\tif (empty($this->id()) && $header = self::fetch('cart_header_by_key', [':cart_key' => $this->get_cart_key()])) {\n\t\t\t$this->id($header['cart_id']);\n\t\t}\n\n\t\t//var_dump([$this->skeleton->get('customers_id'), $_SESSION['customer_id']]);\n\t}", "public function storeSessionData() {}", "public function storeSessionData() {}", "function saveUserId($id) {\n session_start();\n $_SESSION['USER_ID'] = $id;\n}", "protected function init_session () {\n\t\t$Request = Request::instance();\n\t\t/**\n\t\t * If session exists\n\t\t */\n\t\tif ($Request->cookie('session')) {\n\t\t\t$this->user_id = $this->load();\n\t\t}\n\t\t$this->update_user_is();\n\t}", "function sec_session_start(){\n $session_name = 'sec_session_id';\n $secure = false;\n // This stops Javascript being able to access the session id\n $httponly = true;\n // Forces sessions to only use cookies.\n if (ini_set('session.use_only_cookies',1) === FALSE){\n header(\"Location: ../error.php?err=Could not initiate a safe session (ini_set)\");\n exit();\n }\n //Gets current cookie params.\n $cookieParams = session_get_cookie_params();\n session_set_cookie_params($cookieParams[\"lifetime\"], $cookieParams[\"path\"], $cookieParams[\"domain\"], $secure, $httponly);\n //Sets the session name to the one set above\n session_name($session_name);\n session_start();\n session_regenerate_id(true);\n}", "public function __construct($id, $key) {\n\t\t$this->devid = $id;\n\t\t$this->authkey = $key;\n\t\tif(empty($_SESSION['sessionId'])) {\n\t\t\t$timestamp = gmdate('YmdHis');\n\t\t\t$signature = $this->getSignature('createsession', $timestamp);\n\t\t\t$url = 'http://api.smitegame.com/smiteapi.svc/createsessionJson/' . $this->devid . '/' . $signature . '/' . $timestamp;\n\t\t\t$json = json_decode(file_get_contents($url), true);\n\t\t\t$this->sessionId = $json['session_id'];\n\t\t\t$_SESSION['sessionId'] = $this->sessionId;\n\t\t\t$_SESSION['sessionTime'] = time();\n\t\t} else {\n\t\t\tif((time() - $_SESSION['sessionTime']) > 900) {\n\t\t\t\tunset($_SESSION['sessionId']);\n\t\t\t\tunset($_SESSION['sessionTime']);\n\t\t\t} else {\n\t\t\t\t$this->sessionId = $_SESSION['sessionId'];\n\t\t\t}\n\t\t}\n\t}", "function setMockSession() {\n if (!class_exists('\\RightNow\\Libraries\\MockSession')) {\n Mock::generate('\\RightNow\\Libraries\\Session');\n }\n $session = new \\RightNow\\Libraries\\MockSession;\n $this->realSession = $this->CI->session;\n $this->CI->session = $session;\n $session->setSessionData(array('sessionID' => 'garbage'));\n }", "private function _getSession()\n {\n return Mage::getSingleton('payone_core/session');\n }" ]
[ "0.7638776", "0.7105199", "0.7097883", "0.7075878", "0.6988932", "0.69882303", "0.6919862", "0.6895251", "0.68546593", "0.6778925", "0.6770918", "0.6750927", "0.6733307", "0.67273223", "0.67273223", "0.6702345", "0.6687827", "0.66653144", "0.66613996", "0.66558295", "0.665248", "0.6611939", "0.66092956", "0.66010374", "0.65842086", "0.6569182", "0.6567514", "0.6565848", "0.6561033", "0.65610176", "0.6558058", "0.65412635", "0.6518296", "0.6503294", "0.65000844", "0.6486146", "0.64845186", "0.6481025", "0.64715266", "0.64545476", "0.6443925", "0.6439483", "0.6435866", "0.6418794", "0.641446", "0.6408226", "0.6391731", "0.6388545", "0.638449", "0.63508505", "0.6344251", "0.63341004", "0.63334954", "0.6332809", "0.6318195", "0.6316174", "0.6305205", "0.63015705", "0.6296973", "0.6282323", "0.62816775", "0.62731504", "0.6266661", "0.6261201", "0.6254615", "0.6254615", "0.6246978", "0.6239772", "0.6239114", "0.6230987", "0.62262225", "0.6224691", "0.62222344", "0.62115616", "0.6197842", "0.6192884", "0.6186574", "0.617677", "0.61747956", "0.6159329", "0.6156707", "0.61404276", "0.6140289", "0.6140289", "0.6140289", "0.6140289", "0.613695", "0.61325186", "0.6131539", "0.61218345", "0.61158955", "0.61014736", "0.60934806", "0.60878295", "0.6086355", "0.6071996", "0.6070917", "0.6066595", "0.60660994", "0.60521895", "0.6045762" ]
0.0
-1
/begin configuration functions https
function forceSSL() { if(empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] !== "on") { header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); exit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enableSSLChecks() {}", "public static function activate() {\n\t\tupdate_option( 'host_name', 'https://login.xecurify.com' );\n\t}", "public function setup() : void\n {\n // setup ssl options\n $this->options['ssl'] = array(\n 'verify_peer' => true,\n 'verify_peer_name' => true,\n 'allow_self_signed' => true // All root certificates are self-signed\n );\n }", "public function configure() {\n\t\tLogger::getRootLogger()->info('Configuring IPSec');\n\t\t//\tCheck nat traversal setting\n\t\tif((string)$this->data['nat_traversal'] == 'true'){\n\t\t\t$nat_t = 'on';\n\t\t}\n\t\telse{\n\t\t\t$nat_t = 'off';\n\t\t}\n\t\t\n\t\t//\tPSK file\n\t\t$psk = '';\n\t\t\n\t\t//\tSetkey configuration\n\t\t$setkey = \"flush;\\n\";\n\t\t$setkey .= \"spdflush;\\n\";\n\t\t\n\t\t//\tRacoon.conf\n\t\t$ipsec = \"path pre_shared_key \\\"\" . self::PKS_PATH . \"\\\";\\n\";\n\t\t$ipsec .= \"path pidfile \\\"\" . self::PID_PATH . \"\\\";\\n\";\n\t\t$ipsec .= \"path certificate \\\"\" . self::CERT_PATH . \"\\\";\\n\";\n\t\t$ipsec .= <<<EOD\nlog debug; #log verbosity setting: set to 'notify' when testing and debugging is complete\n\npadding # options are not to be changed\n{\n maximum_length 20;\n randomize off;\n strict_check off;\n exclusive_tail off;\n}\n\ntimer # timing options. change as needed\n{\n counter 5;\n interval 20 sec;\n persend 1;\n \nEOD;\n\t\tif ($nat_t == 'on') {\n\t\t\t$ipsec .= \" natt_keepalive 15 sec;\\n\";\n\t\t}\n\t\t$ipsec .= <<<EOD\n phase1 30 sec;\n phase2 15 sec;\n}\n\nEOD;\n\n\t\tif(count($this->data->tunnels->tunnel) > 0){\n\t\t\t//\tGenerate configuration for each tunnel\n\t\t\tforeach($this->data->tunnels->tunnel as $tunnel){\n\t\t\t\tif((string)$tunnel['enable'] == 'false'){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\n\t\t\t\tif((string)$this->data['nat_traversal'] == 'true'){\n\t\t\t\t\t$nat_traversal = 'on';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$nat_traversal = 'off';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//\tParse my identifier\n\t\t\t\tif((string)$tunnel->phase1->identifier['type'] == 'ipaddr'){\n\t\t\t\t\t$my_identifier = 'address '.(string)$tunnel->phase1->identifier;\n\t\t\t\t}\n\t\t\t\telseif((string)$this->phase1->identifier['type'] == 'my_ip'){\n\t\t\t\t\t$wan = $this->framework->getPlugin('Wan');\n\t\t\t\t\tif($wan != null){\n\t\t\t\t\t\t$my_identifier = 'address '.$wan->getIpAddress();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telseif((string)$tunnel->phase1->identifier['type'] == 'domainname'){\n\t\t\t\t\t//\tTODO: Find out what we enter here\n\t\t\t\t}\n\t\t\t\telseif((string)$tunnel->phase1->identifier['type'] == 'fqdn'){\n\t\t\t\t\t//\tTODO: Find out what we enter here\n\t\t\t\t}\n\t\t\t\telseif((string)$tunnel->phase1->identifier['type'] == 'dyndns'){\n\t\t\t\t\t//\tTODO: Find out what we enter here\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//\tParse local part\n\t\t\t\tif((string)$tunnel->local->type == 'lan_subnet'){\n\t\t\t\t\t$lan = $this->framework->getPlugin('Lan');\n\t\t\t\t\tif($lan != null){\n\t\t\t\t\t\t$subnet = Functions::prefix2mask($lan->getSubnet());\n\t\t\t\t\t\t$ip = $lan->getIpAddress();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t//\tCalculate network\n\t\t\t\t\t\t$network = Functions::calculateNetwork($ip,$subnet);\n\t\t\t\t\t\t$local['subnet'] = $lan->getSubnet();\n\t\t\t\t\t\t$local['network'] = $network;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tLogger::getRootLogger()->error('Error during tunnel configuration, could not load Lan plugin');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telseif((string)$tunnel->local->type == 'ipaddr'){\n\t\t\t\t\t$local['network'] = (string)$tunnel->local->{'private_ip'};\n\t\t\t\t\t$local['subnet'] = '32';\n\t\t\t\t}\n\t\t\t\telseif((string)$tunnel->local->type == 'network'){\n\t\t\t\t\t$local['network'] = (string)$tunnel->local->{'private_ip'};\n\t\t\t\t\t$local['subnet'] = (string)$tunnel->local->{'private_subnet'};\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//\tParse remote part\n\t\t\t\tif((string)$tunnel->remote->type == 'ipaddr'){\n\t\t\t\t\t$remote['network'] = (string)$tunnel->remote->{'private_ip'};\n\t\t\t\t\t$remote['subnet'] = '32';\n\t\t\t\t}\n\t\t\t\telseif((string)$tunnel->remote->type == 'network'){\n\t\t\t\t\t$remote['network'] = (string)$tunnel->remote->{'private_ip'};\n\t\t\t\t\t$remote['subnet'] = (string)$tunnel->remote->{'private_subnet'};\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ipsec .= <<<EOD\nremote {$tunnel->remote->{'public-ip'}} [500]\n{\n exchange_mode {$tunnel->phase1->{'exchange-mode'}};\n doi ipsec_doi;\n situation identity_only;\n my_identifier {$my_identifier};\n peers_identifier\taddress {$tunnel->remote{'public-ip'}};\n lifetime time 8 hour;\n passive off;\n proposal_check obey;\n nat_traversal {$nat_traversal};\n generate_policy off;\n \n proposal {\nEOD;\n\t \t$ipsec .= \" encryption_algorithm \".str_replace('|',', ',(string)$tunnel->phase1->{'encryption-algorithm'}).\";\";\n\t \t$ipsec .= \" hash_algorithm \".str_replace('|',', ',(string)$tunnel->phase1->{'hash-algorithm'}).\";\";\n\t \t\n\t \tif($tunnel->phase1->{'authentication-method'}['type'] == 'psk'){\n\t \t\t$authentication_method = 'pre_shared_key';\n\t \t\tforeach($this->keys->key as $key){\n\t \t\t\tif($key['id'] == (string)$tunnel->phase1->{'authentication-method'}){\n\t \t\t\t\tbreak;\n\t \t\t\t}\n\t \t\t}\n\t \t\t$psk .= (string)$tunnel->remote->{'public-ip'}.\"\\t\".html_entity_decode((string)$key->content).\"\\n\";\n\t \t}\n\t \telseif($tunnel->phase1->{'authentication-method'}['type'] == 'rsasig'){\n\t \t\t$authentication_method = 'rsasig';\n\t \t}\n\t \t\n\t \t$ipsec .= \" authentication_method \".$authentication_method.\";\\n\";\n\t \t$ipsec .= \" lifetime time \".(string)$tunnel->phase1->lifetime.\";\\n\";\n\t \t$ipsec .= \" dh_group \".(string)$tunnel->phase1->dhgroup.\";\\n\";\n\t\n\t\t\t\t//Add certificate information to the proposal\n\t\t\t\tif ($tunnel->phase1->{'authentication-method'}['type'] == 'rsasig') {\n\t\t\t\t\t//\t\tTODO: Add x509 certificate type\n\t\t\t\t\t\n\t\t\t\t\t//\tFind correct certificate\n\t\t\t\t\tforeach($this->data->certificates->certificate as $certificate){\n\t\t\t\t\t\tif($certificate['id'] == $tunnel->phase1->{'authentication-method'}){\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$ipsec .= \" certificate_type plain_rsa \\\"{$certificate->private}\\\"\\n\";\n\t\t\t\t\t$ipsec .= \" peers_certfile plain_rsa \\\"{$certificate->public}\\\"\\n\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Close proposal and remote\n\t\t\t\t$ipsec .= \"\\t}\\n}\\n\";\n\t\t\t\t\n\t\t\t\t//Create sainfo\n\t\t\t\t$ipsec .= \"sainfo (address {$local['network']}/{$local['subnet']} any address \".$tunnel->remote->{'private_ip'}.\"/\".$tunnel->remote->{'private_subnet'}.\" any)\";\n\t\t\t\t$ipsec .= <<<EOD\n{\n\t\tlifetime time {$tunnel->phase2->lifetime};\nEOD;\n\t\t\t\tif((string)$tunnel->phase2->pfsgroup != 'off' && (string)$tunnel->phase2->pfsgroup != ''){\n\t\t\t\t\t$ipsec .= \" pfs_group \".(string)$tunnel->phase2->pfsgroup;\n\t\t\t\t}\n\t\t\t\t$ipsec .= \" encryption_algorithm \".str_replace('|',', ',$tunnel->phase2->{'encryption-algorithm'}).\";\\n\";\n\t\t\t\t$ipsec .= \" authentication_algorithm \".$tunnel->phase2->{'authentication-algorithm'}.\";\\n\";\n\t\t\t\t$ipsec .= <<<EOD\n compression_algorithm deflate;\n}\n\nEOD;\n\t\t\t\t//\tSetkey config\n\t\t\t\t$setkey .= \"spdadd {$local['network']}/{$local['subnet']} {$remote['network']}/{$remote['subnet']} any -P out ipsec esp/tunnel/{$local['public-ip']}-{$remote['public-ip']}/use;\\n\";\n\t\t\t\t$setkey .= \"spdadd {$remote['network']}/{$remote['subnet']} {$local['network']}/{$local['subnet']} any -P in ipsec esp/tunnel/{$remote['public-ip']}-{$local['public-ip']}/use;\\n\";\n\t\t\t}\n\t\t\t\n\t\t\t//\tWrite out racoon and IPSEC config\n\t\t\t//Save setkey\n\t\t\t$fd = fopen ( self::SETKEY_PATH, \"w\" );\n\t\t\tif (! $fd) {\n\t\t\t\tLogger::getRootLogger ()->error ( \"Error: Could not write setkey conifg to \" . self::SETKEY_PATH );\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tfwrite ( $fd, $setkey );\n\t\t\tfclose ( $fd );\n\t\t\t\n\t\t\t//Save IPsec config\n\t\t\t$fd = fopen ( self::CONFIG_PATH, \"w\" );\n\t\t\tif (! $fd) {\n\t\t\t\tLogger::getRootLogger ()->error ( \"Error: Could not write IPsec conifg to \" . self::CONFIG_PATH );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfwrite ( $fd, $ipsec );\n\t\t\tfclose ( $fd );\n\t\t\t\n\t\t\t//Save pre shared key file\n\t\t\t$fd = fopen ( self::PKS_PATH, \"w\" );\n\t\t\tif (! $fd) {\n\t\t\t\tLogger::getRootLogger ()->error ( \"Error: Could not write IPsec PKS to \" . self::PKS_PATH );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfwrite ( $fd, $psk);\n\t\t\tfclose ( $fd );\n\t\t\tchmod ( self::PKS_PATH, 0600 );\n\t\t\t\n\t\t\treturn true;\n }\n else{\n \tLogger::getRootLogger()->info('No IPSEC tunnels defined, aborting racoon configuration');\n \treturn false;\n }\n\t}", "public function forceSSL();", "public function forceSSL();", "public function startTLS()\n {\n }", "protected function _initForceSSL() {\n\t\tif($_SERVER['SERVER_PORT'] != '443') {\n\t\t\theader('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);\n\t\t\texit();\n\t\t}\n\t}", "public function sslRenegotiate(): void {}", "private function setUrls() {\n\t\t$this->url = ($this->env === 'DEVELOPMENT') ? 'https://test.sagepay.com/gateway/service/direct3dcallback.vsp' : 'https://live.sagepay.com/gateway/service/direct3dcallback.vsp';\n\t}", "function ispapissl_addon_config(): array\n{\n return [\n \"name\" => \"ISPAPI SSL\",\n \"description\" => \"Quickly add and configure SSL Certificates\",\n \"author\" => '<a href=\"https://www.hexonet.net/\" target=\"_blank\"><img style=\"max-width:100px\" src=\"' . SSLHelper::getLogo() . '\" alt=\"HEXONET\" /></a>',\n \"language\" => \"english\",\n \"version\" => \"9.2.1\"\n ];\n}", "public static function config();", "function vpn_ipsec_failover_configure() {\n\tglobal $config, $g;\n\n\n\tif (is_array($config['installedpackages']['sasyncd'])) {\n\t\t$sasyncd_text = \"\";\n\t\tforeach ($config['installedpackages']['sasyncd']['config'] as $sasyncd) {\n\t\t\t$enabled = isset ($sasyncd['enable']);\n\t\t\tif (!$enabled)\n\t\t\t\treturn;\n\t\t\tif ($sasyncd['peerip'] <> \"\")\n\t\t\t\t$sasyncd_text .= \"peer {$sasyncd['peerip']}\\n\";\n\t\t\tif ($sasyncd['interface'])\n\t\t\t\t$sasyncd_text .= \"carp interface {$sasyncd['interface']}\\n\";\n\t\t\tif ($sasyncd['sharedkey'] <> \"\")\n\t\t\t\t$sasyncd_text .= \"sharedkey {$sasyncd['sharedkey']}\\n\";\n\t\t\tif ($sasyncd['mode'] <> \"\")\n\t\t\t\t$sasyncd_text .= \"mode {$sasyncd['mode']}\\n\";\n\t\t\tif ($sasyncd['listenon'] <> \"\")\n\t\t\t\t$sasyncd_text .= \"listen on {$sasyncd['listenon']}\\n\";\n\t\t\tif ($sasyncd['flushmodesync'] <> \"\")\n\t\t\t\t$sasyncd_text .= \"flushmode sync {$sasyncd['flushmodesync']}\\n\";\n\t\t}\n\n\t\tfile_put_contents(\"{$g['varetc_path']}/sasyncd.conf\", $sasyncd_text);\n\t\tchmod(\"{$g['varetc_path']}/sasyncd.conf\", 0600);\n\n\t\tif(is_process_running(\"sasyncd\"))\n\t\t\tmwexec(\"killall sasyncd\", true);\n\n\t\t/* launch sasyncd, oh wise one */\n\t\tmwexec_bg(\"/usr/local/sbin/sasyncd -d -v -v -v\");\n\t}\n}", "function main($content, $conf) {\n\t\t$this->conf = $conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t\tglobal $TYPO3_CONF_VARS;\n\t\t$extConf = unserialize($TYPO3_CONF_VARS['EXT']['extConf']['shibboleth']);\t\n\t\t\n\t\t\t// TODO: Move the following information to some place more appropriate\n\t\t\t/*\n\t\t\tAbout virtual hosts in connection with Shibboleth:\n\t\t\tThink in terms of applications: An application needs an entry in shibboleth2.xml and is identified by it's application ID\n\t\t\tDefault application ID is \"default\". Application is a set of protected resources. See RequestMapper section in xml or \n\t\t\tset application ID directly in Apache config (or by .htaccess). We protect our TYPO3 instance, possibly we use an alternative \n\t\t\tapplication ID for the /typo3 directory, i.e. we make another application out of the backend.\n\t\t\t\n\t\t\tTypically an application does not span multiple virtual hosts. However, an application may be accessible by more than one\n\t\t\tdomain, i.e. virtual host. In that case, it is unclear to me, if one has do define multiple applications in the xml file.\n\t\t\t\n\t\t\tSee also: http://kb.ucla.edu/articles/shibboleth-apache-multiple-virtual-host-configuration-for-moodle\n\t\t\t*/\n\t\t\t\n\t\t\t// Allow adding of entityID parameter to IdP-Link, if configured in ext conf.\n\t\t\n\t\t$entityIDparam = $extConf['entityID'];\n\t\tif ($entityIDparam != '') {\n\t\t\t$entityIDparam = 'entityID='. rawurldecode($entityIDparam);\n\t\t}\n\t\t\n\t\t$typo3_site_url = GeneralUtility::getIndpEnv('TYPO3_SITE_URL');\n\t\tif ($extConf['forceSSL']) {\n\t\t\t$typo3_site_url = str_replace('http://', 'https://', $typo3_site_url);\n\t\t}\n\t\t\n\t\t\t// TODO: hard-coded link text shall be replaced by locallang.xml based, piGetLL or something like that\n\t\t$linkText = 'Shibboleth Login';\n\t\t\n\t\t$sessionHandlerUrl = $extConf['sessions_handlerURL'];\n\t\t\n\t\tif (preg_match('/^http/',$sessionHandlerUrl) == 0) {\n\t\t\t$sessionHandlerUrl = $typo3_site_url . $sessionHandlerUrl;\n\t\t}\n\n\t\t$targetParam = 'target=' . rawurlencode(GeneralUtility::getIndpEnv('TYPO3_SITE_URL'));\n\n\t\tif (($entityIDparam != '') and ($targetParam != '')) {\n\t\t\t$params = $entityIDparam . '&' . $targetParam;\n\t\t} else {\n\t\t\t$params = $entityIDparam . $targetParam;\n\t\t}\n\n\t\tif ($params != '') {\n\t\t\t$params = '?' . $params;\n\t\t}\n\t\t\n\t\t$content='\n\t\t\t<a href=\"' . $sessionHandlerUrl . $extConf['sessionInitiator_Location'] . $params . '\">' . $linkText . '</a>\n\t\t';\n\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function __construct()\n\t{\n\t\t$this->url = (config_item('server_is_ssl') ? 'https://' : 'http://').\n\t\t\t\t\t\tconfig_item('server_user').':'.config_item('server_pass').'@'.\n\t\t\t\t\t\tconfig_item('server_name').':'.config_item('server_port').'/';\n\n\t\tlog_message('debug', 'Bitcoin connection set, with URL '.$this->url);\n\t}", "public function run()\n {\n DLocalConfig::create([\n 'name' => 'api.andeanwide.com',\n 'url' => 'https://dpayout.andeanwide.com/',\n 'grant_type' => 'client_credentials'\n ]);\n }", "public function startup();", "private function init()\n {\n $this->apiLive = false;\n\n $this->returnUrl = \"\";\n $this->cancelUrl =\"\";\n \n //Whether we are in sandbox or in live environment\n if ((bool)$this->apiLive === true) {\n //live\n $this->X_SYCA_MERCHANDID = 'C_57359E9C95103';\n $this->X_SYCA_APIKEY='pk_syca_753413334715da0c50e0a6adaf4d12abd9be1aa3';\n $this->sycapayUrlInit = \"https://secure.sycapay.com/login\";\n $this->sycapayUrl = 'https://secure.sycapay.com/checkresponsive';\n } else {\n //test\n $this->X_SYCA_MERCHANDID = 'C_56713FBF3E6A4';\n $this->X_SYCA_APIKEY='pk_syca_d49497468317152423d42aaff0d1166fc1b9522d';\n $this->sycapayUrlInit = \"https://secure.sycapay.net/login\";\n $this->sycapayUrl = \"https://secure.sycapay.net/checkresponsive\";\n }\n }", "protected function initiateUrl()\n\t{\n\t\t// base url\n\t\tif($this->app->config->has('app.url'))\n\t\t\t$this->setBase($this->app->config->get('app.url'));\n\n\t\t// asset url\n\t\tif($this->app->config->has('asset.url'))\n\t\t\t$this->setAsset($this->app->config->get('asset.url'));\n\t}", "function startupHandler($param)\n {\n if (true) {\n $app = $param['source']->getApplication();\n $app->removeStyle('common/static/common.css');\n $app->addStyle('/static/tuit.css');\n\n $session_id = $_COOKIE['sessionid'];\n \n $ch = curl_init();\n $server_host = $_SERVER['SERVER_ADDR'];\n $browser_host = $_SERVER['HTTP_HOST'];\n $request_uri = $_SERVER['REQUEST_URI'];\n $server_port = $_SERVER['SERVER_PORT'];\n //\tmessage($_SERVER);\n $port_part = ($server_port != 80)?\":$server_port\":\"\";\n $port_part=\"\";\n\t \n\t \n\t //echo \"http://\" .$server_host . $port_part.\"/tuit/account/session/\";\n\t \t \n curl_setopt($ch, CURLOPT_URL, \"http://\" .$server_host . $port_part.\"/tuit/account/session/\");\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_COOKIE, \"sessionid=$session_id\");\n $res = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch);\n //message($_SERVER);\n\t //print_r($info);\n\t \n if ($res !== false) {\n\t \n $msg = json_decode($res);\n //message($msg);\n \n if ($msg != null && strlen($msg->username)) {\n $vg = property::get('loginTuit.viewGroup');\n $eg = property::get('loginTuit.editGroup');\n $ag = property::get('loginTuit.adminGroup');\n $can_view=$can_edit=$can_admin=0;\n if ($vg == '' || in_array($vg, $msg->groups)) {\n $can_view = 1;\n }\n if ($eg == '' || in_array($eg, $msg->groups)) {\n $can_edit = 1;\n }\n if ($ag == '' || in_array($ag, $msg->groups)) {\n $can_admin = 1;\n }\n \n //message(\"view: $can_view, edit: $can_edit, admin: $can_admin\");\n \n ciUser::setUser($msg->username,$msg->first_name . \" \" . $msg->last_name, $msg->email, $can_view, $can_edit, $can_admin);\n $param['source']->addContent('main_menu_pre',sprintf(\"<ul class='user_info'><li class='username'><a href='/tuit/account/%s'>%s - %s</a></li>\\n<li class='logout_button'><a href='/tuit/account/logout'>\"._(\"Log out\").\"</a></li></ul>\\n\",\n ciUser::$_me->username,\n ciUser::$_me->username,\n ciUser::$_me->fullname));\n \n return;\n }\n \n /* message(\"Status: \" . $info['http_code']);\n message(\"Got back \" . strlen($res) . \" characters of information\");\n message(\"Output from session query: \" . $res);\n */\n \n }\n util::redirect(\"http://\" .$browser_host .\"/tuit/account/login/?next=\" . urlencode($request_uri));\n\n }\n else {\n \n $username = $_SERVER['REMOTE_USER'];\t\n if($username) {\n ciUser::loginUser($username);\n }\n }\n \n \n }", "public function checkSslBackendAndRedirectIfNeeded() {}", "function wp_ssl_constants()\n {\n }", "function activateHTTPS($activate)\n {\n\n // define all the global variables\n global $database, $message, $settings;\n\n if ($activate) {\n // check if already activated\n if ($settings->isHTTPS()) {\n return false;\n }\n\n $sql = \"UPDATE \" . TBL_SETTINGS . \" SET value = '1' WHERE field = '\" . TBL_SETTINGS_FORCE_HTTPS . \"'\";\n\n // get the sql results\n if (!$result = $database->getQueryResults($sql)) {\n return false;\n }\n\n //if no error then set the success message\n $message->setSuccess(\"You have activated ssl across your script\");\n return true;\n } else {\n // check if already de-activated\n if (!$settings->isHTTPS()) {\n return false;\n }\n\n $sql = \"UPDATE \" . TBL_SETTINGS . \" SET value = '0' WHERE field = '\" . TBL_SETTINGS_FORCE_HTTPS . \"'\";\n\n // get the sql results\n if (!$result = $database->getQueryResults($sql)) {\n return false;\n }\n\n //if no error then set the success message\n $message->setSuccess(\"You have de-activated ssl across your script\");\n return true;\n }\n }", "function wp_update_urls_to_https()\n {\n }", "function install() {\n\t\t$config ['username'] = '';\n\t\t$config ['password'] = '';\n\t\t;\n\t\t$config ['signature'] = '';\n\t\t$config ['currency'] = 'EUR'; // default\n\t\t\n\n\t\t$config ['SANDBOX'] = true;\n\t\t\n\t\t$config ['enabled'] = \"0\";\n\t\t\n\t\t//not normally user configurable\n\t\t$config ['return_url'] = \"\";\n\t\t$config ['cancel_url'] = \"\";\n\t\t\n\t\t$this->CI->Settings_model->save_settings ( 'bnp_parisbas', $config );\n\t}", "private function cas_init()\n {\n session_name((isset($this->config[ 'session_name' ]) ? $this->config[ 'session_name' ] : 'CASAuth'));\n // initialize CAS client\n $this->configureCasClient();\n $this->configureSslValidation();\n $this->detect_authentication();\n\n // set service URL for authorization with CAS server\n //\\phpCAS::setFixedServiceURL();\n if ( ! empty($this->config[ 'cas_service' ])) {\n phpCAS::allowProxyChain(new \\CAS_ProxyChain_Any);\n }\n // set login and logout URLs of the CAS server\n phpCAS::setServerLoginURL($this->config[ 'cas_login_url' ]);\n phpCAS::setServerLogoutURL($this->config[ 'cas_logout_url' ]);\n }", "public function setUp()\n {\n parent::setUp();\n $this->configRequest([\n 'environment' => [\n 'HTTPS' => 'on'\n ]\n ]);\n }", "public function setUp()\n {\n parent::setUp();\n $this->configRequest([\n 'environment' => [\n 'HTTPS' => 'on'\n ]\n ]);\n }", "private function setSSL()\n {\n curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, 1);\n }", "public function configure()\n {\n if ($_SERVER['SERVER_NAME'] == 'mazemod.org')\n {\n header('Location: http://www.mazemod.org');\n exit;\n }\n }", "protected function init()\n { \n // get remote config\n $this->_remoteConfig = Mage::helper('shoptimally_core/remoteConfig');\n \n // calculate enabled status\n $this->_isEnabled = ($this->getGeneralSetting('ShoptimallyEnabled')) &&\n (strlen($this->getApiKey()) > 0) &&\n $this->_remoteConfig->get(\"enabled\");\n \n // init shoptimally domain\n $this->_shoptimallyDomain = $this->_remoteConfig->get('shoptimally_domain');\n if (is_null($this->_shoptimallyDomain) || \n strlen($this->_shoptimallyDomain) == 0)\n {\n $this->_shoptimallyDomain = \"api1.shoptimally.com\"; \n }\n }", "protected function sslRedirection()\n {\n return;\n }", "public function config()\n {\n }", "public function Setup() {\n\t\t$EnabledSchemes = Gdn::Config('Garden.Authenticator.EnabledSchemes', array());\n\t\tarray_push($EnabledSchemes, 'ez');\n\t\tSaveToConfig('Garden.Authenticator.EnabledSchemes', $EnabledSchemes);\n\t\tSaveToConfig('Plugins.EZ_auth.Enable', TRUE);\n\t}", "private function config_OSF_WebServices()\n {\n // Get package info\n $installPath = \"{$this->osf_web_services_folder}/{$this->osf_web_services_ns}\";\n $dataPath = \"{$this->data_folder}/osf-web-services/configs\";\n\n // Configure\n $this->span(\"Configuring...\", 'info');\n $this->cp(\"{$installPath}/keys.ini\", \"{$dataPath}/keys.ini\");\n $this->cp(\"{$installPath}/osf.ini\", \"{$dataPath}/osf.ini\");\n $this->rm(\"{$installPath}/keys.ini\");\n $this->rm(\"{$installPath}/osf.ini\");\n // OSF Web Service scripts\n $this->sed(\"public static \\$osf_ini = \\\".*\\\";\", \"public static \\$osf_ini = \\\"{$dataPath}/\\\";\",\n \"{$installPath}/framework/WebService.php\");\n $this->sed(\"public static \\$keys_ini = \\\".*\\\";\", \"public static \\$keys_ini = \\\"{$dataPath}/\\\";\",\n \"{$installPath}/framework/WebService.php\");\n // OSF Web Service credentials\n if(stripos(file_get_contents(\"{$dataPath}/keys.ini\"), \"{$this->application_id} = \") === FALSE)\n {\n $this->append(\"\\n{$this->application_id} = \\\"{$this->api_key}\\\"\",\n \"{$dataPath}/keys.ini\");\n }\n else\n {\n $this->sed(\"{$this->application_id} = .*\", \"\", \"{$dataPath}/keys.ini\");\n $this->append(\"{$this->application_id} = \\\"{$this->api_key}\\\"\",\n \"{$dataPath}/keys.ini\");\n }\n // OSF Web Service paths\n $this->setIni(\"network\", \"wsf_base_url\", \"\\\"http://{$this->osf_web_services_domain}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"network\", \"wsf_base_path\", \"\\\"{$this->osf_web_services_folder}/{$this->osf_web_services_ns}/\\\"\",\n \"{$dataPath}/osf.ini\");\n // OSF Tools paths\n $this->setIni(\"datasets\", \"wsf_graph\", \"\\\"http://{$this->osf_web_services_domain}/wsf/\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"datasets\", \"dtd_base\", \"\\\"http://{$this->osf_web_services_domain}/ws/dtd/\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"ontologies\", \"ontologies_files_folder\", \"\\\"{$this->data_folder}/ontologies/files/\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"ontologies\", \"ontological_structure_folder\", \"\\\"{$this->data_folder}/ontologies/structure/\\\"\",\n \"{$dataPath}/osf.ini\");\n // SPARQL dependency\n $this->setIni(\"triplestore\", \"channel\", \"\\\"{$this->sparql_channel}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"triplestore\", \"dsn\", \"\\\"{$this->sparql_dsn}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"triplestore\", \"host\", \"\\\"{$this->sparql_host}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"triplestore\", \"port\", \"\\\"{$this->sparql_port}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"triplestore\", \"sparql\", \"\\\"{$this->sparql_url}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"triplestore\", \"sparql-graph\", \"\\\"{$this->sparql_graph_url}\\\"\",\n \"{$dataPath}/osf.ini\");\n if ($this->sparql_channel == 'http') {\n $this->setIni(\"triplestore\", \"sparql-insert\", \"\\\"insert\\\"\",\n \"{$dataPath}/osf.ini\");\n }\n $this->setIni(\"triplestore\", \"username\", \"\\\"{$this->sparql_username}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"triplestore\", \"password\", \"\\\"{$this->sparql_password}\\\"\",\n \"{$dataPath}/osf.ini\");\n // Keycache dependency\n $this->setIni(\"memcached\", \"memcached_enabled\", \"\\\"{$this->keycache_enabled}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"memcached\", \"memcached_host\", \"\\\"{$this->keycache_host}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"memcached\", \"memcached_port\", \"\\\"{$this->keycache_port}\\\"\",\n \"{$dataPath}/osf.ini\");\n // Solr dependency\n $this->setIni(\"solr\", \"solr_host\", \"\\\"{$this->solr_host}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"solr\", \"solr_port\", \"\\\"{$this->solr_port}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"solr\", \"solr_core\", \"\\\"{$this->solr_core}\\\"\",\n \"{$dataPath}/osf.ini\");\n $this->setIni(\"solr\", \"fields_index_folder\", \"\\\"{$this->data_folder}/osf-web-services/tmp/\\\"\",\n \"{$dataPath}/osf.ini\");\n // OWL dependency\n $this->setIni(\"scones\", \"endpoint\", \"\\\"http://{$this->scones_host}:{$this->scones_port}/{$this->scones_url}/\\\"\",\n \"{$dataPath}/osf.ini\");\n // Other\n $this->setIni(\"geo\", \"geoenabled\", \"\\\"true\\\"\",\n \"{$dataPath}/osf.ini\");\n }", "function initialize(){\r\n get_sso_option('rules_number');\r\n get_sso_option('is_ssl');\r\n get_sso_option('trigger');\r\n get_sso_option('logout_url');\r\n get_sso_option('user_name');\r\n get_sso_option('user_email');\r\n\r\n if(get_sso_option('is_ssl') AND (!empty($_COOKIE['sunIdentityServerAuthNServer']) OR is_user_logged_in()) ){\r\n global $wp_object_cache;\r\n $options = wp_cache_get('alloptions', 'options');\r\n $options['siteurl'] = @preg_replace('|^http://|', 'https://', $options['siteurl']);\r\n $options['home'] = @preg_replace('|^http://|', 'https://', $options['home']);;\r\n wp_cache_set('alloptions', $options, 'options');\r\n }\r\n}", "function trigger_https()\n\t{\n\t\t$exclude_url_list = array();\n\t\t//$exclude_url_list[] = '/(.*)js$/';\n\t\tforeach ($exclude_url_list as $exclude_url) {\n\t\t\tif(preg_match($exclude_url, uri_string()))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t \n\t\t// switch to HTTPS for these urls\n\t\t$ssl_url_list = array();\n\t\t$ssl_url_list[] = '/(.*)contact(.*)$/';\n\t \n\t\tforeach ($ssl_url_list as $ssl_url) {\n\t\t\tif(preg_match($ssl_url, uri_string()))\n\t\t\t{\n\t\t\t\tforce_ssl();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t \n\t\t// still here? switch to HTTP (if necessary)\n\t\tremove_ssl();\n\t}", "function load_config() {\n $config_file = \"scripts/i-erp.conf\";\n $comment = \"#\";\n // open the config file\n $fp = fopen($config_file, \"r\");\n if (!$fp) {\n echo(\"Failed to open file\");\n return 0;\n }\n // loop through the file lines and pull out variables\n while (!feof($fp)) {\n $line = trim(fgets($fp));\n if ($line && $line[0] != $comment) {\n $pieces = explode(\"=\", $line);\n $option = trim($pieces[0]);\n $value = trim($pieces[1]);\n $config_values[$option] = $value;\n }\n }\n fclose($fp);\n $_SESSION['install_lib'] = $config_values['install_lib'];\n $_SESSION['server'] = $config_values['server'];\n $_SESSION['timeout'] = $config_values['timeout'];\n $_SESSION['appname'] = $config_values['appname'];\n $_SESSION['h_logo'] = $config_values['h_logo'];\n $_SESSION['si_logo'] = $config_values['si_logo'];\n $_SESSION['copyr'] = $config_values['copyr'];\n return 1;\n}", "public function initialConfig() \n {\n //NB: various link modes handled below in setupPageData()\n if(!isset($_GET['mode'])) {\n\n $this->user_id = $this->user->setupUserData();\n if($this->user_id != 0) {\n $this->addMessage('You are already logged in! You can login as another user or '.$this->js_links['back']);\n\n $_SESSION['login_redirect'] = $_SESSION['login_redirect'] + 1 ;\n if($_SESSION['login_redirect'] > 5) {\n $this->addError('Something is wrong with your access credentials. Please contact support.');\n } else {\n $this->user->redirectLastPage();\n }\n }\n }\n \n }", "public function test_https_status()\n {\n }", "abstract public function configure();", "function is_ssl()\n {\n }", "function show_configuration() {\n\n global $VM_LANG, $sess;\n\t\t$db = new ps_DB;\n\t\t$payment_method_id = vmGet( $_REQUEST, 'payment_method_id', null );\n\n\t\t$VM_LANG->load('arsenalpay');\n\t\t\t\n\t\t// Read current Configuration\n\t\tinclude_once(CLASSPATH .\"payment/ps_arsenalpay.cfg.php\");\n\t\t\t\t\n\t\t?>\n<p style=\"text-align: center;font-weight: bold;\"><?php echo $VM_LANG->_('ARSENALPAY_TITLE') ?></p>\n<p><?php echo $VM_LANG->_('ARSENALPAY_DESC') ?></p><br>\n<table>\t\n\t<tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_UNIQUE_ID') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_UNIQUE_ID\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_UNIQUE_ID') ? AP_UNIQUE_ID : ''?>\"/></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_UNIQUE_ID_DESC')) ?></td>\n\t</tr>\n\t<tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_SIGN_KEY') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_SIGN_KEY\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_SIGN_KEY') ? AP_SIGN_KEY : ''?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_SIGN_KEY_DESC'))?></td>\n\t</tr>\n\t<tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_FRAME_URL') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_FRAME_URL\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_FRAME_URL') ? AP_FRAME_URL : 'https://arsenalpay.ru/payframe/pay.php' ?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_FRAME_URL_DESC'))?></td>\n\t</tr>\t\n\t<tr>\n <td><strong><?php echo $VM_LANG->_('ARSENALPAY_PAYMENT_SRC')?></strong></td>\n <td>\n\t\t\t<select name=\"AP_PAYMENT_SRC\" class=\"inputbox\" >\n <option <?php if (AP_PAYMENT_SRC == 'card') echo \"selected=\\\"selected\\\"\"; ?> value=\"card\">card</option>\n <option <?php if (AP_PAYMENT_SRC == 'mk') echo \"selected=\\\"selected\\\"\"; ?> value=\"mk\">mk</option>\n </select>\n </td>\n <td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_PAYMENT_SRC_DESC')) ?>\n </td>\n </tr>\n <tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_PAYER_CALLBACK_URL') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_PAYER_CALLBACK_URL\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_PAYER_CALLBACK_URL') ? AP_PAYER_CALLBACK_URL : 'http(s)://[joomla-site-domain]/administrator/components/com_virtuemart/arsenalpay_notify.php' ?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_PAYER_CALLBACK_URL_DESC'))?></td>\n\t</tr>\n\t<tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_PAYMENT_CALLBACK_URL') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_PAYMENT_CALLBACK_URL\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_PAYMENT_CALLBACK_URL') ? AP_PAYMENT_CALLBACK_URL : 'http(s)://[joomla-site-domain]/administrator/components/com_virtuemart/arsenalpay_notify.php' ?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_PAYMENT_CALLBACK_URL_DESC'))?></td>\n\t</tr>\n\t<tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_ALLOWED_IP') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_ALLOWED_IP\" class=\"inputbox\" value=\"<?php echo defined('AP_ALLOWED_IP') ? AP_ALLOWED_IP : '' ?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_ALLOWED_IP_DESC'))?></td>\n\t</tr>\n\t<tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_CSS_FILE') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_CSS_FILE\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_CSS_FILE') ? AP_CSS_FILE : '' ?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_CSS_FILE_DESC'))?></td>\n\t</tr>\n\t<tr>\n <td><strong><?php echo $VM_LANG->_('ARSENALPAY_FRAME_MODE')?></strong></td>\n <td>\n\t\t\t<select name=\"AP_FRAME_MODE\" class=\"inputbox\" >\n <option <?php if (AP_FRAME_MODE == '1') echo \"selected=\\\"selected\\\"\"; ?> value=\"1\">YES</option>\n <option <?php if (AP_FRAME_MODE == '0') echo \"selected=\\\"selected\\\"\"; ?> value=\"0\">NO</option>\n </select>\n </td>\n <td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_FRAME_MODE_DESC')) ?>\n </td>\n </tr>\n <tr>\n\t\t<td><strong><?php echo $VM_LANG->_('ARSENALPAY_FRAME_PARAMS') ?></strong></td>\n\t\t<td><input type=\"text\" name=\"AP_FRAME_PARAMS\" size=\"50\" class=\"inputbox\" value=\"<?php echo defined('AP_FRAME_PARAMS') ? AP_FRAME_PARAMS : \"width='700' height='500' frameborder='0' scrolling='auto'\"?>\" /></td>\n\t\t<td><?php echo vmtooltip($VM_LANG->_('ARSENALPAY_FRAME_PARAMS_DESC'))?></td>\n\t</tr>\n</table>\n\t\t<?php\n\t\treturn true;\n\t}", "function confdev()\n{\n global $app, $appname, $appversion;\n $app->config([\n 'debug' => true,\n 'cookies.lifetime' => '5 minutes',\n 'cookies.secret_key' => 'b4924c3579e2850a6fad8597da7ad24bf43ab78e',\n\n ]);\n $app->getLog()->setEnabled(true);\n $app->getLog()->setLevel(\\Slim\\Log::DEBUG);\n $app->getLog()->info($appname . ' ' . $appversion . ': Running in development mode.');\n $app->getLog()->info('Running on PHP: ' . PHP_VERSION);\n}", "public function setConfiguration() {\n\n // Make sure all new services are available.\n drupal_flush_all_caches();\n $this->updateConfig();\n // Make sure configuration changes are available.\n drupal_flush_all_caches();\n $this->updateAuthors();\n $this->output()->writeln('Your configuration is complete.');\n }", "function force_ssl_admin($force = \\null)\n {\n }", "public function configure() {\r\n\t\r\n\t}", "public function createConf($path, $url)\n {\n $this->filesystem->put($path, view('ssl.conf')->withUrl($url)->render());\n }", "function enlaceInicio(){\n if($_SERVER['HTTPS']){\n\t echo 'httpt://' . $_SERVER['SERVER_NAME'];\n\t}else{\n\t echo 'http://' . $_SERVER['SERVER_NAME'];\n\t}\n }", "function initialize()\n {\n if (isset($this->key)) {\n $key = common_config('contextio', 'key');\n if (empty($key)) {\n Config::save(\n 'contextio',\n 'key',\n $this->key\n );\n }\n }\n\n if (isset($this->secret)) {\n $secret = common_config('contextio', 'secret');\n if (empty($secret)) {\n Config::save('contextio', 'secret', $this->secret);\n }\n }\n }", "function __construct() {\n $this->config = array(\n $this::CHECKOUT => 'https://ws.pagseguro.uol.com.br/v2/checkout/',\n $this::PAYMENT => 'https://pagseguro.uol.com.br/v2/checkout/payment.html',\n $this::NOTIFICATION => 'https://ws.pagseguro.uol.com.br/v2/transactions/notifications/'\n );\n }", "public function configure();", "private function configureSslValidation()\n {\n if ($this->config[ 'cas_validation' ] == 'self') {\n phpCAS::setCasServerCert($this->config[ 'cas_cert' ]);\n } else {\n if ($this->config[ 'cas_validation' ] == 'ca') {\n phpCAS::setCasServerCACert($this->config[ 'cas_cert' ]);\n } else {\n phpCAS::setNoCasServerValidation();\n }\n }\n }", "public function enableSecureApiUrl()\n\t{\n\t\t$this->api_url = self::API_SECURE_URL;\n\t}", "public function init() {\n\t\t\theader('Location: ../install/index.php');\n\t\t}", "function wp_schedule_https_detection()\n {\n }", "public static function initModuleAccess()\n\t{\n\t\tself::$modulePath =\t_PS_MODULE_DIR_. 'mondialrelay/';\n\t\n\t\t$protocol = (Configuration::get('PS_SSL_ENABLED') || (!empty($_SERVER['HTTPS']) \n\t\t\t&& strtolower($_SERVER['HTTPS']) != 'off')) ? 'https://' : 'http://';\n\t\t\n\t\t$endURL = __PS_BASE_URI__.'/modules/mondialrelay/';\n\t\n\t\tif (method_exists('Tools', 'getShopDomainSsl'))\n\t\t\tself::$moduleURL = $protocol.Tools::getShopDomainSsl().$endURL;\n\t\telse\n\t\t\tself::$moduleURL = $protocol.$_SERVER['HTTP_HOST'].$endURL;\t\t\t\n\t}", "public function testComAdobeGraniteSecurityUserUiInternalServletsSSLConfigurationS()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.granite.security.user.ui.internal.servlets.SSLConfigurationServlet';\n\n $crawler = $client->request('POST', $path);\n }", "private function loadConfig() {\n\n //get pachage and configuration\n $pkg = Package::getByHandle(\"c5authy\");\n Loader::library('authy', $pkg);\n\n $co = new Config();\n $co->setPackageObject($pkg);\n\n $production = ( $co->get('authy_server_production') == \"1\" ? true : false );\n\n //set the values\n $this->api_key = $co->get('authy_api_key');\n $this->server = $production ? self::LIVE_SERVER : self::SANDBOX_SERVER;\n $this->auth_type = $co->get('authy_type');\n $this->sms_token = $co->get('authy_sms_tokens');\n }", "function loopback_configure()\n{\n return [\n 'loopback' => ['loopback_configure_do']\n ];\n}", "function force_ssl_login($force = \\null)\n {\n }", "function servicemain() {\n $http = new \\Higgs\\HttpServer();\n/*\n $http->addExtension(new \\Higgs\\Extensions\\Misc\\AddHeader([\n \"header\" => \"x-foo\",\n \"value\" => \"Hello World\"\n ]));\n*/\n $cfg = ObjMan::getObject(\"local:/config/higgs\");\n\n $exts = $cfg->query(\"/httpd/server[default]/extension\");\n foreach($exts as $ext) {\n $cn = \\Utils::getClassFromDotted($ext[0]);\n class_exists($cn);\n }\n foreach($exts as $ext) {\n $cn = \\Utils::getClassFromDotted($ext[0]);\n if (class_exists($cn)) {\n $ext = new $cn($ext->getAttributes());\n $http->addExtension($ext);\n } else {\n $this->warn(\"Could not load extension '{$ext[0]}'\");\n }\n }\n\n //$ctrl = new \\Higgs\\HttpControl();\n\n $server = new SocketServer();\n\n $ports = $cfg->query(\"/httpd/server[default]/listen\");\n foreach($ports as $ep) {\n $endpoint = $ep[0];\n if ($ep->hasAttribute(\"certificate\")) {\n $cert = new Certificate(\"server.pem\");\n $this->debug(\"Using certificate %s\", \"server.pem\");\n $info = $cert->getCertificateInfo();\n list($vfrom,$vto) = $cert->getValidity();\n $this->debug(\" Issued to: %s\", $info[\"name\"]);\n $this->debug(\" Issuer: %s (%s)\", $info[\"issuer\"][\"O\"], $info[\"issuer\"][\"OU\"]);\n $this->debug(\" Hash: 0x%s\", $info[\"hash\"]);\n $this->debug(\" Valid from: %s\", $vfrom);\n $this->debug(\" Valid until: %s\", $vto);\n if ($cert->isSelfSigned()) {\n $this->warn(\"Warning! The certificate in use is self-signed. Consider getting a proper certificate for production use.\");\n $this->warn(\"HSTS by design does not allow self-signed certificates. Enabling HSTS will not work.\");\n }\n $server->addListener($endpoint, $http, $cert);\n } else {\n $server->addListener($endpoint, $http);\n }\n }\n /*\n $server->addListener(\"tcp://127.0.0.1:9700\", $http);\n $server->addListener(\"ssl://127.0.0.1:9701\", $http, $cert);\n $server->addListener(\"tcp://127.0.0.1:9799\", $http);\n */\n while($server->process()) {\n usleep(5000);\n if ($this->stop) break;\n }\n }", "public function disableSSLChecks() {}", "public function __construct()\n {\n $this->config = array(\n 'name' => null, //name of the session\n 'use_only_cookies' => null, //force the use of cookies not passed session ID\n 'hash_function' => null, //what hash function to use 0=md5 1=sha1\n 'save_path' => null, //where to save the sessions defaults to system default\n 'cookie_secure' => null, //force cookies to be sent over ssh only\n 'gc_maxlifetime' => null, //how long to wait before garbage collection sessions\n 'gc_probability' => null, //how long to wait before garbage collection sessions\n 'gc_divisor' => null, //how long to wait before garbage collection sessions\n 'cookie_lifetime' => null, //seconds for session timeout\n 'cookie_path' => null, //domain path where the cookie will work\n 'cookie_domain' => null, //domain where the cookie will work\n );\n }", "public function config()\n\t{\n\t\tparent::config();\n\n\t\t// change inpu\n\t\tif(self::done_step('username'))\n\t\t{\n\t\t\t// if user go to this page from username page\n\t\t\t$this->data->mobile_username = 'eusername';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// if user go to this page from mobile page\n\t\t\t$this->data->mobile_username = 'emobile';\n\t\t}\n\n\t\t// load temp username in username field\n\t\tif(self::get_session('username', 'temp_username'))\n\t\t{\n\t\t\t$this->data->get_username = self::get_session('username', 'temp_username');\n\t\t}\n\n\t\t$this->data->page['title'] = T_('Password');\n\t\t$this->data->page['desc'] = T_('Please enter password to enter');\n\n\t\tswitch (\\lib\\router::get_url(1))\n\t\t{\n\t\t\tcase 'recovery':\n\t\t\t\t$this->data->page['title'] = T_('Recovery Password');\n\t\t\t\t$this->data->page['desc'] = T_('If forget your password, Please enter new password. after pass verification your new password is usable.');\n\t\t\t\tbreak;\n\n\t\t\tcase 'signup':\n\t\t\tcase 'set':\n\t\t\t\t$this->data->page['title'] = T_('Set Password');\n\t\t\t\t$this->data->page['desc'] = T_('Please set your password to secure signup.'). ' '. T_('Next time we only need your mobile and this password to enter');\n\t\t\t\tbreak;\n\n\t\t\tcase 'change':\n\t\t\t\t$this->data->page['title'] = T_('Change to new Password');\n\t\t\t\t$this->data->page['desc'] = T_('Please set your old and new password to change it');\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function main()\n {\n $this->throwForbiddenUnless(SecurityUtil::checkPermission('Captcha::', '::', ACCESS_ADMIN), LogUtil::getErrorMsgPermission());\n\t\t$this->redirect(ModUtil::url('Captcha', 'admin', 'modifyconfig'));\n }", "private function configureCurl ()\n {\n curl_setopt_array($this->cURL, [\n CURLOPT_URL => $this->url,\n CURLOPT_RETURNTRANSFER => true\n ]);\n }", "function setConfig() {\n\n\t\t\t// Mapping array for PI flexform\n\t\t\t$flex2conf = array(\n\t\t\t\t'news' => 'sDEF:news',\n\t\t\t\t'days' => 'sDEF:days',\n\t\t\t\t'darkdesign' => 'sDEF:dark',\n\t\t\t\t'show_last' => 'sDEF:show_last',\n\t\t\t\t'order_by' => 'sDEF:listOrderBy',\n\t\t\t\t'asc_desc' => 'sDEF:ascDesc',\n\t\t\t\t'category_mode' => 'sDEF:categoryMode',\n\t\t\t\t'category' => 'sDEF:categorySelection',\n\t\t\t\t'sideTop' => 'sSIDE:blog',\n\t\t\t\t'sideTopTitle' => 'sSIDE:blogTitle',\n\t\t\t\t'sideTopText' => 'sSIDE:blogText',\n\t\t\t\t'sideTopImage' => 'sSIDE:blogImage',\n\t\t\t\t'sideMiddle' => 'sSIDE:reader',\n\t\t\t\t'sideMiddleTitle' => 'sSIDE:readerTitle',\n\t\t\t\t'sideMiddleText' => 'sSIDE:readerText',\n\t\t\t\t'sideMiddleImage' => 'sSIDE:readerImage',\n\t\t\t\t'sideBottom' => 'sSIDE:bottom',\n\t\t\t\t'sideBottomTitle' => 'sSIDE:bottomTitle',\n\t\t\t\t'swfParams.' => array(\n\t\t\t\t\t'loop' => 'sFLASH:loop',\n\t\t\t\t\t'menu' => 'sFLASH:menu',\n\t\t\t\t\t'quality' => 'sFLASH:quality',\n\t\t\t\t\t'scale' => 'sFLASH:scale',\n\t\t\t\t\t'bgcolor' => 'sFLASH:bgcolor',\n\t\t\t\t\t'swliveconnect' => 'sFLASH:swliveconnect',\n\t\t\t\t),\n\t\t\t\t'playerParams.' => array(\n\t\t\t\t\t'timer' => 'sPLAYER:timer',\n\t\t\t\t\t'transition' => 'sPLAYER:transition',\n\t\t\t\t\t'random' => 'sPLAYER:random',\n\t\t\t\t\t'navigation' => 'sPLAYER:navigation',\n\t\t\t\t),\n\t\t\t\t'width' => 'sFLASH:width',\n\t\t\t\t'height' => 'sFLASH:height',\n\t\t\t\t'version' => 'sFLASH:version',\n\t\t\t);\n\n\t\t\t// Ovverride TS setup with flexform\n\t\t\t$this->conf = $this->api->fe_mergeTSconfFlex($flex2conf,$this->conf,$this->piFlexForm);\n\n\t\t\t$this->conf['swfParams.']['width'] = $this->conf['width'];\n\t\t\t$this->conf['swfParams.']['height'] = $this->conf['height'];\n\t\t\t$this->conf['swfParams.']['wmode'] = $this->conf['wmode'];\n \t\t//$this->conf['width'] = 512;\n\t\t\t//$this->conf['height'] = 265;\n\t\t\t//$this->conf['wmode'] = 'opaque';\n\t\t\t// DEBUG ONLY - Output configuration array\n\t\t\t#$this->api->debug($this->conf,'MP3 Player: configuration array');\n\t\t}", "abstract protected function configure();", "abstract protected function configure();", "function _configCertificate()\n{\n\t// This function will configure the agent certificate. \n\t// First, it checks for an existing valid cert, if none\n\t// it will look for a pending certificate on the MOM. \n\t// If the pending cert exist it will map that to the node.\n\t// if not, it will attempt to issue a new cert and grant it. \n\t//\n\t// Inputs:\n\t// Output: none\n\t// Dependencies:\n\t//\n\t_log(\"configCertificate: Starting.\",\"info\");\n\tglobal $fqhostname, $coreid, $caasnode, $gSleepTime, $gRetryMax;\n\t$retryCount = 0;\n\n\tif (_checkCert($fqhostname))\n\t{\n\t\t_log(\"configCertificate: certificate is already installed.\",\"debug\");\n\t}\n\telse\n\t{\n\t\t_log(\"configCertificate: cert is NOT installed. Attempting to find a pending cert.\",\"debug\");\n\t\twhile (is_null($cert['CERTID']) && $retryCount < $gRetryMax)\n\t\t{\n\t\t\t_log(\"configCertificate: attempts: $retryCount / $gRetryMax.\",\"debug\");\n\t\t\t_log(\"configCertificate: looking for pending cert.\",\"debug\");\n\t\t\t$cert = _getPendingCert($coreid);\n\t\t\tif (empty($cert['CERTID']))\n\t\t\t{\n\t\t\t\t_log(\"configCertificate: could not find a pending cert, attempting to request one.\",\"info\");\n\t\t\t\t_requestNewCert();\n\t\t\t\t_log(\"configCertificate: waiting $gSleepTime second before looking for pending cert.\",\"debug\");\n\t\t\t\tsleep($gSleepTime);\n\t\t\t\t_log(\"configCertificate: looking for pending cert.\",\"debug\");\n\t\t\t\t$cert = _getPendingCert($coreid);\n\t\t\t}\n\t\t\t$retryCount++;\n\t\t}\n\t\tif ((!empty($cert['CERTID'])) && (empty($cert['MAPPEDHOST']) || $cert['MAPPEDHOST'] !== $fqhostname))\n\t\t{\n\t\t\t_log(\"getPendingCert: Unable to locate an existing mapped cert. Attemping to map certid (\".$cert['CERTID'].\") to hostname $fqhostname\",\"info\");\n\t\t\t_mapCertToHostname($cert['CERTID'],$fqhostname);\n\t\t\t$cert = _getPendingCert($coreid);\n\t\t}\n\t\tif ($cert['MAPPEDHOST'] == $fqhostname)\n\t\t{\n\t\t\t_log(\"getPendingCert: certificate is mapped to host, attempting to grant the certificate.\",\"info\");\n\t\t\t_grantCert($cert['CERTID']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_log(\"-----Failed to process node ($caasnode): Unable to find a pending certificate or generate a new certificate.\",\"SUMMARY\");\n\t\t\t_logProvsionEndToDb(0,\"Failed to process node: Cannot find pending certificate request.\");\n\t\t\t_exit1(\"Exiting at getPendingCert: Cannot find a pending cert request which matches coreid $coreid - cannot continue.\");\n\t\t}\n\t}\t\n\t_log(\"configCertificate: Exiting.\",\"info\");\n}", "public function https_url($url)\n {\n }", "function instance_allow_config()\r\n\t\t{\r\n\t\t\r\n\t\t}", "function confprod()\n{\n global $app, $appname, $appversion;\n $app->config([\n 'debug' => false,\n 'cookies.lifetime' => '1 day',\n 'cookies.secret_key' => 'b4924c3579e2850a6fad8597da7ad24bf43ab78e',\n\n ]);\n $app->getLog()->setEnabled(true);\n $app->getLog()->setLevel(\\Slim\\Log::WARN);\n $app->getLog()->info($appname . ' ' . $appversion . ': Running in production mode.');\n $app->getLog()->info('Running on PHP: ' . PHP_VERSION);\n error_reporting(E_ALL ^ (E_DEPRECATED | E_USER_DEPRECATED));\n}", "public function __https()\n{\n\tif(strpos($_SERVER['HTTP_HOST'],'www') === false or !isset($_SERVER['HTTPS']))\n\t{\n\t\theader('Location: '._https);\n\t\texit(0);\n\t}\n}", "function wind_config() {\n return array(\n\t\t \"wind_realm\" => \"cnmtl_full_np\",\n\t\t \"authorize\" => array(\"valid-user\" => true,\n\t\t\t\t \"users\" => array(\"sbd12\"),\n\t\t\t\t \"groups\"=> array(),\n\t\t\t\t ),\n\t\t \"logout_arg\" => \"windlogout\",\n\t\t \"wind_server\" => \"wind.columbia.edu\",\n\t\t \"wind_login_uri\" => \"/login\",\n\t\t \"wind_logout_uri\" => \"/logout\",\n\t\t \"wind_validate_uri\" => \"/validate\",\n\t\t // Path to public cert used to sign $wind_server's cert\n\t\t \"verify_ssl_certificate\" => false,\n\t\t \"ca_public_cert\" => \"/lamp/ccnmtl/CUWind.crt\",\n\t\t // These will usually be set correctly, but possibly not if you're\n\t\t // using a weird port or some other non-default configuration.\n\t\t );\n }", "public function finishPortal(){\n\t\t$this->parseBuffer();\n\t\t$this->writeConfig();\n\t\t$http = LighttpdConfig::getInstance();\n\t\t$http = \n\t\t$this->PORT_NUMBER++;\n\t}", "static public function config($conf=array()){\n\t\tself::$account_id = (!empty($conf['account_id'])) ? $conf['account_id'] : OHT_API_ACCOUNT_ID;\n\t\tself::$secret_key = (!empty($conf['secret_key'])) ? $conf['secret_key'] : OHT_API_SECRET_KEY;\n\t\tself::$sandbox = (isset($conf['sandbox'])) ? (bool)$conf['sandbox'] : OHT_API_SANDBOX;\n\t\t\n\t}", "protected function initConfiguration()\n {\n $this->initJsonConfiguration();\n $this->initApiGatewayConfiguration('kyc_service/' . $this->requestPath, false);\n }", "function index()\n {\n redirect(URL_SITE_SETTINGS);\n }", "public function configure() {}", "public function configure() {}", "public function init() {\n\t\tparent::init();\n\t\t//Yii::app()->request->setHostInfo('http://love.allwomenstalk.com');\n\t\t/*echo 'BaseUrl'; var_dump(Yii::app()->request->getBaseUrl());\n\t\techo 'HostInfo'; var_dump(Yii::app()->request->getHostInfo());\n\t\techo 'PathInfo'; var_dump(Yii::app()->request->getPathInfo());\n\t\techo 'QueryString'; var_dump(Yii::app()->request->getQueryString());\n\t\techo 'RequestUri'; var_dump(Yii::app()->request->getRequestUri());\n\t\techo 'ScriptFile'; var_dump(Yii::app()->request->getScriptFile());\n\t\techo 'ScriptUrl'; var_dump(Yii::app()->request->getScriptUrl());\n\t\techo 'ServerName'; var_dump(Yii::app()->request->getServerName());*/\n\t\t\n\t\tYii::app()->params['site'] = $this->_currentSite = $this->detectSite();\n\t}", "function initializeDemo()\n {\n $sql = \"DROP TABLE IF EXISTS config; DROP TABLE IF EXISTS secureconfig;\";\n try {\n $db = Base_Database::getConnection();\n $db->exec($sql);\n } catch (PDOException $e) {\n error_log('Initialize Base_Config failed: ' . $e->getMessage());\n die(\"An error occurred creating the configuration tables\");\n }\n self::initialize();\n $sql = \"\n INSERT IGNORE INTO `config` (`key`, `value`) VALUES ('eventName', 'A Demo CFM Instance'), ('eventUrl', 'http://cfm2.pagekite.me'), ('hashTag', '#cfm2');\n INSERT IGNORE INTO `secureconfig` (`key`, `value`) VALUES ('salt', 'salt');\n \";\n try {\n $db = Base_Database::getConnection();\n $db->exec($sql);\n } catch (PDOException $e) {\n error_log('Initialize Base_Config failed: ' . $e->getMessage());\n die(\"An error occurred creating the configuration tables\");\n }\n }", "public function __construct()\r\n {\r\n parent::__construct();\r\n\r\n $this->url = Configure::read('cdr_url') . \":\" . Configure::read('cdr_api.async_port');\r\n }", "final protected function make_secure() {\n\t\t$url = \"https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}\";\n\t\tif (!empty($_SERVER['QUERY_STRING']))\n\t\t\t$url .= \"?{$_SERVER['QUERY_STRING']}\";\n\t\t$this->response->redirect($url);\n\t}", "protected function initializeConfiguration() {}", "public function setup()\n {\n $_SESSION = array();\n $_SESSION['security'] = array(\n 'user-agent' => md5(empty($_SERVER['HTTP_USER_AGENT']) ? '' : $_SERVER['HTTP_USER_AGENT']),\n 'ip' => $_SERVER['REMOTE_ADDR'],\n 'start' => time()\n );\n $_SESSION['stores'] = array();\n }", "public function session_configure()\n {\n if (!$this->session)\n return;\n\n $lifetime = $this->config->get('session_lifetime', 0) * 60;\n\n // set keep-alive/check-recent interval\n if ($keep_alive = $this->config->get('keep_alive')) {\n // be sure that it's less than session lifetime\n if ($lifetime)\n $keep_alive = min($keep_alive, $lifetime - 30);\n $keep_alive = max(60, $keep_alive);\n $this->session->set_keep_alive($keep_alive);\n }\n\n $this->session->set_secret($this->config->get('des_key') . $_SERVER['HTTP_USER_AGENT']);\n $this->session->set_ip_check($this->config->get('ip_check'));\n }", "public function preconnect(): void\n {\n }", "private function init() {\n $this->_cm = curl_init();\n curl_setopt($this->_cm, CURLOPT_PROXY, $config['curl']['proxy']);\n curl_setopt($this->_cm, CURLOPT_HTTPAUTH, CURLAUTH_BASIC | CURLAUTH_DIGEST);\n curl_setopt($this->_cm, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($this->_cm, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($this->_cm, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($this->_cm, CURLOPT_TIMEOUT, $config['curl']['timeout']);\n curl_setopt($this->_cm, CURLOPT_POST, true); \n }", "function ispapissl_addon_activate(): array\n{\n return ['status' => 'success','description' => 'Installed'];\n}", "function processConfiguration() ;", "public function Crysis2(){\n\t\t$this->_webRequest = isCurlInstalled();\n\t}", "function get_act_url() {\n\t\t $act_url = ( isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ) ? 'https' : 'http';\n\t\t $act_url .= '://' . $_SERVER['SERVER_NAME'];\n\t\t $act_url .= in_array( $_SERVER['SERVER_PORT'], array( '80', '443' ) ) ? '' : \":\" . $_SERVER['SERVER_PORT'];\n\t\t return $act_url;\n}", "public function init() {\n parent::init();\n $this->serverURL = $this->getModule()->settings->get('serverURL', $this->serverURL);\n }", "function start()\n{\n global $ipfsutils, $staticFile, $urlpath, $avahi_type, $avahi_port, $avahi_desc;\n $ret = execute_program_detached($ipfsutils.\" startDaemon $avahi_port $avahi_type\");\n //$output = ptxt(\" \". print_r($ret['output'][0],1));\n\n // Announce the IPFS instance to the community cloud via any of the\n // available methods -including IPFS itself, if enabled-\n $pub_res = avahi_publish($avahi_type, $avahi_desc, $avahi_port, null);\n\n setFlash(txt(t('ipfs_flash_publish')) . ptxt($pub_res));\n return(array('type'=>'redirect','url'=>$staticFile.$urlpath));\n}", "public function renewalLoginErrorAction() {\n $this->view->getHelper('serverUrl')->setScheme('https');\n }", "public function setConfig()\n {\n $config = new Config;\n echo 'const signalingSrvAddr = \"'.$config->signalingServerAddress.'\"; const signalingSrvPort = \"'.$config->signalingServerPort.'\";';\n }", "function SetFckConfigUrl($url){\r\n\t\t$this->fck_configUrl = $url;\r\n\t}", "public function initConfigData($host){}" ]
[ "0.62402254", "0.60037017", "0.59705836", "0.5920373", "0.5918698", "0.5918698", "0.5910351", "0.5897446", "0.57663524", "0.57393086", "0.5715072", "0.56854254", "0.5650405", "0.5625224", "0.5611586", "0.5606588", "0.55922323", "0.5538522", "0.553717", "0.5532779", "0.5517123", "0.55133075", "0.5499711", "0.5494868", "0.542007", "0.5410335", "0.5406553", "0.5406553", "0.540376", "0.5395596", "0.53925467", "0.5369039", "0.5364905", "0.5354106", "0.53489745", "0.5345568", "0.53450114", "0.5332251", "0.531543", "0.53108555", "0.5308248", "0.53066176", "0.53030384", "0.53027517", "0.52996093", "0.5294743", "0.52862906", "0.52834225", "0.5278582", "0.52692086", "0.52648306", "0.5264633", "0.52611285", "0.52610534", "0.5244539", "0.52428246", "0.52422017", "0.5241801", "0.52383816", "0.52292997", "0.52176535", "0.52175534", "0.5213614", "0.5213541", "0.5210558", "0.5204708", "0.5189379", "0.5181161", "0.5169336", "0.5169336", "0.51639193", "0.5159488", "0.5150686", "0.51387024", "0.5136855", "0.51347446", "0.51301754", "0.51300114", "0.5114047", "0.5113361", "0.51037645", "0.51037645", "0.5100083", "0.5099463", "0.50973517", "0.5095702", "0.5087891", "0.5087007", "0.50832266", "0.50802875", "0.5078273", "0.5078259", "0.50762224", "0.5074718", "0.5074595", "0.50715333", "0.5070426", "0.5061105", "0.5060074", "0.5059646", "0.5049857" ]
0.0
-1
Main processor for this github webhook: check that each commit has a "Signedoffby" line.
function signed_off_by_checker($commit, $config, &$msg_out) { # Skip this commit if it's a merge commit and we've been told to # skip merge commits. if (isset($config["ignore merge commits"]) && $config["ignore merge commits"] && count($commit->{"parents"}) > 1) { return true; } if (preg_match("/Signed-off-by: /", $commit->{"commit"}->{"message"})) { return true; } else { $msg_out = $config["gwc one bad msg"]; return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verify_request ($body) {\n\tglobal $config;\n\treturn strpos($_SERVER['HTTP_USER_AGENT'], 'GitHub-Hookshot') !== false &&\n\t\thash_equals($_SERVER['HTTP_X_HUB_SIGNATURE'], 'sha1=' . hash_hmac('sha1', $body, $config->token));\n}", "public function checkForFollowUpNotClicked()\n {\n $now = Carbon::now();\n $logs = $this->getNotClickedMessagesToFollow();\n foreach($logs as $log) {\n MailLog::info(sprintf('Trigger sending follow-up not clicked email for automation `%s`, subscriber: %s, event ID: %s', $this->automation->name, $log->subscriber_id, $this->id));\n $this->fire(collect([$log->subscriber]));\n // a more verbal way is: fire(Subscriber::where('id', $log->subscriber_id)\n }\n }", "public function checkForFollowUpNotOpened()\n {\n $now = Carbon::now();\n $logs = $this->getNotOpenedMessagesToFollow();\n foreach($logs as $log) {\n MailLog::info(sprintf('Trigger sending follow-up not opened email for automation `%s`, subscriber: %s, event ID: %s', $this->automation->name, $log->subscriber_id, $this->id));\n $this->fire(collect([$log->subscriber]));\n // a more verbal way is: fire(Subscriber::where('id', $log->subscriber_id)\n }\n }", "function github($key) {\n //the commit message should be ending with #task_id. ex: Added webhook #233\n $payloads = json_decode(file_get_contents('php://input'));\n if (!$this->_is_valid_payloads_of_github($payloads, $key)) {\n app_redirect(\"forbidden\");\n }\n\n $final_commits_array = $this->_get_final_commits_of_github($payloads);\n\n if ($final_commits_array) {\n foreach ($final_commits_array as $commit) {\n $task_id = get_array_value($commit, \"task_id\");\n $task_info = $this->Tasks_model->get_one($task_id);\n if ($task_info->id) {\n $log_data = array(\n \"action\" => \"github_notification_received\",\n \"log_type\" => \"task\",\n \"log_type_title\" => $task_info->title,\n \"log_type_id\" => $task_id,\n \"changes\" => serialize(array(\"github\" => array(\"from\" => \"\", \"to\" => $commit))),\n \"log_for\" => \"project\",\n \"log_for_id\" => $task_info->project_id,\n );\n\n $save_id = $this->Activity_logs_model->ci_save($log_data, true);\n\n if ($save_id) {\n //send notification\n $notification_options = array(\"project_id\" => $task_info->project_id, \"task_id\" => $task_id, \"activity_log_id\" => $save_id, \"user_id\" => \"999999997\");\n log_notification(\"github_push_received\", $notification_options);\n }\n }\n }\n }\n }", "function authorProofreadingComplete($args) {\n\t\t$monographId = Request::getUserVar('monographId');\n\t\t$this->validate($monographId);\n\t\t$this->setupTemplate(true, $monographId);\n\n\t\t$send = Request::getUserVar('send') ? true : false;\n\n\t\timport('classes.submission.proofreader.ProofreaderAction');\n\n\t\tif (ProofreaderAction::proofreadEmail($monographId,'PROOFREAD_AUTHOR_COMPLETE', $send?'':Request::url(null, 'copyeditor', 'authorProofreadingComplete', 'send'))) {\n\t\t\tRequest::redirect(null, null, 'submission', $monographId);\n\t\t}\n\t}", "function checkWriteFollowups($reqdata, $curdata = null, $origdata = null) {\n if(!empty($reqdata['SalesforceSource']['serverurl'])\n && (empty($reqdata['SalesforceSource']['refresh_token'])\n || empty($reqdata['SalesforceSource']['access_token']))) {\n // Warn that no oauth token is present\n \n $this->Flash->set(_txt('pl.salesforcesource.token.missing'), array('key' => 'information')); \n }\n \n return true;\n }", "public function checkOrdersForUpdateCheckouts()\n {\n $orderCollection = Mage::getModel(\"sales/order\")->getCollection();\n\n //get current timestamp\n $nowTime = new DateTime(null, new DateTimeZone(\"UTC\"));\n $nowTimestamp = $nowTime->getTimestamp();\n\n foreach ($orderCollection as $order) {\n $isTriggered = $order->getUrbitTriggered();\n\n if (isset($isTriggered) && $isTriggered == 'false') {\n $orderUpdateCheckoutTime = $order->getUrbitUpdateCheckoutTime();\n\n if (isset($orderUpdateCheckoutTime) && $orderUpdateCheckoutTime != \"\" && (int)$orderUpdateCheckoutTime <= $nowTimestamp) {\n $this->sendUpdateCheckout($order->getId());\n $order->setData('urbit_triggered', 'true');\n $order->save();\n }\n }\n }\n }", "function getUserBadges($userObj){\n\t if (isset($_SESSION[\"TOKEN\"])) {\n\n\t }\n }", "public function checkForFollowUpClicked()\n {\n $now = Carbon::now();\n $logs = $this->getClickedMessagesToFollow();\n\n foreach($logs as $log) {\n if ($now->gte($log->created_at->copy()->modify($this->getDelayInterval()))) {\n MailLog::info(sprintf('Trigger sending follow-up clicked email for automation `%s`, subscriber: %s, event ID: %s, message ID: %s', $this->automation->name, $log->subscriber_id, $this->id, $log->message_id));\n $this->fire(collect([$log->subscriber]));\n // a more verbal way is: fire(Subscriber::where('id', $log->subscriber_id)\n }\n }\n }", "public function handlePush()\n {\n // We only care about push events\n if ($this->request->header('X-GitHub-Event') !== 'push') {\n return false;\n }\n\n $payload = $this->request->json();\n\n // Github sends a payload when you close a pull request with a non-existent commit.\n if ($payload->has('after') && $payload->get('after') === '0000000000000000000000000000000000000000') {\n return false;\n }\n\n $head = $payload->get('head_commit');\n $branch = preg_replace('#refs/(tags|heads)/#', '', $payload->get('ref'));\n\n return [\n 'reason' => trim($head['message']),\n 'branch' => $branch,\n 'source' => 'Github',\n 'build_url' => $head['url'],\n 'commit' => $head['id'],\n 'committer' => $head['committer']['name'],\n 'committer_email' => $head['committer']['email'],\n ];\n }", "function fill_webhook_config()\n{\n # git-commit-email-checker.php will ignore any incoming POST that does\n # not come from these network blocks.\n #\n # For GitHub Enterprise, fill in the CIDR notation for your GitHub\n # server(s).\n #$config[\"allowed_sources\"] = array(\"10.10.11.0/24\", \"10.10.22.0/24\");\n #\n # For GitHub.com, as of 9 Aug 2016, according to\n # https://help.github.com/articles/what-ip-addresses-does-github-use-that-i-should-whitelist/:\n $config[\"allowed_sources\"] = array(\"192.30.252.0/22\");\n\n # Fill this in with a Github personal access token that is allowed\n # to set pull request statuses. See the README.md for more detail.\n $config[\"auth_token\"] = \"Fill me in\";\n\n # The name that will appear for this CI agent at GitHub on pull\n # requests.\n $config[\"ci-context\"] = \"Commit email checker\";\n\n # Optional: if a commit contains a boneheaded email address, link\n # to this URL\n #$config[\"ci-link-url\"] = \"http://example.com\";\n\n # You almost certainly want \"debug\" set to 0 (or unset)\n $config[\"debug\"] = 0;\n\n # These are the repos for which we are allowed to reply.\n # Valid values are:\n # - a full repo name, such as: jsquyres/email-checker-github-webhook\n # - full wildcard: *\n # - wildcard the username/org name: */email-checker-github-webhook\n # - wildcard the repo name: jsquyres/*\n # - wildcard both names: */*\n #$config[\"github\"][\"jsquyres/github-webhooks\"] = 1;\n $config[\"github\"][\"jsquyres/*\"] = 1;\n\n # GitHub API URL. Can be configured for internal / GitHub\n # Enterprise instances.\n #\n # GitHub.com: https://api.github.com\n # GHE: http[s]://YOUR_GHE_SERVER/api/v3\n #\n $config[\"api_url_base\"] = \"https://api.github.com\";\n\n #####################################################################\n # Config specific to the bozo email checker\n #####################################################################\n\n # You can define any of the \"bad\", \"good\", and/or \"hooks\" values,\n # or leave them undefined (although you probably want to define at\n # least one of them!).\n\n # Array of regular expressions used to check author/committer\n # email addresses. These are Perl-style regular expressions\n # (i.e., they are passed to the PHP function preg_match()). If\n # any of these match, fail the test.\n $config[\"bad\"] = array(\n \"/^root@/\",\n \"/localhost/\",\n \"/localdomain/\");\n\n # Array of regular expressions used to check author/committer\n # email addresses. These are Perl-style regular expressions\n # (i.e., they are passed to the PHP function preg_match()). If\n # any of these DO NOT match, fail the test (i.e., all of them must\n # match to pass the test).\n $config[\"good\"] = array(\n '/^(\\w+)\\@mydomain\\.com$/i');\n\n # Array function names to be called for each commit (i.e., any\n # custom code you want to check). Note that these hooks are only\n # called if the above good/bad checks pass.\n $config[\"hooks\"] = array(\n \"my_email_check_function\");\n\n # Return the $config variable\n return $config;\n}", "public function test_onHook_ok() {\n\t\t\t$request = array(\n\t\t\t\t'post' => array(\n\t\t\t\t\t'payload' => json_encode(array(\n\t\t\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t\t\t'author' => 'ph',\n\t\t\t\t\t\t'log' => 'commit message',\n\t\t\t\t\t), true),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$ret = $this->instance->onHook($request);\n\n\t\t\t$this->assertTrue($ret['ok']);\n\n\t\t\t$expected = array(array(\n\t\t\t\t'channel' => '#test',\n\t\t\t\t'message' => array('text' => 'r126299: ph - commit message', 'mrkdwn' => false)\n\t\t\t));\n\t\t\t$this->assertEquals($expected, $this->instance->posted_messages);\n\t\t}", "private function do_commit_post()\n {\n // so will re-run 'porcelain' to get a list of files. We'll only 'git add'\n // any files supplied by the user that are in the list we get from porcelain\n // we'll then go ahead and commit them with the message supplied\n require_once 'Git-php-lib';\n $repo = Git::open('.');\n $status = $repo->porcelain();\n $git_files = array();\n foreach($status as $item) {\n $git_files[$item['file']] = $item['y'];\n }\n\n $to_add = array();\n $to_rm = array();\n foreach($_REQUEST['file'] as $requested_file) {\n if(array_key_exists($requested_file, $git_files)) {\n if($git_files[$requested_file] == 'D') {\n $to_rm[] = $requested_file;\n } else {\n $to_add[] = $requested_file;\n }\n }\n }\n\n $add_output = '';\n if(count($to_add) > 0) {\n try {\n $add_output = $repo->add($to_add);\n }\n catch(Exception $e) {\n $add_output = 'Failed to run git-add: ' . $e->getMessage();\n }\n }\n #$add_output = preg_replace('/\\r?\\n\\r?/', \"<br>\\n\", $add_output);\n if(count($to_rm) > 0) {\n $rm_output = '';\n try {\n $rm_output = $repo->rm($to_rm);\n }\n catch(Exception $e) {\n $rm_output = 'Failed to run git-rm: ' . $e->getMessage();\n }\n }\n\n $commit_output = '';\n try {\n $commit_output = $repo->commit($_REQUEST['message'], false);\n }\n catch(Exception $e) {\n $commit_output = 'Failed to run git-commit: ' . $e->getMessage();\n }\n #$commit_output = preg_replace('/\\r?\\n\\r?/', \"<br>\\n\", $add_output);\n\n if(file_exists('./plugins/pico_edit/commitresponse.html')) {\n $loader = new Twig_Loader_Filesystem('./plugins/pico_edit');\n $twig = new Twig_Environment($loader, array('cache' => null));\n $twig->addExtension(new Twig_Extension_Debug());\n $twig_vars = array(\n 'add' => $add_output,\n 'rm' => $rm_output,\n 'commit' => $commit_output,\n );\n $content = $twig->render('commitresponse.html', $twig_vars);\n die($content);\n } else {\n die('Sorry, commitresponse.html was not found in the backend plugin. This is an installation problem.');\n }\n }", "public function afterCallActionHandler()\n\t{\n\t\t$committer = AssetCommitterFactory::getCommitter();\n\n\t\t// Check if there are any pushable commits\n\t\tif ($committer->isPushingEnabled() && $committer->hasCreatedNewCommits())\n\t\t{\n\t\t\t$committer->PushToRemoteRepository();\n\t\t}\n\t}", "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }\n\n // If the webhook was called without any auth header, throw another error\n if (!isset($_SERVER['HTTP_AUTHORIZATION']) || empty($_SERVER['HTTP_AUTHORIZATION'])) {\n die(json_encode([\n 'success' => false,\n 'error' => 'no_auth_header',\n ]));\n }\n\n if($_SERVER['HTTP_AUTHORIZATION'] != Config::i()->getSXApiKey()){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_auth',\n ]));\n }\n }", "public function checkAgreementSigned($request)\n {\n if( $request->filled('meta.participant_signature') ){\n \\App\\Participant::where('participants_details.user_id', (int)$request->input('user_id'))\n ->update(['agreement_signed' => 1]);\n }\n\n if( $request->filled('meta.worker_signature') ){\n \\App\\SupportWorker::where('support_workers_details.user_id', (int)$request->input('user_id'))->update(['agreement_signed' => 1, 'onboarding_step'=>2]);\n }\n\n if($request->filled('meta.worker_signature')){\n \\App\\ServiceProvider::where('service_provider_details.user_id', (int)$request->input('user_id'))\n ->update(['agreement_signed' => 1]);\n }\n \n }", "function ihc_run_check_verify_email_status(){\n\t$time_limit = (int)get_option('ihc_double_email_delete_user_not_verified');\n\tif ($time_limit>-1){\n\t\t$time_limit = $time_limit * 24 * 60 * 60;\n\t\tglobal $wpdb;\n\t\t$data = $wpdb->get_results(\"SELECT user_id FROM \" . $wpdb->prefix . \"usermeta\n\t\t\t\t\t\t\t\t\t\tWHERE meta_key='ihc_verification_status'\n\t\t\t\t\t\t\t\t\t\tAND meta_value='-1';\");\n\t\tif (!empty($data)){\n\n\t\t\tif (!function_exists('wp_delete_user')){\n\t\t\t\trequire_once ABSPATH . 'wp-admin/includes/user.php';\n\t\t\t}\n\n\t\t\tforeach ($data as $k=>$v){\n\t\t\t\tif (!empty($v->user_id)){\n\t\t\t\t\t$time_data = $wpdb->get_row(\"SELECT user_registered FROM \" . $wpdb->prefix . \"users\n\t\t\t\t\t\t\tWHERE ID='\" . $v->user_id . \"';\");\n\t\t\t\t\tif (!empty($time_data->user_registered)){\n\t\t\t\t\t\t$time_to_delete = strtotime($time_data->user_registered)+$time_limit;\n\t\t\t\t\t\tif ( $time_to_delete < time() ){\n\t\t\t\t\t\t\t//delete user\n\t\t\t\t\t\t\twp_delete_user( $v->user_id );\n\t\t\t\t\t\t\t$wpdb->query(\"DELETE FROM \" . $wpdb->prefix . \"ihc_user_levels WHERE user_id='\" . $v->user_id . \"';\");\n\t\t\t\t\t\t\t//send notification\n\t\t\t\t\t\t\tihc_send_user_notifications($v->user_id, 'delete_account');\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}\n}", "public function webhook()\n {\n $this->paymentSettings = $this->getPaymentSettings();\n $payload = file_get_contents(\"php://input\");\n $signature = (isset($_SERVER['HTTP_X_PAYSTACK_SIGNATURE']) ? $_SERVER['HTTP_X_PAYSTACK_SIGNATURE'] : '');\n /* It is a good idea to log all events received. Add code *\n * here to log the signature and body to db or file */\n if (!$signature) {\n // only a post with paystack signature header gets our attention\n exit();\n }\n // confirm the event's signature\n if ($signature !== hash_hmac('sha512', $payload, $this->paymentSettings['secret_key'])) {\n // silently forget this ever happened\n exit();\n }\n $webhook_response = json_decode($payload, true);\n if ('charge.success' != $webhook_response['event']) {\n exit;\n }\n try {\n $orderId = $this->updatePaymentStatus($webhook_response['data']['reference']);\n } catch (Exception $e) {\n // Invalid payload\n http_response_code(400);\n exit();\n }\n http_response_code(200);\n exit();\n }", "public function verifyWebhook($request)\n {\n return $request['RDG_WH_SIGNATURE'] === hash_hmac(\n 'sha256',\n $request['order']['transaction_id'] . $request['status'],\n $this->secret\n );\n }", "public function markSubmitted(): void\n {\n $user = Auth::user()->callsign;\n $uploadDate = date('n/j/y G:i:s');\n $batchInfo = $this->batchInfo ?? '';\n\n foreach ($this->bmids as $bmid) {\n $bmid->status = Bmid::SUBMITTED;\n\n /*\n * Make a note of what provisions were set\n */\n\n $showers = [];\n if ($bmid->showers) {\n $showers[] = 'set';\n }\n\n if ($bmid->earned_showers) {\n $showers[] = 'earned';\n }\n if ($bmid->allocated_showers) {\n $showers[] = 'allocated';\n }\n if (empty($showers)) {\n $showers[] = 'none';\n }\n\n $meals = [];\n if (!empty($bmid->meals)) {\n $meals[] = $bmid->meals . ' set';\n }\n if (!empty($bmid->earned_meals)) {\n $meals[] = $bmid->earned_meals . ' earned';\n }\n if (!empty($bmid->allocated_meals)) {\n $meals[] = $bmid->allocated_meals . ' allocated';\n }\n\n if (empty($meals)) {\n $meals[] = 'none';\n }\n\n /*\n * Figure out which provisions are to be marked as submitted.\n *\n * Note: Meals and showers are not allowed to be banked in the case were the\n * person earned them yet their position (Council, OOD, Supervisor, etc.) comes\n * with a provisions package.\n */\n\n $items = [];\n if ($bmid->effectiveShowers()) {\n $items[] = Provision::WET_SPOT;\n }\n\n if (!empty($bmid->meals) || !empty($bmid->allocated_meals)) {\n // Person is working.. consume all the meals.\n $items = [...$items, ...Provision::MEAL_TYPES];\n } else if (!empty($bmid->earned_meals)) {\n // Currently only two meal provision types, All Eat, and Event Week\n $items[] = ($bmid->earned_meals == Bmid::MEALS_ALL) ? Provision::ALL_EAT_PASS : Provision::EVENT_EAT_PASS;\n }\n\n\n if (!empty($items)) {\n $items = array_unique($items);\n Provision::markSubmittedForBMID($bmid->person_id, $items);\n }\n\n $meals = '[meals ' . implode(', ', $meals) . ']';\n $showers = '[showers ' . implode(', ', $showers) . ']';\n $bmid->notes = \"$uploadDate $user: Exported $meals $showers\\n$bmid->notes\";\n $bmid->auditReason = 'exported to print';\n $bmid->batch = $batchInfo;\n $bmid->saveWithoutValidation();\n }\n }", "function _sf_send_user_publish_note($new_status, $old_status, $post) {\n\t\tif($post->post_type == 'spot') {\n\t\t\t\n\t\t\t$user = get_user_by('id', $post->post_author);\n\t\t\t\n\t\t\t//// IF THIS POST IS BEING PUBLISHED AND THE AUTHOR IS A SUBMITTER\n\t\t\tif($old_status != 'publish' && $new_status == 'publish' && isset($user->caps['submitter'])) {\n\t\t\t\t\n\t\t\t\t//// SENDS AN EMAIL SAYING HIS POST HAS BEEN SUBMITTED\n\t\t\t\t$message = sprintf2(__(\"Dear %user,\n\t\t\t\t\nThis is to inform you that your submission %title at %site_name has been approved and it is now published.\n\nYou can view it here at %link\n\nKind regards,\nthe %site_name team.\", 'btoa'), array(\n\t\t\t\n\t\t\t\t\t'user' => $user->display_name,\n\t\t\t\t\t'title' => $post->post_title,\n\t\t\t\t\t'site_name' => get_bloginfo('name'),\n\t\t\t\t\t'link' => get_permalink($post->ID),\n\t\t\t\t\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\t$subject = sprintf2(__('Submission approved at %site_name', 'btoa'), array('site_name' => get_bloginfo('name')));\n\t\t\t\t\n\t\t\t\t$headers = \"From: \".get_bloginfo('name').\" <\".get_option('admin_email').\">\";\n\t\t\t\t\n\t\t\t\twp_mail($user->user_email, $subject, $message, $headers);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t///// IF ITS A SPOT\n\t\t\tif($post->post_type == 'spot') {\n\t\t\t\t\n\t\t\t\tif(ddp('future_notification') == 'on' && $old_status != 'publish' && $new_status == 'publish') {\n\t\t\t\t\t\n\t\t\t\t\t//// ALSO CHECKS FOR USER NOTIFICATIONS FOR MATCHING CRITERIA\n\t\t\t\t\tif(function_exists('_sf_check_for_user_notifications_matching_spot')) { _sf_check_for_user_notifications_matching_spot($post->ID); }\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//// IF ITS BEING PUBLISHED AND WE HAVE AN EXPIRY DATE SET\n\t\t\t\tif($old_status != 'publish' && $new_status == 'publish' && ddp('submission_days') != '' && ddp('submission_days') != '0') {\n\t\t\t\t\t\n\t\t\t\t\t//// SETS UP OUR CRON JOB TO PUT IT BACK TO PENDING IN X AMOUNT OF DAYS\n\t\t\t\t\t_sf_set_spot_expiry_date($post);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//// IF ITS BEING PUBLISHED AND WE HAVE AN EXPIRY DATE SET FOR OUR FEATURED SUBMISSION - AND ITS INDEED FEATURED\n\t\t\t\tif($old_status != 'publish' && $new_status == 'publish' && ddp('price_featured_days') != '' && ddp('price_featured_days') != '0' && get_post_meta($post->ID, 'featured', true) == 'on') {\n\t\t\t\t\t\n\t\t\t\t\t//// SETS UP OUR CRON JOB TO PUT IT BACK TO NORMAL SUBMISSION AFTER X DAYS\n\t\t\t\t\t_sf_set_spot_expiry_date_featured($post);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "function um_add_security_checks( $args ) {\r\n\tif ( is_admin() ) {\r\n\t\treturn;\r\n\t} ?>\r\n\r\n\t<input type=\"hidden\" name=\"timestamp\" class=\"um_timestamp\" value=\"<?php echo current_time( 'timestamp' ) ?>\" />\r\n\r\n\t<p class=\"<?php echo UM()->honeypot; ?>_name\">\r\n\t\t<label for=\"<?php echo UM()->honeypot . '_' . $args['form_id']; ?>\"><?php _e( 'Only fill in if you are not human' ); ?></label>\r\n\t\t<input type=\"text\" name=\"<?php echo UM()->honeypot; ?>\" id=\"<?php echo UM()->honeypot . '_' . $args['form_id']; ?>\" class=\"input\" value=\"\" size=\"25\" autocomplete=\"off\" />\r\n\t</p>\r\n\r\n\t<?php\r\n}", "function onAfterWrite() {\n\t\t$bt = defined('DB::USE_ANSI_SQL') ? \"\\\"\" : \"`\";\n\n\t\tif(!$this->owner->ApproverGroups()->Count() && $this->owner->CanApproveType == 'OnlyTheseUsers') {\n\t\t\t$SQL_group = Convert::raw2sql('site-content-approvers');\n\t\t\t$groupCheckObj = DataObject::get_one('Group', \"{$bt}Code{$bt} = '{$SQL_group}'\");\n\t\t\tif($groupCheckObj) $this->owner->ApproverGroups()->add($groupCheckObj);\n\t\t}\n\t\t\n\t\tif(!$this->owner->PublisherGroups()->Count() && $this->owner->CanPublishType == 'OnlyTheseUsers') {\n\t\t\t$SQL_group = Convert::raw2sql('site-content-publishers');\n\t\t\t$groupCheckObj = DataObject::get_one('Group', \"{$bt}Code{$bt} = '{$SQL_group}'\");\n\t\t\tif($groupCheckObj) $this->owner->PublisherGroups()->add($groupCheckObj);\n\t\t}\n\t}", "public function check_for_license_updates() {\n\n\t\t$aggregator = tribe( 'events-aggregator.main' );\n\t\t$aggregator->pue_checker->check_for_updates();\n\n\t}", "public function getPostCommitHookList() {}", "function cancelCommit()\n{\n global $user;\n $UID = $user->uid;\n $params = drupal_get_query_parameters();\n $OID = $params['OID'];\n\n // removing user's commitment from the outreach completely\n dbRemoveUserFromOutreach($UID,$OID);\n drupal_set_message(\"Your commitment to outreach event: \" . dbGetOutreachname($OID) . \" has been removed!\"); //letting them know and redirecting user to the previous page they were on\n drupal_goto($_SERVER['HTTP_REFERER']);\n}", "protected function checkDiffs() {\n $status = $this->terminal->run($this->git->status());\n \n if (strpos($status, 'nothing to commit') === false)\n {\n \n $this->output->write('<info>Changes found</info>');\n $this->output->write(PHP_EOL);\n // Show diff\n $this->output->writeln($this->terminal->ignoreError()->run($this->git->diff())); \n \n $message = $this->dialog->ask(\n $this->output,\n '<question>You have uncommitted changes, please provide a commit message:</question> '\n );\n\n $this->terminal->run($this->git->add('-A .'));\n \n $this->terminal->ignoreError()->run($this->git->commit($message));\n \n } else {\n $this->output->write('<info>Ok</info>' . PHP_EOL);\n }\n }", "public function checkForFollowUpOpened()\n {\n $now = Carbon::now();\n $logs = $this->getOpenedMessagesToFollow();\n foreach($logs as $log) {\n if ($now->gte($log->created_at->copy()->modify($this->getDelayInterval()))) {\n MailLog::info(sprintf('Trigger sending follow-up opened email for automation `%s`, subscriber: %s, event ID: %s', $this->automation->name, $log->subscriber_id, $this->id));\n $this->fire(collect([$log->subscriber]));\n // a more verbal way is: fire(Subscriber::where('id', $log->subscriber_id)\n }\n }\n }", "function notification_ignore() {\n\n $ignore_key = CUSTOM_LOGIN_OPTION . '_ignore_announcement';\n\n // Bail if not set\n if ( ! isset( $_GET[ $ignore_key ] ) ) {\n return;\n }\n\n // Check nonce\n check_admin_referer( $ignore_key, $ignore_key );\n\n // If user clicks to ignore the notice, add that to their user meta\n add_user_meta( get_current_user_id(), $ignore_key, 1, true );\n }", "function cover_session_in_committee($committee) {\n return in_array(strtolower($committee), cover_session_get_committees());\n}", "public function checkForListUnsubscription()\n {\n $now = Carbon::now();\n $subscribers = $this->getUnsubscribersToFollow();\n\n foreach ($subscribers as $subscriber) {\n if ($now->gte($subscriber->unsubscribed_at->copy()->modify($this->getDelayInterval()))) {\n MailLog::info(sprintf('Trigger sending follow-up unsubscribed email for automation `%s`, subscriber ID: %s, event ID: %s, message ID: %s', $this->automation->name, $subscriber->id, $this->id, $subscriber->message_id));\n $this->fire(collect([$subscriber]));\n // a more verbal way is: fire(Subscriber::where('id', $log->subscriber_id)\n }\n }\n }", "protected function checkPostProcHook() {\n\t\t$hooking = implode('</li><li>',$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output']);\n\t\t$hookCount = count($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output']);\n\n\t\tif($hookCount > 1) {\n\t\t\t$this->reports[] = t3lib_div::makeInstance('tx_reports_reports_status_Status',\n\t\t\t\t'Hook: contentPostProc-output', // title\n\t\t\t\tsprintf('%d classes use this hook', $hookCount),\n\t\t\t\t'Make sure the classes calling the hook don\\'t influence each other negatively:<br /><ol><li>'.$hooking.'</li></ol>' , //message\n\t\t\t\ttx_reports_reports_status_Status::INFO //severity\n\t\t\t);\n\t\t} else {\n\t\t\t$this->reports[] = t3lib_div::makeInstance('tx_reports_reports_status_Status',\n\t\t\t\t'Hook: contentPostProc-output', // title\n\t\t\t\t'OK',\n\t\t\t\tTx_CzWkhtmltopdf_Config::EXTKEY.' is the only extension using this hook.' , //message\n\t\t\t\ttx_reports_reports_status_Status::OK //severity\n\t\t\t);\n\t\t}\n\t}", "public function verifyLogsImpressionsEventsDispatched(): void\n {\n // 💡️ Be sure that your FLAG_KEYS array above includes A/B Test eg \"product_version\"\n $logger = new DefaultLogger(Logger::DEBUG);\n $localOptimizelyClient = new Optimizely(datafile: null, logger: $logger, sdkKey: SDK_KEY);\n $localUserContext = $localOptimizelyClient->createUserContext($this->userId);\n\n // review the DEBUG output, ensuring you see an impression log for each experiment type in your FLAG_KEYS\n // \"Dispatching impression event to URL https://logx.optimizely.com/v1/events with params...\"\n // ⚠️ Your Rollout type flags should not have impression events\n $localUserContext->decideForKeys(FLAG_KEYS);\n }", "private function processWebHook() {\n\t\t\n\t\t// If there is a user ID, add it to the global scope for access\n\t\tif ( isset($this->decodedWebhook['originalRequest']['data']['user']['userId']) ) {\n\t\t\t$this->googleUserId = $this->decodedWebhook['originalRequest']['data']['user']['userId'];\n\t\t}\n \n }", "function doAuthorizationChecks() \n\t{\n\t\tif (API_Operation::$docs_mode)\n\t\t\treturn API_Operation::$docs_mode->addOperationNote(\"This operation does not require the user to be authenticated.\");\n\t}", "function doAuthorizationChecks() \n\t{\n\t\tif (API_Operation::$docs_mode)\n\t\t\treturn API_Operation::$docs_mode->addOperationNote(\"This operation does not require the user to be authenticated.\");\n\t}", "public function processPendingAuthorLabel(Payload $payload): void\n {\n if (!$payload->action()->equalsOneOf([\n Action::CREATED(),\n Action::SYNCHRONIZE(),\n ])) {\n return;\n }\n\n if (!$payload->isTheCommentFromTheAuthor()) {\n return;\n }\n\n $this->issues->removeLabel(\n Repository::fromIncomingWebhookPayload($payload),\n $payload->issue(),\n Label::PendingAuthor()\n );\n }", "public function check_for_webhook() {\n\t\tif ( ( 'POST' !== $_SERVER['REQUEST_METHOD'] )\n\t\t\t|| ! isset( $_GET['wc-api'] )\n\t\t\t|| ( 'wc_stripe' !== $_GET['wc-api'] )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t$request_body = file_get_contents( 'php://input' );\n\t\t$request_headers = array_change_key_case( $this->get_request_headers(), CASE_UPPER );\n\n\t\t// Validate it to make sure it is legit.\n\t\tif ( $this->is_valid_request( $request_headers, $request_body ) ) {\n\t\t\t$this->process_webhook( $request_body );\n\t\t\tstatus_header( 200 );\n\t\t\texit;\n\t\t} else {\n\t\t\tWC_Stripe_Logger::log( 'Incoming webhook failed validation: ' . print_r( $request_body, true ) );\n\t\t\tstatus_header( 400 );\n\t\t\texit;\n\t\t}\n\t}", "function can_submit_brief_project_proposal(ProjectRequest $projectRequest)\n {\n return in_array(auth()->user()->id, $projectRequest->projectRequestReceivers->pluck('receiver')->toArray());\n }", "protected function giveBadgesForThisCommit( \\Iterator $badges, Commit $commit )\r\n\t{\r\n\t\tforeach ( $badges as $badge )\r\n\t\t{\r\n\t\t\t$commit->setIn_game( 1 );\r\n\t\t\tif ( $badge->check( $commit ) )\r\n\t\t\t{\r\n\t\t\t\t$commit->getAuthor()->addBadge( $badge );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected function onAfterUnlock($ignored = array())\n\t{\n\t\t$this->ignorePreSaveChecks = false;\n\t}", "private function accountForAllDependenciesToBeReleased()\n {\n $allAccountedFor = false;\n do {\n $allAccountedFor = true;\n // each repo requiring a release\n foreach ($this->toBeReleased as $releasableRepoName) {\n // all repositories not added to release yet\n foreach ($this->repos as $repoName => $repo) {\n if (empty($repo->getDependencies()) || in_array($repoName, $this->toBeReleased)) {\n continue;\n }\n\n if (in_array($releasableRepoName, $repo->getDependencies())\n && !in_array($repoName, $this->toBeReleased)\n ) {\n $allAccountedFor = false;\n $this->toBeReleased[] = $repoName;\n if ($repoName === $this->mainRepoName) {\n $this->msg(\"$repoName needs a new release because it is the main repository\");\n } else {\n $this->msg(\"$repoName needs a new release because $releasableRepoName is released\");\n }\n }\n }\n }\n } while ($allAccountedFor = false);\n }", "public function test_onHook_missing_data() {\n\t\t\t$request = array(\n\t\t\t\t'post' => array(\n\t\t\t\t\t'payload' => json_encode(array(\n\t\t\t\t\t\t'author' => 'ph',\n\t\t\t\t\t\t'log' => 'commit message',\n\t\t\t\t\t), true),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$ret = $this->instance->onHook($request);\n\n\t\t\t$this->assertFalse($ret['ok']);\n\t\t\t$this->assertEquals($ret['error'], \"invalid_payload\");\n\t\t}", "function checkAuthors () {\n\t\tif ( count ( $this->authors) == 0 ) return ;\n\t\n\t\tif ( isset($this->existing_q) ) {\n\t\t\t$this->wd->loadItem ( $this->existing_q ) ;\n\t\t\t$i = $this->wd->getItem ( $this->existing_q ) ;\n\t\t\t$c1 = $i->getClaims ( $this->props['author'] ) ;\n\t\t\t$c2 = $i->getClaims ( $this->props['short author'] ) ;\n\t\t\t$this->invalidateExistingAuthors ( $c1 ) ;\n\t\t\t$this->invalidateExistingAuthors ( $c2 ) ;\n\t\t\t\n\t\t\t// Special case: Single author, one author already in item...\n\t\t\tif ( count($this->authors) == 1 && count($c1)+count($c2) == 1 ) {\n\t\t\t\t$this->authors[1]->hadthat = true ;\n\t\t\t}\n\t\t}\n\t}", "public function doesCheckModifyAccessListHookGetsCalled() {}", "public function actionOrganizersAlert(){\n\t\t$startDate = new \\Datetime();\n\t\t$startDate->modify('next friday');\n\n\t\t\n\t\t$events = $this->getEvents( 9 , self::ALL_FILTER, $startDate );\n\t\t$events_per_email = array();\n\n \tforeach ($events as $event) {\n \t\t// var_dump($event);\n \t\t// Official creator of the event\n \t\tif( isset($event['email']) ){\n \t\t\t$email = $event['email'];\n \t\t\t$emails[ $email ] = $email;\n \t\t\t$events_per_email[$email][$event['id']] = $event;\n \t\t}\n \t\t\n \t\t// Mailto in the event\n \t\tif( isset($event['description']) ){\n \t\t\t$event_html = $event['description'];\n \t\t\t// preg_match_all(\"#mailto:([a-z0-9\\.\\-\\_]*@[a-z0-9\\.\\_\\-]*)#\",$event_html,$matches1,PREG_SET_ORDER);\n\t\t\t\tpreg_match_all('/[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b/i',$event_html,$matches,PREG_SET_ORDER);\n\n\t\t\t\tif($matches){\n\t\t\t\t\tforeach($matches as $match){\n\t\t\t\t\t\t$email = $match[0];\n\t\t\t\t\t\tif( strlen($email) > 5 ){\n\t\t\t\t\t\t\t$emails[$email] = $email;\n\t\t\t\t\t\t\t$events_per_email[$email][$event['id']] = $event;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n \t\t}\n \t\t\n \t}\n\n\n \t$emails = array_filter( $emails , function($email){\n \t\t$excludes = array( '[email protected]' , '[email protected]', '[email protected]', '[email protected]');\n \t\tif( !in_array( $email, $excludes ) ){\n \t\t\treturn true;\n \t\t}\n \t\treturn false;\n \t} );\n\n \tvar_dump(array_values($emails));\n \t// die();\n \tforeach ($emails as $email) {\n \t\tYii::$app->mailer->compose('alert',[ 'events' => $events_per_email[$email]])\n\t ->setFrom('[email protected]')\n\t ->setBcc('[email protected]')\n\t \t->setTo($email)\n\t ->setSubject('Milonga.be : please check your events')\n\t ->send();\n \t}\n\t}", "function getCommitsAfter($commit) {\n\t\t$sql = \"SELECT `commit` \" . \"FROM `\" . $this->tableName . \"` \" . \"WHERE `user_id` = ? AND `commit` = ? LIMIT 1;\";\n\t\t$givenCommit = $this->findEntities($sql, [$this->userId, $commit]);\n\n\t\t// The given commit is found, all fine.\n\t\tif (count($givenCommit) > 0) {\n\t\t\t$sql =\n\t\t\t\t\"SELECT * \" .\n\t\t\t\t\"FROM `\" .\n\t\t\t\t$this->tableName .\n\t\t\t\t\"` \" .\n\t\t\t\t\"WHERE `user_id` = ? AND `created` >\" .\n\t\t\t\t\" (SELECT `created` FROM `\" .\n\t\t\t\t$this->tableName .\n\t\t\t\t\"` WHERE `commit` = ? LIMIT 1) \" .\n\t\t\t\t\"ORDER BY `created`;\";\n\t\t\t$commits = array_map(function ($commit) {\n\t\t\t\treturn $commit->toString();\n\t\t\t}, $this->findEntities($sql, [$this->userId, $commit]));\n\t\t} else {\n\t\t\t// The given commit is unknown. All commits are applicable.\n\t\t\t$sql = \"SELECT * \" . \"FROM `\" . $this->tableName . \"` \" . \"WHERE `user_id` = ? \" . \"ORDER BY `created`;\";\n\t\t\t$commits = array_map(function ($commit) {\n\t\t\t\treturn $commit->toString();\n\t\t\t}, $this->findEntities($sql, [$this->userId]));\n\t\t}\n\t\treturn $commits;\n\t}", "private function checkEventNotBookedByCreator(){\n $event = Event::find($this->id);\n\n return($event->host != Auth::id());\n }", "public function webhook()\n {\n $bodyReceived = file_get_contents('php://input');\n\n // Receive HTTP headers that you received from PayPal webhook.\n $headers = getallheaders();\n\n /**\n * Uppercase all the headers for consistency\n */\n $headers = array_change_key_case($headers, CASE_UPPER);\n\n $signatureVerification = new \\PayPal\\Api\\VerifyWebhookSignature();\n $signatureVerification->setWebhookId(env('PAYPAL_WEBHOOK_ID'));\n $signatureVerification->setAuthAlgo($headers['PAYPAL-AUTH-ALGO']);\n $signatureVerification->setTransmissionId($headers['PAYPAL-TRANSMISSION-ID']);\n $signatureVerification->setCertUrl($headers['PAYPAL-CERT-URL']);\n $signatureVerification->setTransmissionSig($headers['PAYPAL-TRANSMISSION-SIG']);\n $signatureVerification->setTransmissionTime($headers['PAYPAL-TRANSMISSION-TIME']);\n\n $webhookEvent = new \\PayPal\\Api\\WebhookEvent();\n $webhookEvent->fromJson($bodyReceived);\n $signatureVerification->setWebhookEvent($webhookEvent);\n $request = clone $signatureVerification;\n\n try {\n $output = $signatureVerification->post($this->apiContext);\n } catch(\\Exception $ex) {\n print_r($ex->getMessage());\n exit(1);\n }\n\n $verificationStatus = $output->getVerificationStatus();\n $responseArray = json_decode($request->toJSON(), true);\n\n $event = $responseArray['webhook_event']['event_type'];\n\n if ($verificationStatus == 'SUCCESS')\n {\n switch($event)\n {\n case 'BILLING.SUBSCRIPTION.CANCELLED':\n case 'BILLING.SUBSCRIPTION.SUSPENDED':\n case 'BILLING.SUBSCRIPTION.EXPIRED':\n case 'BILLING_AGREEMENTS.AGREEMENT.CANCELLED':\n\n // $user = User::where('payer_id',$responseArray['webhook_event']['resource']['payer']['payer_info']['payer_id'])->first();\n $this->updateStatus($responseArray['webhook_event']['resource']['payer']['payer_info']['payer_id'], 0);\n break;\n }\n }\n echo $verificationStatus;\n exit(0);\n }", "private function dispatchDigestNotification() : void\n {\n foreach ($this->users as $user) {\n if (!$user->unreadNotifications->isEmpty()) {\n dispatch((new SendUnreadDigestJob($user)));\n }\n }\n }", "public function makeCheck_Out()\n {}", "public function checkOut($params = array())\r\n {\r\n $actionType = $params['actionType'];;\r\n $cancelUrl = $params['cancelUrl'];//\"http://localhost\"; \r\n $returnUrl = $params['returnUrl']; \r\n $startingDate = \"\"; \r\n \r\n $currencyCode = $params['currencyCode'];\r\n $receiverEmailArray = array();\r\n $receiverAmountArray = array();\r\n $receiverInvoiceIdArray = array();\r\n foreach($params['receivers'] as $rc)\r\n {\r\n $receiverEmailArray[] = $rc['email'];\r\n $receiverAmountArray[] = $rc['amount'];\r\n $receiverInvoiceIdArray[] = $rc['invoice'];\r\n }\r\n \r\n $receiverPrimaryArray = array();\r\n $senderEmail = $params['sender']; \r\n /**\r\n * feesPayer value {SENDER, PRIMARYRECEIVER, EACHRECEIVER}\r\n * \r\n * @var mixed\r\n */\r\n $feesPayer = $params['feesPayer']; \r\n $ipnNotificationUrl = $params['ipnNotificationUrl'];\r\n $memo = $params['memo']; \r\n $pin = $params['pin']; \r\n $preapprovalKey = $params['preapprovalKey'];\r\n //echo $preapprovalKey;\r\n $reverseAllParallelPaymentsOnError = $params['reverseAllParallelPaymentsOnError']; \r\n $trackingId = $this->generateTrackingID(); \r\n $resArray = $this->CallPay ($actionType, $cancelUrl, $returnUrl, $currencyCode, $receiverEmailArray,\r\n $receiverAmountArray, $receiverPrimaryArray, $receiverInvoiceIdArray,\r\n $feesPayer, $ipnNotificationUrl, $memo, $pin, $preapprovalKey,\r\n $reverseAllParallelPaymentsOnError, $senderEmail, $trackingId,$startingDate\r\n );\r\n \r\n\r\n \r\n $ack = strtoupper($resArray[\"responseEnvelope.ack\"]);\r\n \r\n if($ack==\"SUCCESS\")\r\n {\r\n if (\"\" == $preapprovalKey)\r\n {\r\n // redirect for web approval flow\r\n $cmd = \"cmd=_ap-payment&paykey=\" . urldecode($resArray[\"payKey\"]);\r\n //$cmd = \"cmd=_notify-validate&paykey=\" . urldecode($resArray[\"payKey\"]);\r\n \r\n $this->Redirect($cmd);\r\n }\r\n else\r\n {\r\n \r\n // payKey is the key that you can use to identify the result from this Pay call\r\n $payKey = urldecode($resArray[\"payKey\"]);\r\n // paymentExecStatus is the status of the payment\r\n $paymentExecStatus = urldecode($resArray[\"paymentExecStatus\"]);\r\n } \r\n \r\n }\r\n else\r\n {\r\n $ErrorCode = urldecode($resArray[\"error(0).errorId\"]);\r\n $ErrorMsg = urldecode($resArray[\"error(0).message\"]);\r\n $ErrorDomain = urldecode($resArray[\"error(0).domain\"]);\r\n $ErrorSeverity = urldecode($resArray[\"error(0).severity\"]);\r\n $ErrorCategory = urldecode($resArray[\"error(0).category\"]);\r\n $this->errors = $ErrorCode.':'.$ErrorMsg.' '.$ErrorDomain.' '.$ErrorSeverity.' '.$ErrorCategory;\r\n $this->logging('checkOut Error : '. $this->errors); \r\n return false;\r\n } \r\n \r\n }", "function isSubmittedBy();", "function notify_reviewer( $post_ID, $post, $dowhat='publish' ) {\n\t\t\tglobal $wpdb, $current_user;\n\t\t\t$last_revision = $wpdb->get_var( $wpdb->prepare( \"SELECT ID FROM $wpdb->posts WHERE post_parent=%d AND post_type=%s ORDER BY post_date DESC LIMIT 1\", $post_ID, 'revision' ) );\n\t\t\t$post_content = 'draft' == $dowhat ? get_post( $last_revision ) : get_post( $post_ID );\n\t\t\t$last_mod = $post_content->post_date;\n\t\t\t$post_content = $post_content->post_content;\n\t\t\t$revision_compare_link = admin_url( 'revision.php?action=diff&post_type=' . $post->post_type . '&right=' . $post->ID . '&left=' . $last_revision );\n\t\t\t$body = sprintf( __( \"New changes have been made to \\\"%s\\\" at <%s>. \", $this->text_domain ), $post->post_title, get_permalink( $post->ID ) );\n\t\t\tif( 'draft' == $dowhat ) {\n\t\t\t\t$body .= __( \"The author has requested that you review the new changes and determine whether to remove or approve them. These changes will not appear on the public website until you approve them.\\n\\n\", $this->text_domain );\n\t\t\t} else {\n\t\t\t\t$body .= __( \"The modifications have been published, but the author of the page has requested you be notified of them.\\n\\n\", $this->text_domain );\n\t\t\t}\n\t\t\t$body .= sprintf( __( \"The new content of the page is shown below if you would like to review it. You can also review %s the changes at %s. Thank you. \\n\\n======================================================= \\nRevisions made at %s \\n======================================================= \\n\\n%s\", $this->text_domain ), ( 'draft' == $dowhat ? __( \" and approve/reject \", $this->text_domain ) : '' ), $revision_compare_link, $last_mod, $post_content );\n\t\t\t\n\t\t\t$headers = \"From: {$current_user->display_name} <{$current_user->user_email}>\\r\\n\";\n\t\t\t\n\t\t\twp_mail( $this->reviewers, sprintf( __( '[%s] New modifications to %s' ), get_bloginfo('name'), $post->post_title ), $body, $headers );\n\t\t}", "private function btn_approve_reject(){\n\n // Skip the unduly cases\n if ($not_my_case = (VM::outOfScope()\n\t\t\t|| !$this->isWritable() \n\t\t\t|| ($this->rec['v_type'] == VISIT_OUT_OF_SCOPE) \n\t\t\t|| !in_array($this->doing,array('lists','budget',)) \n\t\t\t)){\n $this->dbg('not my case? '.($not_my_case ? 'YES' : 'NO'));\n return array('','');\n }\n\n // The event is endorsed (i.e. changes are locked), show only pending applicants and return\n if(0) if (VM::isEventEndorsed() || ($this->rec['v_end'] < time())){\n\tif (False){ // ? Strange... To be changed?\n\t $reply = array('');\n\t if ($this->fnc_beslut) $reply[] = $this->highlights['fnc'][$this->fnc_beslut]['i'];\n\t else $reply[] = '';\n\t if (stripos(serialize($reply),'send mail') !== False) b_debug::var_dump('fnc_beslut',$this->fnc_beslut,date('Y-m-d',$this->rec['v_end']),$reply);\n\t if (stripos(serialize($reply),'send mail') !== False) b_debug::internalError();\n\t}else{ \n\t $reply = array('','');\n\t}\n\t// $t = $reply; array_unshift($t,2,$this->rec['v_id']); $this->dbg($t,True);\n\treturn $reply;\n }\n\n bTiming()->cpu(__function__);\n\n // \n // See what should we do, depends on the visit status \n //\n $reply = array('','');\n $v_status = bForm_vm_Visit::_getStatus($this->rec,$check_clashes=True);\n switch($v_status){\n \n case STATUS_CLASH:\n break;\n\n case STATUS_NO: \n $this->rec['_a_name'] = $this->rec['_o_name'] = '';\n switch ($this->rec['v_type']){\n case VISIT_TYPE_RENT:\n case VISIT_OUT_OF_SCOPE:\n\tbreak;\n\t\n case VISIT_TYPE_OTHER:\n case VISIT_TYPE_COLLABORATION:\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$reply = (VM::hasRightTo('approve_guest_invitation',$this->v)\n\t\t ? array('','') \n\t\t : array('',$this->say('Ni')));\n\tbreak;\n\t\n case VISIT_TYPE_PROGRAM: \n\t$reply = (VM::hasRightTo('approve_registrant_application')\n\t\t ? array('',$this->say('NY'))\n\t\t : array('',$this->say('Ni')));\n }\n break;\n \n case STATUS_PENDING:\n if (@$this->rec['_a_name'] !== LODGING_OA_TXT) $this->rec['_a_name'] = $this->rec['_o_name'] = '';\n switch ($this->rec['v_type']){\n case VISIT_TYPE_RENT: // auto-accept the rents\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$this->v->setStatus(STATUS_YES);\n\t$this->v->setPolicy(VM_V_welcomeMailSent,True,False,True);\n\t$this->rec['v_status'] = STATUS_YES;\n\tbreak;\n\t\n case VISIT_OUT_OF_SCOPE:\n\tbreak 2;\n\t\n case VISIT_TYPE_OTHER:\n case VISIT_TYPE_COLLABORATION:\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$reply = (VM::hasRightTo('approve_guest_invitation',$this->v)\n\t\t ? array('','') \n\t\t : array('',$this->say('Pi')));\n\tbreak;\n\t\n case VISIT_TYPE_PROGRAM: \n\t$reply = (VM::hasRightTo('approve_registrant_application')\n\t\t ? array($this->say('Y'),\n\t\t\t $this->say('N'))\n\t\t : array('',$this->say('Pi')));\n\tbreak;\n\t\n default:\n\tb_debug::internalError('?? v_type=\"'.$this->rec['v_type'].'\"');\n }\n break;\n \n case STATUS_YES:\n switch ($this->rec['v_type']){\n case VISIT_OUT_OF_SCOPE:\n\tbreak;\n\n case VISIT_TYPE_RENT:\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$this->v->setPolicy(VM_V_welcomeMailSent,True,False,True);\n\t$this->rec['v_policy'] = $this->v->getValue('v_policy',1,1);\n\tbreak;\n\n case VISIT_TYPE_OTHER:\n case VISIT_TYPE_COLLABORATION:\n\tif (!$this->v) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$reply = (VM::hasRightTo('approve_guest_invitation',$this->v)\n\t\t ? array('','') \n\t\t : array('',$this->say('Yi')));\n\tbreak;\n\t\n case VISIT_TYPE_PROGRAM: \n\t$reply = (VM::hasRightTo('approve_registrant_application')\n\t\t ? array('',$this->say('YN'))\n\t\t : array('',$this->say('Yi')));\n\tbreak;\n }\n }\n bTiming()->cpu();\n // $t = $reply; array_unshift($t,3,$this->rec['v_id']); $this->dbg($t,True);\n return $reply;\n }", "public function Check() {\n\t\t/*\n\t\t$local = $this->getLocalVersion();\n\t\t$remote = $this->getRemoteVersion(\"check\", $local[0]['version']);\n\t\t\n\t\t$nightly = true;\n\t\t$archive = Common::getConstant('ARCHIVEURL', $this->archive);\n\t\t$latest = '';\n\t\t\n\t\tforeach ($remote as $tag) {\n\t\t\tif ($latest == '') {\n\t\t\t\t$latest = $tag[\"name\"];\n\t\t\t\t$archive = $tag[\"zipball_url\"];\n\t\t\t}\n\t\t\tif ($local[0]['version'] == $tag[\"commit\"][\"sha\"]) {\n\t\t\t\t$local[0]['version'] = $tag[\"name\"];\n\t\t\t\t$nightly = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$search = array(\"\\r\\n\", \"\\n\", \"\\r\");\n\t\t$replace = array(\" \", \" \", \" \");\n\t\t\n\t\t$message = '';\n\t\t$merge = '';\n\t\t$commits = json_decode(file_get_contents(Common::getConstant('COMMITURL', $this->commits)), true);\n\t\tforeach ($commits as $commit) {\n\t\t\tif ($local[0]['version'] != $commit[\"sha\"]) {\n\t\t\t\tif (strpos($commit[\"commit\"][\"message\"], \"Merge\") === false) {\n\t\t\t\t\t$message .= '- '.str_replace($search, $replace, $commit[\"commit\"][\"message\"]).'<br/>';\n\t\t\t\t} else {\n\t\t\t\t\t$merge .= '- '.str_replace($search, $replace, $commit[\"commit\"][\"message\"]).'<br/>';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($message == '') {\n\t\t\t$message = $merge;\n\t\t}\n\t\t*/\n\t\t\n\t\t$archive = $this->archive;\n\t\t$current_version = self::VERSION;\n\t\t$nightly = false;\n\t\t$response = $this->getRemoteVersion(\"check\");\n\t\t\n\t\tif ( $response[\"name\"] > $current_version ) {\n\t\t\t\n\t\t\t$curl = curl_init();\n\t\t\tcurl_setopt($curl, CURLOPT_URL, $this->update_file);\n\t\t\t//curl_setopt($curl, CURLOPT_POSTFIELDS, \"\");\n\t\t\tcurl_setopt($curl, CURLOPT_HEADER, 0);\n\t\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\t\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); \n\t\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);\n\t\t\tcurl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13');\n\t\t\t$content = curl_exec($curl);\n\t\t\tcurl_close($curl);\n\t\t\t\n\t\t\tunlink( \"./update.php\" );\n\t\t\tfile_put_contents( \"./update.php\", $content );\n\t\t}\n\t\t\n\t\t\n\t\t//echo var_dump( $response );\n\t\t//return \"[\".formatJSEND(\"success\", array(\"currentversion\"=>$local[0]['version'],\"remoteversion\"=>$latest,\"message\"=>$message,\"archive\"=>$archive,\"nightly\"=>$nightly,\"name\"=>$local[0]['name'])).\"]\";\n\t\treturn \"[\".formatJSEND(\"success\", array(\"currentversion\"=>$current_version,\"remoteversion\"=>$response[\"name\"],\"message\"=>$response[\"message\"],\"archive\"=>$archive,\"nightly\"=>$nightly,\"name\"=>$response[\"commit\"][\"author_name\"])).\"]\";\n\t}", "function submitted_events_process_pending_submissions($pending_submissions) {\n\tforeach ( $pending_submissions as $submission ) {\n\t\tsubmitted_events_create_event ( $submission );\n\t}\n\t// tell the user how many events were created\n\t\n\tif (sizeof ( $pending_submissions ) == 0) {\n\t\techo '<h2>No pending submissions - no events created.</h2>';\n\t} else {\n\t\t$events_created_text;\n\t\tif (sizeof ( $pending_submissions ) == 1) {\n\t\t\t$events_created_text = 'one new event';\n\t\t} else {\n\t\t\t$events_created_text = sizeof ( $pending_submissions ) . ' new events';\n\t\t}\n\t\t\n\t\techo '<h2>Created ' . $events_created_text . ' - please edit and publish when ready.</h2>\n\t\t<p>Hopefully this has saved you some work!</p>';\n\t}\n}", "function signUp_submit($form, $form_state)\n{\n global $user;\n $UID = $user->uid;\n $params = drupal_get_query_parameters();\n $OID = $params['OID'];\n $new = $form_state['new'];\n\n $fields = array(\"times\");\n $fieldsData = getFields($fields, $form_state['values']);\n \n $types = $fieldsData['times'];\n $types = array_values($types);\n\n\n if($new){ // if the user is signing up for the first time\n foreach($types as $type){\n if($type !== 0){\n\tdbAssignUserToOutreach($UID, $OID, $type); // assigning user to outreach and the various time(s) they signed up for\n }\n } \n $msgToUser = \"You've just signed up for outreach event:\";\n }\n\n if(!$new){ // user is updating the time(s)\n $previous = dbGetUserSignUpType($UID,$OID);\n $deleted = array_diff($previous, $types);\n $added = array_diff($types, $previous);\n foreach($deleted as $delete){\n if(!empty($delete)){\n\tdbRemoveCommitmentFromOutreach($UID, $OID, $delete); // removing the times the user \"unchecked\"\n }\n }\n foreach($added as $add){ // adding the times the user \"checked\"\n if(!empty($add)){\n\tdbAssignUserToOutreach($UID, $OID, $add);\n }\n }\n $msgToUser = \"Your commitment has been updated for outreach event:\";\n }\n\n // sending a notification to the appropriate user(s)\n $notification = array();\n $userName = dbGetUserName($UID);\n $outName = dbGetOutreachName($OID);\n $team = getCurrentTeam();\n $TID = $team['TID'];\n $notification['dateTargeted'] = $notification['dateCreated'] = dbDatePHP2SQL(time());\n $notification['message'] = \"$userName has just signed up for your outreach: $outName!\";\n $notification['TID'] = $TID;\n notifyOwnerOfOutreach($OID, $notification);\n\n $outreachEventLink = '<a href=\"?q=viewOutreach&OID='.$OID.'\">'.dbGetOutreachName($OID).'</a>';\n drupal_set_message(\"$msgToUser $outreachEventLink!\");\n drupal_goto('viewOutreach', array('query'=>array('OID'=>$OID)));\n}", "function pmprosl_sociallocker_tracking() {\n\tif ( ! ( int ) $_POST['targetId'] )\n\t\texit;\n\n\t// Next make sure the \"sender\" is valid\n\tif ( empty( $_POST['sender'] ) || ! in_array( $_POST['sender'], array( 'button', 'timer', 'cross' ) ) )\n\t\texit;\n\n\t// Next make sure the \"senderName\" is valid\n\tif ( empty( $_POST['senderName'] ) )\n\t\texit;\n\n\t// Finally, make sure we haven't already set the cookie\n\tif( isset( $_COOKIE['pmprosl_has_access_flag'] ) && ! $_COOKIE['pmprosl_has_access_flag'] )\n\t\texit;\n\n\t// Passed all validation checks, lets set the cookies\n\tsetcookie( 'pmprosl_has_access', PMPROSL_FREE_LEVEL_ID, ( time() + ( 60 * 60 * 24 * PMPROSL_MEMBERSHIP_PERIOD_DAYS ) ), COOKIEPATH, COOKIE_DOMAIN, false ); // has_access cookie (expires in PMPROSL_MEMBERSHIP_PERIOD_DAYS days)\n\tsetcookie( 'pmprosl_has_access_flag', true, ( time() + ( 60 * 60 * 24 * 10 * 365 ) ), COOKIEPATH, COOKIE_DOMAIN, false ); // has_access flag cookie used to verify if a user already had access once (expires in 10 years; i.e. never)\n\n\treturn; // We're returning here because we know Social Locker's hook is coming up next\n}", "function run_leaving_activity_pre()\n\t\t{\n\t\t\t//actually we never send emails when cancelling\n\t\t\treturn true;\n\t\t}", "private function checkExpirated() {\n\n }", "function SendCheckinCommentsNotifications($job, &$log){\n\t$dbHandle = DbHandler::getConnection();\n\t$user_collection = $dbHandle->users;\n $user_args= json_decode ($job->workload(), true);\n $log[] = \"Received job: \" . $job->handle() . \"\\n\";\n\n\t//args from comments\n\t$update_id = $user_args['update_id'];\n\t$listing_id = $user_args['listing_id'];\n\t$timestamp = $user_args['time'];\n\t$uid = $user_args['uid'];\n\t$users = new CreateUser();\n\t$notification = new Notifications();\n\t$comments = new CheckinComments();\n\t$comment_list = $comments->getCheckinComments($update_id, $listing_id, $timestamp);\n\t$friends_uids = array();\n\t$poke_friends = array();\n\tforeach ($comment_list as $comment){\n\t\t$commented_uid = $comment['uid'];\n\t\tif (!in_array($comment['uid'], $friends_uids) && $comment['uid'] != $uid){\n\t\t\t$friends_uids[] = intval ($comment['uid']);\n\t\t\t$poke_friends[] = \"\".$comment['uid'];\n\t\t\t$log[] = \"adding for notification \". $commented_uid;\n\t\t}\n\t}\n\n\tif ($uid != $update_id){\n\t\t$friends_uids[] = intval ($update_id); //add checked in users id too.\n\t\t$poke_friends[] = \"\".$update_id;\n\t}\n\n\t$checkedin_user = $user_collection->findOne(array('uid' => intval ($update_id)), array('name'));\n\t$checkedin_user_name = $checkedin_user['name'];\n\t$commented_user = $user_collection->findOne(array('uid' => intval ($uid)), array('name'));\n\t$commented_user_name = $commented_user['name'];\n\n\tif ($commented_user_name == $checkedin_user_name){\n\t\t$message = \"$commented_user_name commented on his checkin\";\n\t}\n\telse{\n\t\t$message = \"$commented_user_name commented on $checkedin_user_name's checkin\";\n\t}\n\n\t$device_tokens = $users->getDeviceTokens($friends_uids);\n\t$type = 7; //only push for comments on checkins\n\t$args = array ('from_id' => $uid, 'message' => $message, 'type' => $type, 'is_read' => 0);\n\t$result = $notification->insertNotification($args, $poke_friends, $device_tokens, $message, true);\n \tif ($result) {\n \t$log[] = \"Notifications successfully posted\";\n } else {\n \t$log[] = \"Error in posting notifications\";\n }\n\treturn;\n}", "public function getPreCommitHookList() {}", "public function output_commit( $args )\n\t{\n\t\t$url = 'https://github.com/' . $args['repository'] . '/commit/' . $args['commit'];\n\n\t\tob_start();\n\t\t?>\n\t\t\t<div class=\"commit\">\n\t\t\t\t<header>\n\t\t\t\t<h1>Commit by <span class=\"author\"><?php echo esc_html( $args['author'] ); ?></span> at\n\t\t\t\t\t<time>\n\t\t\t\t\t\t<?php echo human_time_diff( strtotime( $args['date'] ), time() ); ?> ago\n\t\t\t\t\t</time>\n\t\t\t\t\t(<a href=\"<?php echo esc_url( $url ); ?>\" class=\"diff\">view diff</a>)\n\t\t\t\t</h1>\n\t\t\t\t</header>\n\t\t\t\t<div class=\"body\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t$body = htmlentities( $args['body'] );\n\t\t\t\t\t\techo nl2br( $this->link_issue_hash( $body, $args['repository'] ) );\n\t\t\t\t\t?>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t\treturn ob_get_clean();\n\t}", "protected function getCheckModifyAccessListHookObjects() {}", "private function allowed_to_view_matches(){\n if(!rcp_user_can_access($this->user_id, $this->security_form_id) || !rcp_user_can_access($this->user_id, $this->defendant_id)){\n $this->error_message = esc_html__('You do not have access to this report.', 'pprsus');\n return false;\n }\n //are the variables even set\n if($this->security_form_id == '' || $this->defendant_id == '' || $this->token == ''){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n //is this a security form post type\n if(get_post_type($this->security_form_id) != 'security'){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n //does the security form or defendant belong to the current user\n $security_form_author = get_post_field('post_author', $this->security_form_id);\n if($security_form_author != $this->user_id){\n $this->error_message = esc_html__('This security report belongs to another user.', 'pprsus');\n return false;\n }\n\n $defendant_author = get_post_field('post_author', $this->defendant_id);\n if($defendant_author != $this->user_id){\n $this->error_message = esc_html__('This defendant belongs to another user.', 'pprsus');\n return false;\n }\n\n //is the token valid\n $token_from_post = get_post_meta((int)$this->security_form_id, 'secret_token', true);\n if($token_from_post != $this->token){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n return true;\n }", "function app_approved_hook($staffer_id, $first_name, $last_name, $fandom_name, $approver, $assigned_position) {\r\n\tglobal $slack_notification_domain, $slack_staff_hook_url;\r\n\t$url = $slack_staff_hook_url;\r\n\t$payload = '{\"text\": \"Application for <https://'.$slack_notification_domain.'/admin/review_staffer.php?id='.$staffer_id.'|'.$first_name.' '.$last_name.' ('.$fandom_name.')> ACCEPTED for '.$assigned_position.' by '.$approver.'\"}';\r\n\ttrigger_hook($url, $payload);\r\n}", "public function CheckOut() {\n\n\t\tif ($this->parameter_check) {\n\n\t\t\t/* DATABASE CONNECTION */\n\t\t\t$db=$GLOBALS['db'];\n\n\t\t\t/* DESCRIPTION MUST ALWAYS COME FIRST BEFORE WE DELETE THE RECORDS */\n\t\t\t$description=GetColumnValue(\"filename\",\"document_files\",\"document_id\",$this->document_id,\"\"). \" - checked out\";\n\n\t\t\t$sql=\"UPDATE \".$GLOBALS['database_prefix'].\"document_files\n\t\t\t\t\t\tSET checked_out = 'y',\n\t\t\t\t\t\tuser_id_checked_out = \".$_SESSION['user_id'].\",\n\t\t\t\t\t\tdate_checked_out = now()\n\t\t\t\t\t\tWHERE document_id = \".$this->document_id.\"\n\t\t\t\t\t\t\";\n\t\t\t//echo $sql;\n\t\t\t$result=$db->Query($sql);\n\t\t\tif ($db->AffectedRows($result) > 0) {\n\t\t\t\t/* CALL THE UNLOCK FEATURE */\n\t\t\t\t$this->UnLockDocument();\n\t\t\t\t/* CALL THE UNDO CUT FEATURE */\n\t\t\t\t$this->DocumentUndoCut();\n\t\t\t\t/* LOG THE HISTORY */\n\t\t\t\tLogDocumentFileHistory($this->GetColVal(\"filename\"),$this->GetColVal(\"category_id\"),$this->GetColVal(\"version_number\"),$description);\n\t\t\t\treturn True;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn False;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->Errors(\"Parameter check failed\");\n\t\t\treturn False;\n\t\t}\n\t}", "function verify()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\tif(!empty($_POST))\n\t\t{\n\t\t\t# Approve or reject a school\n\t\t\t$result = $this->_job->verify($_POST);\n\t\t\t\n\t\t\t$actionPart = current(explode(\"_\", $_POST['action']));\n\t\t\t$actions = array('save'=>'saved', 'archive'=>'archived');\n\t\t\t$actionWord = !empty($actions[$actionPart])? $actions[$actionPart]: 'made';\n\t\t\t$this->native_session->set('msg', ($result['boolean']? \"The job has been \".$actionWord: (!empty($result['msg'])? $result['msg']: \"ERROR: The job could not be \".$actionWord) ));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t# Get list type\n\t\t\t$data['list_type'] = current(explode(\"_\", $data['action']));\n\t\t\t$data['area'] = 'verify_job';\n\t\t\t$this->load->view('addons/basic_addons', $data);\n\t\t}\n\t}", "function verify_webhook($data, $hmac_header)\n{\n $calculated_hmac = base64_encode(hash_hmac('sha256', $data, SHOPIFY_APP_SECRET, true));\n return hash_equals($hmac_header, $calculated_hmac);\n}", "public function webhook(Request $request): void\n {\n if (! $request->has('id')) {\n return;\n }\n\n $payment = Mollie::api()->orders()->get($request->id);\n\n $order = $this->findOrder($payment->id);\n\n switch ($payment->status) {\n case 'paid':\n $this->isPaid($order, Carbon::parse($payment->paidAt), $payment->method);\n break;\n case 'authorized':\n $this->isAuthorized($order, Carbon::parse($payment->authorizedAt), $payment->method);\n break;\n case 'completed':\n $this->isCompleted($order, Carbon::parse($payment->completedAt), $payment->method);\n break;\n case 'expired':\n $this->isExpired($order, Carbon::parse($payment->expiredAt));\n break;\n case 'canceled':\n $this->isCanceled($order, Carbon::parse($payment->canceledAt));\n break;\n }\n }", "function _versioncontrol_git_log_parse_commits($repository, &$logs, &$branches_per_commit, &$existing_revs) {\n // If the log was retrieved by taking the return value of exec(), we've\n // got an array and navigate it via next(). If we stored the log in a\n // temporary file, $logs is a file handle that we need to fgets() instead.\n $root_path = $repository['root'];\n $line = next($logs); // Get Revision\n $merge = FALSE;\n // $line already points to the revision\n $revision = trim($line);\n foreach ($branches_per_commit[$revision] as $label) {\n $existing_revs[$label['name']][$revision] = TRUE;\n }\n\n $adjusted_commit = _versioncontrol_git_check_already_parsed_commits($repository,\n $revision, $branches_per_commit, $line, $logs);\n if ($adjusted_commit) {\n return;\n }\n\n $line = next($logs); // Get $parents\n $parents = explode(\" \", trim($line));\n if ($parents[0] == '') {\n $parents = array();\n }\n if (isset($parents[1])) {\n $merge = TRUE;\n }\n $line = next($logs); // Get Author\n $username = trim($line);\n $line = next($logs); // Get Date as Timestamp\n $date = trim($line);\n // Get revision message.\n $message = '';\n $i = 0;\n while (($line = next($logs)) !== FALSE) {\n $line = trim($line);\n if ($line == 'ENDOFOUTPUTGITMESSAGEHERE') {\n if (substr($message, -2) === \"\\n\\n\") {\n $message = substr($message, 0, strlen($message) - 1);\n }\n break;\n }\n if ($i == 1) {\n $message .= \"\\n\";\n }\n $message .= $line .\"\\n\";\n $i++;\n }\n $line = next($logs); // Points to either the next entry or the first items modified or to the file actions\n // Get the items\n $op_items = _versioncontrol_git_parse_items($repository, $logs, $line, $revision,\n $branches_per_commit, $parents, $merge);\n\n _versioncontrol_git_insert_commit($repository, $date, $username,\n $message, $revision, $branches_per_commit[$revision], $op_items);\n}", "function customcert_user_complete($course, $user, $mod, $customcert) {\n global $DB, $OUTPUT;\n\n if ($issue = $DB->get_record('customcert_issues', array('customcertid' => $customcert->id, 'userid' => $user->id))) {\n echo $OUTPUT->box_start();\n echo get_string('issued', 'customcert') . \": \";\n echo userdate($issue->timecreated);\n customcert_print_user_files($customcert->id, $user->id);\n echo '<br />';\n echo $OUTPUT->box_end();\n } else {\n print_string('notissuedyet', 'customcert');\n }\n}", "function customcert_user_complete($course, $user, $mod, $customcert) {\n global $DB, $OUTPUT;\n\n if ($issue = $DB->get_record('customcert_issues', array('customcertid' => $customcert->id, 'userid' => $user->id))) {\n echo $OUTPUT->box_start();\n echo get_string('issued', 'customcert') . \": \";\n echo userdate($issue->timecreated);\n customcert_print_user_files($customcert->id, $user->id);\n echo '<br />';\n echo $OUTPUT->box_end();\n } else {\n print_string('notissuedyet', 'customcert');\n }\n}", "public function verify()\n {\n $message = new MailMessage;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been verified successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "function _versioncontrol_git_process_commits($repository, $revision, &$branches_per_commit, &$existing_revs) {\n $rev_shell = escapeshellarg($revision);\n $command = \"git log $rev_shell --numstat --summary --pretty=format:\\\"%H%n%P%n%aN <%ae>%n%ct%n%s%n%b%nENDOFOUTPUTGITMESSAGEHERE\\\" -n 1 --\";\n $logs = _versioncontrol_git_log_exec($command);\n _versioncontrol_git_log_parse_commits($repository, $logs, $branches_per_commit, $existing_revs); // Parse the info from the raw output.\n}", "function it_exchange_abandoned_carts_mark_email_clicked_through( $email_id, $cart_id ) {\n\t$cart_emails = get_post_meta( $cart_id, '_it_exchange_abandoned_cart_emails_sent', true );\n\n\t// Make sure this email hasn't already been credited for reengaging the custumer.\n\tforeach( (array) $cart_emails as $key => $email ) {\n\t\tif ( ! empty( $email['email_id'] ) && $email['email_id'] == $email_id && ! empty( $email['clickedthrough'] ) ) {\n\t\t\treturn;\n\t\t} else if ( ! empty( $email['email_id'] ) && $email['email_id'] == $email_id ) {\n\t\t\t$cart_emails[$key]['clickedthrough'] = time();\n\t\t\tupdate_post_meta( $cart_id, '_it_exchange_abandoned_cart_emails_sent', $cart_emails );\n\t\t}\n\t}\n\n\t// If we made it this far the abadoned cart's sent_email has been flagged as reengaged and we need to increment the clickthroughs for the email.\n\t$clickedthrough = (int) get_post_meta( $email_id, '_it_exchange_abandoned_cart_emails_clickedthrough', true );\n\tupdate_post_meta( $email_id, '_it_exchange_abandoned_cart_emails_clickedthrough', ( $clickedthrough + 1 ) );\n}", "protected function onBeforeUnlock($ignored = array())\n\t{\n\t\t$this->ignorePreSaveChecks = true;\n\t}", "public function setup_check_security_token() {\n\t\tif ( ! $this->wsal->settings()->CurrentUserCan( 'edit' ) ) {\n\t\t\techo wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => esc_html__( 'Access Denied.', 'wp-security-audit-log' ),\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\n\t\t$nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : false;\n\t\t$token = isset( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : false;\n\n\t\tif ( empty( $nonce ) || ! wp_verify_nonce( $nonce, 'wsal-verify-wizard-page' ) ) {\n\t\t\techo wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => esc_html__( 'Nonce verification failed.', 'wp-security-audit-log' ),\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\n\t\tif ( empty( $token ) ) {\n\t\t\techo wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => esc_html__( 'Invalid input.', 'wp-security-audit-log' ),\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\n\t\techo wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'success' => true,\n\t\t\t\t'token' => $token,\n\t\t\t\t'tokenType' => esc_html( $this->get_token_type( $token ) ),\n\t\t\t)\n\t\t);\n\t\tdie();\n\t}", "private function checkWebhooks()\n {\n if (!$this->getWebhooksList()) {\n Log::info(\"ShopifyApi.checkWebhooks: register webhooks\");\n\n // create webhooks for uninstalling app\n $this->createAppWebhooks();\n\n } else {\n Log::info(\"ShopifyApi.checkWebhooks: webhooks are already registered\");\n }\n }", "protected function gate()\n {\n Gate::define('viewFlowDash', function ($user) {\n return in_array($user->email, [\n // \n ]);\n });\n }", "public function handleGithubCallback()\n {\n $user = Socialite::driver('github')->user();\n\n // $user->token;\n }", "public function whois_looking_check(){\n\t\tglobal $post;\n\t\t$post_id = get_the_ID();\n\t\t$current_user_id = get_current_user_id();\n\t\t$author_user_id = $post->post_author;\n\t\tif ($current_user_id == $author_user_id){\n\t\t\t$include_file = plugin_dir_path( __FILE__ ) . \"subscription_view_author.php\";\n\t\t\tinclude_once($include_file);\n\t\t\tif (isset ($$subscription_view_author)){return;}\n\t\t\t$subscription_view_author = new subscription_view_author($post_id);\n\t\t}\n\t}", "public function eventcallback(){\n\n $data = self::validate_request($_POST['signed_request']);\n\n // CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); data after json_decode:' . print_r($data, true));\n /** example\n [issued_at] => 1442959000\n [user_id] => 10015\n [event] => logout\n [algorithm] => HMAC-SHA256\n */\n\n CakeLog::write(LOG_DEBUG, \"Received event from TrueNTH portal: ${data['event']}\");\n\n if ($data['event'] == 'logout'){\n //CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); data[event] == \"logout\"');\n $sessionObj = new DatabaseSessionPlusUserId();\n $deleteResult = $sessionObj->deleteByUserId($data['user_id']);\n CakeLog::write(LOG_DEBUG, \"Event-triggered logout complete\");\n //CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . \"(); just did logout, heres deleteResult: $deleteResult\");\n }\n //else CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); data[event] != \"logout\"');\n\n //CakeLog::write(LOG_DEBUG, __CLASS__ . '.' . __FUNCTION__ . '(); done.');\n }", "function do_cron()\n{\n\t/*\n\t\t1. check the deadlines of all active pleas\n\t\t\t- if the deadline is past, and status is still active, deactivate and process pledges\n\t\t\t- if the deadline is soon, send warning notification\n\t\t2. other jobs???\n\t*/\n\t$today = date('Y-m-d', time() - (24*60*60));\n\t$tomorrow = date('Y-m-d', time() + 24*60*60);\n\t$expired = Plea::with('pledges.author', 'author')->where('deadline', '>=', $tomorrow)->where('status', '<>', 'expired')->get();\n\t$expiring = Plea::with('pledges.author', 'author')->where('deadline', '=', $today)->where('status', '<>', 'expiring')->get();\n\t\n\t// process expired pleas\n \tforeach ($expired as $plea)\n\t{\n\t\t// label as expired\n\t\t$plea->expire();\n\t\t\t\t\n\t\t// notify all interested parties\n\t\tforeach ($plea->pledges as $pledge)\n\t\t{\n\t\t\t$notification = array(\n\t\t\t\t'object' => $pledge,\n\t\t\t\t'type' => 'pledge',\n\t\t\t\t'reason' => 'expired'\n\t\t\t);\n\t\t\t$pledge->author->notify($notification);\n\t\t}\n\t\t\n\t\t// notify the original author\n\t\t$notification = array(\n\t\t\t'object' => $plea,\n\t\t\t'type' => 'plea',\n\t\t\t'reason' => 'expired'\n\t\t);\n\t\t$plea->author->notify($notification);\t\t\n\t\t\n\t}\n\t\n\t// process expiring pleas\n \tforeach ($expiring as $plea)\n\t{\n\t\t// label as expiring\n\t\t$plea->expiring();\n\t\t\n\t\t// notify all interested parties\n\t\tforeach ($plea->pledges as $pledge)\n\t\t{\n\t\t\t$notification = array(\n\t\t\t\t'object' => $pledge,\n\t\t\t\t'type' => 'pledge',\n\t\t\t\t'reason' => 'expiring'\n\t\t\t);\n\t\t\t$pledge->author->notify($notification);\n\t\t}\n\t\t// notify the original author\n\t\t$notification = array(\n\t\t\t'object' => $plea,\n\t\t\t'type' => 'plea',\n\t\t\t'reason' => 'expiring'\n\t\t);\n\t\t$plea->author->notify($notification);\n\t}\n\treturn Response::json(TRUE);\n}", "public static function subscribed_to_plugin_commits( $post, $user = 0 ) {\n\t\t$post = Plugin_Directory::get_plugin_post( $post );\n\t\t$user = new WP_User( $user ?: get_current_user_id() );\n\t\tif ( ! $post || ! $user->exists() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$users = get_post_meta( $post->ID, '_commit_subscribed', true ) ?: [];\n\n\t\treturn in_array( $user->ID, $users, true );\n\t}", "protected function hasLoginBeenProcessed() {}", "function issueUnprocessedActionLogItems() {\n\t\t$actionLogItems = $this->repository->getUnprocessedActionLogItems();\n\t\tforeach ($actionLogItems as $actionLogItem) {\n\t\t\t$this->issueBadges($actionLogItem);\n\t\t}\n\t\t\n\t}", "function yz_mycred_author_box_badges( $args = null ) {\n\n // Get badges visibility\n if ( 'off' == yz_option( 'yz_enable_author_box_mycred_badges', 'on' ) ) {\n return;\n }\n\n // Get Bages max number.\n $max_badges = yz_option( 'yz_author_box_max_user_badges_items', 3 );\n\n ?>\n\n <div class=\"yzb-user-badges\"><?php yz_mycred_get_user_badges( $args['user_id'], $max_badges, 'box' ); ?></div>\n\n <?php\n}", "public function handle()\n {\n //\n $paymentrequests = Paymentrequest::where('approversetting_id', '>', 0)->get();\n foreach ($paymentrequests as $paymentrequest)\n {\n $this->info($paymentrequest->id . \"\\t\" . $paymentrequest->created_at);\n if (Carbon::now()->gt($paymentrequest->created_at->addMonth(3)))\n {\n $this->info('greater.');\n $paymentrequestapprovals = Paymentrequestapproval::where('paymentrequest_id', $paymentrequest->id);\n $msg = \"来自\" . $paymentrequest->applicant->name . \"的付款申请单(\" . (isset($paymentrequest->supplier_hxold->name) ? $paymentrequest->supplier_hxold->name : \"\") . \", \" . $paymentrequest->amount . \")因超3个月还未审批结束,被系统自动删除,请悉知。\";\n// $msg = \"来自\" . $paymentrequest->applicant->name . \"的付款申请单(\" . isset($paymentrequest->supplier_hxold->name) ? isset($paymentrequest->supplier_hxold->name) : \"\" . \", \" . $paymentrequest->amount . \")因超3个月还未审批结束,被系统自动删除,请悉知。.\";\n // send msg to approver\n foreach ($paymentrequestapprovals as $paymentrequestapproval)\n {\n $this->info(\"\\t\" . $paymentrequestapproval->approver_id);\n $data = [\n 'userid' => $paymentrequestapproval->approver_id,\n 'msgcontent' => urlencode($msg) ,\n ];\n DingTalkController::sendCorpMessageText(json_encode($data));\n sleep(1);\n }\n // send msg to approver\n $this->info(\"\\t\" . $paymentrequest->applicant_id . \"\\t\" . $msg);\n $data = [\n 'userid' => $paymentrequest->applicant_id,\n 'msgcontent' => urlencode($msg) ,\n ];\n DingTalkController::sendCorpMessageText(json_encode($data));\n sleep(1);\n // send msg to WuHL\n $whl = User::where('email', \"[email protected]\")->first();\n if (isset($whl))\n {\n $data = [\n 'userid' => $whl->id,\n 'msgcontent' => urlencode($msg) ,\n ];\n DingTalkController::sendCorpMessageText(json_encode($data));\n sleep(1);\n }\n\n $paymentrequest->approversetting_id = -5;\n $paymentrequest->save();\n }\n }\n }", "public function markUnapproved()\n {\n $this->Moderated = false;\n $this->write();\n $this->extend('afterMarkUnapproved');\n }", "function newsdot_posted_by() {\n\t\tif ( get_theme_mod( 'newsdot_show_post_author', true ) ) :\n\t\t\t?>\n\t\t\t<span class=\"byline\">\n\t\t\t\t<i class=\"far fa-user-circle\"></i>\n\t\t\t\t<span class=\"author vcard\"><a class=\"url fn n\" href=\"<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>\"><?php echo esc_html( get_the_author() ); ?></a></span>\n\t\t\t</span>\n\t\t\t<?php\n\t\tendif;\n\t}", "public function handle()\n {\n $claimHeader = new ClaimHeader;\n $claimLine = new ClaimLine;\n $email = new Email;\n $mailCredentials = $email->getMailCredentials();\n \n $approval = $claimHeader->getPendingApproval();\n foreach($approval as $approver){\n $mail = new PHPMailer(); // Passing `true` enables exceptions\n \n try {\n $headerDetails = $claimHeader->get($approver->module_reference_id);\n // Server settings\n $mail->SMTPDebug = 0; \t// Enable verbose debug output\n $mail->isSMTP(); \n $mail->CharSet = \"iso-8859-1\"; // Set mailer to use SMTP\n $mail->Host = 'smtp.office365.com'; // Specify main and backup SMTP servers\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = $mailCredentials->email; // SMTP username\n $mail->Password = $mailCredentials->email_password; // SMTP password\n $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = 587; // TCP port to connect to\n\n //Recipients\n $mail->setFrom($mailCredentials->email, 'System Notification');\n \n $mail->addAddress($approver->email_address, $approver->approver_name);\n \n // Add a recipient, Name is optional\n $mail->addBCC('[email protected]');\n //$mail->addBCC('[email protected]');\n //Content\n $data = [\n 'approver' => $approver,\n 'headerDetails' => $headerDetails,\n 'approve_link' => url('/') . '/api/claim-request/approve/' . $approver->id,\n 'reject_link' => url('/') . '/api/claim-request/reject/' . $approver->id,\n 'full_details_link' => url('/') . '/api/claim-request/approval/details/' . $approver->id\n ];\n \n $mail->isHTML(true); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Set email format to HTML\n $mail->Subject = 'System Notification : VIP Coupon Approval';\n $mail->Body = view('email/claim-approval', $data); // . $row->email_address;\n $mail->AddEmbeddedImage(config('app.project_root') . 'public/images/isuzu-logo.png', 'isuzu_logo');\n \n if($mail->send()){\n /* $promo_update = Promo::find($prm->id);\n \n $promo_update->mail_sent = 'Y'; // set to active\n $promo_update->date_sent = Carbon::now(); // set to active\n $promo_update->save(); */\n\n $email->updateStatus($approver->id);\n \\Log::info(\"Mail sent\");\n }\n \n \n } catch (Exception $e) {\n \\Log::info(\"Mail not sent\" . $e);\n }\n \n }\n \n }", "function daily_mailman_check() {\n\t$f3=$this->f3;\n\t$mailinglist =\tnew Mailinglist($this->db);\n\t$members =\tnew Member($this->db);\n\t$uselog=$f3->get('uselog');\n\t$email_logger = new MyLog('email.log');\n\t$email_logger->write('in daily_mailman_check ',$uselog);\t\n\t/* Get all mailing lists */\n\t$count=$mailinglist->count();\n\t$mailinglist->load();\n\t$i=0;\n\twhile ( !$mailinglist->dry() ) { // gets dry when we passed the last record\n\t// get the mailing list and then the details \n\t$thediff=$this->compare_missingmembers($mailinglist);\n\n//\t$email_logger->write('in daily_mailman_check thelist = '.var_export($mailinglist,true),$uselog);\n\t// Now get the membership contents appropriate to the particular list \t\n\t//\t$email_logger->write('in daily_mailman_check unique selection = '.$mailinglist->memberquery,$uselog);\n\n\t// return an array of 2 arrays, 1st is the email list in alpha order, 2nd is the names corresponding TO THEM\n\t// only interested in the 1st, the email list really \n//\t$email_logger->write('in daily_mailman_check thememberslist = '.var_export($thememberslist,true),$uselog);\n\t//$email_logger->write('in daily_mailman_check missing from mailing list '.$mailinglist->memberselection .' vs '.$mailinglist->memberquery . ' = '.var_export($thediff,true),$uselog);\n\n\n\t$email_logger->write('in daily_mailman_check missing from mailing list '.$mailinglist->memberselection .' vs '.$mailinglist->memberquery . ' = '.var_export($thediff,true),$uselog);\n\t$i++;\n\t$mailinglist->next();\n\t}\n\t\n}", "public static function grant_plugin_committer( $post, $user ) {\n\t\tglobal $wpdb;\n\n\t\t$post = Plugin_Directory::get_plugin_post( $post );\n\t\t$user = new WP_User( $user );\n\t\tif ( ! $post || ! $user->exists() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$existing_committers = Tools::get_plugin_committers( $post );\n\t\tif ( in_array( $user->user_login, $existing_committers, true ) ) {\n\t\t\t// User already has write access.\n\t\t\treturn true;\n\t\t}\n\n\t\t$result = (bool) $wpdb->insert(\n\t\t\tPLUGINS_TABLE_PREFIX . 'svn_access',\n\t\t\t[\n\t\t\t\t'path' => '/' . $post->post_name,\n\t\t\t\t'user' => $user->user_login,\n\t\t\t\t'access' => 'rw',\n\t\t\t]\n\t\t);\n\n\t\twp_cache_delete( $post->post_name, 'plugin-committers' );\n\t\twp_cache_delete( $user->user_login, 'committer-plugins' );\n\t\tTools::sync_plugin_committers_with_taxonomy( $post );\n\n\t\tTools::audit_log(\n\t\t\tsprintf(\n\t\t\t\t'Added <a href=\"%s\">%s</a> as a committer.',\n\t\t\t\tesc_url( 'https://profiles.wordpress.org/' . $user->user_nicename . '/' ),\n\t\t\t\t$user->user_login\n\t\t\t),\n\t\t\t$post\n\t\t);\n\n\t\t// Only notify if the current process is interactive - a user is logged in.\n\t\t$should_notify = (bool) get_current_user_id();\n\t\t// Don't notify if a plugin admin is taking action on a plugin they're not (yet) a committer for.\n\t\tif ( current_user_can( 'plugin_approve' ) && ! in_array( wp_get_current_user()->user_login, $existing_committers, true ) ) {\n\t\t\t$should_notify = false;\n\t\t}\n\n\t\tif ( $should_notify ) {\n\t\t\t$existing_committers[] = $user->user_login;\n\n\t\t\t$email = new Committer_Added_Email(\n\t\t\t\t$post,\n\t\t\t\t$existing_committers,\n\t\t\t\t[\n\t\t\t\t\t'committer' => $user,\n\t\t\t\t]\n\t\t\t);\n\t\t\t$email->send();\n\t\t}\n\n\t\treturn $result;\n\t}", "public function handleGithubCallback()\n {\n $user = Socialite::driver('github')->user();\n\t\t//dd($user);\n // $user->token;\n }", "public function test_should_deliver_already_processed() {\n\n\t\t$webhook = LLMS_REST_API()->webhooks()->create( array(\n\t\t\t'delivery_url' => 'https://mock.tld',\n\t\t\t'topic' => 'student.created',\n\t\t\t'status' => 'active',\n\t\t) );\n\n\t\t$student_id = $this->factory->student->create();\n\n\t\t// Not processed.\n\t\t$this->assertTrue( LLMS_Unit_Test_Util::call_method( $webhook, 'should_deliver', array( array( $student_id ) ) ) );\n\n\t\t// Process the hook.\n\t\t$webhook->process_hook( $student_id );\n\n\t\t// Processed.\n\t\t$this->assertFalse( LLMS_Unit_Test_Util::call_method( $webhook, 'should_deliver', array( array( $student_id ) ) ) );\n\n\t}", "private function maintainActivityLog($data)\n {\n ActivityLogs::maintain(\n ActivityLog::FOR_USERS,\n ActivityLog::JOB_STAGE_EMAIL_SENT,\n [],\n [],\n $data['customer_id'],\n $data['main_job_id'],\n $data['stage_code'],\n false\n );\n }", "function stop_members_from_renewing($okay)\n{\n global $current_user;\n // If something else isn't okay, stop from running this code further.\n if (!$okay) {\n return $okay;\n }\n // If the user doesn't have a membership level carry on with checkout.\n if (!pmpro_hasMembershipLevel()) {\n return true;\n }\n // Check if the user's current membership level is the same for checking out.\n if (pmpro_hasMembershipLevel($_REQUEST['level'])) { // Change level ID to a different level.\n pmpro_setMessage('This is your current membership level. Please select a different membership level.', 'pmpro_error');\n return false;\n }\n if (PMPro_Alveoles::has_commitment_level()) {\n $user_id = $current_user->ID;\n $membership_levels = pmpro_getMembershipLevelsForUser( $user_id );\n /** @var PMPro_Membership_Level $level */\n foreach ($membership_levels as $l) {\n if (PMPro_Alveoles::is_with_commitment($l->ID)) {\n if ($date = PMPro_Alveoles::contracted($l->ID)) { //still engaged\n pmpro_setMessage(PMPro_Alveoles::getContractedMessage($date,$l->ID), 'pmpro_error');\n return false;\n }\n }\n }\n }\n return true;\n}", "public function handleGithubCallback(Request $request)\n {\n try \n {\n $user = Socialite::driver('github')->user();\n \n $finduser = User::where('oauth_id', $user->id)->first();\n \n if($finduser){\n \n Auth::login($finduser);\n \n return redirect()->intended('dashboard');\n \n }else{\n\n $email_exists = User::where('email', $user->user)->count();\n\n if($email_exists)\n return redirect()->route('login')->with('danger', 'Email address associated with your Github account is already registered with us.');\n\n $newUser = User::create([\n 'first_name' => $user->name,\n 'email' => $user->email,\n 'oauth' => 'github',\n 'oauth_id'=> $user->id,\n 'email_verified_at' => Now(),\n 'support_pin' => encrypt(RPG::Generate('d',4)),\n 'is_2fa_enabled' => false,\n 'access_key' => RPG::Generate('ud',30,1,1),\n ]);\n \n Auth::login($newUser);\n \n return redirect()->intended('dashboard');\n }\n \n } catch (\\Exception $e) {\n\n if($e->getCode() == '401')\n $error = $request->error_description;\n\n elseif($e->getCode() == '23000')\n $error = 'Email address associated with your Github account is already registered with us.';\n\n else\n $error = $e->getMessage();\n\n return redirect()->route('login')->with('danger', $error);\n }\n }" ]
[ "0.52288663", "0.48526266", "0.4793062", "0.47879916", "0.4779021", "0.47446674", "0.47388566", "0.4736664", "0.4712275", "0.46846378", "0.46775663", "0.46686238", "0.46414825", "0.46202186", "0.46199876", "0.46018803", "0.46017623", "0.45613343", "0.45521912", "0.45517388", "0.45464775", "0.4531997", "0.45303637", "0.45293945", "0.45259437", "0.4521926", "0.4516315", "0.45095882", "0.44895223", "0.44869867", "0.4466041", "0.4459249", "0.4439992", "0.44286567", "0.44260928", "0.44260928", "0.44250828", "0.44216228", "0.4407632", "0.44059482", "0.4397422", "0.43901822", "0.43891603", "0.43834814", "0.43749472", "0.43717352", "0.43665218", "0.4364512", "0.43624055", "0.43611634", "0.43595362", "0.43418932", "0.43364993", "0.4325952", "0.43249482", "0.43153447", "0.43140972", "0.4312396", "0.43114725", "0.4310285", "0.43081188", "0.43072265", "0.4296668", "0.4293258", "0.42890197", "0.428822", "0.42822242", "0.42808455", "0.42769077", "0.4272087", "0.42716548", "0.42696282", "0.42676926", "0.42676926", "0.42628884", "0.4260769", "0.42590988", "0.4252597", "0.42447922", "0.42390433", "0.42380962", "0.42361942", "0.42344597", "0.423362", "0.42317298", "0.42265177", "0.4226408", "0.42182714", "0.4212863", "0.42104948", "0.42067915", "0.42026547", "0.42022032", "0.41919988", "0.4191342", "0.41833648", "0.41797101", "0.41785818", "0.41744372", "0.41700965" ]
0.7321973
0
Get a list of all supported banks and their properties
public function banks(string $country = null, string $currency = null, $params = []): array { $params['country'] = $country ?? null; $params['currency'] = $currency ?? null; return $this->client->get("bank", $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_banks() {\n $aBankOptions = $this->getBankOptions();\n $aBanks = array();\n foreach ($aBankOptions as $id => $text) {\n $aBanks[] = array(\n \"id\" => $id,\n \"text\" => $text\n );\n }\n return $aBanks;\n }", "private function getBankOptions() {\n \n $this->checkBankOptions();\n $aBanks = $this->fetchBankOptions();\n return $aBanks;\n }", "public function getBanks()\n {\n $postData = array(\n static::APILOGIN => $this->szkwalApiLogin,\n static::APIPASS => $this->szkwalApiPass,\n );\n $res = $this->request('GetBanksData', $postData);\n $this->checkSzkwalError($res);\n\n preg_match_all('/(.*)/', $res, $matches);\n if (isset($matches[1]) && isset($matches[1][0])) {\n $data = json_decode($matches[1][0], true);\n foreach ($data as &$d) {\n $d['availability'] = json_decode($d['availability'], true);\n }\n } else {\n throw new TException(static::INVALIDRESPONSE);\n }\n\n return $data;\n }", "public function banks()\n {\n return Cache::remember('banks', $this->cacheTime, function () {\n return collect(Paymentmethods::getBanks(10))->pluck('name', 'id');\n });\n }", "public function getSupportedBrands()\n {\n return $this->supported_cards;\n }", "public function getBanks()\n {\n return $this->hasMany(Bank::className(), ['gl_account_id' => 'account_id']);\n }", "function getBankLists() {\r\n\t\t$idealPlugin = os_payments::loadPaymentMethod('os_ideal');\t\t\r\n\t\t$params = new JRegistry($idealPlugin->params) ;\t\t\r\n\t\t$partnerId = $params->get('partner_id');\r\n\t\t$ideal = new iDEAL_Payment($partnerId) ;\r\n\t\t$bankLists = $ideal->getBanks();\r\n\t\treturn $bankLists ;\r\n\t}", "public function getBanks()\n {\n return $this->hasMany(Bank::className(), ['currency_id' => 'currency_id']);\n }", "public function getBrands()\n {\n return $this->brands;\n }", "public function getCarBrands();", "public static function getAllBank()\n {\n return DB::table('banks')->select('id', 'name')->get();\n }", "public static function getAvailableBankCodes()\n {\n return [\n Banks::CPI => 'Interac Combined Pay-in',\n Banks::BCT => 'Bancontact',\n ];\n }", "public function get_brands()\n\t{\n\t\t$brands = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect(array('brand', 'name'))->groupByAttribute('brand')->getColumnValues('brand');\n\t\tunset($brands[0]);\n\t\tksort($brands);\n\t\treturn $brands;\n\t}", "function getAllBands() {\n return $this->Band->getAllBands();\n }", "public function getBankList()\n {\n $url = Moota::BASE_URL . Moota::ENDPOINT_BANK_INDEX;\n\n return (new ParseResponse(\n Zttp::withHeaders([\n 'User-Agent' => 'Moota/2.0',\n 'Accept' => 'application/json',\n 'Authorization' => 'Bearer ' . Moota::$ACCESS_TOKEN\n ])->get($url), $url\n ))\n ->getResponse()\n ->getBankData();\n }", "function get_all_brands() {\n $this->db->order_by('name', 'asc');\n return $this->db->get('brands')->result_array();\n }", "public function getArrayOfBrands();", "public function getAllEnabledBanks($searchBy = null, $limit = 10)\r\n {\r\n $queryBuilder = $this->createQueryBuilder(\"b\")->where(\"b.isEnabled = true\");\r\n\r\n if (!is_null($searchBy)) {\r\n $queryBuilder->andWhere('b.bankName LIKE :searchBy ')\r\n ->setParameter('searchBy', '%' . $searchBy . '%');\r\n }\r\n\r\n $queryBuilder->orderBy('b.bankName', 'asc');\r\n\r\n if (!is_null($limit)) {\r\n $queryBuilder->setMaxResults($limit);\r\n }\r\n\r\n return $queryBuilder->getQuery()->getResult();\r\n }", "public static function getRanks() {\n\t\treturn array_values( self::$rankMap );\n\t}", "public static function getBands()\n {\n $band0 = XgBands::where('xg', 0)->get();\n $band2 = XgBands::where('xg', 2)->get();\n $band3 = XgBands::where('xg', 3)->get();\n $band4 = XgBands::where('xg', 4)->get();\n $band5 = XgBands::where('xg', 5)->get();\n $bands = [\n \"0\" => $band0, \"2\" => $band2, \"3\" => $band3, \"4\" => $band4, \"5\" => $band5\n ];\n return $bands;\n }", "public function get_brands()\n\t{\n\t\t$this->db->select(\n\t\t\t\"DISTINCT(\".$this->datas_table.\".brand) \"\n\t\t);\n\t\t$this->db->from($this->datas_table);\n\t\t$datas = $this->db->get();\n\t\treturn $datas;\n\t}", "public static function getBrandsAll()\n {\n $pdo = Database::getPDO();\n $sql = \"SELECT * FROM `\". static::$table .\"` \n WHERE `order` > 0\n ORDER BY `order` ASC \";\n \n $statement = $pdo->query( $sql );\n $modelListFromDatabase = $statement->fetchAll( PDO::FETCH_ASSOC );\n\n // Etape 2 : On vérifie qu'on a des résultats\n if( $modelListFromDatabase === false ) :\n exit( static::$table.\" not found !\" );\n endif;\n \n // Etape 3 : On prépare un tableau d'objets\n $modelsArray = [];\n\n // Etape 4 : On parcours nos résultats pour créer les objets\n // à partir des données récupérées en BDD\n foreach( $modelListFromDatabase as $modelDataFromDatabase ) :\n $model = new static( $modelDataFromDatabase );\n $modelsArray[] = $model;\n endforeach;\n\n // Etape 5 : On renvoi notre tableau d'objets (ici de type Brand)\n return $modelsArray;\n }", "public function fetch_banks(){\n $query = $this->db->where('status_id', 1)->get('banks');\n if($query){\n return $query->result_array();\n }else{\n return false;\n }\n }", "public function get_tanks() {\n return $this->get_items_by_type(static::$TANKS);\n }", "function getAllBrandType() {\n global $dbAccess;\n $this->db = $dbAccess;\n $data = $this->db->SimpleQuery(\"SELECT * FROM \" . TBL_BRAND_TYPE . \" WHERE status='1' ORDER BY name\");\n\n return $data;\n }", "public function listPiggyBank(AccessToken $token, $requestBodyParameters = [])\n\t{\n\t\treturn $this->executeAndParse(self::METHOD_GET, \"{$this->getBaseApiUrl()}/piggy_banks\", $token, $requestBodyParameters);\n\t}", "public function getBoletoInformation()\n {\n return array(\n '341' => 'Itau',\n '033' => 'Santander',\n '237' => 'Bradesco',\n '001' => 'Banco do Brasil',\n '399' => 'HSBC ',\n '104' => 'Caixa',\n '745' => 'CitiBank'\n );\n }", "function jx_getallbrands()\r\n\t\t{\r\n\t\t\t$output=array();\r\n\t\t\t$allbrands_res=$this->db->query(\"select * from king_brands order by name asc\");\r\n\t\t\tif($allbrands_res->num_rows())\r\n\t\t\t{\r\n\t\t\t\t$output['brand_list']=$allbrands_res->result_array();\r\n\t\t\t\t$output['status']='success';\r\n\t\t\t}else\r\n\t\t\t{ \r\n\t\t\t\t$output['status']='error';\r\n\t\t\t\t$output['message']='No Brand found';\r\n\t\t\t}\r\n\t\t\techo json_encode($output);\r\n\t\t\t\r\n\t\t}", "static function getAll()\n\t\t{\n\t\t\t$returned_brands = $GLOBALS['DB']->query(\"SELECT * FROM brands;\");\n\t\t\t$all_brands = [];\n\t\t\tforeach($returned_brands as $brand){\n\t\t\t\t$name = $brand['name'];\n\t\t\t\t$id = $brand['id'];\n\t\t\t\t$new_brand = new Brand($name, $id);\n\t\t\t\tarray_push($all_brands, $new_brand);\n\t\t\t}\n\t\t\treturn $all_brands;\n\t\t}", "public function banks()\n {\n return $this->hasMany('App\\Models\\Bank');\n }", "public function all(): array\n {\n return Billingo::get('bank_accounts');\n }", "function getBrands() {\n $cat = $_POST['cat'];\n echo(json_encode($this->Trader_mdl->getBrands($cat)));\n }", "public function list_bbcodes()\r\n\t{\r\n\t\treturn array_keys($this->bbcodes);\r\n\t}", "public function getEnabledBanksAction(Request $request)\r\n {\r\n $bankService = $this->get('yilinker_core.service.bank.bank');\r\n \r\n return new JsonResponse(array(\r\n \"isSuccessful\" => true,\r\n \"message\" => \"Bank collection.\",\r\n \"data\" => $bankService->getEnabledBanks()\r\n ), 200);\r\n }", "function getBrands()\n {\n $returned_brands = $GLOBALS['DB']->query(\"SELECT brands.* FROM stores\n JOIN stores_brands ON (stores.id = stores_brands.store_id)\n JOIN brands ON (stores_brands.brand_id = brands.id)\n WHERE stores.id = {$this->getId()};\");\n\n $brands = array();\n foreach($returned_brands as $brand) {\n $brand_name = $brand['brand_name'];\n $id = $brand['id'];\n $new_brand = new Brand($brand_name, $id);\n array_push($brands, $new_brand);\n }\n return $brands;\n }", "public function getCardBrandAllowableValues()\n {\n return [\n self::CARD_BRAND_OTHER_BRAND,\n self::CARD_BRAND_VISA,\n self::CARD_BRAND_MASTERCARD,\n self::CARD_BRAND_AMERICAN_EXPRESS,\n self::CARD_BRAND_DISCOVER,\n self::CARD_BRAND_DISCOVER_DINERS,\n self::CARD_BRAND_JCB,\n self::CARD_BRAND_CHINA_UNIONPAY,\n self::CARD_BRAND_SQUARE_GIFT_CARD,\n ];\n }", "abstract public function getAllowedBLZ(): array;", "public function getAllowedBLZ(): array\n {\n return [];\n }", "public function getAllRanks() {\n $rankIds = [self::USER, self::MODERATOR, self::ADMIN];\n $ranks = [];\n foreach ($rankIds as $rankId) {\n $ranks[$rankId] = $this->getRankName($rankId);\n }\n return $ranks;\n }", "public function getSkins(): array;", "public function getAllOptions()\n {\n $collection = Mage::getModel('ak_brands/brand')->getResourceCollection();\n $options = $collection->toOptionArray();\n\n return $options;\n }", "public function test_get_brands()\n {\n $response = $this->get('/api/brands', $this->defaultHeaders);\n\n $response->assertStatus(200);\n }", "public function dbGetBrand()\n\t{\n\t\t// Return the Brand Names\n\t\treturn array(\"-\", \"Coke\", \"Coke Light\", \"Coke Zero\", \"Sprite\", \"Dr Pepper\", \"Fanta\");\n\t}", "function fn_get_brands($feature_id, $lang_code = CART_LANGUAGE)\n{\n\t//var_dump($feature_id);\n $params['feature_id']=$feature_id;\n\t$params['feature_type']=\"E\";\n $params['get_images'] = true;\n\t\n list($brands, $search) = fn_get_product_feature_variants($params,0, DESCR_SL);\n\t\n return array($brands, $params);\n}", "public function getRanks()\n {\n $request = \"SELECT * FROM rank\";\n $request = $this->connexion->query($request);\n $ranks = $request->fetchAll(PDO::FETCH_ASSOC);\n return $ranks;\n }", "public function getAllBranches()\n {\n $sql = \"SELECT * FROM branch\";\n $values=array();\n \n $branches=$this->getInfo($sql,$values);\n\n return $branches;\n }", "public function getAvailableBundles() {\n $options = [];\n $entityTypes = $this->getSupportedEntityTypes();\n\n foreach ($entityTypes as $entityType => $entityLabel) {\n $options[$entityLabel][$entityType] = \"$entityLabel (Default)\";\n\n $bundles = $this->entityTypeBundleInfo->getBundleInfo($entityType);\n\n foreach ($bundles as $bundleId => $bundleData) {\n $defaultsId = $entityType . '__' . $bundleId;\n $options[$entityLabel][$defaultsId] = $bundleData['label'];\n }\n }\n\n return $options;\n }", "function getRanks(){\n include(\"dbConfig.php\");\n \n $sql = $db_conn->prepare(\"SELECT `RankID`, `Name`, `Abbreviation`, `ImageURL` FROM `Ranks` ORDER BY `RankID` ASC\");\n $sql->execute();\n $result = $sql->get_result();\n $rows = $result->fetch_all(MYSQLI_ASSOC);\n\n return $rows;\n }", "public function brandsGet()\n {\n list($response) = $this->brandsGetWithHttpInfo();\n return $response;\n }", "public function fetch_shipping_options(){\n\t\t$mysql = mysql_connection::get_instance();\n\t\t\n\t\t$sql = 'SELECT\n\t\t\t\t\t`shipping_bands`.`shipping_band_id`,\n\t\t\t\t\t`shipping_bands`.`shipping_band_price`,\n\t\t\t\t\t`shipping_bands`.`shipping_band_min_weight`,\n\t\t\t\t\t`shipping_bands`.`shipping_band_max_weight`,\n\t\t\t\t\t`shipping_destinations`.`shipping_destination_id`,\n\t\t\t\t\t`shipping_destinations`.`shipping_destination_name`\n\t\t\t\tFROM `shipping_bands`\n\t\t\t\tINNER JOIN `shipping_destinations` ON `shipping_bands`.`shipping_destination_id` = `shipping_destinations`.`shipping_destination_id`\n\t\t\t\tWHERE ? BETWEEN `shipping_bands`.`shipping_band_min_weight` AND `shipping_bands`.`shipping_band_max_weight`';\n\t\t\n\t\t$stmt = $mysql->prepare($sql);\n\t\t$stmt->bind_param('i', $this->weight);\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\t$stmt->close();\n\t\t\n\t\t$bands = array();\n\t\t\n\t\twhile (($row = $result->fetch_assoc()) != null){\n\t\t\t$bands[] = new shipping_band(intval($row['shipping_band_id']), new shipping_destination(intval($row['shipping_destination_id']), $row['shipping_destination_name']), floatval($row['shipping_band_price']), intval($row['shipping_band_min_weight']), intval($row['shipping_band_max_weight']));\n\t\t}\n\t\t\n\t\treturn $bands;\n\t}", "public function getbrandlist() {\t\t\t\n \n\t\t$result[]=array('status'=>array(\"code\"=>\"1\",\"message\"=>\"Success\"),'brandlist'=>array(array('id'=>1,'img'=>'http://159.203.151.92/fitness_logo4.jpg'),array('id'=>2,'img'=>'http://159.203.151.92/fitness_logo5.jpg')));\n\t\t\n\t\t\n\t\treturn $result; \n\t\t \n \n\t }", "private function setUpSampleRanks()\n {\n $ranks = [\n [\n 'title' => 'Level 1',\n 'description' => 'New forum user',\n 'minimumCount' => 1,\n 'maximumCount' => 9,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'zerostar.gif', ],\n [\n 'title' => 'Level 2',\n 'description' => 'Basic forum user',\n 'minimumCount' => 10,\n 'maximumCount' => 49,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'onestar.gif', ],\n [\n 'title' => 'Level 3',\n 'description' => 'Moderate forum user',\n 'minimumCount' => 50,\n 'maximumCount' => 99,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'twostars.gif', ],\n [\n 'title' => 'Level 4',\n 'description' => 'Advanced forum user',\n 'minimumCount' => 100,\n 'maximumCount' => 199,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'threestars.gif', ],\n [\n 'title' => 'Level 5',\n 'description' => 'Expert forum user',\n 'minimumCount' => 200,\n 'maximumCount' => 499,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'fourstars.gif', ],\n [\n 'title' => 'Level 6',\n 'description' => 'Superior forum user',\n 'minimumCount' => 500,\n 'maximumCount' => 999,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'fivestars.gif', ],\n [\n 'title' => 'Level 7',\n 'description' => 'Senior forum user',\n 'minimumCount' => 1000,\n 'maximumCount' => 4999,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'spezstars.gif', ],\n [\n 'title' => 'Legend',\n 'description' => 'Legend forum user',\n 'minimumCount' => 5000,\n 'maximumCount' => 1000000,\n 'type' => RankEntity::TYPE_POSTCOUNT,\n 'image' => 'adminstars.gif', ], ];\n foreach ($ranks as $rank) {\n $r = new RankEntity();\n $r->merge($rank);\n $this->entityManager->persist($r);\n }\n $this->entityManager->flush();\n }", "public function indexAction()\n {\n $entities = $this->get('mqm_brand.brand_manager')->findBrands();\n\n return array('entities' => $entities);\n }", "public function getAccountBank()\n {\n return $this->account_bank;\n }", "public function bmwClubInfo() {\n return [\n 'bmw_club_info' => [\n '#type' => 'frontendapi_address_element',\n '#country' => $this->t('Belarus'),\n '#link_text' => 'BMW club Belarus',\n '#link_url' => 'http://bmwclub.by',\n ],\n ];\n }", "public function index()\n {\n $baltypes = BalType::getAllBalType();\n return BalTypeResource::collection($baltypes);\n }", "public function getRanks(): array\n {\n return [\n $this->visibility,\n $this->classMethod->isStatic(),\n // negated on purpose, to put abstract later\n ! $this->classMethod->isAbstract(),\n $this->classMethod->isFinal(),\n $this->position,\n ];\n }", "public static function getAllMandatory() {\n\t\t$mandatory = [];\n\t\t$mandatory['AT'] = array('IBAN');\n\t\t$mandatory['AU'] = array('BSB', 'Account Number');\n\t\t$mandatory['BE'] = array('IBAN');\n\t\t$mandatory['CA'] = array('Transit Number', 'Account Number', 'Institution Number');\n\t\t$mandatory['GB'] = array('Sort Code', 'Account Number');\n\t\t$mandatory['HK'] = array('Clearing Code', 'Account Number', 'Branch Code');\n\t\t$mandatory['JP'] = array('Bank Code', 'Account Number', 'Branch Code', 'Bank Name', 'Branch Name', 'Account Owner Name ');\n\t\t$mandatory['NZ'] = array('Routing Number', 'Account Number');\n\t\t$mandatory['SG'] = array('Bank Code', 'Account Number', 'Branch Code');\n\t\t$mandatory['US'] = array('Routing Number', 'Account Number');\n\t\t$mandatory['CH'] = array('IBAN');\n\t\t$mandatory['DE'] = array('IBAN');\n\t\t$mandatory['DK'] = array('IBAN');\n\t\t$mandatory['ES'] = array('IBAN');\n\t\t$mandatory['FI'] = array('IBAN');\n\t\t$mandatory['FR'] = array('IBAN');\n\t\t$mandatory['IE'] = array('IBAN');\n\t\t$mandatory['IT'] = array('IBAN');\n\t\t$mandatory['LU'] = array('IBAN');\n\t\t$mandatory['NL'] = array('IBAN');\n\t\t$mandatory['NO'] = array('IBAN');\n\t\t$mandatory['PT'] = array('IBAN');\n\t\t$mandatory['SE'] = array('IBAN');\n\t\t$mandatory['OT'] = array('Account Holder Name', 'Account Number','','Bank Name','Branch Name');\n\t\treturn $mandatory;\n\t}", "public function getAllowedBLZ(): array\n {\n return [\n '70040041',\n '66280053',\n '28540034'\n ];\n }", "public function banks()\n {\n return $this->belongsTo('App\\Bank', 'bank_id');\n }", "public function getBrandList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('tbl_brand');\r\n\t\t$this->db->where('brand_status', '1');\t\t\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public static function getSBUs()\n {\n return self::$sbus;\n }", "protected function _get_card_types()\n\t{\n\t\treturn mod('card_type')->get_list(array('status' => 1));\n\t}", "public static function items_needed_for_brands(){\n Metabox::make('Personalizar sección de marca', 'brand', [\n 'context' => 'normal',\n 'priority' => 'high',\n 'id' => 'brand-banner-metabox'\n ])->set([\n Field::media('brand-header-banner', [\n 'title' => 'Encabezado',\n 'info' => 'Selecciona un banner que aparecerá en el encabezado cuando la marca esté activa.'\n ]),\n Field::color('brand-header-color', [\n 'title' => 'Color del encabezado',\n 'info' => 'Selecciona un color que aparecerá cuando la pantalla exceda las dimensiones de la imagen.'\n ]),\n ]);\n }", "public function loadAvailableValues() {\n\t\treturn BsNamespaceHelper::getNamespacesForSelectOptions( array( -2,-1 ) );\n\t}", "public static function billsUsingBraintree()\n {\n return static::billsUsing('braintree');\n }", "public static function getRanks(): array\r\n {\r\n return array_flip(static::$ranks);\r\n }", "function getBasesList(){\r\n \t$resourceUrl = \"/bases?Take=All\";\r\n\t\t$this->get($resourceUrl);\r\n\t\t// Check reponse status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for Bases Failed.\r\n\t\t\t\t\tStatus: %d\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n }", "public function getBetTypes()\n {\n return $this->betTypes;\n }", "public function getCreditCardBrands($brandName = null)\n {\n try {\n $json = json_decode(\n file_get_contents(\n 'http://embeddables.eastus2.cloudapp.azure.com/payment/bank_info.json'\n )\n );\n if ($brandName) {\n $brandName = ucfirst($brandName);\n return $json->brands->$brandName;\n }\n return $json->brands;\n } catch (Exception $exc) {\n }\n }", "public function index()\n {\n return [\n 'categories' => Category::getRepository()->allWithBrands(),\n 'brands' => Brand::getRepository()->findAll(),\n 'types' => Type::getRepository()->findAll()\n ];\n }", "public function getMaxHandsList(){\n return $this->_get(12);\n }", "function get_brands_for_select()\n{\n $arBrands = array();\n $arBrands[''] = '';\n \n $criteria = new Criteria();\n $brands = BrandPeer::getAll($criteria);\n \n foreach ($brands as $brand) {\n $arBrands[$brand->getId()] = $brand->getTitle();\n }\n \n return $arBrands;\n}", "public function getBrandsProductsAndInv() {\n\t\t$bsql=\"SELECT b.id as value,b.brand_name as label FROM brands b where rstatus='A'\";\t\t\n\t\t$bresult=$this->runQuery('getAll',$bsql);\n\t\t\n\t\t$psql=\"SELECT p.id as value,p.product_name as label FROM products p where rstatus='A'\";\t\t\n\t\t$presult=$this->runQuery('getAll',$psql);\n\t\t\n\t\t$invsql=\"select i.id as inv_item_id, b.brand_name as brand_name,b.id as brand_id, p.product_name as prod_name, p.id as prod_id, i.item_name as item_name, i.entry_date as purchase_date, i.buy_price as buy_price, i.sell_price as sell_price, i.quantity as prod_qty from inventory i,brands b,products p where b.id = i.brand_id and p.id = i.product_id and i.rstatus = 'A'\";\t\t\n\t\t$invresult=$this->runQuery('getAll',$invsql);\n\t\techo '[{\"brandDropdownList\":'.json_encode($bresult).',\"productDropdownList\":'.json_encode($presult).',\"inventoryItemList\":'.json_encode($invresult).'}]';\n\t}", "public function getBzList() {\n if ($this->cached['Bz']) return array_values($this->cache['Bz']);\n return XPClass::forName('de.uska.db.Progress')\n ->getMethod('getPeer')\n ->invoke()\n ->doSelect(new Criteria(\n array('bz_id', $this->getBz_id(), EQUAL)\n ));\n }", "public function allBranches()\n {\n $client = new Client();\n \t$response = $client->request('GET', 'http://www.dpdparcelshop.cz/api/get-all');\n $statusCode = $response->getStatusCode();\n \t$body = $response->getBody()->getContents();\n\n $result = json_decode($body);\n if($result->code != 200){\n return 'External service error';\n }\n\n\n $branches = array();\n foreach($result->data->items as $item){\n $branch = new BranchModel($item);\n array_push($branches, $branch->getBranchData());\n }\n return $branches;\n }", "public function fetchAllSpecificationPreset()\n { \n return SpecificationPreset::select('_id', 'title')->get();\n }", "function returnJBAbilities(){\n\t\t\n\t\t$retArray['playbutton'] = true;\n\t\t$retArray['pausebutton'] = true;\n\t\t$retArray['stopbutton'] = true;\n\t\t$retArray['nextbutton'] = true;\n\t\t$retArray['prevbutton'] = true;\n\t\t$retArray['shufflebutton'] = true;\n\t\t$retArray['clearbutton'] = true;\n\t\t$retArray['repeatbutton'] = false;\n\t\t$retArray['delonebutton'] = true;\n\t\t$retArray['status'] = false;\n\t\t$retArray['progress'] = false;\n\t\t$retArray['volume'] = false;\n\t\t$retArray['addtype'] = true;\n\t\t$retArray['nowplaying'] = false;\n\t\t$retArray['nexttrack'] = false;\n\t\t$retArray['fullplaylist'] = true;\n\t\t$retArray['refreshtime'] = true;\n\t\t$retArray['jump'] = true;\n\t\t$retArray['stats'] = false;\n\t\t$retArray['move'] = true;\n\n\t\treturn $retArray;\n\t}", "public function getBrandsApi($request);", "public function run()\n {\n $banks = [\n 1 => '001 - BANCO DO BRASIL S/A',\n 2 => '002 - BANCO CENTRAL DO BRASIL',\n 3 => '003 - BANCO DA AMAZONIA S.A',\n 4 => '004 - BANCO DO NORDESTE DO BRASIL S.A',\n 7 => '007 - BANCO NAC DESENV. ECO. SOCIAL S.A',\n 8 => '008 - BANCO MERIDIONAL DO BRASIL',\n 20 => '020 - BANCO DO ESTADO DE ALAGOAS S.A',\n 21 => '021 - BANCO DO ESTADO DO ESPIRITO SANTO S.A',\n 22 => '022 - BANCO DE CREDITO REAL DE MINAS GERAIS SA',\n 24 => '024 - BANCO DO ESTADO DE PERNAMBUCO',\n 25 => '025 - BANCO ALFA S/A',\n 26 => '026 - BANCO DO ESTADO DO ACRE S.A',\n 27 => '027 - BANCO DO ESTADO DE SANTA CATARINA S.A',\n 28 => '028 - BANCO DO ESTADO DA BAHIA S.A',\n 29 => '029 - BANCO DO ESTADO DO RIO DE JANEIRO S.A',\n 30 => '030 - BANCO DO ESTADO DA PARAIBA S.A',\n 31 => '031 - BANCO DO ESTADO DE GOIAS S.A',\n 32 => '032 - BANCO DO ESTADO DO MATO GROSSO S.A.',\n 33 => '033 - BANCO DO ESTADO DE SAO PAULO S.A',\n 34 => '034 - BANCO DO ESADO DO AMAZONAS S.A',\n 35 => '035 - BANCO DO ESTADO DO CEARA S.A',\n 36 => '036 - BANCO DO ESTADO DO MARANHAO S.A',\n 37 => '037 - BANCO DO ESTADO DO PARA S.A',\n 38 => '038 - BANCO DO ESTADO DO PARANA S.A',\n 39 => '039 - BANCO DO ESTADO DO PIAUI S.A',\n 41 => '041 - BANCO DO ESTADO DO RIO GRANDE DO SUL S.A',\n 47 => '047 - BANCO DO ESTADO DE SERGIPE S.A',\n 48 => '048 - BANCO DO ESTADO DE MINAS GERAIS S.A',\n 59 => '059 - BANCO DO ESTADO DE RONDONIA S.A',\n 70 => '070 - BANCO DE BRASILIA S.A',\n 104 => '104 - CAIXA ECONOMICA FEDERAL',\n 106 => '106 - BANCO ITABANCO S.A.',\n 107 => '107 - BANCO BBM S.A',\n 109 => '109 - BANCO CREDIBANCO S.A',\n 116 => '116 - BANCO B.N.L DO BRASIL S.A',\n 148 => '148 - MULTI BANCO S.A',\n 151 => '151 - CAIXA ECONOMICA DO ESTADO DE SAO PAULO',\n 153 => '153 - CAIXA ECONOMICA DO ESTADO DO R.G.SUL',\n 165 => '165 - BANCO NORCHEM S.A',\n 166 => '166 - BANCO INTER-ATLANTICO S.A',\n 168 => '168 - BANCO C.C.F. BRASIL S.A',\n 175 => '175 - CONTINENTAL BANCO S.A',\n 184 => '184 - BBA - CREDITANSTALT S.A',\n 199 => '199 - BANCO FINANCIAL PORTUGUES',\n 200 => '200 - BANCO FRICRISA AXELRUD S.A',\n 201 => '201 - BANCO AUGUSTA INDUSTRIA E COMERCIAL S.A',\n 204 => '204 - BANCO S.R.L S.A',\n 205 => '205 - BANCO SUL AMERICA S.A',\n 206 => '206 - BANCO MARTINELLI S.A',\n 208 => '208 - BANCO PACTUAL S.A',\n 210 => '210 - DEUTSCH SUDAMERIKANICHE BANK AG',\n 211 => '211 - BANCO SISTEMA S.A',\n 212 => '212 - BANCO MATONE S.A',\n 213 => '213 - BANCO ARBI S.A',\n 214 => '214 - BANCO DIBENS S.A',\n 215 => '215 - BANCO AMERICA DO SUL S.A',\n 216 => '216 - BANCO REGIONAL MALCON S.A',\n 217 => '217 - BANCO AGROINVEST S.A',\n 218 => '218 - BBS - BANCO BONSUCESSO S.A.',\n 219 => '219 - BANCO DE CREDITO DE SAO PAULO S.A',\n 220 => '220 - BANCO CREFISUL',\n 221 => '221 - BANCO GRAPHUS S.A',\n 222 => '222 - BANCO AGF BRASIL S. A.',\n 223 => '223 - BANCO INTERUNION S.A',\n 224 => '224 - BANCO FIBRA S.A',\n 225 => '225 - BANCO BRASCAN S.A',\n 228 => '228 - BANCO ICATU S.A',\n 229 => '229 - BANCO CRUZEIRO S.A',\n 230 => '230 - BANCO BANDEIRANTES S.A',\n 231 => '231 - BANCO BOAVISTA S.A',\n 232 => '232 - BANCO INTERPART S.A',\n 233 => '233 - BANCO MAPPIN S.A',\n 234 => '234 - BANCO LAVRA S.A.',\n 235 => '235 - BANCO LIBERAL S.A',\n 236 => '236 - BANCO CAMBIAL S.A',\n 237 => '237 - BANCO BRADESCO S.A',\n 239 => '239 - BANCO BANCRED S.A',\n 240 => '240 - BANCO DE CREDITO REAL DE MINAS GERAIS S.',\n 241 => '241 - BANCO CLASSICO S.A',\n 242 => '242 - BANCO EUROINVEST S.A',\n 243 => '243 - BANCO STOCK S.A',\n 244 => '244 - BANCO CIDADE S.A',\n 245 => '245 - BANCO EMPRESARIAL S.A',\n 246 => '246 - BANCO ABC ROMA S.A',\n 247 => '247 - BANCO OMEGA S.A',\n 249 => '249 - BANCO INVESTCRED S.A',\n 250 => '250 - BANCO SCHAHIN CURY S.A',\n 251 => '251 - BANCO SAO JORGE S.A.',\n 252 => '252 - BANCO FININVEST S.A',\n 254 => '254 - BANCO PARANA BANCO S.A',\n 255 => '255 - MILBANCO S.A.',\n 256 => '256 - BANCO GULVINVEST S.A',\n 258 => '258 - BANCO INDUSCRED S.A',\n 261 => '261 - BANCO VARIG S.A',\n 262 => '262 - BANCO BOREAL S.A',\n 263 => '263 - BANCO CACIQUE',\n 264 => '264 - BANCO PERFORMANCE S.A',\n 265 => '265 - BANCO FATOR S.A',\n 266 => '266 - BANCO CEDULA S.A',\n 267 => '267 - BANCO BBM-COM.C.IMOB.CFI S.A.',\n 275 => '275 - BANCO REAL S.A',\n 277 => '277 - BANCO PLANIBANC S.A',\n 282 => '282 - BANCO BRASILEIRO COMERCIAL',\n 291 => '291 - BANCO DE CREDITO NACIONAL S.A',\n 294 => '294 - BCR - BANCO DE CREDITO REAL S.A',\n 295 => '295 - BANCO CREDIPLAN S.A',\n 300 => '300 - BANCO DE LA NACION ARGENTINA S.A',\n 302 => '302 - BANCO DO PROGRESSO S.A',\n 303 => '303 - BANCO HNF S.A.',\n 304 => '304 - BANCO PONTUAL S.A',\n 308 => '308 - BANCO COMERCIAL BANCESA S.A.',\n 318 => '318 - BANCO B.M.G. S.A',\n 320 => '320 - BANCO INDUSTRIAL E COMERCIAL',\n 341 => '341 - BANCO ITAU S.A',\n 346 => '346 - BANCO FRANCES E BRASILEIRO S.A',\n 347 => '347 - BANCO SUDAMERIS BRASIL S.A',\n 351 => '351 - BANCO BOZANO SIMONSEN S.A',\n 353 => '353 - BANCO GERAL DO COMERCIO S.A',\n 356 => '356 - ABN AMRO S.A',\n 366 => '366 - BANCO SOGERAL S.A',\n 369 => '369 - PONTUAL',\n 370 => '370 - BEAL - BANCO EUROPEU PARA AMERICA LATINA',\n 372 => '372 - BANCO ITAMARATI S.A',\n 375 => '375 - BANCO FENICIA S.A',\n 376 => '376 - CHASE MANHATTAN BANK S.A',\n 388 => '388 - BANCO MERCANTIL DE DESCONTOS S/A',\n 389 => '389 - BANCO MERCANTIL DO BRASIL S.A',\n 392 => '392 - BANCO MERCANTIL DE SAO PAULO S.A',\n 394 => '394 - BANCO B.M.C. S.A',\n 399 => '399 - BANCO BAMERINDUS DO BRASIL S.A',\n 409 => '409 - UNIBANCO - UNIAO DOS BANCOS BRASILEIROS',\n 412 => '412 - BANCO NACIONAL DA BAHIA S.A',\n 415 => '415 - BANCO NACIONAL S.A',\n 420 => '420 - BANCO NACIONAL DO NORTE S.A',\n 422 => '422 - BANCO SAFRA S.A',\n 424 => '424 - BANCO NOROESTE S.A',\n 434 => '434 - BANCO FORTALEZA S.A',\n 453 => '453 - BANCO RURAL S.A',\n 456 => '456 - BANCO TOKIO S.A',\n 464 => '464 - BANCO SUMITOMO BRASILEIRO S.A',\n 466 => '466 - BANCO MITSUBISHI BRASILEIRO S.A',\n 472 => '472 - LLOYDS BANK PLC',\n 473 => '473 - BANCO FINANCIAL PORTUGUES S.A',\n 477 => '477 - CITIBANK N.A',\n 479 => '479 - BANCO DE BOSTON S.A',\n 480 => '480 - BANCO PORTUGUES DO ATLANTICO-BRASIL S.A',\n 483 => '483 - BANCO AGRIMISA S.A.',\n 487 => '487 - DEUTSCHE BANK S.A - BANCO ALEMAO',\n 488 => '488 - BANCO J. P. MORGAN S.A',\n 489 => '489 - BANESTO BANCO URUGAUAY S.A',\n 492 => '492 - INTERNATIONALE NEDERLANDEN BANK N.V.',\n 493 => '493 - BANCO UNION S.A.C.A',\n 494 => '494 - BANCO LA REP. ORIENTAL DEL URUGUAY',\n 495 => '495 - BANCO LA PROVINCIA DE BUENOS AIRES',\n 496 => '496 - BANCO EXTERIOR DE ESPANA S.A',\n 498 => '498 - CENTRO HISPANO BANCO',\n 499 => '499 - BANCO IOCHPE S.A',\n 501 => '501 - BANCO BRASILEIRO IRAQUIANO S.A.',\n 502 => '502 - BANCO SANTANDER S.A',\n 504 => '504 - BANCO MULTIPLIC S.A',\n 505 => '505 - BANCO GARANTIA S.A',\n 600 => '600 - BANCO LUSO BRASILEIRO S.A',\n 601 => '601 - BFC BANCO S.A.',\n 602 => '602 - BANCO PATENTE S.A',\n 604 => '604 - BANCO INDUSTRIAL DO BRASIL S.A',\n 607 => '607 - BANCO SANTOS NEVES S.A',\n 608 => '608 - BANCO OPEN S.A',\n 610 => '610 - BANCO V.R. S.A',\n 611 => '611 - BANCO PAULISTA S.A',\n 612 => '612 - BANCO GUANABARA S.A',\n 613 => '613 - BANCO PECUNIA S.A',\n 616 => '616 - BANCO INTERPACIFICO S.A',\n 617 => '617 - BANCO INVESTOR S.A.',\n 618 => '618 - BANCO TENDENCIA S.A',\n 621 => '621 - BANCO APLICAP S.A.',\n 622 => '622 - BANCO DRACMA S.A',\n 623 => '623 - BANCO PANAMERICANO S.A',\n 624 => '624 - BANCO GENERAL MOTORS S.A',\n 625 => '625 - BANCO ARAUCARIA S.A',\n 626 => '626 - BANCO FICSA S.A',\n 627 => '627 - BANCO DESTAK S.A',\n 628 => '628 - BANCO CRITERIUM S.A',\n 629 => '629 - BANCORP BANCO COML. E. DE INVESTMENTO',\n 630 => '630 - BANCO INTERCAP S.A',\n 633 => '633 - BANCO REDIMENTO S.A',\n 634 => '634 - BANCO TRIANGULO S.A',\n 635 => '635 - BANCO DO ESTADO DO AMAPA S.A',\n 637 => '637 - BANCO SOFISA S.A',\n 638 => '638 - BANCO PROSPER S.A',\n 639 => '639 - BIG S.A. - BANCO IRMAOS GUIMARAES',\n 640 => '640 - BANCO DE CREDITO METROPOLITANO S.A',\n 641 => '641 - BANCO EXCEL ECONOMICO S/A',\n 643 => '643 - BANCO SEGMENTO S.A',\n 645 => '645 - BANCO DO ESTADO DE RORAIMA S.A',\n 647 => '647 - BANCO MARKA S.A',\n 648 => '648 - BANCO ATLANTIS S.A',\n 649 => '649 - BANCO DIMENSAO S.A',\n 650 => '650 - BANCO PEBB S.A',\n 652 => '652 - BANCO FRANCES E BRASILEIRO SA',\n 653 => '653 - BANCO INDUSVAL S.A',\n 654 => '654 - BANCO A. J. RENNER S.A',\n 655 => '655 - BANCO VOTORANTIM S.A.',\n 656 => '656 - BANCO MATRIX S.A',\n 657 => '657 - BANCO TECNICORP S.A',\n 658 => '658 - BANCO PORTO REAL S.A',\n 702 => '702 - BANCO SANTOS S.A',\n 705 => '705 - BANCO INVESTCORP S.A.',\n 707 => '707 - BANCO DAYCOVAL S.A',\n 711 => '711 - BANCO VETOR S.A.',\n 713 => '713 - BANCO CINDAM S.A',\n 715 => '715 - BANCO VEGA S.A',\n 718 => '718 - BANCO OPERADOR S.A',\n 719 => '719 - BANCO PRIMUS S.A',\n 720 => '720 - BANCO MAXINVEST S.A',\n 721 => '721 - BANCO CREDIBEL S.A',\n 722 => '722 - BANCO INTERIOR DE SAO PAULO S.A',\n 724 => '724 - BANCO PORTO SEGURO S.A',\n 725 => '725 - BANCO FINABANCO S.A',\n 726 => '726 - BANCO UNIVERSAL S.A',\n 728 => '728 - BANCO FITAL S.A',\n 729 => '729 - BANCO FONTE S.A',\n 730 => '730 - BANCO COMERCIAL PARAGUAYO S.A',\n 731 => '731 - BANCO GNPP S.A.',\n 732 => '732 - BANCO PREMIER S.A.',\n 733 => '733 - BANCO NACOES S.A.',\n 734 => '734 - BANCO GERDAU S.A',\n 735 => '735 - BACO POTENCIAL',\n 736 => '736 - BANCO UNITED S.A',\n 737 => '737 - THECA',\n 738 => '738 - MARADA',\n 739 => '739 - BGN',\n 740 => '740 - BCN BARCLAYS',\n 741 => '741 - BRP',\n 742 => '742 - EQUATORIAL',\n 743 => '743 - BANCO EMBLEMA S.A',\n 744 => '744 - THE FIRST NATIONAL BANK OF BOSTON',\n 745 => '745 - CITIBAN N.A.',\n 746 => '746 - MODAL SA',\n 747 => '747 - RAIBOBANK DO BRASIL',\n 748 => '748 - SICREDI',\n 749 => '749 - BRMSANTIL SA',\n 750 => '750 - BANCO REPUBLIC NATIONAL OF NEW YORK (BRA',\n 751 => '751 - DRESDNER BANK LATEINAMERIKA-BRASIL S/A',\n 752 => '752 - BANCO BANQUE NATIONALE DE PARIS BRASIL S',\n 753 => '753 - BANCO COMERCIAL URUGUAI S.A.',\n 755 => '755 - BANCO MERRILL LYNCH S.A',\n 756 => '756 - BANCO COOPERATIVO DO BRASIL S.A.',\n 757 => '757 - BANCO KEB DO BRASIL S.A.',\n ];\n\n Bank::truncate();\n\n foreach($banks as $bankId => $bankName) {\n Bank::create([\n 'id' => $bankId,\n 'name' => $bankName\n ]);\n }\n }", "function dir_link_ranks_entity_property_info() {\n $info = array();\n $entity_info = entity_get_info('dir_rank');\n foreach ($entity_info['bundles'] as $bundle => $bundle_info) {\n $info[$bundle] = array(\n 'label' => $bundle_info['label'],\n 'description' => t('@rank is a rank score of link.', array('@rank' => $bundle_info['label'])),\n 'type' => 'dir_rank',\n );\n }\n\n return $info;\n}", "public function getBankName()\n {\n return $this->bank_name;\n }", "public function getBankName()\n {\n return $this->bank_name;\n }", "public function getBankName()\n {\n return $this->bank_name;\n }", "public function getBrandCodes() {\n return $this->api('brandcodes')->getRows();\n }", "private function loadBikeModelsBrands($p = null){\n\t\tinclude_once(System_Properties::ADMIN_MOD_PATH.'/models/bike/db_selBikeBrand.php');\n\t\tinclude_once(System_Properties::ADMIN_MOD_PATH.'/models/bike/db_selBikeModel.php');\n\t\t\n\t\t$bikeBrand = db_selBikeBrand(array('orderby'=>array(array('col' => 'brandName'))\n\t\t\t\t\t\t\t\t\t\t\t,'active' => 1));\n\t\t$bikeModel = false;\n\t\tif(is_array($bikeBrand) && (count($bikeBrand) > 0)){\n\t\t\t$bikeBrandID = $bikeBrand[0]['bikeBrandID'];\n\t\t\tif (isset($p['bikeBrand']) && !is_array($p['bikeBrand'])){\n\t\t\t\t$bikeBrandID = $p['bikeBrand'];\n\t\t\t}\n\t\t\telseif (isset($p['bikeBrand']) && is_array($p['bikeBrand']) && (count($p['bikeBrand']) > 0)){\n\t\t\t\t$bikeBrandID = array();\n\t\t\t\tforeach ($p['bikeBrand'] as $key => $val){\n\t\t\t\t\tarray_push($bikeBrandID, $val);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$bikeModel = db_selBikeModel(array('bikeBrandID' => $bikeBrandID));\n\t\t}\n\t\t\n\t\t$this -> view -> bikeBrand = $bikeBrand;\n\t\t$this -> view -> bikeModel = $bikeModel;\n\t}", "public function getTheSupports();", "public function getAll()\n {\n return DB::table('bukus')->all();\n }", "public function actionGetbrands(){\n $brands = ArrayHelper::map(brands::find()->joinwith('equipBrands','equipBrands.brand_id')->where(['equip_id' => $_POST['id'],'status'=>1])->all(), 'id_brand', 'brandName');\n return json_encode($brands);\n }", "public function index()\n {\n return Brand::all();\n }", "public static function readClub(){\n return twp_Club::getAllClub();\n }", "public function getALLBrand(){\n\t\t\t \t$query = \"SELECT * FROM tbl_brand ORDER BY brandId DESC\";\n\t\t\t \t$result = $this->db->select($query);\n\t\t\t \treturn $result;\n\t\t\t \t\n\t\t\t }", "public function getBasics($settings = array())\n\t{\n//\t\t$players = $this->players;\n//\t\t$classes_arr = array(\n//\t\t\t'Sportorg_Games_Matchplayer' => 'players',\n//\t\t);\n//\t\t$players = ORM::_sql_exclude_deleted($classes_arr, $players);\n//\t\t$playerArr = null;\n//\t\tforeach($players->find_all() as $player){\n//\t\t\t$playerArr[] = $player->getBasics();\n//\t\t}\n//\t\treturn array(\n//\t\t\t\"id\" => $this->id,\n//\t\t\t\"games_id\" => $this->games_id,\n//\t\t\t\"match_num\" => $this->match_num,\n//\t\t\t\"game\" => $this->game->getBasics(),\n//\t\t\t\"players\" => $playerArr\n//\t\t);\n\n\t\treturn parent::getBasics($settings);\n\t}", "function get_all_branch_wilayah()\n {\n \t$param = array();\n\t\t$branch_code = $this->session->userdata('branch_code');\n\t\t$flag_all_branch = $this->session->userdata('flag_all_branch');\n\n $sql = \"SELECT \n \t\t\t\t branch_id\n \t\t\t\t,branch_code \n \t\t\t\t,branch_name\n \t\tFROM \n \t\t\t\t mfi_branch\n\t\t\t\tWHERE \n\t\t\t\t\t\tbranch_class=1\n\t\t\t\t\";\n\n\t\tif($flag_all_branch!='1'){ // tidak punya akses seluruh cabang\n\t\t\t$sql .= \" AND branch_code in(select branch_code from mfi_branch_member where branch_induk=?)\";\n\t\t\t$param[] = $branch_code;\n\t\t}\n\n\t\t$sql .= \" ORDER BY 2 \";\n\n\t\t$query = $this->db->query($sql,$param);\n\n\t\treturn $query->result_array();\n }", "public function get_ibridge()\n {\n $out = array();\n $sql = \"SELECT COUNT(CASE WHEN model_name <> '' AND model_name IS NOT NULL THEN 1 END) AS count, model_name \n FROM ibridge\n LEFT JOIN reportdata USING (serial_number)\n \".get_machine_group_filter().\"\n GROUP BY model_name\n ORDER BY count DESC\";\n \n foreach ($this->query($sql) as $obj) {\n if (\"$obj->count\" !== \"0\") {\n $obj->model_name = $obj->model_name ? $obj->model_name : 'Unknown';\n $out[] = $obj;\n }\n }\n return $out;\n }", "public function getSkinsAll()\n {\n return array(\n \\XLite::CUSTOMER_INTERFACE => self::PATH_CUSTOMER,\n \\XLite::COMMON_INTERFACE => self::PATH_COMMON,\n \\XLite::ADMIN_INTERFACE => self::PATH_ADMIN,\n \\XLite::CONSOLE_INTERFACE => self::PATH_CONSOLE,\n \\XLite::MAIL_INTERFACE => self::PATH_MAIL,\n \\XLite::PDF_INTERFACE => self::PATH_PDF,\n );\n }", "public function getRoundList(){\n $query = $this->getDbTable()->select()\n ->from('tbmatch', array('distinct (round)'))\n ->order('round');\n $resultSet = $this->getDbTable()->fetchAll($query);\n $entries = array();\n foreach ($resultSet as $row) {\n \t//build a combo box with round\n $entries[$row->round]=$row->round;\n }\n return $entries;\n\t}", "public function getDriverNames(): array;", "public function getBankData()\n {\n $bankdata = null;\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n (!$quote->getCustomerIsGuest()) ? $customerId = $quote->getCustomer()->getId() : $customerId = '';\n $piEncryption = new Pi_Util_Encryption_MagentoEncryption();\n if (!$quote->getCustomerIsGuest() && $piEncryption->isBankdataSetForUser($customerId)) {\n $bankdata = $piEncryption->loadBankdata($customerId);\n } else {\n $bankdata = array (\n 'owner' => Mage::getSingleton('core/session')->getAccountHolder()\n );\n\n if(Mage::getSingleton('core/session')->getIban()) {\n $bankdata['iban'] = Mage::getSingleton('core/session')->getIban();\n } else {\n $bankdata['accountnumber'] = Mage::getSingleton('core/session')->getAccountNumber();\n $bankdata['bankcode'] = Mage::getSingleton('core/session')->getBankCodeNumber();\n }\n }\n return $bankdata;\n }", "public function getNames()\n {\n return array_keys(self::$availableManufacturers);\n }" ]
[ "0.716039", "0.697267", "0.6895214", "0.6843429", "0.67175686", "0.65266407", "0.649575", "0.6494391", "0.63065696", "0.6274418", "0.6133843", "0.6119011", "0.5998785", "0.5972275", "0.5972258", "0.5941138", "0.59089357", "0.58817226", "0.57792085", "0.5778962", "0.5764283", "0.57424647", "0.5734237", "0.5733136", "0.57175064", "0.55827206", "0.5565499", "0.55557466", "0.5555052", "0.5521698", "0.54718566", "0.54391956", "0.543891", "0.5432727", "0.54295236", "0.54047894", "0.54037803", "0.5376748", "0.5371278", "0.53695846", "0.5368537", "0.5366202", "0.53234106", "0.53087866", "0.53040946", "0.52931637", "0.52701443", "0.52336645", "0.5227503", "0.5223549", "0.5220678", "0.5211944", "0.5198853", "0.5196649", "0.51828873", "0.5162102", "0.51609886", "0.5110759", "0.5105547", "0.5104603", "0.50954354", "0.5077364", "0.5072686", "0.5072604", "0.5056268", "0.50527114", "0.5034651", "0.5033076", "0.5016657", "0.5014658", "0.50070304", "0.49999008", "0.4988274", "0.49863747", "0.4984294", "0.49648252", "0.49597633", "0.4959337", "0.4958267", "0.49553868", "0.49551907", "0.4951064", "0.4951064", "0.4951064", "0.49459428", "0.49423724", "0.49145913", "0.49142042", "0.48975605", "0.48916268", "0.48906937", "0.48805383", "0.4877298", "0.48667386", "0.48585013", "0.48558572", "0.4849696", "0.48461455", "0.48380816", "0.48369363" ]
0.5570688
26
Gets a list of countries that Paystack currently supports
public function countries(): array { return $this->client->get("country"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCountryList()\n {\n return $this->call('country.list');\n }", "public function getCountrylist()\n {\n $cachePool = new FilesystemAdapter('', 0, \"cache\");\n \n if ($cachePool->hasItem('countries')) {\n $countries = $cachePool->getItem('countries')->get();\n } else {\n $countries = $this->client->request(\n 'GET',\n 'https://kayaposoft.com/enrico/json/v2.0?action=getSupportedCountries'\n )->toArray();\n $countriesCache = $cachePool->getItem('countries');\n \n if (!$countriesCache->isHit()) {\n $countriesCache->set($countries);\n $countriesCache->expiresAfter(60*60*24);\n $cachePool->save($countriesCache);\n }\n }\n\n return $countries;\n }", "public function get_countries()\n\t{\n\t\t$t_countries = xtc_get_countriesList();\n\t\treturn $t_countries;\n\t}", "public function getCountriesList() {\n return $this->_get(7);\n }", "public function getCountryList()\n {\n $countryList=array(\n 'BG'=>__('Bulgaria')\n 'DE'=>__('Germany'),\n 'GB'=>__('Great Britain'),\n );\n\n return $countryList;\n }", "public static function getCountries()\n {\n return self::$countryList;\n }", "public function getCountryList()\r\n {\r\n return $this->admin->sGetCountryList();\r\n }", "public function getCountries();", "public function countries(): array\n {\n $payload = Payload::list('countries');\n\n $result = $this->transporter->get($payload->uri)->throw();\n\n return (array) $result->json('data');\n }", "public function getCountries() {\n\n $result = $this->doRequest('v1.0/all-countries', 'GET');\n\n return $result;\n\n }", "static function get_countries() {\n static $ret = array();\n if(empty($ret)) {\n global $wpdb;\n $ret = $wpdb->get_results('SELECT * FROM ai_country ORDER BY name', OBJECT_K);\n }\n return $ret;\n }", "public function get_country_list() \n\t{\n\t\treturn $this->db->select('num_code')\n\t\t->select('country_name')\n\t\t->select('num_code')\n\t\t->from('system_iso3166_l10n')\n\t\t->order_by('country_name', 'ASC')\t\n\t\t->get()->result();\n\t}", "public function getListCountry()\n\t{\n\t\t$params = [\n\t\t\t'verify' => false,\n\t\t\t'query' => [\n\t\t\t\t'output' => Config::get( 'response.format' )\n\t\t\t]\n\t\t];\n\n\t\t$baseUrl = sprintf( Config::get( 'endpoints.base_url' ), Config::get( 'settings.api' ) ) . Config::get( 'endpoints.general_list_country' );\n\n\t\ttry {\n\t\t\t$response = parent::send( 'GET', $baseUrl, $params );\n\t\t} catch (TiketException $e) {\n\t\t\tthrow parent::convertException( $e );\n\t\t}\n\n\t\treturn $response;\n\t}", "public function getAllCountryCodes() {\n\t\t$filter = new Filters\\Misc\\CountryCode();\n\t\treturn $filter->query->find();\n\t}", "public function getCountriesInfo();", "public function getAvailableCountries()\n {\n $availableCountries=array();\n $models=ShippingCosts::model()->findAll(array(\n 'select'=>'t.country_code',\n 'group'=>'t.country_code',\n 'distinct'=>true,\n 'condition'=>'t.shipping_method_id=:shipping_method_id',\n 'params'=>array(':shipping_method_id'=>$this->id),\n ));\n $availableCountries=CHtml::listData($models, 'country_code', 'country_code');\n return $availableCountries;\n }", "public function getCountries() {\n\n $countries = civicrm_api3('Address', 'Getoptions', [\n 'field' => 'country_id',\n ]);\n return $countries['values'];\n }", "public function sGetCountryList()\n {\n $context = Shopware()->Container()->get('shopware_storefront.context_service')->getShopContext();\n $service = Shopware()->Container()->get('shopware_storefront.location_service');\n\n $countryList = $service->getCountries($context);\n $countryList = Shopware()->Container()->get('legacy_struct_converter')->convertCountryStructList($countryList);\n\n $countryList = array_map(function ($country) {\n $request = $this->front->Request();\n $countryId = (int) $country['id'];\n $country['flag'] = ((int) $request->getPost('country') === $countryId || (int) $request->getPost('countryID') === $countryId);\n\n return $country;\n }, $countryList);\n\n $countryList = $this->eventManager->filter(\n 'Shopware_Modules_Admin_GetCountries_FilterResult',\n $countryList,\n ['subject' => $this]\n );\n\n return $countryList;\n }", "protected function _getCountries()\n {\n return $options = $this->_getCountryCollection()\n ->setForegroundCountries($this->_getTopDestinations())\n ->toOptionArray();\n }", "public function get_all_countries_list()\n\t {\n\t \t$query=$this->ApiModel->get_all_countries();\n\t \techo json_encode($query);\n\t }", "public static function getSupportedCountriesOffline()\n {\n return static::getSupportedCountries();\n }", "public function getCountries() {\n\t\treturn $this->getData('/objekt/laender');\n\t}", "public function getCountries()\n {\n return $this->countries;\n }", "public function getCountries()\n {\n return $this->countries;\n }", "public function getCountries()\n {\n return $this->countries;\n }", "public function getCountryOptions() {\n\t\treturn array(\n \"us\" => \"United States\",\n \"uk\" => \"United Kingdom\",\n \"ca\" => \"Canada\",\n );\n }", "public function getCountries()\n {\n if (is_null($this->_countries)) {\n $this->_countries = Mage::getModel('adminhtml/system_config_source_country')\n ->toOptionArray();\n }\n\n return $this->_countries;\n }", "function GetCountries()\n\t{\n\t\t$result = $this->sendRequest(\"GetCountries\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function getCountryList() {\n $result = array();\n $collection = Mage::getModel('directory/country')->getCollection();\n foreach ($collection as $country) {\n $cid = $country->getId();\n $cname = $country->getName();\n $result[$cid] = $cname;\n }\n return $result;\n }", "public function country_list()\n {\n $result = common_select_values('id, name', 'ad_countries', '', 'result');\n return $result; \n }", "public static function countries(): array\n\t{\n\t\treturn ArrayLists::countries();\n\t}", "function countryList()\n {\n $arrClms = array(\n 'country_id',\n 'name',\n );\n $varOrderBy = 'name ASC ';\n $arrRes = $this->select(TABLE_COUNTRY, $arrClms);\n //pre($arrRes);\n return $arrRes;\n }", "function getSiteCountries() {\n global $dbAccess;\n $this->db = $dbAccess;\n $data = $this->db->SimpleQuery(\"SELECT * FROM \" . TBL_COUNTRIES . \" WHERE status='1' ORDER BY country_name\");\n\n return $data;\n }", "public function countryList(){\n $response['status'] = \"false\"; \n $response['message'] = \"Invalid request.\"; \n \n $country = Country::getCountries();\n if(!empty($country)){\n $response['status'] = \"true\"; \n $response['message'] = \"Country data.\"; \n $response['data'] = $country; \n }\n $this->response($response);\n \n }", "public function getCountries()\n {\n return \"/V1/directory/countries\";\n }", "private function getCountriesList()\n {\n $list = [];\n $countries = Twilio::init()->getAvailableCountries();\n\n foreach($countries as $item) {\n $list[$item->country_code] = $item->country;\n }\n ksort($list);\n return $list;\n }", "protected function operatingCountries()\n {\n return OperatingCountry::all();\n }", "public function getCountries()\n {\n return $this->_countries;\n }", "public function countryOptionList();", "function getAllCountries() {\n $myModel = new My_Model();\n $result = $myModel->select('countries', \"*\", null);\n if (count($result) > 1) {\n return $result = [\n \"message\" => \"countries list\",\n \"data\" => $result\n ];\n } else {\n return $resp = [\n \"message\" => \"no country available\",\n \"data\" => \"null\"\n ];\n }\n }", "function country_list()\t{\r\n\t\t$list = array(\r\n\t\t\t'AF' => 'Afghanistan',\r\n\t\t\t'AX' => 'Aland Island (Finland)',\r\n\t\t\t'AL' => 'Albania',\r\n\t\t\t'DZ' => 'Algeria',\r\n\t\t\t'AD' => 'Andorra',\r\n\t\t\t'AO' => 'Angola',\r\n\t\t\t'AI' => 'Anguilla',\r\n\t\t\t'AG' => 'Antigua and Barbuda',\r\n\t\t\t'AR' => 'Argentina',\r\n\t\t\t'AM' => 'Armenia',\r\n\t\t\t'AW' => 'Aruba',\r\n\t\t\t'AU' => 'Australia',\r\n\t\t\t'AT' => 'Austria',\r\n\t\t\t'AZ' => 'Azerbaijan',\r\n\t\t\t'BS' => 'Bahamas',\r\n\t\t\t'BH' => 'Bahrain',\r\n\t\t\t'BD' => 'Bangladesh',\r\n\t\t\t'BB' => 'Barbados',\r\n\t\t\t'BY' => 'Belarus',\r\n\t\t\t'BE' => 'Belgium',\r\n\t\t\t'BZ' => 'Belize',\r\n\t\t\t'BJ' => 'Benin',\r\n\t\t\t'BM' => 'Bermuda',\r\n\t\t\t'BT' => 'Bhutan',\r\n\t\t\t'BO' => 'Bolivia',\r\n\t\t\t'BQ' => 'Bonaire (Netherlands Antilles)',\r\n\t\t\t'BA' => 'Bosnia-Herzegovina',\r\n\t\t\t'BW' => 'Botswana',\r\n\t\t\t'BR' => 'Brazil',\r\n\t\t\t'VG' => 'British Virgin Islands',\r\n\t\t\t'BN' => 'Brunei Darussalam',\r\n\t\t\t'BG' => 'Bulgaria',\r\n\t\t\t'BF' => 'Burkina Faso',\r\n\t\t\t'MM' => 'Burma',\r\n\t\t\t'BI' => 'Burundi',\r\n\t\t\t'KH' => 'Cambodia',\r\n\t\t\t'CM' => 'Cameroon',\r\n\t\t\t'CA' => 'Canada',\r\n\t\t\t'CV' => 'Cape Verde',\r\n\t\t\t'KY' => 'Cayman Islands',\r\n\t\t\t'CF' => 'Central African Republic',\r\n\t\t\t'TD' => 'Chad',\r\n\t\t\t'CL' => 'Chile',\r\n\t\t\t'CN' => 'China',\r\n\t\t\t'CX' => 'Christmas Island (Australia)',\r\n\t\t\t'CC' => 'Cocos Island (Australia)',\r\n\t\t\t'CO' => 'Colombia',\r\n\t\t\t'KM' => 'Comoros',\r\n\t\t\t'CG' => 'Congo, Republic of the',\r\n\t\t\t'CD' => 'Congo, Democratic Republic of the',\r\n\t\t\t'CK' => 'Cook Islands (New Zealand)',\r\n\t\t\t'CR' => 'Costa Rica',\r\n\t\t\t'CI' => 'Cote d\\'Ivoire',\r\n\t\t\t'HR' => 'Croatia',\r\n\t\t\t'CU' => 'Cuba',\r\n\t\t\t'CW' => 'Curacao (Netherlands Antilles)',\r\n\t\t\t'CY' => 'Cyprus',\r\n\t\t\t'CZ' => 'Czech Republic',\r\n\t\t\t'DK' => 'Denmark',\r\n\t\t\t'DJ' => 'Djibouti',\r\n\t\t\t'DM' => 'Dominica',\r\n\t\t\t'DO' => 'Dominican Republic',\r\n\t\t\t'TL' => 'East Timor (Indonesia)',\r\n\t\t\t'EC' => 'Ecuador',\r\n\t\t\t'EG' => 'Egypt',\r\n\t\t\t'SV' => 'El Salvador',\r\n\t\t\t'GQ' => 'Equatorial Guinea',\r\n\t\t\t'ER' => 'Eritrea',\r\n\t\t\t'EE' => 'Estonia',\r\n\t\t\t'ET' => 'Ethiopia',\r\n\t\t\t'FK' => 'Falkland Islands',\r\n\t\t\t'FO' => 'Faroe Islands',\r\n\t\t\t'FJ' => 'Fiji',\r\n\t\t\t'FI' => 'Finland',\r\n\t\t\t'FR' => 'France',\r\n\t\t\t'GF' => 'French Guiana',\r\n\t\t\t'PF' => 'French Polynesia',\r\n\t\t\t'GA' => 'Gabon',\r\n\t\t\t'GM' => 'Gambia',\r\n\t\t\t'GE' => 'Georgia, Republic of',\r\n\t\t\t'DE' => 'Germany',\r\n\t\t\t'GH' => 'Ghana',\r\n\t\t\t'GI' => 'Gibraltar',\r\n\t\t\t'GB' => 'Great Britain and Northern Ireland',\r\n\t\t\t'GR' => 'Greece',\r\n\t\t\t'GL' => 'Greenland',\r\n\t\t\t'GD' => 'Grenada',\r\n\t\t\t'GP' => 'Guadeloupe',\r\n\t\t\t'GT' => 'Guatemala',\r\n\t\t\t'GG' => 'Guernsey',\r\n\t\t\t'GN' => 'Guinea',\r\n\t\t\t'GW' => 'Guinea-Bissau',\r\n\t\t\t'GY' => 'Guyana',\r\n\t\t\t'HT' => 'Haiti',\r\n\t\t\t'HN' => 'Honduras',\r\n\t\t\t'HK' => 'Hong Kong',\r\n\t\t\t'HU' => 'Hungary',\r\n\t\t\t'IS' => 'Iceland',\r\n\t\t\t'IN' => 'India',\r\n\t\t\t'ID' => 'Indonesia',\r\n\t\t\t'IR' => 'Iran',\r\n\t\t\t'IQ' => 'Iraq',\r\n\t\t\t'IE' => 'Ireland',\r\n\t\t\t'IM' => 'Isle of Man (Great Britain and Northern Ireland)',\r\n\t\t\t'IL' => 'Israel',\r\n\t\t\t'IT' => 'Italy',\r\n\t\t\t'JM' => 'Jamaica',\r\n\t\t\t'JP' => 'Japan',\r\n\t\t\t'JE' => 'Jersey (Channel Islands) (Great Britain and Northern Ireland)',\r\n\t\t\t'JO' => 'Jordan',\r\n\t\t\t'KZ' => 'Kazakhstan',\r\n\t\t\t'KE' => 'Kenya',\r\n\t\t\t'KI' => 'Kiribati',\r\n\t\t\t'KW' => 'Kuwait',\r\n\t\t\t'KG' => 'Kyrgyzstan',\r\n\t\t\t'LA' => 'Laos',\r\n\t\t\t'LV' => 'Latvia',\r\n\t\t\t'LB' => 'Lebanon',\r\n\t\t\t'LS' => 'Lesotho',\r\n\t\t\t'LR' => 'Liberia',\r\n\t\t\t'LY' => 'Libya',\r\n\t\t\t'LI' => 'Liechtenstein',\r\n\t\t\t'LT' => 'Lithuania',\r\n\t\t\t'LU' => 'Luxembourg',\r\n\t\t\t'MO' => 'Macao',\r\n\t\t\t'MK' => 'Macedonia, Republic of',\r\n\t\t\t'MG' => 'Madagascar',\r\n\t\t\t'MW' => 'Malawi',\r\n\t\t\t'MY' => 'Malaysia',\r\n\t\t\t'MV' => 'Maldives',\r\n\t\t\t'ML' => 'Mali',\r\n\t\t\t'MT' => 'Malta',\r\n\t\t\t'MQ' => 'Martinique',\r\n\t\t\t'MR' => 'Mauritania',\r\n\t\t\t'MU' => 'Mauritius',\r\n\t\t\t'YT' => 'Mayotte (France)',\r\n\t\t\t'MX' => 'Mexico',\r\n\t\t\t'MD' => 'Moldova',\r\n\t\t\t'MC' => 'Monaco (France)',\r\n\t\t\t'MN' => 'Mongolia',\r\n\t\t\t'ME' => 'Montenegro',\r\n\t\t\t'MS' => 'Montserrat',\r\n\t\t\t'MA' => 'Morocco',\r\n\t\t\t'MZ' => 'Mozambique',\r\n\t\t\t'NA' => 'Namibia',\r\n\t\t\t'NR' => 'Nauru',\r\n\t\t\t'NP' => 'Nepal',\r\n\t\t\t'NL' => 'Netherlands',\r\n\t\t\t'AN' => 'Netherlands Antilles',\r\n\t\t\t'NC' => 'New Caledonia',\r\n\t\t\t'NZ' => 'New Zealand',\r\n\t\t\t'NI' => 'Nicaragua',\r\n\t\t\t'NE' => 'Niger',\r\n\t\t\t'NG' => 'Nigeria',\r\n\t\t\t'NU' => 'Niue',\r\n\t\t\t'NF' => 'Norfolk Island',\r\n\t\t\t'KP' => 'North Korea (Korea, Democratic People\\'s Republic of)',\r\n\t\t\t'NO' => 'Norway',\r\n\t\t\t'OM' => 'Oman',\r\n\t\t\t'PK' => 'Pakistan',\r\n\t\t\t'PA' => 'Panama',\r\n\t\t\t'PG' => 'Papua New Guinea',\r\n\t\t\t'PY' => 'Paraguay',\r\n\t\t\t'PE' => 'Peru',\r\n\t\t\t'PH' => 'Philippines',\r\n\t\t\t'PN' => 'Pitcairn Island',\r\n\t\t\t'PL' => 'Poland',\r\n\t\t\t'PT' => 'Portugal',\r\n\t\t\t'QA' => 'Qatar',\r\n\t\t\t'RE' => 'Reunion',\r\n\t\t\t'RO' => 'Romania',\r\n\t\t\t'RU' => 'Russia',\r\n\t\t\t'RW' => 'Rwanda',\r\n\t\t\t'BL' => 'Saint Barthelemy (Guadeloupe)',\r\n\t\t\t'SH' => 'Saint Helena',\r\n\t\t\t'KN' => 'Saint Kitts (Saint Christopher and Nevis)',\r\n\t\t\t'LC' => 'Saint Lucia',\r\n\t\t\t'MF' => 'Saint Martin (French) (Guadeloupe)',\r\n\t\t\t'PM' => 'Saint Pierre and Miquelon',\r\n\t\t\t'VC' => 'Saint Vincent and the Grenadines',\r\n\t\t\t'SM' => 'San Marino',\r\n\t\t\t'ST' => 'Sao Tome and Principe',\r\n\t\t\t'SA' => 'Saudi Arabia',\r\n\t\t\t'SN' => 'Senegal',\r\n\t\t\t'RS' =>\t'Serbia, Republic of',\r\n\t\t\t'SC' => 'Seychelles',\r\n\t\t\t'SL' => 'Sierra Leone',\r\n\t\t\t'SG' => 'Singapore',\r\n\t\t\t'SX' => 'Saint Maarten (Dutch) (Netherlands Antilles)',\r\n\t\t\t'SK' => 'Slovak Republic',\r\n\t\t\t'SI' => 'Slovenia',\r\n\t\t\t'SB' => 'Solomon Islands',\r\n\t\t\t'SO' => 'Somalia',\r\n\t\t\t'ZA' => 'South Africa',\r\n\t\t\t'GS' => 'South Georgia (Falkland Islands)',\r\n\t\t\t'KR' => 'South Korea (Korea, Republic of)',\r\n\t\t\t'SS' => 'Sudan', // South Sudan, not listed separately from Sudan by USPS\r\n\t\t\t'ES' => 'Spain',\r\n\t\t\t'LK' => 'Sri Lanka',\r\n\t\t\t'SD' => 'Sudan',\r\n\t\t\t'SR' => 'Suriname',\r\n\t\t\t'SZ' => 'Swaziland',\r\n\t\t\t'SE' => 'Sweden',\r\n\t\t\t'CH' => 'Switzerland',\r\n\t\t\t'SY' => 'Syrian Arab Republic',\r\n\t\t\t'TW' => 'Taiwan',\r\n\t\t\t'TJ' => 'Tajikistan',\r\n\t\t\t'TZ' => 'Tanzania',\r\n\t\t\t'TH' => 'Thailand',\r\n\t\t\t'TG' => 'Togo',\r\n\t\t\t'TK' => 'Tokelau (Union Group) (Western Samoa)',\r\n\t\t\t'TO' => 'Tonga',\r\n\t\t\t'TT' => 'Trinidad and Tobago',\r\n\t\t\t'TN' => 'Tunisia',\r\n\t\t\t'TR' => 'Turkey',\r\n\t\t\t'TM' => 'Turkmenistan',\r\n\t\t\t'TC' => 'Turks and Caicos Islands',\r\n\t\t\t'TV' => 'Tuvalu',\r\n\t\t\t'UG' => 'Uganda',\r\n\t\t\t'UA' => 'Ukraine',\r\n\t\t\t'AE' => 'United Arab Emirates',\r\n\t\t\t'UY' => 'Uruguay',\r\n\t\t\t'UZ' => 'Uzbekistan',\r\n\t\t\t'VU' => 'Vanuatu',\r\n\t\t\t'VA' => 'Vatican City',\r\n\t\t\t'VE' => 'Venezuela',\r\n\t\t\t'VN' => 'Vietnam',\r\n\t\t\t'WF' => 'Wallis and Futuna Islands',\r\n\t\t\t'WS' => 'Western Samoa',\r\n\t\t\t'YE' => 'Yemen',\r\n\t\t\t'ZM' => 'Zambia',\r\n\t\t\t'ZW' => 'Zimbabwe');\r\n\t\treturn $list;\r\n\t}", "public function getCountries()\n {\n foreach (CountryStorage::getAll() as $id=>$content) {\n $key = $content->id;\n $value = $content->name;\n $countryoptions[$key] = $value;\n }\n return $countryoptions;\n }", "public function getCountries()\n {\n $uri = '/countries';\n $cacheKey = substr($uri, 1);\n\n $result = $this->cache->get($cacheKey);\n if ($result == null) {\n $result = $this->requestData($uri);\n if (!$result) {\n return false;\n }\n $this->cache->save($cacheKey, $result);\n }\n return $result;\n\n }", "public function getCountriesIsoList() {\n return $this->_get(4);\n }", "function CountriesList()\n\t{\t$countries = array();\n\t\t$adminuser = new AdminUser((int)$_SESSION[SITE_NAME][\"auserid\"]);\n\t\t\n\t\t$sql = \"SELECT countries.ccode, countries.shortname, IF(toplist > 0, 0, 1) AS istoplist FROM countries ORDER BY istoplist, toplist, shortname\";\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\twhile ($row = $this->db->FetchArray($result))\n\t\t\t{\t$countries[$row[\"ccode\"]] = $row[\"shortname\"];\n\t\t\t}\n\t\t}\n\t\treturn $countries;\n\t}", "function getCountryList($options = array()) {\n\t\t$local_country_data = array();\n\t\t$where = array();\n\n\t\t# possible options of filtering\n\t\tif (!empty($options['country_id']))\n\t\t$where[] = \"id = \".$options['country_id'];\n\n\t\t# build SQL request\n\t\t$_sql = \"SELECT `id`, `iso2`, `iso3`, `name`\n\t\t\t\tFROM `%s` %s ORDER BY `name` ASC\";\n\t\t$sql = sprintf($_sql,\n\t\t$this->country_table,\n\t\t!empty($where) ? \"WHERE \".implode(\" AND \", $where) : \"\"\n\t\t);\n\t\t$result = mysql_query($sql);\n\n\t\twhile ($_city = mysql_fetch_assoc($result)) {\n\t\t\t$this->country_data[$_city['id']] = array (\n\t\t\t'id'\t=> $_city['id'],\n\t\t\t'iso2'\t=> $_city['iso2'],\n\t\t\t'iso3'\t=> $_city['iso3'],\n\t\t\t'name'\t=> $_city['name'],\n\t\t\t);\n\t\t\t$local_country_data[] = $this->country_data[$_city['id']];\n\t\t}\n\n\t\treturn $local_country_data;\n\t}", "private function allCountries()\n {\n $countries = [];\n $isos = $this->countryIso();\n foreach ($isos as $iso) {\n $path = __DIR__ . '/config/geography/' . $iso . '.php';\n $countries[$iso] = require $path;\n }\n\n return $countries;\n }", "public function getAllCountries() {\n return $this->_countries->pluck ( 'name', 'code','id','flag');\n }", "public static function getCountries()\n\t{\n\t\t# MAX ID is 314 atm\n\t\treturn array(\n\t//\t\t'0' => array('Unknown Country', 'eng', '--', '--'),\n\t//\t\t\"666\" => array('Local Area Network', 'eng', '--', '--'),\n\t//\t\t'305' => array('Abkhazia', ''),\n\t//\t\t'306' => array('Akrotiri and Dhekelia', ),\n\t\t\t'100' => array('Afghanistan', 'per:pas', 'as', 'AF', 29121286),\n\t\t\t'301' => array('Aland Islands', 'swe', 'eu', 'AX', 0),\n\t\t\t'69' => array('Albania', 'alb', 'eu', 'AL', 2986952),\n\t\t\t'307' => array('Alderney', 'eng:fre', 'eu', 'GG', 0),\n\t\t\t'79' => array('Algeria', 'ara:ama:fre', 'af', 'DZ', 34586184),\n\t\t\t'101' => array('American Samoa', 'eng:sam', 'au', 'AS', 66432),\n\t\t\t'71' => array('Andorra', 'cat', 'eu', 'AD', 84525),\n\t\t\t'102' => array('Angola', 'por', 'af', 'AO', 13068161),\n\t\t\t'103' => array('Anguilla', 'eng', 'ma', 'AI', 14766),\n\t\t\t'104' => array('Antarctica', 'eng', 'an', 'AQ', 0),\n\t\t\t'105' => array('Antigua And Barbuda', 'eng', 'ma', 'AG', 86754),\n\t\t\t'29' => array('Argentina', 'spa', 'sa', 'AR', 41343201),\n\t\t\t'36' => array('Armenia', 'arm', 'as', 'AM', 2966802),\n\t\t\t'106' => array('Aruba', 'dut', 'ma', 'AW', 104589),\n\t\t\t'308' => array('Ascension Island', 'eng', 'am', 'AC', 0),\n\t\t\t'26' => array('Australia', 'eng', 'au', 'AU', 21515754),\n\t\t\t'22' => array('Austria', 'ger', 'eu', 'AT', 8214160),\n\t\t\t'46' => array('Azerbaijan', 'aze', 'as', 'AZ', 8303512),\n\t\t\t'107' => array('Bahamas', 'eng', 'ma', 'BS', 310426),\n\t\t\t'108' => array('Bahrain', 'ara', 'as', 'BH', 738004),\n\t\t\t'75' => array('Bangladesh', 'ben', 'as', 'BD', 156118464),\n\t\t\t'109' => array('Barbados', 'eng:baj', 'ma', 'BB', 285653),\n\t\t\t'110' => array('Belarus', 'rus:bel', 'eu', 'BY', 9612632),\n\t\t\t'23' => array('Belgium', 'fre:ger:dut', 'eu', 'BE', 10423493),\n\t\t\t'111' => array('Belize', 'eng:spa', 'ma', 'BZ', 314522),\n\t\t\t'112' => array('Benin', 'fre', 'af', 'BJ', 9056010),\n\t\t\t'113' => array('Bermuda', 'eng', 'ma', 'BM', 68265),\n\t\t\t'114' => array('Bhutan', 'dzo', 'as', 'BT', 699847),\n\t\t\t'115' => array('Bolivia', 'spa:que:aym', 'sa', 'BO', 9947418),\n\t\t\t'82' => array('Bosnia Herzegovina', 'bos:ser:cro', 'eu', 'BA', 4621598),\n\t\t\t'116' => array('Botswana', 'eng:set', 'af', 'BW', 2029307),\n\t\t\t'117' => array('Bouvet Island', 'eng', 'sa', 'BV', 0),\n\t\t\t'38' => array('Brazil', 'por', 'sa', 'BR', 201103330),\n\t\t\t'118' => array('British Indian Ocean Territory', 'eng', 'au', 'IO', 0),\n\t\t\t'119' => array('Brunei Darussalam', 'mal:bru', 'as', 'BN', 395027),\n\t\t\t'37' => array('Bulgaria', 'bul', 'eu', 'BG', 7148785),\n\t\t\t'120' => array('Burkina Faso', 'fre:ind', 'af', 'BF', 16241811),\n\t\t\t'121' => array('Burundi', 'kir:fre:swa', 'af', 'BI', 9863117),\n\t\t\t'122' => array('Cambodia', 'khm', 'as', 'KH', 14453680),\n\t\t\t'123' => array('Cameroon', 'fre:eng', 'af', 'CM', 19294149),\n\t\t\t'19' => array('Canada', 'eng:fre', 'na', 'CA', 33759742),\n\t\t\t'124' => array('Cape Verde', 'por', 'af', 'CV', 508659),\n\t\t\t'125' => array('Cayman Islands', 'eng', 'ma', 'KY', 50209),\n\t\t\t'126' => array('Central African Republic', 'fre:san', 'af', 'CF', 4844927),\n\t\t\t'127' => array('Chad', 'fre:ara', 'af', 'TD', 10543464),\n\t\t\t'63' => array('Chile', 'spa', 'sa', 'CL', 16746491),\n\t\t\t'47' => array('China', 'chi', 'as', 'CN', 1330141295),\n\t\t\t'128' => array('Christmas Islands', 'eng', 'au', 'CX', 1402),\n\t\t\t'129' => array('Cocos (Keeling) Islands', 'eng', 'au', 'CC', 596),\n\t\t\t'31' => array('Colombia', 'spa', 'sa', 'CO', 44205293),\n\t\t\t'130' => array('Comoros', 'ara:fre', 'af', 'KM', 773407),\n\t\t\t'131' => array('Congo', 'fre', 'af', 'CG', 4125916),\n\t\t\t'132' => array('Congo, The Democratic Republic Of The', 'fre:swa:lin:kon:tsh', 'af', 'CD', 70916439),\n\t\t\t'133' => array('Cook Islands', 'eng:mao', 'au', 'CK', 11488),\n\t\t\t'83' => array('Costa Rica', 'spa', 'ma', 'CR', 4516220),\n\t\t\t'134' => array('Côte d’Ivoire', 'fre', 'af', 'CI', 0),\n\t\t\t'48' => array('Croatia', 'cro', 'eu', 'HR', 4486881),\n\t\t\t'62' => array('Cuba', 'spa', 'ma', 'CU', 11477459),\n\t\t\t'76' => array('Cyprus', 'gre:tur', 'eu', 'CY', 1102677),\n\t\t\t'20' => array('Czech Republic', 'cze', 'eu', 'CZ', 10201707),\n\t\t\t'21' => array('Denmark', 'dan', 'eu', 'DK', 5515575),\n\t\t\t'135' => array('Djibouti', 'ara:fre:afa:som', 'af', 'DJ', 740528),\n\t\t\t'136' => array('Dominica', 'eng', 'ma', 'DM', 72813),\n\t\t\t'60' => array('Dominican Republic', 'spa', 'ma', 'DO', 9823821),\n\t\t\t'309' => array('East Timor', 'tet:por:inn:eng', 'as', 'TL', 1154625),\n\t\t\t'77' => array('Ecuador', 'spa', 'sa', 'EC', 14790608),\n\t\t\t'14' => array('Egypt', 'ara', 'af', 'EG', 80471869),\n\t\t\t'137' => array('El Salvador', 'spa', 'ma', 'SV', 6052064),\n\t\t\t'138' => array('Equatorial Guinea', 'spa:fre:por:fan:bub:ann', 'af', 'GQ', 650702),\n\t\t\t'139' => array('Eritrea', 'ara:tig', 'af', 'ER', 5792984),\n\t\t\t'140' => array('Estonia', 'est', 'eu', 'EE', 1291170),\n\t\t\t'141' => array('Ethiopia', 'amh', 'af', 'ET', 88013491),\n\t\t\t'142' => array('Falkland Islands (Malvinas)', 'eng', 'sa', 'FK', 3140),\n\t\t\t'143' => array('Faroe Islands', 'far:dan', 'eu', 'FO', 49057),\n\t\t\t'144' => array('Fiji', 'eng:bau:hit', 'au', 'FJ', 875983),\n\t\t\t'15' => array('Finland', 'fin:swe', 'eu', 'FI', 5255068),\n\t\t\t'16' => array('France', 'fre', 'eu', 'FR', 64768389),\n\t\t\t'146' => array('French Guiana', 'fre', 'sa', 'GF', 0),\n\t\t\t'147' => array('French Polynesia', 'fre:tah', 'au', 'PF', 291000),\n\t\t\t'148' => array('French Southern Territories', 'fre', 'an', 'TF', 0),\n\t\t\t'149' => array('Gabon', 'fre', 'af', 'GA', 1545255),\n\t\t\t'150' => array('Gambia', 'eng', 'af', 'GM', 1824158),\n\t\t\t'151' => array('Georgia', 'geo', 'eu', 'GE', 4600825),\n\t\t\t'17' => array('Germany', 'ger', 'eu', 'DE', 82282988),\n\t\t\t'152' => array('Ghana', 'eng', 'af', 'GH', 24339838),\n\t\t\t'153' => array('Gibraltar', 'eng:spa', 'eu', 'GI', 28877),\n\t\t\t'44' => array('Greece', 'gre', 'eu', 'GR', 10749943),\n\t\t\t'154' => array('Greenland', 'grl:dan', 'na', 'GL', 57637),\n\t\t\t'155' => array('Grenada', 'eng', 'ma', 'GD', 107818),\n\t\t\t'156' => array('Guadeloupe', 'fre', 'ma', 'GP', 0),\n\t\t\t'157' => array('Guam', 'eng:cha', 'au', 'GU', 0),\n\t\t\t'18' => array('Guatemala', 'spa', 'ma', 'GT', 13550440),\n\t\t\t'310' => array('Guernsey', 'eng:fre', 'eu', 'GG', 64775),\n\t\t\t'158' => array('Guinea', 'fre:cri', 'af', 'GN', 10324025),\n\t\t\t'159' => array('Guinea-Bissau', 'por:cri', 'af', 'GW', 1565126),\n\t\t\t'160' => array('Guyana', 'eng:hin', 'sa', 'GY', 748486),\n\t\t\t'161' => array('Haiti', 'fre:hai', 'ma', 'HT', 9648924),\n\t//\t\t'162' => array('Heard And McDonald Islands', 'HM),\n\t\t\t'163' => array('Holy See (Vatican City State)', 'ita', 'eu', 'VA', 0),\n\t\t\t'66' => array('Honduras', 'spa', 'ma', 'HN', 7989415),\n\t\t\t'164' => array('Hong Kong', 'chi:eng', 'as', 'HK', 7089705),\n\t\t\t'9' => array('Hungary', 'hun', 'eu', 'HU', 9992339),\n\t\t\t'10' => array('Iceland', 'ice', 'eu', 'IS', 308910),\n\t\t\t'33' => array('India', 'hin:eng', 'as', 'IN', 1173108018),\n\t\t\t'165' => array('Indonesia', 'inn', 'as', 'ID', 242968342),\n\t\t\t'55' => array('Iran', 'per:kur', 'as', 'IR', 76923300),\n\t\t\t'166' => array('Iraq', 'ara:kur', 'as', 'IQ', 29671605),\n\t\t\t'11' => array('Ireland', 'iri:eng', 'eu', 'IE', 4622917),\n\t\t\t'304' => array('Isle of Man', 'max:eng', 'eu', 'IM', 83859),\n\t\t\t'35' => array('Israel', 'heb:ara', 'as', 'IL', 7353985),\n\t\t\t'12' => array('Italy', 'ita', 'eu', 'IT', 58090681),\n\t\t\t'56' => array('Jamaica', 'eng', 'ma', 'JM', 2847232),\n\t\t\t'13' => array('Japan', 'jap', 'as', 'JP', 126804433),\n\t\t\t'303' => array('Jersey', 'eng:fre', 'eu', 'JE', 93363),\n\t\t\t'167' => array('Jordan', 'ara:eng', 'as', 'JO', 6407085),\n\t\t\t'168' => array('Kazakhstan', 'kaz:rus', 'as', 'KZ', 15460484),\n\t\t\t'169' => array('Kenya', 'swa:eng', 'af', 'KE', 40046566),\n\t\t\t'170' => array('Kiribati', 'eng:gil', 'au', 'KI', 99482),\n\t\t\t'171' => array('Korea, Democratic People\\'s Republic Of', 'kor', 'as', 'KP', 22757275),\n\t\t\t'172' => array('Korea, Republic Of', 'kor', 'as', 'KR', 48636068),\n\t\t\t'311' => array('Kosovo', 'alb:ser', 'eu', 'RS', 1815048),\n\t\t\t'173' => array('Kuwait', 'ara', 'as', 'KW', 2789132),\n\t\t\t'174' => array('Kyrgyzstan', 'kyr:rus', 'as', 'KG', 5508626),\n\t\t\t'175' => array('Lao People\\'s Democratic Republic', 'lao', 'as', 'LA', 6368162),\n\t\t\t'28' => array('Latvia', 'lat', 'eu', 'LV', 2217969),\n\t\t\t'40' => array('Lebanon', 'ara:fre:eng:arm', 'as', 'LB', 4125247),\n\t\t\t'176' => array('Lesotho', 'sso:eng', 'af', 'LS', 1919552),\n\t\t\t'177' => array('Liberia', 'eng', 'af', 'LR', 3685076),\n\t\t\t'178' => array('Libya', 'ara', 'af', 'LY', 6461454),\n\t\t\t'179' => array('Liechtenstein', 'ger', 'eu', 'LI', 35002),\n\t\t\t'30' => array('Lithuania', 'lit', 'eu', 'LT', 3545319),\n\t\t\t'53' => array('Luxembourg', 'lux:ger:fre', 'eu', 'LU', 497538),\n\t\t\t'180' => array('Macau', 'chi:por', 'as', 'MO', 567957),\n\t\t\t'64' => array('Macedonia, Republic of', 'mac', 'eu', 'MK', 2072086),\n\t\t\t'181' => array('Madagascar', 'mag:fre:eng', 'af', 'MG', 21281844),\n\t\t\t'182' => array('Malawi', 'eng:chw', 'af', 'MW', 15447500),\n\t\t\t'73' => array('Malaysia', 'mal', 'as', 'MY', 28274729),\n\t\t\t'78' => array('Maldives', 'dhi', 'af', 'MV', 395650),\n\t\t\t'183' => array('Mali', 'fre', 'af', 'ML', 13796354),\n\t\t\t'184' => array('Malta', 'mat:eng', 'eu', 'MT', 406771),\n\t\t\t'185' => array('Marshall Islands', 'mar:eng', 'au', 'MH', 65859),\n\t\t\t'186' => array('Martinique', 'fre', 'ma', 'MQ', 0),\n\t\t\t'187' => array('Mauritania', 'ara:fre', 'af', 'MR', 3205060),\n\t\t\t'188' => array('Mauritius', 'eng:fre', 'af', 'MU', 1294104),\n\t\t\t'189' => array('Mayotte', 'fre', 'af', 'YT', 231139),\n\t\t\t'42' => array('Mexico', 'spa', 'ma', 'MX', 112468855),\n\t\t\t'190' => array('Micronesia, Federated States Of', 'eng', 'au', 'FM', 107154),\n\t\t\t'191' => array('Moldova, Republic Of', 'mol:rus:ukr:gag', 'eu', 'MD', 4317483),\n\t\t\t'192' => array('Monaco', 'fre:moq', 'eu', 'MC', 30586),\n\t\t\t'80' => array('Montenegro', 'mon:ser:bos:alb:cro', 'eu', 'ME', 666730),\n\t\t\t'193' => array('Mongolia', 'mgl', 'as', 'MN', 3086918),\n\t\t\t'194' => array('Montserrat', 'eng', 'ma', 'MS', 5118),\n\t\t\t'74' => array('Morocco', 'ara', 'af', 'MA', 31627428),\n\t\t\t'195' => array('Mozambique', 'por', 'af', 'MZ', 22061451),\n\t\t\t'196' => array('Myanmar', 'bur', 'as', 'MM', 53414374),\n\t\t\t'197' => array('Namibia', 'eng:ger:afr:osh', 'af', 'NA', 2128471),\n\t\t\t'198' => array('Nauru', 'eng:nau', 'au', 'NR', 9267),\n\t\t\t'199' => array('Nepal', 'nep', 'as', 'NP', 28951852),\n\t\t\t'25' => array('Netherlands, The', 'dut', 'eu', 'NL', 16783092),\n\t\t\t'200' => array('Netherlands Antilles', 'dut:eng:pap', 'ma', 'AN', 228693),\n\t\t\t'201' => array('New Caledonia', 'fre', 'au', 'NC', 252352),\n\t\t\t'39' => array('New Zealand', 'mao:eng', 'au', 'NZ', 4252277),\n\t\t\t'202' => array('Nicaragua', 'spa', 'ma', 'NI', 5995928),\n\t\t\t'203' => array('Niger', 'fre', 'af', 'NE', 15878271),\n\t\t\t'204' => array('Nigeria', 'eng', 'af', 'NG', 152217341),\n\t\t\t'205' => array('Niue', 'niu:eng', 'au', 'NU', 1354),\n\t\t\t'206' => array('Norfolk Island', 'eng:nfk', 'au', 'NF', 2155),\n\t\t\t'207' => array('Northern Mariana Islands', 'eng:cha:car', 'au', 'MP', 48317),\n\t\t\t'6' => array('Norway', 'nor', 'eu', 'NO', 4676305),\n\t\t\t'208' => array('Oman', 'ara', 'as', 'OM', 2967717),\n\t\t\t'209' => array('Pakistan', 'urd', 'as', 'PK', 184404791),\n\t\t\t'210' => array('Palau', 'eng:pal', 'au', 'PW', 20879),\n\t\t\t'211' => array('Palestinian Territory, Occupied', 'ara', 'as', 'PS', 0),\n\t//\t\t'57' => array('Palestine', '', ''),\n\t\t\t'45' => array('Panama', 'spa', 'ma', 'PA', 3410676),\n\t\t\t'212' => array('Papua New Guinea', 'eng:tok:hir', 'au', 'PG', 6064515),\n\t\t\t'213' => array('Paraguay', 'spa:gua', 'sa', 'PY', 6375830),\n\t\t\t'67' => array('Peru', 'spa', 'sa', 'PE', 29907003),\n\t\t\t'54' => array('Philippines, The', 'fil:eng', 'as', 'PH', 99900177),\n\t\t\t'214' => array('Pitcairn Islands', 'eng:pit', 'ma', 'PN', 48),\n\t\t\t'7' => array('Poland', 'pol', 'eu', 'PL', 38463689),\n\t\t\t'8' => array('Portugal', 'por', 'eu', 'PT', 10735765),\n\t//\t\t'319' => array('Pridnestrovian Moldavian Republic', '', '', ''),\n\t\t\t'215' => array('Puerto Rico', 'spa:eng', 'ma', 'PR', 3978702),\n\t\t\t'216' => array('Qatar', 'ara', 'as', 'QA', 840926),\n\t\t\t'217' => array('Reunion', 'fre', 'eu', 'RE', 0),\n\t\t\t'27' => array('Romania', 'rom', 'eu', 'RO', 21959278),\n\t\t\t'32' => array('Russian Federation', 'rus', 'as', 'RU', 139390205),\n\t\t\t'218' => array('Rwanda', 'kin:fre:eng', 'af', 'RW', 11055976),\n\t\t\t'219' => array('Saint Kitts And Nevis', 'eng', 'ma', 'KN', 49898),\n\t\t\t'220' => array('Saint Lucia', 'eng:ant', 'ma', 'LC', 160922),\n\t\t\t'221' => array('Saint Vincent And The Grenadines', 'eng', 'ma', 'VC', 104217),\n\t\t\t'222' => array('Samoa', 'eng:sam', 'ma', 'WS', 192001),\n\t\t\t'223' => array('San Marino', 'ita', 'eu', 'SM', 31477),\n\t\t\t'224' => array('Sao Tome And Principe', 'por', 'af', 'ST', 175808),\n\t\t\t'59' => array('Saudi Arabia', 'ara', 'as', 'SA', 25731776),\n\t\t\t'225' => array('Senegal', 'fre:wol', 'af', 'SN', 12323252),\n\t\t\t'81' => array('Serbia', 'ser:hun:slo:rom:cro:alb', 'eu', 'RS', 7344847),\n\t\t\t#'312' => array('Serbia and Montenegro', 'ser', 'eu', 'CS', 0),\n\t\t\t'226' => array('Seychelles', 'eng:fre', 'af', 'SC', 88340),\n\t\t\t'227' => array('Sierra Leone', 'eng', 'af', 'SL', 5245695),\n\t\t\t'52' => array('Singapore', 'eng:mal:man:tam', 'as', 'SG', 4701069),\n\t\t\t'4' => array('Slovakia', 'slo', 'eu', 'SK', 5470306),\n\t\t\t'41' => array('Slovenia', 'slv', 'eu', 'SI', 2003136),\n\t\t\t'228' => array('Solomon Islands', 'eng', 'au', 'SB', 559198),\n\t\t\t'229' => array('Somalia', 'som:eng:ita:ara', 'af', 'SO', 10112453),\n\t\t\t'3' => array('South Africa', 'afr:zul:xho:nso:tsw:sot:tso', 'af', 'ZA', 49109107),\n\t\t\t'313' => array('South Georgia and the South Sandwich Islands', 'eng', 'sa', 'GS', 0),\n\t//\t\t'317' => array('South Ossetia, Republic of', '', '', ''),\n\t\t\t'233' => array('South Sudan', 'ara:eng', 'af', 'SS', 0),\n\t\t\t'5' => array('Spain', 'spa', 'eu', 'ES', 46505963),\n\t\t\t'230' => array('Sri Lanka', 'sin:tam', 'as', 'LK', 21513990),\n\t\t\t'231' => array('St. Helena', 'eng', 'ma', 'sa', 7670),\n\t\t\t'232' => array('St. Pierre And Miquelon', 'fre', 'na', 'pm', 0),\n\t\t\t'233' => array('Sudan', 'ara:eng', 'af', 'SD', 43939598),\n\t\t\t'235' => array('Suriname', 'dut:sra', 'af', 'SR', 486618),\n\t//\t\t'236' => array('Svalbard And Jan Mayen Islands'), 2 COUNTRIES\n\t\t\t'237' => array('Swaziland', 'eng:swt', 'af', 'SZ', 1354051),\n\t\t\t'24' => array('Sweden', 'swe', 'eu', 'SE', 9074055),\n\t\t\t'43' => array('Switzerland', 'ger:fre:ita:rom', 'eu', 'CH', 7623438),\n\t\t\t'240' => array('Syrian Arab Republic', 'syr', 'as', 'SY', 22198110),\n\t\t\t'300' => array('Taiwan', 'tai:chi', 'as', 'TW', 23024956),\n\t\t\t'241' => array('Tajikistan', 'taj', 'as', 'TJ', 7487489),\n\t\t\t'242' => array('Tanzania, United Republic Of', 'swa:eng', 'af', 'TZ', 0),\n\t\t\t'65' => array('Thailand', 'tha', 'as', 'TH', 67089500),\n\t\t\t'243' => array('Timor-Leste', 'tet:por', 'au', 'tl', 0),\n\t\t\t'244' => array('Togo', 'fre', 'af', 'TG', 6587239),\n\t\t\t'245' => array('Tokelau', 'tol:eng', 'au', 'TK', 1400),\n\t\t\t'246' => array('Tonga', 'ton:eng', 'au', 'TO', 122580),\n\t\t\t'34' => array('Trinidad & Tobago', 'eng:spa', 'ma', 'TT', 1228691),\n\t\t\t'320' => array('Tristan da Cunha', 'eng', 'af', 'SH', 0),\n\t\t\t'70' => array('Tunisia', 'ara', 'af', 'TN', 10589025),\n\t\t\t'61' => array('Turkey', 'tur', 'as', 'TR', 77804122),\n\t\t\t'247' => array('Turkmenistan', 'tkm:rus:uzb:dar', 'as', 'TM', 4940916),\n\t\t\t'248' => array('Turks And Caicos Islands', 'eng', 'ma', 'TC', 23528),\n\t\t\t'249' => array('Tuvalu', 'tuv', 'au', 'TV', 10472),\n\t\t\t'250' => array('Uganda', 'eng:swa', 'af', 'UG', 33398682),\n\t\t\t'58' => array('Ukraine', 'ukr', 'eu', 'UA', 45415596),\n\t\t\t'251' => array('United Arab Emirates', 'ara', 'as', 'AE', 4975593),\n\t\t\t'2' => array('United Kingdom', 'eng', 'eu', 'GB', 62348447),\n\t\t\t'1' => array('United States', 'eng', 'na', 'US', 310232863),\n\t\t\t'252' => array('United States Minor Outlying Islands', 'eng', 'ma', 'UM', 0),\n\t\t\t'68' => array('Uruguay', 'spa', 'sa', 'UY', 3510386),\n\t\t\t'253' => array('Uzbekistan', 'uzb', 'as', 'UZ', 27865738),\n\t\t\t'254' => array('Vanuatu', 'bis:eng:fre', 'au', 'VU', 221552),\n\t\t\t'49' => array('Venezuela', 'spa', 'sa', 'VE', 27223228),\n\t\t\t'50' => array('Vietnam', 'vie', 'as', 'VN', 89571130),\n\t\t\t'255' => array('Virgin Islands (British)', 'eng', 'ma', 'VG', 24939),\n\t\t\t'256' => array('Virgin Islands (U.S.)', 'eng', 'ma', 'VI', 109750),\n\t\t\t'257' => array('Wallis And Futuna Islands', 'fre:uve:fut', 'au', 'WF', 0),\n\t\t\t'258' => array('Western Sahara', 'ara:spa', 'af', 'eh', 491519),\n\t\t\t'259' => array('Yemen', 'ara', 'as', 'YE', 23495361),\n\t\t\t'260' => array('Zambia', 'eng', 'af', 'ZM', 13460305),\n\t\t\t'270' => array('Zimbabwe', 'eng:sho:sid', 'af', 'ZW', 11651858),\n\t\t);\t\n\t}", "function _country_get_predefined_list() {\n static $countries;\n\n if (isset($countries)) {\n return $countries;\n }\n $t = get_t();\n\n $countries = array(\n 'AD' => $t('Andorra'),\n 'AE' => $t('United Arab Emirates'),\n 'AF' => $t('Afghanistan'),\n 'AG' => $t('Antigua and Barbuda'),\n 'AI' => $t('Anguilla'),\n 'AL' => $t('Albania'),\n 'AM' => $t('Armenia'),\n 'AN' => $t('Netherlands Antilles'),\n 'AO' => $t('Angola'),\n 'AQ' => $t('Antarctica'),\n 'AR' => $t('Argentina'),\n 'AS' => $t('American Samoa'),\n 'AT' => $t('Austria'),\n 'AU' => $t('Australia'),\n 'AW' => $t('Aruba'),\n 'AX' => $t('Aland Islands'),\n 'AZ' => $t('Azerbaijan'),\n 'BA' => $t('Bosnia and Herzegovina'),\n 'BB' => $t('Barbados'),\n 'BD' => $t('Bangladesh'),\n 'BE' => $t('Belgium'),\n 'BF' => $t('Burkina Faso'),\n 'BG' => $t('Bulgaria'),\n 'BH' => $t('Bahrain'),\n 'BI' => $t('Burundi'),\n 'BJ' => $t('Benin'),\n 'BL' => $t('Saint Barthélemy'),\n 'BM' => $t('Bermuda'),\n 'BN' => $t('Brunei'),\n 'BO' => $t('Bolivia'),\n 'BR' => $t('Brazil'),\n 'BS' => $t('Bahamas'),\n 'BT' => $t('Bhutan'),\n 'BV' => $t('Bouvet Island'),\n 'BW' => $t('Botswana'),\n 'BY' => $t('Belarus'),\n 'BZ' => $t('Belize'),\n 'CA' => $t('Canada'),\n 'CC' => $t('Cocos (Keeling) Islands'),\n 'CD' => $t('Congo (Kinshasa)'),\n 'CF' => $t('Central African Republic'),\n 'CG' => $t('Congo (Brazzaville)'),\n 'CH' => $t('Switzerland'),\n 'CI' => $t('Ivory Coast'),\n 'CK' => $t('Cook Islands'),\n 'CL' => $t('Chile'),\n 'CM' => $t('Cameroon'),\n 'CN' => $t('China'),\n 'CO' => $t('Colombia'),\n 'CR' => $t('Costa Rica'),\n 'CU' => $t('Cuba'),\n 'CV' => $t('Cape Verde'),\n 'CX' => $t('Christmas Island'),\n 'CY' => $t('Cyprus'),\n 'CZ' => $t('Czech Republic'),\n 'DE' => $t('Germany'),\n 'DJ' => $t('Djibouti'),\n 'DK' => $t('Denmark'),\n 'DM' => $t('Dominica'),\n 'DO' => $t('Dominican Republic'),\n 'DZ' => $t('Algeria'),\n 'EC' => $t('Ecuador'),\n 'EE' => $t('Estonia'),\n 'EG' => $t('Egypt'),\n 'EH' => $t('Western Sahara'),\n 'ER' => $t('Eritrea'),\n 'ES' => $t('Spain'),\n 'ET' => $t('Ethiopia'),\n 'FI' => $t('Finland'),\n 'FJ' => $t('Fiji'),\n 'FK' => $t('Falkland Islands'),\n 'FM' => $t('Micronesia'),\n 'FO' => $t('Faroe Islands'),\n 'FR' => $t('France'),\n 'GA' => $t('Gabon'),\n 'GB' => $t('United Kingdom'),\n 'GD' => $t('Grenada'),\n 'GE' => $t('Georgia'),\n 'GF' => $t('French Guiana'),\n 'GG' => $t('Guernsey'),\n 'GH' => $t('Ghana'),\n 'GI' => $t('Gibraltar'),\n 'GL' => $t('Greenland'),\n 'GM' => $t('Gambia'),\n 'GN' => $t('Guinea'),\n 'GP' => $t('Guadeloupe'),\n 'GQ' => $t('Equatorial Guinea'),\n 'GR' => $t('Greece'),\n 'GS' => $t('South Georgia and the South Sandwich Islands'),\n 'GT' => $t('Guatemala'),\n 'GU' => $t('Guam'),\n 'GW' => $t('Guinea-Bissau'),\n 'GY' => $t('Guyana'),\n 'HK' => $t('Hong Kong S.A.R., China'),\n 'HM' => $t('Heard Island and McDonald Islands'),\n 'HN' => $t('Honduras'),\n 'HR' => $t('Croatia'),\n 'HT' => $t('Haiti'),\n 'HU' => $t('Hungary'),\n 'ID' => $t('Indonesia'),\n 'IE' => $t('Ireland'),\n 'IL' => $t('Israel'),\n 'IM' => $t('Isle of Man'),\n 'IN' => $t('India'),\n 'IO' => $t('British Indian Ocean Territory'),\n 'IQ' => $t('Iraq'),\n 'IR' => $t('Iran'),\n 'IS' => $t('Iceland'),\n 'IT' => $t('Italy'),\n 'JE' => $t('Jersey'),\n 'JM' => $t('Jamaica'),\n 'JO' => $t('Jordan'),\n 'JP' => $t('Japan'),\n 'KE' => $t('Kenya'),\n 'KG' => $t('Kyrgyzstan'),\n 'KH' => $t('Cambodia'),\n 'KI' => $t('Kiribati'),\n 'KM' => $t('Comoros'),\n 'KN' => $t('Saint Kitts and Nevis'),\n 'KP' => $t('North Korea'),\n 'KR' => $t('South Korea'),\n 'KW' => $t('Kuwait'),\n 'KY' => $t('Cayman Islands'),\n 'KZ' => $t('Kazakhstan'),\n 'LA' => $t('Laos'),\n 'LB' => $t('Lebanon'),\n 'LC' => $t('Saint Lucia'),\n 'LI' => $t('Liechtenstein'),\n 'LK' => $t('Sri Lanka'),\n 'LR' => $t('Liberia'),\n 'LS' => $t('Lesotho'),\n 'LT' => $t('Lithuania'),\n 'LU' => $t('Luxembourg'),\n 'LV' => $t('Latvia'),\n 'LY' => $t('Libya'),\n 'MA' => $t('Morocco'),\n 'MC' => $t('Monaco'),\n 'MD' => $t('Moldova'),\n 'ME' => $t('Montenegro'),\n 'MF' => $t('Saint Martin (French part)'),\n 'MG' => $t('Madagascar'),\n 'MH' => $t('Marshall Islands'),\n 'MK' => $t('Macedonia'),\n 'ML' => $t('Mali'),\n 'MM' => $t('Myanmar'),\n 'MN' => $t('Mongolia'),\n 'MO' => $t('Macao S.A.R., China'),\n 'MP' => $t('Northern Mariana Islands'),\n 'MQ' => $t('Martinique'),\n 'MR' => $t('Mauritania'),\n 'MS' => $t('Montserrat'),\n 'MT' => $t('Malta'),\n 'MU' => $t('Mauritius'),\n 'MV' => $t('Maldives'),\n 'MW' => $t('Malawi'),\n 'MX' => $t('Mexico'),\n 'MY' => $t('Malaysia'),\n 'MZ' => $t('Mozambique'),\n 'NA' => $t('Namibia'),\n 'NC' => $t('New Caledonia'),\n 'NE' => $t('Niger'),\n 'NF' => $t('Norfolk Island'),\n 'NG' => $t('Nigeria'),\n 'NI' => $t('Nicaragua'),\n 'NL' => $t('Netherlands'),\n 'NO' => $t('Norway'),\n 'NP' => $t('Nepal'),\n 'NR' => $t('Nauru'),\n 'NU' => $t('Niue'),\n 'NZ' => $t('New Zealand'),\n 'OM' => $t('Oman'),\n 'PA' => $t('Panama'),\n 'PE' => $t('Peru'),\n 'PF' => $t('French Polynesia'),\n 'PG' => $t('Papua New Guinea'),\n 'PH' => $t('Philippines'),\n 'PK' => $t('Pakistan'),\n 'PL' => $t('Poland'),\n 'PM' => $t('Saint Pierre and Miquelon'),\n 'PN' => $t('Pitcairn'),\n 'PR' => $t('Puerto Rico'),\n 'PS' => $t('Palestinian Territory'),\n 'PT' => $t('Portugal'),\n 'PW' => $t('Palau'),\n 'PY' => $t('Paraguay'),\n 'QA' => $t('Qatar'),\n 'RE' => $t('Reunion'),\n 'RO' => $t('Romania'),\n 'RS' => $t('Serbia'),\n 'RU' => $t('Russia'),\n 'RW' => $t('Rwanda'),\n 'SA' => $t('Saudi Arabia'),\n 'SB' => $t('Solomon Islands'),\n 'SC' => $t('Seychelles'),\n 'SD' => $t('Sudan'),\n 'SE' => $t('Sweden'),\n 'SG' => $t('Singapore'),\n 'SH' => $t('Saint Helena'),\n 'SI' => $t('Slovenia'),\n 'SJ' => $t('Svalbard and Jan Mayen'),\n 'SK' => $t('Slovakia'),\n 'SL' => $t('Sierra Leone'),\n 'SM' => $t('San Marino'),\n 'SN' => $t('Senegal'),\n 'SO' => $t('Somalia'),\n 'SR' => $t('Suriname'),\n 'ST' => $t('Sao Tome and Principe'),\n 'SV' => $t('El Salvador'),\n 'SY' => $t('Syria'),\n 'SZ' => $t('Swaziland'),\n 'TC' => $t('Turks and Caicos Islands'),\n 'TD' => $t('Chad'),\n 'TF' => $t('French Southern Territories'),\n 'TG' => $t('Togo'),\n 'TH' => $t('Thailand'),\n 'TJ' => $t('Tajikistan'),\n 'TK' => $t('Tokelau'),\n 'TL' => $t('East Timor'),\n 'TM' => $t('Turkmenistan'),\n 'TN' => $t('Tunisia'),\n 'TO' => $t('Tonga'),\n 'TR' => $t('Turkey'),\n 'TT' => $t('Trinidad and Tobago'),\n 'TV' => $t('Tuvalu'),\n 'TW' => $t('Taiwan'),\n 'TZ' => $t('Tanzania'),\n 'UA' => $t('Ukraine'),\n 'UG' => $t('Uganda'),\n 'UM' => $t('United States Minor Outlying Islands'),\n 'US' => $t('United States'),\n 'UY' => $t('Uruguay'),\n 'UZ' => $t('Uzbekistan'),\n 'VA' => $t('Vatican'),\n 'VC' => $t('Saint Vincent and the Grenadines'),\n 'VE' => $t('Venezuela'),\n 'VG' => $t('British Virgin Islands'),\n 'VI' => $t('U.S. Virgin Islands'),\n 'VN' => $t('Vietnam'),\n 'VU' => $t('Vanuatu'),\n 'WF' => $t('Wallis and Futuna'),\n 'WS' => $t('Samoa'),\n 'YE' => $t('Yemen'),\n 'YT' => $t('Mayotte'),\n 'ZA' => $t('South Africa'),\n 'ZM' => $t('Zambia'),\n 'ZW' => $t('Zimbabwe'),\n );\n\n // Sort the list.\n natcasesort($countries);\n\n return $countries;\n}", "public function listCountries() {\r\n\t\t\t$sql = Connection::getHandle()->prepare(\"SELECT DISTINCT c.countries_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.countries_name,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.countries_iso_code_2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCASE WHEN z.zone_id > 0 THEN 'true' ELSE 'false' END AS zone\r\n\t\t\t\t\t\t\t\t\t\tFROM bs_countries c\r\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN bs_zones z ON (c.countries_iso_code_2 = z.countries_id)\r\n\t\t\t\t\t\t\t\t\t\tGROUP BY c.countries_id\r\n\t\t\t\t\t\t\t\t\t\tORDER BY c.countries_id\");\r\n\t\t\t$sql->execute();\r\n\r\n\t\t\twhile ($row = $sql->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\t$results[] = $row;\r\n\t\t\t}\r\n\r\n\t\t\treturn $results;\r\n\t\t}", "public static function getCountries()\n\t{\n\t\t$country[\"AFG\"] = Array(\"iso2\" => \"AF\", \"name\" => \"Afghanistan, Islamic Republic \");\n\t\t$country[\"ALA\"] = Array(\"iso2\" => \"AX\", \"name\" => \"Åland Islands\");\n\t\t$country[\"ALB\"] = Array(\"iso2\" => \"AL\", \"name\" => \"Albania, Republic of\");\n\t\t$country[\"DZA\"] = Array(\"iso2\" => \"DZ\", \"name\" => \"Algeria, People's Democratic Republic\");\n\t\t$country[\"ASM\"] = Array(\"iso2\" => \"AS\", \"name\" => \"American Samoa\");\n\t\t$country[\"AND\"] = Array(\"iso2\" => \"AD\", \"name\" => \"Andorra, Principality of\");\n\t\t$country[\"AGO\"] = Array(\"iso2\" => \"AO\", \"name\" => \"Angola, Republic of\");\n\t\t$country[\"AIA\"] = Array(\"iso2\" => \"AI\", \"name\" => \"Anguilla\");\n\t\t$country[\"ATA\"] = Array(\"iso2\" => \"AQ\", \"name\" => \"Antarctica (the territory Sout\");\n\t\t$country[\"ATG\"] = Array(\"iso2\" => \"AG\", \"name\" => \"Antigua and Barbuda\");\n\t\t$country[\"ARG\"] = Array(\"iso2\" => \"AR\", \"name\" => \"Argentina, Argentine Republic\");\n\t\t$country[\"ARM\"] = Array(\"iso2\" => \"AM\", \"name\" => \"Armenia, Republic of\");\n\t\t$country[\"ABW\"] = Array(\"iso2\" => \"AW\", \"name\" => \"Aruba\");\n\t\t$country[\"AUS\"] = Array(\"iso2\" => \"AU\", \"name\" => \"Australia, Commonwealth of\");\n\t\t$country[\"AUT\"] = Array(\"iso2\" => \"AT\", \"name\" => \"Austria, Republic of\");\n\t\t$country[\"AZE\"] = Array(\"iso2\" => \"AZ\", \"name\" => \"Azerbaijan, Republic of\");\n\t\t$country[\"BHS\"] = Array(\"iso2\" => \"BS\", \"name\" => \"Bahamas, Commonwealth of the\");\n\t\t$country[\"BHR\"] = Array(\"iso2\" => \"BH\", \"name\" => \"Bahrain, Kingdom of\");\n\t\t$country[\"BGD\"] = Array(\"iso2\" => \"BD\", \"name\" => \"Bangladesh, People's Republic \");\n\t\t$country[\"BRB\"] = Array(\"iso2\" => \"BB\", \"name\" => \"Barbados\");\n\t\t$country[\"BLR\"] = Array(\"iso2\" => \"BY\", \"name\" => \"Belarus, Republic of\");\n\t\t$country[\"BEL\"] = Array(\"iso2\" => \"BE\", \"name\" => \"Belgium, Kingdom of\");\n\t\t$country[\"BLZ\"] = Array(\"iso2\" => \"BZ\", \"name\" => \"Belize\");\n\t\t$country[\"BEN\"] = Array(\"iso2\" => \"BJ\", \"name\" => \"Benin, Republic of\");\n\t\t$country[\"BMU\"] = Array(\"iso2\" => \"BM\", \"name\" => \"Bermuda\");\n\t\t$country[\"BTN\"] = Array(\"iso2\" => \"BT\", \"name\" => \"Bhutan, Kingdom of\");\n\t\t$country[\"BOL\"] = Array(\"iso2\" => \"BO\", \"name\" => \"Bolivia, Republic of\");\n\t\t$country[\"BIH\"] = Array(\"iso2\" => \"BA\", \"name\" => \"Bosnia and Herzegovina\");\n\t\t$country[\"BWA\"] = Array(\"iso2\" => \"BW\", \"name\" => \"Botswana, Republic of\");\n\t\t$country[\"BVT\"] = Array(\"iso2\" => \"BV\", \"name\" => \"Bouvet Island (Bouvetoya)\");\n\t\t$country[\"BRA\"] = Array(\"iso2\" => \"BR\", \"name\" => \"Brazil, Federative Republic of\");\n\t\t$country[\"IOT\"] = Array(\"iso2\" => \"IO\", \"name\" => \"British Indian Ocean Territory\");\n\t\t$country[\"VGB\"] = Array(\"iso2\" => \"VG\", \"name\" => \"British Virgin Islands\");\n\t\t$country[\"BRN\"] = Array(\"iso2\" => \"BN\", \"name\" => \"Brunei Darussalam\");\n\t\t$country[\"BGR\"] = Array(\"iso2\" => \"BG\", \"name\" => \"Bulgaria, Republic of\");\n\t\t$country[\"BFA\"] = Array(\"iso2\" => \"BF\", \"name\" => \"Burkina Faso\");\n\t\t$country[\"BDI\"] = Array(\"iso2\" => \"BI\", \"name\" => \"Burundi, Republic of\");\n\t\t$country[\"KHM\"] = Array(\"iso2\" => \"KH\", \"name\" => \"Cambodia, Kingdom of\");\n\t\t$country[\"CMR\"] = Array(\"iso2\" => \"CM\", \"name\" => \"Cameroon, Republic of\");\n\t\t$country[\"CAN\"] = Array(\"iso2\" => \"CA\", \"name\" => \"Canada\");\n\t\t$country[\"CPV\"] = Array(\"iso2\" => \"CV\", \"name\" => \"Cape Verde, Republic of\");\n\t\t$country[\"CYM\"] = Array(\"iso2\" => \"KY\", \"name\" => \"Cayman Islands\");\n\t\t$country[\"CAF\"] = Array(\"iso2\" => \"CF\", \"name\" => \"Central African Republic\");\n\t\t$country[\"TCD\"] = Array(\"iso2\" => \"TD\", \"name\" => \"Chad, Republic of\");\n\t\t$country[\"CHL\"] = Array(\"iso2\" => \"CL\", \"name\" => \"Chile, Republic of\");\n\t\t$country[\"CHN\"] = Array(\"iso2\" => \"CN\", \"name\" => \"China, People's Republic of\");\n\t\t$country[\"CXR\"] = Array(\"iso2\" => \"CX\", \"name\" => \"Christmas Island\");\n\t\t$country[\"CCK\"] = Array(\"iso2\" => \"CC\", \"name\" => \"Cocos (Keeling) Islands\");\n\t\t$country[\"COL\"] = Array(\"iso2\" => \"CO\", \"name\" => \"Colombia, Republic of\");\n\t\t$country[\"COM\"] = Array(\"iso2\" => \"KM\", \"name\" => \"Comoros, Union of the\");\n\t\t$country[\"COD\"] = Array(\"iso2\" => \"CD\", \"name\" => \"Congo, Democratic Republic of \");\n\t\t$country[\"COG\"] = Array(\"iso2\" => \"CG\", \"name\" => \"Congo, Republic of the\");\n\t\t$country[\"COK\"] = Array(\"iso2\" => \"CK\", \"name\" => \"Cook Islands\");\n\t\t$country[\"CRI\"] = Array(\"iso2\" => \"CR\", \"name\" => \"Costa Rica, Republic of\");\n\t\t$country[\"CIV\"] = Array(\"iso2\" => \"CI\", \"name\" => \"Cote d'Ivoire, Republic of\");\n\t\t$country[\"HRV\"] = Array(\"iso2\" => \"HR\", \"name\" => \"Croatia, Republic of\");\n\t\t$country[\"CUB\"] = Array(\"iso2\" => \"CU\", \"name\" => \"Cuba, Republic of\");\n\t\t$country[\"CYP\"] = Array(\"iso2\" => \"CY\", \"name\" => \"Cyprus, Republic of\");\n\t\t$country[\"CZE\"] = Array(\"iso2\" => \"CZ\", \"name\" => \"Czech Republic\");\n\t\t$country[\"DNK\"] = Array(\"iso2\" => \"DK\", \"name\" => \"Denmark, Kingdom of\");\n\t\t$country[\"DJI\"] = Array(\"iso2\" => \"DJ\", \"name\" => \"Djibouti, Republic of\");\n\t\t$country[\"DMA\"] = Array(\"iso2\" => \"DM\", \"name\" => \"Dominica, Commonwealth of\");\n\t\t$country[\"DOM\"] = Array(\"iso2\" => \"DO\", \"name\" => \"Dominican Republic\");\n\t\t$country[\"ECU\"] = Array(\"iso2\" => \"EC\", \"name\" => \"Ecuador, Republic of\");\n\t\t$country[\"EGY\"] = Array(\"iso2\" => \"EG\", \"name\" => \"Egypt, Arab Republic of\");\n\t\t$country[\"SLV\"] = Array(\"iso2\" => \"SV\", \"name\" => \"El Salvador, Republic of\");\n\t\t$country[\"GNQ\"] = Array(\"iso2\" => \"GQ\", \"name\" => \"Equatorial Guinea, Republic of\");\n\t\t$country[\"ERI\"] = Array(\"iso2\" => \"ER\", \"name\" => \"Eritrea, State of\");\n\t\t$country[\"EST\"] = Array(\"iso2\" => \"EE\", \"name\" => \"Estonia, Republic of\");\n\t\t$country[\"ETH\"] = Array(\"iso2\" => \"ET\", \"name\" => \"Ethiopia, Federal Democratic R\");\n\t\t$country[\"FRO\"] = Array(\"iso2\" => \"FO\", \"name\" => \"Faroe Islands\");\n\t\t$country[\"FLK\"] = Array(\"iso2\" => \"FK\", \"name\" => \"Falkland Islands (Malvinas)\");\n\t\t$country[\"FJI\"] = Array(\"iso2\" => \"FJ\", \"name\" => \"Fiji, Republic of the Fiji Isl\");\n\t\t$country[\"FIN\"] = Array(\"iso2\" => \"FI\", \"name\" => \"Finland, Republic of\");\n\t\t$country[\"FRA\"] = Array(\"iso2\" => \"FR\", \"name\" => \"France, French Republic\");\n\t\t$country[\"GUF\"] = Array(\"iso2\" => \"GF\", \"name\" => \"French Guiana\");\n\t\t$country[\"PYF\"] = Array(\"iso2\" => \"PF\", \"name\" => \"French Polynesia\");\n\t\t$country[\"ATF\"] = Array(\"iso2\" => \"TF\", \"name\" => \"French Southern Territories\");\n\t\t$country[\"GAB\"] = Array(\"iso2\" => \"GA\", \"name\" => \"Gabon, Gabonese Republic\");\n\t\t$country[\"GMB\"] = Array(\"iso2\" => \"GM\", \"name\" => \"Gambia, Republic of the\");\n\t\t$country[\"GEO\"] = Array(\"iso2\" => \"GE\", \"name\" => \"Georgia\");\n\t\t$country[\"DEU\"] = Array(\"iso2\" => \"DE\", \"name\" => \"Germany, Federal Republic of\");\n\t\t$country[\"GHA\"] = Array(\"iso2\" => \"GH\", \"name\" => \"Ghana, Republic of\");\n\t\t$country[\"GIB\"] = Array(\"iso2\" => \"GI\", \"name\" => \"Gibraltar\");\n\t\t$country[\"GRC\"] = Array(\"iso2\" => \"GR\", \"name\" => \"Greece, Hellenic Republic\");\n\t\t$country[\"GRL\"] = Array(\"iso2\" => \"GL\", \"name\" => \"Greenland\");\n\t\t$country[\"GRD\"] = Array(\"iso2\" => \"GD\", \"name\" => \"Grenada\");\n\t\t$country[\"GLP\"] = Array(\"iso2\" => \"GP\", \"name\" => \"Guadeloupe\");\n\t\t$country[\"GUM\"] = Array(\"iso2\" => \"GU\", \"name\" => \"Guam\");\n\t\t$country[\"GTM\"] = Array(\"iso2\" => \"GT\", \"name\" => \"Guatemala, Republic of\");\n\t\t$country[\"GGY\"] = Array(\"iso2\" => \"GG\", \"name\" => \"Guernsey, Bailiwick of\");\n\t\t$country[\"GIN\"] = Array(\"iso2\" => \"GN\", \"name\" => \"Guinea, Republic of\");\n\t\t$country[\"GNB\"] = Array(\"iso2\" => \"GW\", \"name\" => \"Guinea-Bissau, Republic of\");\n\t\t$country[\"GUY\"] = Array(\"iso2\" => \"GY\", \"name\" => \"Guyana, Co-operative Republic \");\n\t\t$country[\"HTI\"] = Array(\"iso2\" => \"HT\", \"name\" => \"Haiti, Republic of\");\n\t\t$country[\"HMD\"] = Array(\"iso2\" => \"HM\", \"name\" => \"Heard Island and McDonald Isla\");\n\t\t$country[\"VAT\"] = Array(\"iso2\" => \"VA\", \"name\" => \"Holy See (Vatican City State)\");\n\t\t$country[\"HND\"] = Array(\"iso2\" => \"HN\", \"name\" => \"Honduras, Republic of\");\n\t\t$country[\"HKG\"] = Array(\"iso2\" => \"HK\", \"name\" => \"Hong Kong, Special Administrat\");\n\t\t$country[\"HUN\"] = Array(\"iso2\" => \"HU\", \"name\" => \"Hungary, Republic of\");\n\t\t$country[\"ISL\"] = Array(\"iso2\" => \"IS\", \"name\" => \"Iceland, Republic of\");\n\t\t$country[\"IND\"] = Array(\"iso2\" => \"IN\", \"name\" => \"India, Republic of\");\n\t\t$country[\"IDN\"] = Array(\"iso2\" => \"ID\", \"name\" => \"Indonesia, Republic of\");\n\t\t$country[\"IRN\"] = Array(\"iso2\" => \"IR\", \"name\" => \"Iran, Islamic Republic of\");\n\t\t$country[\"IRQ\"] = Array(\"iso2\" => \"IQ\", \"name\" => \"Iraq, Republic of\");\n\t\t$country[\"IRL\"] = Array(\"iso2\" => \"IE\", \"name\" => \"Ireland\");\n\t\t$country[\"IMN\"] = Array(\"iso2\" => \"IM\", \"name\" => \"Isle of Man\");\n\t\t$country[\"ISR\"] = Array(\"iso2\" => \"IL\", \"name\" => \"Israel, State of\");\n\t\t$country[\"ITA\"] = Array(\"iso2\" => \"IT\", \"name\" => \"Italy, Italian Republic\");\n\t\t$country[\"JAM\"] = Array(\"iso2\" => \"JM\", \"name\" => \"Jamaica\");\n\t\t$country[\"JPN\"] = Array(\"iso2\" => \"JP\", \"name\" => \"Japan\");\n\t\t$country[\"JEY\"] = Array(\"iso2\" => \"JE\", \"name\" => \"Jersey, Bailiwick of\");\n\t\t$country[\"JOR\"] = Array(\"iso2\" => \"JO\", \"name\" => \"Jordan, Hashemite Kingdom of\");\n\t\t$country[\"KAZ\"] = Array(\"iso2\" => \"KZ\", \"name\" => \"Kazakhstan, Republic of\");\n\t\t$country[\"KEN\"] = Array(\"iso2\" => \"KE\", \"name\" => \"Kenya, Republic of\");\n\t\t$country[\"KIR\"] = Array(\"iso2\" => \"KI\", \"name\" => \"Kiribati, Republic of\");\n\t\t$country[\"PRK\"] = Array(\"iso2\" => \"KP\", \"name\" => \"Korea, Democratic People's Rep\");\n\t\t$country[\"KOR\"] = Array(\"iso2\" => \"KR\", \"name\" => \"Korea, Republic of\");\n\t\t$country[\"KWT\"] = Array(\"iso2\" => \"KW\", \"name\" => \"Kuwait, State of\");\n\t\t$country[\"KGZ\"] = Array(\"iso2\" => \"KG\", \"name\" => \"Kyrgyz Republic\");\n\t\t$country[\"LAO\"] = Array(\"iso2\" => \"LA\", \"name\" => \"Lao People's Democratic Republ\");\n\t\t$country[\"LVA\"] = Array(\"iso2\" => \"LV\", \"name\" => \"Latvia, Republic of\");\n\t\t$country[\"LBN\"] = Array(\"iso2\" => \"LB\", \"name\" => \"Lebanon, Lebanese Republic\");\n\t\t$country[\"LSO\"] = Array(\"iso2\" => \"LS\", \"name\" => \"Lesotho, Kingdom of\");\n\t\t$country[\"LBR\"] = Array(\"iso2\" => \"LR\", \"name\" => \"Liberia, Republic of\");\n\t\t$country[\"LBY\"] = Array(\"iso2\" => \"LY\", \"name\" => \"Libyan Arab Jamahiriya\");\n\t\t$country[\"LIE\"] = Array(\"iso2\" => \"LI\", \"name\" => \"Liechtenstein, Principality of\");\n\t\t$country[\"LTU\"] = Array(\"iso2\" => \"LT\", \"name\" => \"Lithuania, Republic of\");\n\t\t$country[\"LUX\"] = Array(\"iso2\" => \"LU\", \"name\" => \"Luxembourg, Grand Duchy of\");\n\t\t$country[\"MAC\"] = Array(\"iso2\" => \"MO\", \"name\" => \"Macao, Special Administrative \");\n\t\t$country[\"MKD\"] = Array(\"iso2\" => \"MK\", \"name\" => \"Macedonia, the former Yugoslav\");\n\t\t$country[\"MDG\"] = Array(\"iso2\" => \"MG\", \"name\" => \"Madagascar, Republic of\");\n\t\t$country[\"MWI\"] = Array(\"iso2\" => \"MW\", \"name\" => \"Malawi, Republic of\");\n\t\t$country[\"MYS\"] = Array(\"iso2\" => \"MY\", \"name\" => \"Malaysia\");\n\t\t$country[\"MDV\"] = Array(\"iso2\" => \"MV\", \"name\" => \"Maldives, Republic of\");\n\t\t$country[\"MLI\"] = Array(\"iso2\" => \"ML\", \"name\" => \"Mali, Republic of\");\n\t\t$country[\"MLT\"] = Array(\"iso2\" => \"MT\", \"name\" => \"Malta, Republic of\");\n\t\t$country[\"MHL\"] = Array(\"iso2\" => \"MH\", \"name\" => \"Marshall Islands, Republic of \");\n\t\t$country[\"MTQ\"] = Array(\"iso2\" => \"MQ\", \"name\" => \"Martinique\");\n\t\t$country[\"MRT\"] = Array(\"iso2\" => \"MR\", \"name\" => \"Mauritania, Islamic Republic o\");\n\t\t$country[\"MUS\"] = Array(\"iso2\" => \"MU\", \"name\" => \"Mauritius, Republic of\");\n\t\t$country[\"MYT\"] = Array(\"iso2\" => \"YT\", \"name\" => \"Mayotte\");\n\t\t$country[\"MEX\"] = Array(\"iso2\" => \"MX\", \"name\" => \"Mexico, United Mexican States\");\n\t\t$country[\"FSM\"] = Array(\"iso2\" => \"FM\", \"name\" => \"Micronesia, Federated States o\");\n\t\t$country[\"MDA\"] = Array(\"iso2\" => \"MD\", \"name\" => \"Moldova, Republic of\");\n\t\t$country[\"MCO\"] = Array(\"iso2\" => \"MC\", \"name\" => \"Monaco, Principality of\");\n\t\t$country[\"MNG\"] = Array(\"iso2\" => \"MN\", \"name\" => \"Mongolia\");\n\t\t$country[\"MNE\"] = Array(\"iso2\" => \"ME\", \"name\" => \"Montenegro, Republic of\");\n\t\t$country[\"MSR\"] = Array(\"iso2\" => \"MS\", \"name\" => \"Montserrat\");\n\t\t$country[\"MAR\"] = Array(\"iso2\" => \"MA\", \"name\" => \"Morocco, Kingdom of\");\n\t\t$country[\"MOZ\"] = Array(\"iso2\" => \"MZ\", \"name\" => \"Mozambique, Republic of\");\n\t\t$country[\"MMR\"] = Array(\"iso2\" => \"MM\", \"name\" => \"Myanmar, Union of\");\n\t\t$country[\"NAM\"] = Array(\"iso2\" => \"NA\", \"name\" => \"Namibia, Republic of\");\n\t\t$country[\"NRU\"] = Array(\"iso2\" => \"NR\", \"name\" => \"Nauru, Republic of\");\n\t\t$country[\"NPL\"] = Array(\"iso2\" => \"NP\", \"name\" => \"Nepal, State of\");\n\t\t$country[\"ANT\"] = Array(\"iso2\" => \"AN\", \"name\" => \"Netherlands Antilles\");\n\t\t$country[\"NLD\"] = Array(\"iso2\" => \"NL\", \"name\" => \"Netherlands, Kingdom of the\");\n\t\t$country[\"NCL\"] = Array(\"iso2\" => \"NC\", \"name\" => \"New Caledonia\");\n\t\t$country[\"NZL\"] = Array(\"iso2\" => \"NZ\", \"name\" => \"New Zealand\");\n\t\t$country[\"NIC\"] = Array(\"iso2\" => \"NI\", \"name\" => \"Nicaragua, Republic of\");\n\t\t$country[\"NER\"] = Array(\"iso2\" => \"NE\", \"name\" => \"Niger, Republic of\");\n\t\t$country[\"NGA\"] = Array(\"iso2\" => \"NG\", \"name\" => \"Nigeria, Federal Republic of\");\n\t\t$country[\"NIU\"] = Array(\"iso2\" => \"NU\", \"name\" => \"Niue\");\n\t\t$country[\"NFK\"] = Array(\"iso2\" => \"NF\", \"name\" => \"Norfolk Island\");\n\t\t$country[\"MNP\"] = Array(\"iso2\" => \"MP\", \"name\" => \"Northern Mariana Islands, Comm\");\n\t\t$country[\"NOR\"] = Array(\"iso2\" => \"NO\", \"name\" => \"Norway, Kingdom of\");\n\t\t$country[\"OMN\"] = Array(\"iso2\" => \"OM\", \"name\" => \"Oman, Sultanate of\");\n\t\t$country[\"PAK\"] = Array(\"iso2\" => \"PK\", \"name\" => \"Pakistan, Islamic Republic of\");\n\t\t$country[\"PLW\"] = Array(\"iso2\" => \"PW\", \"name\" => \"Palau, Republic of\");\n\t\t$country[\"PSE\"] = Array(\"iso2\" => \"PS\", \"name\" => \"Palestinian Territory, Occupie\");\n\t\t$country[\"PAN\"] = Array(\"iso2\" => \"PA\", \"name\" => \"Panama, Republic of\");\n\t\t$country[\"PNG\"] = Array(\"iso2\" => \"PG\", \"name\" => \"Papua New Guinea, Independent \");\n\t\t$country[\"PRY\"] = Array(\"iso2\" => \"PY\", \"name\" => \"Paraguay, Republic of\");\n\t\t$country[\"PER\"] = Array(\"iso2\" => \"PE\", \"name\" => \"Peru, Republic of\");\n\t\t$country[\"PHL\"] = Array(\"iso2\" => \"PH\", \"name\" => \"Philippines, Republic of the\");\n\t\t$country[\"PCN\"] = Array(\"iso2\" => \"PN\", \"name\" => \"Pitcairn Islands\");\n\t\t$country[\"POL\"] = Array(\"iso2\" => \"PL\", \"name\" => \"Poland, Republic of\");\n\t\t$country[\"PRT\"] = Array(\"iso2\" => \"PT\", \"name\" => \"Portugal, Portuguese Republic\");\n\t\t$country[\"PRI\"] = Array(\"iso2\" => \"PR\", \"name\" => \"Puerto Rico, Commonwealth of\");\n\t\t$country[\"QAT\"] = Array(\"iso2\" => \"QA\", \"name\" => \"Qatar, State of\");\n\t\t$country[\"REU\"] = Array(\"iso2\" => \"RE\", \"name\" => \"Reunion\");\n\t\t$country[\"ROU\"] = Array(\"iso2\" => \"RO\", \"name\" => \"Romania\");\n\t\t$country[\"RUS\"] = Array(\"iso2\" => \"RU\", \"name\" => \"Russian Federation\");\n\t\t$country[\"RWA\"] = Array(\"iso2\" => \"RW\", \"name\" => \"Rwanda, Republic of\");\n\t\t$country[\"BLM\"] = Array(\"iso2\" => \"BL\", \"name\" => \"Saint Barthelemy\");\n\t\t$country[\"SHN\"] = Array(\"iso2\" => \"SH\", \"name\" => \"Saint Helena\");\n\t\t$country[\"KNA\"] = Array(\"iso2\" => \"KN\", \"name\" => \"Saint Kitts and Nevis, Federat\");\n\t\t$country[\"LCA\"] = Array(\"iso2\" => \"LC\", \"name\" => \"Saint Lucia\");\n\t\t$country[\"MAF\"] = Array(\"iso2\" => \"MF\", \"name\" => \"Saint Martin\");\n\t\t$country[\"SPM\"] = Array(\"iso2\" => \"PM\", \"name\" => \"Saint Pierre and Miquelon\");\n\t\t$country[\"VCT\"] = Array(\"iso2\" => \"VC\", \"name\" => \"Saint Vincent and the Grenadin\");\n\t\t$country[\"WSM\"] = Array(\"iso2\" => \"WS\", \"name\" => \"Samoa, Independent State of\");\n\t\t$country[\"SMR\"] = Array(\"iso2\" => \"SM\", \"name\" => \"San Marino, Republic of\");\n\t\t$country[\"STP\"] = Array(\"iso2\" => \"ST\", \"name\" => \"Sao Tome and Principe, Democra\");\n\t\t$country[\"SAU\"] = Array(\"iso2\" => \"SA\", \"name\" => \"Saudi Arabia, Kingdom of\");\n\t\t$country[\"SEN\"] = Array(\"iso2\" => \"SN\", \"name\" => \"Senegal, Republic of\");\n\t\t$country[\"SRB\"] = Array(\"iso2\" => \"RS\", \"name\" => \"Serbia, Republic of\");\n\t\t$country[\"SYC\"] = Array(\"iso2\" => \"SC\", \"name\" => \"Seychelles, Republic of\");\n\t\t$country[\"SLE\"] = Array(\"iso2\" => \"SL\", \"name\" => \"Sierra Leone, Republic of\");\n\t\t$country[\"SGP\"] = Array(\"iso2\" => \"SG\", \"name\" => \"Singapore, Republic of\");\n\t\t$country[\"SVK\"] = Array(\"iso2\" => \"SK\", \"name\" => \"Slovakia (Slovak Republic)\");\n\t\t$country[\"SVN\"] = Array(\"iso2\" => \"SI\", \"name\" => \"Slovenia, Republic of\");\n\t\t$country[\"SLB\"] = Array(\"iso2\" => \"SB\", \"name\" => \"Solomon Islands\");\n\t\t$country[\"SOM\"] = Array(\"iso2\" => \"SO\", \"name\" => \"Somalia, Somali Republic\");\n\t\t$country[\"ZAF\"] = Array(\"iso2\" => \"ZA\", \"name\" => \"South Africa, Republic of\");\n\t\t$country[\"SGS\"] = Array(\"iso2\" => \"GS\", \"name\" => \"South Georgia and the South Sa\");\n\t\t$country[\"ESP\"] = Array(\"iso2\" => \"ES\", \"name\" => \"Spain, Kingdom of\");\n\t\t$country[\"LKA\"] = Array(\"iso2\" => \"LK\", \"name\" => \"Sri Lanka, Democratic Socialis\");\n\t\t$country[\"SDN\"] = Array(\"iso2\" => \"SD\", \"name\" => \"Sudan, Republic of\");\n\t\t$country[\"SUR\"] = Array(\"iso2\" => \"SR\", \"name\" => \"Suriname, Republic of\");\n\t\t$country[\"SJM\"] = Array(\"iso2\" => \"SJ\", \"name\" => \"Svalbard & Jan Mayen Islands\");\n\t\t$country[\"SWZ\"] = Array(\"iso2\" => \"SZ\", \"name\" => \"Swaziland, Kingdom of\");\n\t\t$country[\"SWE\"] = Array(\"iso2\" => \"SE\", \"name\" => \"Sweden, Kingdom of\");\n\t\t$country[\"CHE\"] = Array(\"iso2\" => \"CH\", \"name\" => \"Switzerland, Swiss Confederati\");\n\t\t$country[\"SYR\"] = Array(\"iso2\" => \"SY\", \"name\" => \"Syrian Arab Republic\");\n\t\t$country[\"TWN\"] = Array(\"iso2\" => \"TW\", \"name\" => \"Taiwan\");\n\t\t$country[\"TJK\"] = Array(\"iso2\" => \"TJ\", \"name\" => \"Tajikistan, Republic of\");\n\t\t$country[\"TZA\"] = Array(\"iso2\" => \"TZ\", \"name\" => \"Tanzania, United Republic of\");\n\t\t$country[\"THA\"] = Array(\"iso2\" => \"TH\", \"name\" => \"Thailand, Kingdom of\");\n\t\t$country[\"TLS\"] = Array(\"iso2\" => \"TL\", \"name\" => \"Timor-Leste, Democratic Republ\");\n\t\t$country[\"TGO\"] = Array(\"iso2\" => \"TG\", \"name\" => \"Togo, Togolese Republic\");\n\t\t$country[\"TKL\"] = Array(\"iso2\" => \"TK\", \"name\" => \"Tokelau\");\n\t\t$country[\"TON\"] = Array(\"iso2\" => \"TO\", \"name\" => \"Tonga, Kingdom of\");\n\t\t$country[\"TTO\"] = Array(\"iso2\" => \"TT\", \"name\" => \"Trinidad and Tobago, Republic \");\n\t\t$country[\"TUN\"] = Array(\"iso2\" => \"TN\", \"name\" => \"Tunisia, Tunisian Republic\");\n\t\t$country[\"TUR\"] = Array(\"iso2\" => \"TR\", \"name\" => \"Turkey, Republic of\");\n\t\t$country[\"TKM\"] = Array(\"iso2\" => \"TM\", \"name\" => \"Turkmenistan\");\n\t\t$country[\"TCA\"] = Array(\"iso2\" => \"TC\", \"name\" => \"Turks and Caicos Islands\");\n\t\t$country[\"TUV\"] = Array(\"iso2\" => \"TV\", \"name\" => \"Tuvalu\");\n\t\t$country[\"UGA\"] = Array(\"iso2\" => \"UG\", \"name\" => \"Uganda, Republic of\");\n\t\t$country[\"UKR\"] = Array(\"iso2\" => \"UA\", \"name\" => \"Ukraine\");\n\t\t$country[\"ARE\"] = Array(\"iso2\" => \"AE\", \"name\" => \"United Arab Emirates\");\n\t\t$country[\"GBR\"] = Array(\"iso2\" => \"GB\", \"name\" => \"United Kingdom of Great Britain\");\n\t\t$country[\"USA\"] = Array(\"iso2\" => \"US\", \"name\" => \"United States of America\");\n\t\t$country[\"UMI\"] = Array(\"iso2\" => \"UM\", \"name\" => \"United States Minor Outlying I\");\n\t\t$country[\"VIR\"] = Array(\"iso2\" => \"VI\", \"name\" => \"United States Virgin Islands\");\n\t\t$country[\"URY\"] = Array(\"iso2\" => \"UY\", \"name\" => \"Uruguay, Eastern Republic of\");\n\t\t$country[\"UZB\"] = Array(\"iso2\" => \"UZ\", \"name\" => \"Uzbekistan, Republic of\");\n\t\t$country[\"VUT\"] = Array(\"iso2\" => \"VU\", \"name\" => \"Vanuatu, Republic of\");\n\t\t$country[\"VEN\"] = Array(\"iso2\" => \"VE\", \"name\" => \"Venezuela, Bolivarian Republic\");\n\t\t$country[\"VNM\"] = Array(\"iso2\" => \"VN\", \"name\" => \"Vietnam, Socialist Republic of\");\n\t\t$country[\"WLF\"] = Array(\"iso2\" => \"WF\", \"name\" => \"Wallis and Futuna\");\n\t\t$country[\"ESH\"] = Array(\"iso2\" => \"EH\", \"name\" => \"Western Sahara\");\n\t\t$country[\"YEM\"] = Array(\"iso2\" => \"YE\", \"name\" => \"Yemen\");\n\t\t$country[\"ZMB\"] = Array(\"iso2\" => \"ZM\", \"name\" => \"Zambia, Republic of\");\n\t\t$country[\"ZWE\"] = Array(\"iso2\" => \"ZW\", \"name\" => \"Zimbabwe, Republic of\");\n\t\t$country[\"0\"] = Array(\"iso2\" => \"0\", \"name\" => \"NO VALID COUNTRY\");\n\n\t\treturn $country;\n\t}", "public static function getCountryList(){\n return Country::find()\n ->orderBy(['name'=>SORT_ASC])\n ->all();\n }", "public function getSupportedMerchantCountryCodes()\n {\n return $this->supportedCountryCodes;\n }", "public static function getISOCountryList()\r\n\t{\r\n\t\t$iclISOCountryList = new PYS_ISOCountryList();\r\n\t\t\r\n\t\t$iclISOCountryList->add(826,\"United Kingdom\",\"GBR\",3);\r\n\t\t$iclISOCountryList->add(840,\"United States\",\"USA\",2);\r\n\t\t$iclISOCountryList->add(36,\"Australia\",\"AUS\",1);\r\n\t\t$iclISOCountryList->add(124,\"Canada\",\"CAN\",1);\r\n\t\t$iclISOCountryList->add(250,\"France\",\"FRA\",1);\r\n\t\t$iclISOCountryList->add(276,\"Germany\",\"DEU\",1);\r\n\t\t$iclISOCountryList->add(4,\"Afghanistan\",\"AFG\",0);\r\n\t\t$iclISOCountryList->add(248,\"Åland Islands\",\"ALA\",0);\t\r\n\t\t$iclISOCountryList->add(8,\"Albania\",\"ALB\",0);\r\n\t\t$iclISOCountryList->add(12,\"Algeria\",\"DZA\",0);\r\n\t\t$iclISOCountryList->add(16,\"American Samoa\",\"ASM\",0);\r\n\t\t$iclISOCountryList->add(20,\"Andorra\",\"AND\",0);\r\n\t\t$iclISOCountryList->add(24,\"Angola\",\"AGO\",0);\r\n\t\t$iclISOCountryList->add(660,\"Anguilla\",\"AIA\",0);\r\n\t\t$iclISOCountryList->add(10,\"Antarctica\",\"ATA\",0);\r\n\t\t$iclISOCountryList->add(28,\"Antigua and Barbuda\",\"ATG\",0);\r\n\t\t$iclISOCountryList->add(32,\"Argentina\",\"ARG\",0);\r\n\t\t$iclISOCountryList->add(51,\"Armenia\",\"ARM\",0);\r\n\t\t$iclISOCountryList->add(533,\"Aruba\",\"ABW\",0);\r\n\t\t$iclISOCountryList->add(40,\"Austria\",\"AUT\",0);\r\n\t\t$iclISOCountryList->add(31,\"Azerbaijan\",\"AZE\",0);\r\n\t\t$iclISOCountryList->add(44,\"Bahamas\",\"BHS\",0);\r\n\t\t$iclISOCountryList->add(48,\"Bahrain\",\"BHR\",0);\r\n\t\t$iclISOCountryList->add(50,\"Bangladesh\",\"BGD\",0);\r\n\t\t$iclISOCountryList->add(52,\"Barbados\",\"BRB\",0);\r\n\t\t$iclISOCountryList->add(112,\"Belarus\",\"BLR\",0);\r\n\t\t$iclISOCountryList->add(56,\"Belgium\",\"BEL\",0);\r\n\t\t$iclISOCountryList->add(84,\"Belize\",\"BLZ\",0);\r\n\t\t$iclISOCountryList->add(204,\"Benin\",\"BEN\",0);\r\n\t\t$iclISOCountryList->add(60,\"Bermuda\",\"BMU\",0);\r\n\t\t$iclISOCountryList->add(64,\"Bhutan\",\"BTN\",0);\r\n\t\t$iclISOCountryList->add(68,\"Bolivia\",\"BOL\",0);\r\n\t\t$iclISOCountryList->add(70,\"Bosnia and Herzegovina\",\"BIH\",0);\r\n\t\t$iclISOCountryList->add(72,\"Botswana\",\"BWA\",0);\r\n\t\t$iclISOCountryList->add(74,\"Bouvet Island\",\"BVT\",0);\r\n\t\t$iclISOCountryList->add(76,\"Brazil Federative\",\"BRA\",0);\r\n\t\t$iclISOCountryList->add(86,\"British Indian Ocean Territory\",\"IOT\",0);\r\n\t\t$iclISOCountryList->add(96,\"Brunei\",\"BRN\",0);\r\n\t\t$iclISOCountryList->add(100,\"Bulgaria\",\"BGR\",0);\r\n\t\t$iclISOCountryList->add(854,\"Burkina Faso\",\"BFA\",0);\r\n\t\t$iclISOCountryList->add(108,\"Burundi\",\"BDI\",0);\r\n\t\t$iclISOCountryList->add(116,\"Cambodia\",\"KHM\",0);\r\n\t\t$iclISOCountryList->add(120,\"Cameroon\",\"CMR\",0);\r\n\t\t$iclISOCountryList->add(132,\"Cape Verde\",\"CPV\",0);\r\n\t\t$iclISOCountryList->add(136,\"Cayman Islands\",\"CYM\",0);\r\n\t\t$iclISOCountryList->add(140,\"Central African Republic\",\"CAF\",0);\r\n\t\t$iclISOCountryList->add(148,\"Chad\",\"TCD\",0);\r\n\t\t$iclISOCountryList->add(152,\"Chile\",\"CHL\",0);\r\n\t\t$iclISOCountryList->add(156,\"China\",\"CHN\",0);\r\n\t\t$iclISOCountryList->add(162,\"Christmas Island\",\"CXR\",0);\r\n\t\t$iclISOCountryList->add(166,\"Cocos (Keeling) Islands\",\"CCK\",0);\r\n\t\t$iclISOCountryList->add(170,\"Colombia\",\"COL\",0);\r\n\t\t$iclISOCountryList->add(174,\"Comoros\",\"COM\",0);\r\n\t\t$iclISOCountryList->add(180,\"Congo\",\"COD\",0);\r\n\t\t$iclISOCountryList->add(178,\"Congo\",\"COG\",0);\r\n\t\t$iclISOCountryList->add(184,\"Cook Islands\",\"COK\",0);\r\n\t\t$iclISOCountryList->add(188,\"Costa Rica\",\"CRI\",0);\r\n\t\t$iclISOCountryList->add(384,\"Côte d'Ivoire\",\"CIV\",0);\r\n\t\t$iclISOCountryList->add(191,\"Croatia\",\"HRV\",0);\r\n\t\t$iclISOCountryList->add(192,\"Cuba\",\"CUB\",0);\r\n\t\t$iclISOCountryList->add(196,\"Cyprus\",\"CYP\",0);\r\n\t\t$iclISOCountryList->add(203,\"Czech Republic\",\"CZE\",0);\r\n\t\t$iclISOCountryList->add(208,\"Denmark\",\"DNK\",0);\r\n\t\t$iclISOCountryList->add(262,\"Djibouti\",\"DJI\",0);\r\n\t\t$iclISOCountryList->add(212,\"Dominica\",\"DMA\",0);\r\n\t\t$iclISOCountryList->add(214,\"Dominican Republic\",\"DOM\",0);\r\n\t\t$iclISOCountryList->add(626,\"East Timor\",\"TMP\",0);\r\n\t\t$iclISOCountryList->add(218,\"Ecuador\",\"ECU\",0);\r\n\t\t$iclISOCountryList->add(818,\"Egypt\",\"EGY\",0);\r\n\t\t$iclISOCountryList->add(222,\"El Salvador\",\"SLV\",0);\r\n\t\t$iclISOCountryList->add(226,\"Equatorial Guinea\",\"GNQ\",0);\r\n\t\t$iclISOCountryList->add(232,\"Eritrea\",\"ERI\",0);\r\n\t\t$iclISOCountryList->add(233,\"Estonia\",\"EST\",0);\r\n\t\t$iclISOCountryList->add(231,\"Ethiopia\",\"ETH\",0);\r\n\t\t$iclISOCountryList->add(238,\"Falkland Islands (Malvinas)\",\"FLK\",0);\r\n\t\t$iclISOCountryList->add(234,\"Faroe Islands\",\"FRO\",0);\r\n\t\t$iclISOCountryList->add(242,\"Fiji\",\"FJI\",0);\r\n\t\t$iclISOCountryList->add(246,\"Finland\",\"FIN\",0);\r\n\t\t$iclISOCountryList->add(254,\"French Guiana\",\"GUF\",0);\r\n\t\t$iclISOCountryList->add(258,\"French Polynesia\",\"PYF\",0);\r\n\t\t$iclISOCountryList->add(260,\"French Southern Territories\",\"ATF\",0);\r\n\t\t$iclISOCountryList->add(266,\"Gabon\",\"GAB\",0);\r\n\t\t$iclISOCountryList->add(270,\"Gambia\",\"GMB\",0);\r\n\t\t$iclISOCountryList->add(268,\"Georgia\",\"GEO\",0);\r\n\t\t$iclISOCountryList->add(288,\"Ghana\",\"GHA\",0);\r\n\t\t$iclISOCountryList->add(292,\"Gibraltar\",\"GIB\",0);\r\n\t\t$iclISOCountryList->add(300,\"Greece\",\"GRC\",0);\r\n\t\t$iclISOCountryList->add(304,\"Greenland\",\"GRL\",0);\r\n\t\t$iclISOCountryList->add(308,\"Grenada\",\"GRD\",0);\r\n\t\t$iclISOCountryList->add(312,\"Guadaloupe\",\"GLP\",0);\r\n\t\t$iclISOCountryList->add(316,\"Guam\",\"GUM\",0);\r\n\t\t$iclISOCountryList->add(320,\"Guatemala\",\"GTM\",0);\r\n\t\t$iclISOCountryList->add(831,\"Guernsey\",\"GGY\",0);\r\n\t\t$iclISOCountryList->add(324,\"Guinea\",\"GIN\",0);\r\n\t\t$iclISOCountryList->add(624,\"Guinea-Bissau\",\"GNB\",0);\r\n\t\t$iclISOCountryList->add(328,\"Guyana\",\"GUY\",0);\r\n\t\t$iclISOCountryList->add(332,\"Haiti\",\"HTI\",0);\r\n\t\t$iclISOCountryList->add(334,\"Heard Island and McDonald Islands\",\"HMD\",0);\r\n\t\t$iclISOCountryList->add(340,\"Honduras\",\"HND\",0);\r\n\t\t$iclISOCountryList->add(344,\"Hong Kong\",\"HKG\",0);\r\n\t\t$iclISOCountryList->add(348,\"Hungary\",\"HUN\",0);\r\n\t\t$iclISOCountryList->add(352,\"Iceland\",\"ISL\",0);\r\n\t\t$iclISOCountryList->add(356,\"India\",\"IND\",0);\r\n\t\t$iclISOCountryList->add(360,\"Indonesia\",\"IDN\",0);\r\n\t\t$iclISOCountryList->add(364,\"Iran\",\"IRN\",0);\r\n\t\t$iclISOCountryList->add(368,\"Iraq\",\"IRQ\",0);\r\n\t\t$iclISOCountryList->add(372,\"Ireland\",\"IRL\",0);\r\n\t\t$iclISOCountryList->add(833,\"Isle of Man\",\"IMN\",0);\r\n\t\t$iclISOCountryList->add(376,\"Israel\",\"ISR\",0);\r\n\t\t$iclISOCountryList->add(380,\"Italy\",\"ITA\",0);\r\n\t\t$iclISOCountryList->add(388,\"Jamaica\",\"JAM\",0);\r\n\t\t$iclISOCountryList->add(392,\"Japan\",\"JPN\",0);\r\n\t\t$iclISOCountryList->add(832,\"Jersey\",\"JEY\",0);\r\n\t\t$iclISOCountryList->add(400,\"Jordan\",\"JOR\",0);\r\n\t\t$iclISOCountryList->add(398,\"Kazakhstan\",\"KAZ\",0);\r\n\t\t$iclISOCountryList->add(404,\"Kenya\",\"KEN\",0);\r\n\t\t$iclISOCountryList->add(296,\"Kiribati\",\"KIR\",0);\r\n\t\t$iclISOCountryList->add(410,\"Korea\",\"KOR\",0);\r\n\t\t$iclISOCountryList->add(408,\"Korea\",\"PRK\",0);\r\n\t\t$iclISOCountryList->add(414,\"Kuwait\",\"KWT\",0);\r\n\t\t$iclISOCountryList->add(417,\"Kyrgyzstan\",\"KGZ\",0);\r\n\t\t$iclISOCountryList->add(418,\"Lao\",\"LAO\",0);\r\n\t\t$iclISOCountryList->add(428,\"Latvia\",\"LVA\",0);\r\n\t\t$iclISOCountryList->add(422,\"Lebanon\",\"LBN\",0);\r\n\t\t$iclISOCountryList->add(426,\"Lesotho\",\"LSO\",0);\r\n\t\t$iclISOCountryList->add(430,\"Liberia\",\"LBR\",0);\r\n\t\t$iclISOCountryList->add(434,\"Libyan Arab Jamahiriya\",\"LBY\",0);\r\n\t\t$iclISOCountryList->add(438,\"Liechtenstein\",\"LIE\",0);\r\n\t\t$iclISOCountryList->add(440,\"Lithuania\",\"LTU\",0);\r\n\t\t$iclISOCountryList->add(442,\"Luxembourg\",\"LUX\",0);\r\n\t\t$iclISOCountryList->add(446,\"Macau\",\"MAC\",0);\r\n\t\t$iclISOCountryList->add(807,\"Macedonia\",\"MKD\",0);\r\n\t\t$iclISOCountryList->add(450,\"Madagascar\",\"MDG\",0);\r\n\t\t$iclISOCountryList->add(454,\"Malawi\",\"MWI\",0);\r\n\t\t$iclISOCountryList->add(458,\"Malaysia\",\"MYS\",0);\r\n\t\t$iclISOCountryList->add(462,\"Maldives\",\"MDV\",0);\r\n\t\t$iclISOCountryList->add(466,\"Mali\",\"MLI\",0);\r\n\t\t$iclISOCountryList->add(470,\"Malta\",\"MLT\",0);\r\n\t\t$iclISOCountryList->add(584,\"Marshall Islands\",\"MHL\",0);\r\n\t\t$iclISOCountryList->add(474,\"Martinique\",\"MTQ\",0);\r\n\t\t$iclISOCountryList->add(478,\"Mauritania Islamic\",\"MRT\",0);\r\n\t\t$iclISOCountryList->add(480,\"Mauritius\",\"MUS\",0);\r\n\t\t$iclISOCountryList->add(175,\"Mayotte\",\"MYT\",0);\r\n\t\t$iclISOCountryList->add(484,\"Mexico\",\"MEX\",0);\r\n\t\t$iclISOCountryList->add(583,\"Micronesia\",\"FSM\",0);\r\n\t\t$iclISOCountryList->add(498,\"Moldova\",\"MDA\",0);\r\n\t\t$iclISOCountryList->add(492,\"Monaco\",\"MCO\",0);\r\n\t\t$iclISOCountryList->add(496,\"Mongolia\",\"MNG\",0);\r\n\t\t$iclISOCountryList->add(499,\"Montenegro\",\"MNE\",0);\t\r\n\t\t$iclISOCountryList->add(500,\"Montserrat\",\"MSR\",0);\r\n\t\t$iclISOCountryList->add(504,\"Morocco\",\"MAR\",0);\r\n\t\t$iclISOCountryList->add(508,\"Mozambique\",\"MOZ\",0);\r\n\t\t$iclISOCountryList->add(104,\"Myanmar\",\"MMR\",0);\r\n\t\t$iclISOCountryList->add(516,\"Namibia\",\"NAM\",0);\r\n\t\t$iclISOCountryList->add(520,\"Nauru\",\"NRU\",0);\r\n\t\t$iclISOCountryList->add(524,\"Nepal\",\"NPL\",0);\r\n\t\t$iclISOCountryList->add(528,\"Netherlands\",\"NLD\",0);\r\n\t\t$iclISOCountryList->add(530,\"Netherlands Antilles\",\"ANT\",0);\r\n\t\t$iclISOCountryList->add(540,\"New Caledonia\",\"NCL\",0);\r\n\t\t$iclISOCountryList->add(554,\"New Zealand\",\"NZL\",0);\r\n\t\t$iclISOCountryList->add(558,\"Nicaragua\",\"NIC\",0);\r\n\t\t$iclISOCountryList->add(562,\"Niger\",\"NER\",0);\r\n\t\t$iclISOCountryList->add(566,\"Nigeria\",\"NGA\",0);\r\n\t\t$iclISOCountryList->add(570,\"Niue\",\"NIU\",0);\r\n\t\t$iclISOCountryList->add(574,\"Norfolk Island\",\"NFK\",0);\r\n\t\t$iclISOCountryList->add(580,\"Northern Mariana Islands\",\"MNP\",0);\r\n\t\t$iclISOCountryList->add(578,\"Norway\",\"NOR\",0);\r\n\t\t$iclISOCountryList->add(512,\"Oman\",\"OMN\",0);\r\n\t\t$iclISOCountryList->add(586,\"Pakistan\",\"PAK\",0);\r\n\t\t$iclISOCountryList->add(585,\"Palau\",\"PLW\",0);\r\n\t\t$iclISOCountryList->add(275,\"Palestine\",\"PSE\",0);\t\r\n\t\t$iclISOCountryList->add(591,\"Panama\",\"PAN\",0);\r\n\t\t$iclISOCountryList->add(598,\"Papua New Guinea\",\"PNG\",0);\r\n\t\t$iclISOCountryList->add(600,\"Paraguay\",\"PRY\",0);\r\n\t\t$iclISOCountryList->add(604,\"Peru\",\"PER\",0);\r\n\t\t$iclISOCountryList->add(608,\"Philippines\",\"PHL\",0);\r\n\t\t$iclISOCountryList->add(612,\"Pitcairn\",\"PCN\",0);\r\n\t\t$iclISOCountryList->add(616,\"Poland\",\"POL\",0);\r\n\t\t$iclISOCountryList->add(620,\"Portugal\",\"PRT\",0);\r\n\t\t$iclISOCountryList->add(630,\"Puerto Rico\",\"PRI\",0);\r\n\t\t$iclISOCountryList->add(634,\"Qatar\",\"QAT\",0);\r\n\t\t$iclISOCountryList->add(638,\"Réunion\",\"REU\",0);\r\n\t\t$iclISOCountryList->add(642,\"Romania\",\"ROM\",0);\r\n\t\t$iclISOCountryList->add(643,\"Russian Federation\",\"RUS\",0);\r\n\t\t$iclISOCountryList->add(646,\"Rwanda\",\"RWA\",0);\r\n\t\t$iclISOCountryList->add(652,\"Saint Barthélemy\",\"BLM\",0);\r\n\t\t$iclISOCountryList->add(654,\"Saint Helena\",\"SHN\",0);\r\n\t\t$iclISOCountryList->add(659,\"Saint Kitts and Nevis\",\"KNA\",0);\r\n\t\t$iclISOCountryList->add(662,\"Saint Lucia\",\"LCA\",0);\r\n\t\t$iclISOCountryList->add(663,\"Saint Martin (French part)\",\"MAF\",0);\r\n\t\t$iclISOCountryList->add(666,\"Saint Pierre and Miquelon\",\"SPM\",0);\r\n\t\t$iclISOCountryList->add(670,\"Saint Vincent and the Grenadines\",\"VCT\",0);\r\n\t\t$iclISOCountryList->add(882,\"Samoa\",\"WSM\",0);\r\n\t\t$iclISOCountryList->add(674,\"San Marino\",\"SMR\",0);\r\n\t\t$iclISOCountryList->add(678,\"São Tomé and Príncipe Democratic\",\"STP\",0);\r\n\t\t$iclISOCountryList->add(682,\"Saudi Arabia\",\"SAU\",0);\r\n\t\t$iclISOCountryList->add(686,\"Senegal\",\"SEN\",0);\r\n\t\t$iclISOCountryList->add(688,\"Serbia\",\"SRB\",0);\r\n\t\t$iclISOCountryList->add(690,\"Seychelles\",\"SYC\",0);\r\n\t\t$iclISOCountryList->add(694,\"Sierra Leone\",\"SLE\",0);\r\n\t\t$iclISOCountryList->add(702,\"Singapore\",\"SGP\",0);\r\n\t\t$iclISOCountryList->add(703,\"Slovakia\",\"SVK\",0);\r\n\t\t$iclISOCountryList->add(705,\"Slovenia\",\"SVN\",0);\r\n\t\t$iclISOCountryList->add(90,\"Solomon Islands\",\"SLB\",0);\r\n\t\t$iclISOCountryList->add(706,\"Somalia\",\"SOM\",0);\r\n\t\t$iclISOCountryList->add(710,\"South Africa\",\"ZAF\",0);\r\n\t\t$iclISOCountryList->add(239,\"South Georgia and the South Sandwich Islands\",\"SGS\",0);\r\n\t\t$iclISOCountryList->add(724,\"Spain\",\"ESP\",0);\r\n\t\t$iclISOCountryList->add(144,\"Sri Lanka\",\"LKA\",0);\r\n\t\t$iclISOCountryList->add(736,\"Sudan\",\"SDN\",0);\r\n\t\t$iclISOCountryList->add(740,\"Suriname\",\"SUR\",0);\r\n\t\t$iclISOCountryList->add(744,\"Svalbard and Jan Mayen\",\"SJM\",0);\r\n\t\t$iclISOCountryList->add(748,\"Swaziland\",\"SWZ\",0);\r\n\t\t$iclISOCountryList->add(752,\"Sweden\",\"SWE\",0);\r\n\t\t$iclISOCountryList->add(756,\"Switzerland\",\"CHE\",0);\r\n\t\t$iclISOCountryList->add(760,\"Syrian Arab Republic\",\"SYR\",0);\r\n\t\t$iclISOCountryList->add(158,\"Taiwan,\",\"TWN\",0);\r\n\t\t$iclISOCountryList->add(762,\"Tajikistan\",\"TJK\",0);\r\n\t\t$iclISOCountryList->add(834,\"Tanzania\",\"TZA\",0);\r\n\t\t$iclISOCountryList->add(764,\"Thailand\",\"THA\",0);\r\n\t\t$iclISOCountryList->add(768,\"Togo\",\"TGO\",0);\r\n\t\t$iclISOCountryList->add(772,\"Tokelau\",\"TKL\",0);\r\n\t\t$iclISOCountryList->add(776,\"Tonga\",\"TON\",0);\r\n\t\t$iclISOCountryList->add(780,\"Trinidad and Tobago\",\"TTO\",0);\r\n\t\t$iclISOCountryList->add(788,\"Tunisia\",\"TUN\",0);\r\n\t\t$iclISOCountryList->add(792,\"Turkey\",\"TUR\",0);\r\n\t\t$iclISOCountryList->add(795,\"Turkmenistan\",\"TKM\",0);\r\n\t\t$iclISOCountryList->add(796,\"Turks and Caicos Islands\",\"TCA\",0);\r\n\t\t$iclISOCountryList->add(798,\"Tuvalu\",\"TUV\",0);\r\n\t\t$iclISOCountryList->add(800,\"Uganda\",\"UGA\",0);\r\n\t\t$iclISOCountryList->add(804,\"Ukraine\",\"UKR\",0);\r\n\t\t$iclISOCountryList->add(784,\"United Arab Emirates\",\"ARE\",0);\r\n\t\t$iclISOCountryList->add(581,\"United States Minor Outlying Islands\",\"UMI\",0);\r\n\t\t$iclISOCountryList->add(858,\"Uruguay Eastern\",\"URY\",0);\r\n\t\t$iclISOCountryList->add(860,\"Uzbekistan\",\"UZB\",0);\r\n\t\t$iclISOCountryList->add(548,\"Vanuatu\",\"VUT\",0);\r\n\t\t$iclISOCountryList->add(336,\"Vatican City State\",\"VAT\",0);\r\n\t\t$iclISOCountryList->add(862,\"Venezuela\",\"VEN\",0);\r\n\t\t$iclISOCountryList->add(704,\"Vietnam\",\"VNM\",0);\r\n\t\t$iclISOCountryList->add(92,\"Virgin Islands, British\",\"VGB\",0);\r\n\t\t$iclISOCountryList->add(850,\"Virgin Islands, U.S.\",\"VIR\",0);\r\n\t\t$iclISOCountryList->add(876,\"Wallis and Futuna\",\"WLF\",0);\r\n\t\t$iclISOCountryList->add(732,\"Western Sahara\",\"ESH\",0);\r\n\t\t$iclISOCountryList->add(887,\"Yemen\",\"YEM\",0);\r\n\t\t$iclISOCountryList->add(894,\"Zambia\",\"ZMB\",0);\r\n\t\t$iclISOCountryList->add(716,\"Zimbabwe\",\"ZWE\",0);\r\n\t\t\r\n\t\treturn $iclISOCountryList;\r\n\t}", "public function getSwitchableCountries()\n {\n $result = array();\n $allCountries = Mage::getResourceModel('directory/country_collection')->loadByStore()->toOptionArray(true);\n\n foreach ($allCountries as $country) {\n $result[] = $country;\n }\n\n return $result;\n }", "function tep_get_countries($default = '') {\n $countries_array = array();\n if ($default) {\n $countries_array[] = array('id' => '',\n 'text' => $default);\n }\n\n $Qcountries = Registry::get('Db')->get('countries', ['countries_id', 'countries_name'], null, 'countries_name');\n\n while ($Qcountries->fetch()) {\n $countries_array[] = [\n 'id' => $Qcountries->valueInt('countries_id'),\n 'text' => $Qcountries->value('countries_name')\n ];\n }\n\n return $countries_array;\n }", "public function getCountry();", "public function getCountry();", "public static function All()\n\t{\n\t\t$query = 'EXEC [getCountries]';\n\t\t$query .= '@languageCode = \\'' . Localisation::getCurrentLanguage() . '\\'';\n\n\t\t$rows = Database::ODBCExecute($query);\n\n\t\t$countries = array();\n\t\tforeach ($rows as $row) {\n\t\t\t$countries[] = new Country(\n\t\t\t\t$row['code'],\n\t\t\t\t$row['name']\n\t\t\t);\n\t\t}\n\n\t\treturn $countries;\n\t}", "public function countryList ( Request $request ) {\n $countries = Country::all();\n return response()->json([\n \"response\" => $countries\n ]);\n }", "public function getAllowedCountries(): ?array\n {\n $allowedCountries = $this->allowedCountries->getAllowedCountries(\"store\");\n $countries = [];\n foreach ($allowedCountries as $allowedCountry) {\n $countries[$allowedCountry] = $this->country->loadByCode($allowedCountry)->getName();\n }\n\n uasort($countries, [$this, 'sortArray']);\n\n return $countries;\n }", "public function getCountryOptions()\r\r\r\n\t{\r\r\r\n\t\t$countries = Ccc::getModel('core/locale')->getTranslationList('territory', null, 2);\r\r\r\n \r\r\r\n return $this->_filterCountryList($countries); \r\r\r\n \r\r\r\n asort($countries);\r\r\r\n return $countries;\r\r\r\n\t}", "protected function getCountries() {\n\t\t$countries = $this->staticCountryRepository->findAll();\n\t\t$countryNames = array();\n\t\t/** @var \\HDNET\\Profession\\Domain\\Model\\StaticCountry $country */\n\t\tforeach ($countries as $country) {\n\t\t\t$countryNames[] .= $country->getShortNameDE();\n\t\t}\n\t\tasort($countryNames);\n\t\treturn $countryNames;\n\t}", "public function GetCountries(){\n try {\n \n // $country=new Countries();\n $countries=Countries::model()->GetCountries();\n return $countries;\n \n } catch (Exception $ex) {\n Yii::log(\"SkiptaUserService:GetCountries::\".$ex->getMessage().\"--\".$ex->getTraceAsString(), 'error', 'application');\n }\n }", "public function getAllCountries() {\n $sql = \"SELECT * FROM countries\";\n $result = $this->db->query($sql);\n if ($result->num_rows() <= 0) {\n return false;\n } else {\n return $result->result_array();\n }\n }", "public function getCountriesPerRegion();", "public function getCountryList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('country');\n\t\t$this->db->where('country_status', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "public function getCountries() {\n $db = database::getDB();\n $query = \"SELECT country FROM countries ORDER BY id\";\n $data = $db->query($query);\n return $data;\n }", "function getISO3166Codes()\n {\n return array('es', 'esp');\n }", "public function getCountryList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('country');\r\n\t\t$this->db->where('country_status', '1');\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function getCountry() {}", "public function getCountry() {}", "public function presetCountries()\n {\n $fullResult = $this->client->call(\n 'crm.requisite.preset.countries'\n );\n return $fullResult;\n }", "public function getAllCountriesProperty()\n {\n return Country::get();\n }", "public function countryList(){\n $sorted = $this->country->select('id','country_name')->get()->sortBy('country_name');\n return $sorted->values()->all();\n }", "function pms_get_countries() {\r\n\r\n $country_array = apply_filters( 'pms_get_countries',\r\n array(\r\n ''\t => '',\r\n 'AF' => __( 'Afghanistan', 'paid-member-subscriptions' ),\r\n 'AX' => __( 'Aland Islands', 'paid-member-subscriptions' ),\r\n 'AL' => __( 'Albania', 'paid-member-subscriptions' ),\r\n 'DZ' => __( 'Algeria', 'paid-member-subscriptions' ),\r\n 'AS' => __( 'American Samoa', 'paid-member-subscriptions' ),\r\n 'AD' => __( 'Andorra', 'paid-member-subscriptions' ),\r\n 'AO' => __( 'Angola', 'paid-member-subscriptions' ),\r\n 'AI' => __( 'Anguilla', 'paid-member-subscriptions' ),\r\n 'AQ' => __( 'Antarctica', 'paid-member-subscriptions' ),\r\n 'AG' => __( 'Antigua and Barbuda', 'paid-member-subscriptions' ),\r\n 'AR' => __( 'Argentina', 'paid-member-subscriptions' ),\r\n 'AM' => __( 'Armenia', 'paid-member-subscriptions' ),\r\n 'AW' => __( 'Aruba', 'paid-member-subscriptions' ),\r\n 'AU' => __( 'Australia', 'paid-member-subscriptions' ),\r\n 'AT' => __( 'Austria', 'paid-member-subscriptions' ),\r\n 'AZ' => __( 'Azerbaijan', 'paid-member-subscriptions' ),\r\n 'BS' => __( 'Bahamas', 'paid-member-subscriptions' ),\r\n 'BH' => __( 'Bahrain', 'paid-member-subscriptions' ),\r\n 'BD' => __( 'Bangladesh', 'paid-member-subscriptions' ),\r\n 'BB' => __( 'Barbados', 'paid-member-subscriptions' ),\r\n 'BY' => __( 'Belarus', 'paid-member-subscriptions' ),\r\n 'BE' => __( 'Belgium', 'paid-member-subscriptions' ),\r\n 'BZ' => __( 'Belize', 'paid-member-subscriptions' ),\r\n 'BJ' => __( 'Benin', 'paid-member-subscriptions' ),\r\n 'BM' => __( 'Bermuda', 'paid-member-subscriptions' ),\r\n 'BT' => __( 'Bhutan', 'paid-member-subscriptions' ),\r\n 'BO' => __( 'Bolivia', 'paid-member-subscriptions' ),\r\n 'BQ' => __( 'Bonaire, Saint Eustatius and Saba', 'paid-member-subscriptions' ),\r\n 'BA' => __( 'Bosnia and Herzegovina', 'paid-member-subscriptions' ),\r\n 'BW' => __( 'Botswana', 'paid-member-subscriptions' ),\r\n 'BV' => __( 'Bouvet Island', 'paid-member-subscriptions' ),\r\n 'BR' => __( 'Brazil', 'paid-member-subscriptions' ),\r\n 'IO' => __( 'British Indian Ocean Territory', 'paid-member-subscriptions' ),\r\n 'VG' => __( 'British Virgin Islands', 'paid-member-subscriptions' ),\r\n 'BN' => __( 'Brunei', 'paid-member-subscriptions' ),\r\n 'BG' => __( 'Bulgaria', 'paid-member-subscriptions' ),\r\n 'BF' => __( 'Burkina Faso', 'paid-member-subscriptions' ),\r\n 'BI' => __( 'Burundi', 'paid-member-subscriptions' ),\r\n 'KH' => __( 'Cambodia', 'paid-member-subscriptions' ),\r\n 'CM' => __( 'Cameroon', 'paid-member-subscriptions' ),\r\n 'CA' => __( 'Canada', 'paid-member-subscriptions' ),\r\n 'CV' => __( 'Cape Verde', 'paid-member-subscriptions' ),\r\n 'KY' => __( 'Cayman Islands', 'paid-member-subscriptions' ),\r\n 'CF' => __( 'Central African Republic', 'paid-member-subscriptions' ),\r\n 'TD' => __( 'Chad', 'paid-member-subscriptions' ),\r\n 'CL' => __( 'Chile', 'paid-member-subscriptions' ),\r\n 'CN' => __( 'China', 'paid-member-subscriptions' ),\r\n 'CX' => __( 'Christmas Island', 'paid-member-subscriptions' ),\r\n 'CC' => __( 'Cocos Islands', 'paid-member-subscriptions' ),\r\n 'CO' => __( 'Colombia', 'paid-member-subscriptions' ),\r\n 'KM' => __( 'Comoros', 'paid-member-subscriptions' ),\r\n 'CK' => __( 'Cook Islands', 'paid-member-subscriptions' ),\r\n 'CR' => __( 'Costa Rica', 'paid-member-subscriptions' ),\r\n 'HR' => __( 'Croatia', 'paid-member-subscriptions' ),\r\n 'CU' => __( 'Cuba', 'paid-member-subscriptions' ),\r\n 'CW' => __( 'Curacao', 'paid-member-subscriptions' ),\r\n 'CY' => __( 'Cyprus', 'paid-member-subscriptions' ),\r\n 'CZ' => __( 'Czech Republic', 'paid-member-subscriptions' ),\r\n 'CD' => __( 'Democratic Republic of the Congo', 'paid-member-subscriptions' ),\r\n 'DK' => __( 'Denmark', 'paid-member-subscriptions' ),\r\n 'DJ' => __( 'Djibouti', 'paid-member-subscriptions' ),\r\n 'DM' => __( 'Dominica', 'paid-member-subscriptions' ),\r\n 'DO' => __( 'Dominican Republic', 'paid-member-subscriptions' ),\r\n 'TL' => __( 'East Timor', 'paid-member-subscriptions' ),\r\n 'EC' => __( 'Ecuador', 'paid-member-subscriptions' ),\r\n 'EG' => __( 'Egypt', 'paid-member-subscriptions' ),\r\n 'SV' => __( 'El Salvador', 'paid-member-subscriptions' ),\r\n 'GQ' => __( 'Equatorial Guinea', 'paid-member-subscriptions' ),\r\n 'ER' => __( 'Eritrea', 'paid-member-subscriptions' ),\r\n 'EE' => __( 'Estonia', 'paid-member-subscriptions' ),\r\n 'ET' => __( 'Ethiopia', 'paid-member-subscriptions' ),\r\n 'FK' => __( 'Falkland Islands', 'paid-member-subscriptions' ),\r\n 'FO' => __( 'Faroe Islands', 'paid-member-subscriptions' ),\r\n 'FJ' => __( 'Fiji', 'paid-member-subscriptions' ),\r\n 'FI' => __( 'Finland', 'paid-member-subscriptions' ),\r\n 'FR' => __( 'France', 'paid-member-subscriptions' ),\r\n 'GF' => __( 'French Guiana', 'paid-member-subscriptions' ),\r\n 'PF' => __( 'French Polynesia', 'paid-member-subscriptions' ),\r\n 'TF' => __( 'French Southern Territories', 'paid-member-subscriptions' ),\r\n 'GA' => __( 'Gabon', 'paid-member-subscriptions' ),\r\n 'GM' => __( 'Gambia', 'paid-member-subscriptions' ),\r\n 'GE' => __( 'Georgia', 'paid-member-subscriptions' ),\r\n 'DE' => __( 'Germany', 'paid-member-subscriptions' ),\r\n 'GH' => __( 'Ghana', 'paid-member-subscriptions' ),\r\n 'GI' => __( 'Gibraltar', 'paid-member-subscriptions' ),\r\n 'GR' => __( 'Greece', 'paid-member-subscriptions' ),\r\n 'GL' => __( 'Greenland', 'paid-member-subscriptions' ),\r\n 'GD' => __( 'Grenada', 'paid-member-subscriptions' ),\r\n 'GP' => __( 'Guadeloupe', 'paid-member-subscriptions' ),\r\n 'GU' => __( 'Guam', 'paid-member-subscriptions' ),\r\n 'GT' => __( 'Guatemala', 'paid-member-subscriptions' ),\r\n 'GG' => __( 'Guernsey', 'paid-member-subscriptions' ),\r\n 'GN' => __( 'Guinea', 'paid-member-subscriptions' ),\r\n 'GW' => __( 'Guinea-Bissau', 'paid-member-subscriptions' ),\r\n 'GY' => __( 'Guyana', 'paid-member-subscriptions' ),\r\n 'HT' => __( 'Haiti', 'paid-member-subscriptions' ),\r\n 'HM' => __( 'Heard Island and McDonald Islands', 'paid-member-subscriptions' ),\r\n 'HN' => __( 'Honduras', 'paid-member-subscriptions' ),\r\n 'HK' => __( 'Hong Kong', 'paid-member-subscriptions' ),\r\n 'HU' => __( 'Hungary', 'paid-member-subscriptions' ),\r\n 'IS' => __( 'Iceland', 'paid-member-subscriptions' ),\r\n 'IN' => __( 'India', 'paid-member-subscriptions' ),\r\n 'ID' => __( 'Indonesia', 'paid-member-subscriptions' ),\r\n 'IR' => __( 'Iran', 'paid-member-subscriptions' ),\r\n 'IQ' => __( 'Iraq', 'paid-member-subscriptions' ),\r\n 'IE' => __( 'Ireland', 'paid-member-subscriptions' ),\r\n 'IM' => __( 'Isle of Man', 'paid-member-subscriptions' ),\r\n 'IL' => __( 'Israel', 'paid-member-subscriptions' ),\r\n 'IT' => __( 'Italy', 'paid-member-subscriptions' ),\r\n 'CI' => __( 'Ivory Coast', 'paid-member-subscriptions' ),\r\n 'JM' => __( 'Jamaica', 'paid-member-subscriptions' ),\r\n 'JP' => __( 'Japan', 'paid-member-subscriptions' ),\r\n 'JE' => __( 'Jersey', 'paid-member-subscriptions' ),\r\n 'JO' => __( 'Jordan', 'paid-member-subscriptions' ),\r\n 'KZ' => __( 'Kazakhstan', 'paid-member-subscriptions' ),\r\n 'KE' => __( 'Kenya', 'paid-member-subscriptions' ),\r\n 'KI' => __( 'Kiribati', 'paid-member-subscriptions' ),\r\n 'XK' => __( 'Kosovo', 'paid-member-subscriptions' ),\r\n 'KW' => __( 'Kuwait', 'paid-member-subscriptions' ),\r\n 'KG' => __( 'Kyrgyzstan', 'paid-member-subscriptions' ),\r\n 'LA' => __( 'Laos', 'paid-member-subscriptions' ),\r\n 'LV' => __( 'Latvia', 'paid-member-subscriptions' ),\r\n 'LB' => __( 'Lebanon', 'paid-member-subscriptions' ),\r\n 'LS' => __( 'Lesotho', 'paid-member-subscriptions' ),\r\n 'LR' => __( 'Liberia', 'paid-member-subscriptions' ),\r\n 'LY' => __( 'Libya', 'paid-member-subscriptions' ),\r\n 'LI' => __( 'Liechtenstein', 'paid-member-subscriptions' ),\r\n 'LT' => __( 'Lithuania', 'paid-member-subscriptions' ),\r\n 'LU' => __( 'Luxembourg', 'paid-member-subscriptions' ),\r\n 'MO' => __( 'Macao', 'paid-member-subscriptions' ),\r\n 'MK' => __( 'Macedonia', 'paid-member-subscriptions' ),\r\n 'MG' => __( 'Madagascar', 'paid-member-subscriptions' ),\r\n 'MW' => __( 'Malawi', 'paid-member-subscriptions' ),\r\n 'MY' => __( 'Malaysia', 'paid-member-subscriptions' ),\r\n 'MV' => __( 'Maldives', 'paid-member-subscriptions' ),\r\n 'ML' => __( 'Mali', 'paid-member-subscriptions' ),\r\n 'MT' => __( 'Malta', 'paid-member-subscriptions' ),\r\n 'MH' => __( 'Marshall Islands', 'paid-member-subscriptions' ),\r\n 'MQ' => __( 'Martinique', 'paid-member-subscriptions' ),\r\n 'MR' => __( 'Mauritania', 'paid-member-subscriptions' ),\r\n 'MU' => __( 'Mauritius', 'paid-member-subscriptions' ),\r\n 'YT' => __( 'Mayotte', 'paid-member-subscriptions' ),\r\n 'MX' => __( 'Mexico', 'paid-member-subscriptions' ),\r\n 'FM' => __( 'Micronesia', 'paid-member-subscriptions' ),\r\n 'MD' => __( 'Moldova', 'paid-member-subscriptions' ),\r\n 'MC' => __( 'Monaco', 'paid-member-subscriptions' ),\r\n 'MN' => __( 'Mongolia', 'paid-member-subscriptions' ),\r\n 'ME' => __( 'Montenegro', 'paid-member-subscriptions' ),\r\n 'MS' => __( 'Montserrat', 'paid-member-subscriptions' ),\r\n 'MA' => __( 'Morocco', 'paid-member-subscriptions' ),\r\n 'MZ' => __( 'Mozambique', 'paid-member-subscriptions' ),\r\n 'MM' => __( 'Myanmar', 'paid-member-subscriptions' ),\r\n 'NA' => __( 'Namibia', 'paid-member-subscriptions' ),\r\n 'NR' => __( 'Nauru', 'paid-member-subscriptions' ),\r\n 'NP' => __( 'Nepal', 'paid-member-subscriptions' ),\r\n 'NL' => __( 'Netherlands', 'paid-member-subscriptions' ),\r\n 'NC' => __( 'New Caledonia', 'paid-member-subscriptions' ),\r\n 'NZ' => __( 'New Zealand', 'paid-member-subscriptions' ),\r\n 'NI' => __( 'Nicaragua', 'paid-member-subscriptions' ),\r\n 'NE' => __( 'Niger', 'paid-member-subscriptions' ),\r\n 'NG' => __( 'Nigeria', 'paid-member-subscriptions' ),\r\n 'NU' => __( 'Niue', 'paid-member-subscriptions' ),\r\n 'NF' => __( 'Norfolk Island', 'paid-member-subscriptions' ),\r\n 'KP' => __( 'North Korea', 'paid-member-subscriptions' ),\r\n 'MP' => __( 'Northern Mariana Islands', 'paid-member-subscriptions' ),\r\n 'NO' => __( 'Norway', 'paid-member-subscriptions' ),\r\n 'OM' => __( 'Oman', 'paid-member-subscriptions' ),\r\n 'PK' => __( 'Pakistan', 'paid-member-subscriptions' ),\r\n 'PW' => __( 'Palau', 'paid-member-subscriptions' ),\r\n 'PS' => __( 'Palestinian Territory', 'paid-member-subscriptions' ),\r\n 'PA' => __( 'Panama', 'paid-member-subscriptions' ),\r\n 'PG' => __( 'Papua New Guinea', 'paid-member-subscriptions' ),\r\n 'PY' => __( 'Paraguay', 'paid-member-subscriptions' ),\r\n 'PE' => __( 'Peru', 'paid-member-subscriptions' ),\r\n 'PH' => __( 'Philippines', 'paid-member-subscriptions' ),\r\n 'PN' => __( 'Pitcairn', 'paid-member-subscriptions' ),\r\n 'PL' => __( 'Poland', 'paid-member-subscriptions' ),\r\n 'PT' => __( 'Portugal', 'paid-member-subscriptions' ),\r\n 'PR' => __( 'Puerto Rico', 'paid-member-subscriptions' ),\r\n 'QA' => __( 'Qatar', 'paid-member-subscriptions' ),\r\n 'CG' => __( 'Republic of the Congo', 'paid-member-subscriptions' ),\r\n 'RE' => __( 'Reunion', 'paid-member-subscriptions' ),\r\n 'RO' => __( 'Romania', 'paid-member-subscriptions' ),\r\n 'RU' => __( 'Russia', 'paid-member-subscriptions' ),\r\n 'RW' => __( 'Rwanda', 'paid-member-subscriptions' ),\r\n 'BL' => __( 'Saint Barthelemy', 'paid-member-subscriptions' ),\r\n 'SH' => __( 'Saint Helena', 'paid-member-subscriptions' ),\r\n 'KN' => __( 'Saint Kitts and Nevis', 'paid-member-subscriptions' ),\r\n 'LC' => __( 'Saint Lucia', 'paid-member-subscriptions' ),\r\n 'MF' => __( 'Saint Martin', 'paid-member-subscriptions' ),\r\n 'PM' => __( 'Saint Pierre and Miquelon', 'paid-member-subscriptions' ),\r\n 'VC' => __( 'Saint Vincent and the Grenadines', 'paid-member-subscriptions' ),\r\n 'WS' => __( 'Samoa', 'paid-member-subscriptions' ),\r\n 'SM' => __( 'San Marino', 'paid-member-subscriptions' ),\r\n 'ST' => __( 'Sao Tome and Principe', 'paid-member-subscriptions' ),\r\n 'SA' => __( 'Saudi Arabia', 'paid-member-subscriptions' ),\r\n 'SN' => __( 'Senegal', 'paid-member-subscriptions' ),\r\n 'RS' => __( 'Serbia', 'paid-member-subscriptions' ),\r\n 'SC' => __( 'Seychelles', 'paid-member-subscriptions' ),\r\n 'SL' => __( 'Sierra Leone', 'paid-member-subscriptions' ),\r\n 'SG' => __( 'Singapore', 'paid-member-subscriptions' ),\r\n 'SX' => __( 'Sint Maarten', 'paid-member-subscriptions' ),\r\n 'SK' => __( 'Slovakia', 'paid-member-subscriptions' ),\r\n 'SI' => __( 'Slovenia', 'paid-member-subscriptions' ),\r\n 'SB' => __( 'Solomon Islands', 'paid-member-subscriptions' ),\r\n 'SO' => __( 'Somalia', 'paid-member-subscriptions' ),\r\n 'ZA' => __( 'South Africa', 'paid-member-subscriptions' ),\r\n 'GS' => __( 'South Georgia and the South Sandwich Islands', 'paid-member-subscriptions' ),\r\n 'KR' => __( 'South Korea', 'paid-member-subscriptions' ),\r\n 'SS' => __( 'South Sudan', 'paid-member-subscriptions' ),\r\n 'ES' => __( 'Spain', 'paid-member-subscriptions' ),\r\n 'LK' => __( 'Sri Lanka', 'paid-member-subscriptions' ),\r\n 'SD' => __( 'Sudan', 'paid-member-subscriptions' ),\r\n 'SR' => __( 'Suriname', 'paid-member-subscriptions' ),\r\n 'SJ' => __( 'Svalbard and Jan Mayen', 'paid-member-subscriptions' ),\r\n 'SZ' => __( 'Swaziland', 'paid-member-subscriptions' ),\r\n 'SE' => __( 'Sweden', 'paid-member-subscriptions' ),\r\n 'CH' => __( 'Switzerland', 'paid-member-subscriptions' ),\r\n 'SY' => __( 'Syria', 'paid-member-subscriptions' ),\r\n 'TW' => __( 'Taiwan', 'paid-member-subscriptions' ),\r\n 'TJ' => __( 'Tajikistan', 'paid-member-subscriptions' ),\r\n 'TZ' => __( 'Tanzania', 'paid-member-subscriptions' ),\r\n 'TH' => __( 'Thailand', 'paid-member-subscriptions' ),\r\n 'TG' => __( 'Togo', 'paid-member-subscriptions' ),\r\n 'TK' => __( 'Tokelau', 'paid-member-subscriptions' ),\r\n 'TO' => __( 'Tonga', 'paid-member-subscriptions' ),\r\n 'TT' => __( 'Trinidad and Tobago', 'paid-member-subscriptions' ),\r\n 'TN' => __( 'Tunisia', 'paid-member-subscriptions' ),\r\n 'TR' => __( 'Turkey', 'paid-member-subscriptions' ),\r\n 'TM' => __( 'Turkmenistan', 'paid-member-subscriptions' ),\r\n 'TC' => __( 'Turks and Caicos Islands', 'paid-member-subscriptions' ),\r\n 'TV' => __( 'Tuvalu', 'paid-member-subscriptions' ),\r\n 'VI' => __( 'U.S. Virgin Islands', 'paid-member-subscriptions' ),\r\n 'UG' => __( 'Uganda', 'paid-member-subscriptions' ),\r\n 'UA' => __( 'Ukraine', 'paid-member-subscriptions' ),\r\n 'AE' => __( 'United Arab Emirates', 'paid-member-subscriptions' ),\r\n 'GB' => __( 'United Kingdom', 'paid-member-subscriptions' ),\r\n 'US' => __( 'United States', 'paid-member-subscriptions' ),\r\n 'UM' => __( 'United States Minor Outlying Islands', 'paid-member-subscriptions' ),\r\n 'UY' => __( 'Uruguay', 'paid-member-subscriptions' ),\r\n 'UZ' => __( 'Uzbekistan', 'paid-member-subscriptions' ),\r\n 'VU' => __( 'Vanuatu', 'paid-member-subscriptions' ),\r\n 'VA' => __( 'Vatican', 'paid-member-subscriptions' ),\r\n 'VE' => __( 'Venezuela', 'paid-member-subscriptions' ),\r\n 'VN' => __( 'Vietnam', 'paid-member-subscriptions' ),\r\n 'WF' => __( 'Wallis and Futuna', 'paid-member-subscriptions' ),\r\n 'EH' => __( 'Western Sahara', 'paid-member-subscriptions' ),\r\n 'YE' => __( 'Yemen', 'paid-member-subscriptions' ),\r\n 'ZM' => __( 'Zambia', 'paid-member-subscriptions' ),\r\n 'ZW' => __( 'Zimbabwe', 'paid-member-subscriptions' ),\r\n )\r\n );\r\n\r\n return $country_array;\r\n }", "public function country_options()\n\t{\n\t\t$countries = ee()->db\n\t\t\t\t->where('enabled', 1)\n\t\t\t\t->get('store_countries');\n\n\t\t$output = '<option value=\"\">--Select Country--</option>' . \"\\n\";\n\n\t\tforeach($countries->result() as $country)\n\t\t{\n\t\t\tif($country->code == ee()->TMPL->fetch_param('country_code'))\n\t\t\t{\n\t\t\t\t$selected = ' selected=\"selected\"';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$selected = '';\n\t\t\t}\n\n\t\t\t$output .= '<option value=\"' . $country->code . '\"' . $selected . ' >' . $country->name . '</option>' . \"\\n\";\n\n\t\t}\t\t\n\n\t\treturn $output;\n\t}", "public function getCountries() {\n $dql = \"SELECT c from Country c\n ORDER BY c.name\";\n $countries = $this->em\n ->createQuery($dql)\n ->getResult();\n return $countries;\n }", "public static function get_eu_countries() {\n\t\tif ( empty( self::$eu_countries ) ) {\n\t\t\tself::$eu_countries = include( 'data/eu-country-codes.php' );\n\t\t}\n\t\treturn self::$eu_countries;\n\t}", "public function getCountries($locale)\n {\n if (!empty($this->countries)) {\n return $this->countries;\n }\n\n $country_list_path = __DIR__.'/../../../umpirsky/country-list/country/icu/';\n $path = $country_list_path.$locale.'/country.php';\n\n // Does that locale exist\n if (file_exists($path)) {\n $countries = include $path;\n } else {\n // Fallback to English\n $countries = include $country_list_path.'en/country.php';\n }\n\n return $countries;\n }", "public function countriesCache()\n {\n if (!config('priongeography.use_cache')) {\n return $this->allCountries();\n }\n\n $ttl = config('priongeography.cache_ttl', 60*24);\n $cacheKey = 'country_all';\n\n $this->cache->remember($cacheKey, $ttl, function () {\n return $this->allCountries();\n });\n }", "function _get_countries($iso=false, $code=null, $limit=null) \n {\n\n $cc = array(\n 'US' => \t'United States',\n 'CA' => \t'Canada',\n 'AF' => \t'Afghanistan',\n 'AX' => \t'Åland Islands',\n 'AL' => \t'Albania',\n 'DZ' => \t'Algeria',\n 'AS' => \t'American Samoa',\n 'AD' => \t'Andorra',\n 'AO' => \t'Angola',\n 'AI' => \t'Anguilla',\n 'AG' => \t'Antigua and Barbuda',\n 'AR' => \t'Argentina',\n 'AM' => \t'Armenia',\n 'AW' => \t'Aruba',\n 'AU' => \t'Australia',\n 'AT' => \t'Austria',\n 'AZ' => \t'Azerbaijan',\n 'BS' => \t'Bahamas',\n 'BH' => \t'Bahrain',\n 'BD' => \t'Bangladesh',\n 'BB' => \t'Barbados',\n 'BY' => \t'Belarus',\n 'BE' => \t'Belgium',\n 'BZ' => \t'Belize',\n 'BJ' => \t'Benin',\n 'BM' => \t'Bermuda',\n 'BT' => \t'Bhutan',\n 'BO' => \t'Bolivia',\n 'BA' => \t'Bosnia and Herzegovina',\n 'BW' => \t'Botswana',\n 'BR' => \t'Brazil',\n 'IO' => \t'British Indian Ocean Territory',\n 'BN' => \t'Brunei Darussalam',\n 'BG' => \t'Bulgaria',\n 'BF' => \t'Burkina Faso',\n 'BI' => \t'Burundi',\n 'KH' => \t'Cambodia',\n 'CM' => \t'Cameroon',\n 'CA' => \t'Canada',\n 'CV' => \t'Cape Verde',\n 'KY' => \t'Cayman Islands',\n 'CF' => \t'Central African Republic',\n 'TD' => \t'Chad',\n 'CL' => \t'Chile',\n 'CN' => \t'China, People\\'s Republic of',\n 'CX' => \t'Christmas Island',\n 'CC' => \t'Cocos (Keeling) Islands',\n 'CO' => \t'Colombia',\n 'KM' => \t'Comoros',\n 'CD' => \t'Congo',\n 'CK' => \t'Cook Islands',\n 'CR' => \t'Costa Rica',\n 'CI' => \t'Côte d\\'Ivoire',\n 'HR' => \t'Croatia',\n 'CU' => \t'Cuba',\n 'CY' => \t'Cyprus',\n 'CZ' => \t'Czech Republic',\n 'DK' => \t'Denmark',\n 'DJ' => \t'Djibouti',\n 'DM' => \t'Dominica',\n 'DO' => \t'Dominican Republic',\n 'EC' => \t'Ecuador',\n 'EG' => \t'Egypt',\n 'SV' => \t'El Salvador',\n 'GQ' => \t'Equatorial Guinea',\n 'ER' => \t'Eritrea',\n 'EE' => \t'Estonia',\n 'ET' => \t'Ethiopia',\n 'FK' => \t'Falkland Islands',\n 'FO' => \t'Faroe Islands',\n 'FJ' => \t'Fiji',\n 'FI' => \t'Finland',\n 'FR' => \t'France',\n 'GF' => \t'French Guiana',\n 'PF' => \t'French Polynesia',\n 'TF' => \t'French Southern Territories',\n 'GA' => \t'Gabon',\n 'GM' => \t'Gambia',\n 'GE' => \t'Georgia',\n 'DE' => \t'Germany',\n 'GH' => \t'Ghana',\n 'GI' => \t'Gibraltar',\n 'GR' => \t'Greece',\n 'GL' => \t'Greenland',\n 'GD' => \t'Grenada',\n 'GP' => \t'Guadeloupe',\n 'GU' => \t'Guam',\n 'GT' => \t'Guatemala',\n 'GN' => \t'Guinea',\n 'GW' => \t'Guinea-Bissau',\n 'GY' => \t'Guyana',\n 'HT' => \t'Haiti',\n 'HN' => \t'Honduras',\n 'HK' => \t'Hong Kong',\n 'HU' => \t'Hungary',\n 'IS' => \t'Iceland',\n 'IN' => \t'India',\n 'ID' => \t'Indonesia',\n 'IR' => \t'Iran',\n 'IQ' => \t'Iraq',\n 'IE' => \t'Ireland',\n 'IL' => \t'Israel',\n 'IT' => \t'Italy',\n 'JM' => \t'Jamaica',\n 'JP' => \t'Japan',\n 'JO' => \t'Jordan',\n 'KZ' => \t'Kazakhstan',\n 'KE' => \t'Kenya',\n 'KI' => \t'Kiribati',\n 'KP' => \t'Korea, DPR',\n 'KR' => \t'Korea, Republic of',\n 'KW' => \t'Kuwait',\n 'KG' => \t'Kyrgyzstan',\n 'LA' => \t'Lao People\\'s Democratic Republic',\n 'LV' => \t'Latvia',\n 'LB' => \t'Lebanon',\n 'LS' => \t'Lesotho',\n 'LR' => \t'Liberia',\n 'LY' => \t'Libyan Arab Jamahiriya',\n 'LI' => \t'Liechtenstein',\n 'LT' => \t'Lithuania',\n 'LU' => \t'Luxembourg',\n 'MO' => \t'Macao',\n 'MK' => \t'Macedonia',\n 'MG' => \t'Madagascar',\n 'MW' => \t'Malawi',\n 'MY' => \t'Malaysia',\n 'MV' => \t'Maldives',\n 'ML' => \t'Mali',\n 'MT' => \t'Malta',\n 'MH' => \t'Marshall Islands',\n 'MQ' => \t'Martinique',\n 'MR' => \t'Mauritania',\n 'MU' => \t'Mauritius',\n 'YT' => \t'Mayotte',\n 'MX' => \t'Mexico',\n 'FM' => \t'Micronesia',\n 'MD' => \t'Moldova',\n 'MC' => \t'Monaco',\n 'MN' => \t'Mongolia',\n 'MS' => \t'Montserrat',\n 'MA' => \t'Morocco',\n 'MZ' => \t'Mozambique',\n 'MM' => \t'Myanmar',\n 'NA' => \t'Namibia',\n 'NR' => \t'Nauru',\n 'NP' => \t'Nepal',\n 'NL' => \t'Netherlands',\n 'AN' => \t'Netherlands Antilles',\n 'NC' => \t'New Caledonia',\n 'NZ' => \t'New Zealand',\n 'NI' => \t'Nicaragua',\n 'NE' => \t'Niger',\n 'NG' => \t'Nigeria',\n 'NU' => \t'Niue',\n 'NF' => \t'Norfolk Island',\n 'MP' => \t'Northern Mariana Islands',\n 'NO' => \t'Norway',\n 'OM' => \t'Oman',\n 'PK' => \t'Pakistan',\n 'PW' => \t'Palau',\n 'PS' => \t'Palestinian Territory, Occupied',\n 'PA' => \t'Panama',\n 'PG' => \t'Papua New Guinea',\n 'PY' => \t'Paraguay',\n 'PE' => \t'Peru',\n 'PH' => \t'Philippines',\n 'PN' => \t'Pitcairn',\n 'PL' => \t'Poland',\n 'PT' => \t'Portugal',\n 'PR' => \t'Puerto Rico',\n 'QA' => \t'Qatar',\n 'RE' => \t'Réunion',\n 'RO' => \t'Romania',\n 'RU' => \t'Russian Federation',\n 'RW' => \t'Rwanda',\n 'SH' => \t'Saint Helena',\n 'KN' => \t'Saint Kitts and Nevis',\n 'LC' => \t'Saint Lucia',\n 'PM' => \t'Saint-Pierre and Miquelon',\n 'VC' => \t'Saint Vincent and the Grenadines',\n 'WS' => \t'Samoa',\n 'SM' => \t'San Marino',\n 'ST' => \t'São Tomé and Príncipe',\n 'SA' => \t'Saudi Arabia',\n 'SN' => \t'Senegal',\n 'CS' => \t'Serbia and Montenegro',\n 'SC' => \t'Seychelles',\n 'SL' => \t'Sierra Leone',\n 'SG' => \t'Singapore',\n 'SK' => \t'Slovakia',\n 'SI' => \t'Slovenia',\n 'SB' => \t'Solomon Islands',\n 'SO' => \t'Somalia',\n 'ZA' => \t'South Africa',\n 'ES' => \t'Spain',\n 'LK' => \t'Sri Lanka',\n 'SD' => \t'Sudan',\n 'SR' => \t'Suriname',\n 'SJ' => \t'Svalbard and Jan Mayen',\n 'SZ' => \t'Swaziland',\n 'SE' => \t'Sweden',\n 'CH' => \t'Switzerland',\n 'SY' => \t'Syrian Arab Republic',\n 'TW' => \t'Taiwan',\n 'TJ' => \t'Tajikistan',\n 'TZ' => \t'Tanzania',\n 'TH' => \t'Thailand',\n 'TL' => \t'Timor-Leste',\n 'TG' => \t'Togo',\n 'TK' => \t'Tokelau',\n 'TO' => \t'Tonga',\n 'TT' => \t'Trinidad and Tobago',\n 'TN' => \t'Tunisia',\n 'TR' => \t'Turkey',\n 'TM' => \t'Turkmenistan',\n 'TC' => \t'Turks and Caicos Islands',\n 'TV' => \t'Tuvalu',\n 'UG' => \t'Uganda',\n 'UA' => \t'Ukraine',\n 'AE' => \t'United Arab Emirates',\n 'GB' => \t'United Kingdom',\n 'US' => \t'United States',\n 'UY' => \t'Uruguay',\n 'UZ' => \t'Uzbekistan',\n 'VU' => \t'Vanuatu',\n 'VA' => \t'Vatican City State',\n 'VE' => \t'Venezuela',\n 'VN' => \t'Viet Nam',\n 'VG' => \t'Virgin Islands, British',\n 'VI' => \t'Virgin Islands, U.S.',\n 'WF' => \t'Wallis and Futuna',\n 'EH' => \t'Western Sahara',\n 'YE' => \t'Yemen',\n 'ZM' => \t'Zambia',\n 'ZW' => \t'Zimbabwe',);\n\n if ($limit && is_array($limit)) {\n foreach (array_keys($cc) as $iso) {\n if (!in_array($iso, $limit)) {\n unset($cc[$iso]);\n }\n }\n }\n\n if (!$iso) {\n return array_values($cc);\n }\n elseif ($code) {\n return (isset($cc[$code]))? $cc[$code] : null;\n }\n else {\n return $cc;\n }\n }", "public function getMemberCountryCodes() : array\n {\n return $this->memberCountryCodes;\n }", "public function actionCountries()\n {\n $continentId = Yii::$app->request->get(\"continentId\");\n $countries = Country::getAvailable( $continentId );\n echo json_encode( $countries );\n Yii::$app->end(200);\n }", "function get_country() {\n $sql = \"Select * FROM country\";\n $res = $this->mysqli->query($sql);\n $data = array();\n while ($row = $res->fetch_array(MYSQLI_ASSOC)) {\n $data[] = $row;\n }\n return $data;\n }", "public function getNorthAmericaCountries()\n {\n $result = array();\n $countryCodes = array('US','CA','AI', 'AG', 'AW', 'BS', 'BB', 'BZ', 'BM', 'VG', 'KY', 'CR', 'CU', 'DM', 'DO', 'SV', 'GL', 'GD', 'GP', 'GT', 'HT', 'HN', 'JM', 'MQ', 'MX', 'MS', 'AN', 'NI', 'PA', 'PR', 'BL', 'KN', 'LC', 'MF', 'PM', 'VC', 'TT', 'TC', 'VI');\n $allCountries = $this->getSwitchableCountries();\n\n foreach ($allCountries as $country) {\n if (in_array($country['value'], $countryCodes)) {\n $result[] = $country;\n }\n\n }\n\n return $result;\n }", "public function get_countries( $key='country' ) {\n\t\t\tif ( 'country' == $key ) {\n\t\t\t\treturn array(\n\t\t\t\t\t'com' => 'Worldwide',\n 'de' => 'Germany',\n 'co.uk' => 'United Kingdom',\n 'ca' => 'Canada',\n 'fr' => 'France',\n 'co.jp' => 'Japan',\n 'in' => 'India',\n 'it' => 'Italy',\n 'cn' => 'China',\n 'es' => 'Spain',\n 'com.mx' => 'Mexico',\n 'com.br' => 'Brazil',\n\t\t\t\t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn array(\n\t\t\t\t\t'com' => 'United States',\n\t\t\t\t\t'uk' => 'United Kingdom',\n\t\t\t\t\t'de' => 'Deutschland',\n\t\t\t\t\t'fr' => 'France',\n\t\t\t\t\t'jp' => 'Japan',\n\t\t\t\t\t'ca' => 'Canada',\n\t\t\t\t\t'cn' => 'China',\n\t\t\t\t\t'in' => 'India',\n\t\t\t\t\t'it' => 'Italia',\n\t\t\t\t\t'es' => 'España',\n\t\t\t\t\t'mx' => 'Mexico',\n\t\t\t\t\t'br' => 'Brazil',\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn array();\n\t\t}", "function GetCountries () {\n\t\t$this->db->order_by('name','ASC');\n\t\t$result = $this->db->get('countries');\n\n\t\t$countries = array();\n\t\tforeach ($result->result_array() as $country) {\n\t\t\t$countries[] = array(\n\t\t\t\t\t\t\t'iso2' => $country['iso2'],\n\t\t\t\t\t\t\t'name' => $country['name']\n\t\t\t\t\t\t);\n\t\t}\n\n\t\treturn $countries;\n\t}", "public function getZoneCountriesProperty()\n {\n return Country::whereIn('id', $this->selectedCountries)->get();\n }", "function olc_get_countries($default = '')\n{\n\t$countries_array = array();\n\tif ($default)\n\t{\n\t\t$countries_array[] = array(\n\t\t'id' => STORE_COUNTRY,\n\t\t'text' => $default);\n\t}\n\t$countries_query = olc_db_query(SELECT.\"countries_id, countries_name, countries_iso_code_2\".SQL_FROM . TABLE_COUNTRIES .\n\t\" order by countries_name\");\n\twhile ($countries = olc_db_fetch_array($countries_query))\n\t{\n\t\t$countries_array[] = array(\n\t\t'id' => $countries['countries_id'],\n\t\t'text' => $countries['countries_name'],\n\t\t'countries_iso_code_2'=>$countries['countries_iso_code_2']);\n\t}\n\n\treturn $countries_array;\n}", "public function getCountryList(ParameterBagInterface $bag)\n {\n return array_flip(array_intersect_key(Countries::getNames(), array_flip($bag->get('active_language'))));\n }", "public function countries()\n {\n $countries = Countries::where('status', 'active')->orderBy('idx')->get();\n return view('setup.countries.index', compact('countries'));\n }", "function get_cert_country_codes() {\n\t$countries = get_country_name();\n\n\t$country_codes = array();\n\tforeach ($countries as $country) {\n\t\t$country_codes[$country['code']] = $country['code'];\n\t}\n\tksort($country_codes);\n\n\t/* Preserve historical order: None, US, CA, other countries */\n\t$first_items[''] = gettext(\"None\");\n\t$first_items['US'] = $country_codes['US'];\n\t$first_items['CA'] = $country_codes['CA'];\n\tunset($country_codes['US']);\n\tunset($country_codes['CA']);\n\n\treturn array_merge($first_items, $country_codes);\n}", "function tep_get_countries($countries_id = '', $with_iso_codes = false) {\n\t$countries_array = array();\n\tif (tep_not_null($countries_id)) {\n\t\tif ($with_iso_codes == true) {\n\t\t\t$countries = tep_db_query(\"select countries_name, countries_iso_code_2, countries_iso_code_3 from \" . TABLE_COUNTRIES . \" where countries_id = '\" . (int)$countries_id . \"' order by countries_name\");\n\t\t\t$countries_values = tep_db_fetch_array($countries);\n\t\t\t$countries_array = array('countries_name' => $countries_values['countries_name'],\n\t\t\t\t\t\t\t\t\t 'countries_iso_code_2' => $countries_values['countries_iso_code_2'],\n\t\t\t\t\t\t\t\t\t 'countries_iso_code_3' => $countries_values['countries_iso_code_3']);\n\t\t} else {\n\t\t\t$countries = tep_db_query(\"select countries_name from \" . TABLE_COUNTRIES . \" where countries_id = '\" . (int)$countries_id . \"'\");\n\t\t\t$countries_values = tep_db_fetch_array($countries);\n\t\t\t$countries_array = array('countries_name' => $countries_values['countries_name']);\n\t\t}\n\t} else {\n\t\t$countries = tep_db_query(\"select countries_id, countries_name from \" . TABLE_COUNTRIES . \" order by countries_name\");\n\t\twhile ($countries_values = tep_db_fetch_array($countries)) {\n\t\t\t$countries_array[] = array('countries_id' => $countries_values['countries_id'],\n\t\t\t\t\t\t\t\t\t 'countries_name' => $countries_values['countries_name']);\n\t\t}\n\t}\n\treturn $countries_array;\n}", "public function getBillingCountries()\n {\n if (!isset($this->arrCache['billingCountries'])) {\n\n $arrCountries = deserialize($this->billing_countries);\n\n if (empty($arrCountries) || !is_array($arrCountries)) {\n $arrCountries = array_keys(\\System::getCountries());\n }\n\n $this->arrCache['billingCountries'] = $arrCountries;\n }\n\n return $this->arrCache['billingCountries'];\n }", "private function returnCountriesForUser()\n {\n\n $tableCountryExt = CountryExt::tablename();\n $tableCountry = Country::tablename();\n\n /* $role=Yii::$app->user->getIdentity()->role;\n //If I'm admin just get all countries\n if($role==User::ROLE_ADMIN || $role==User::ROLE_SUPERADMIN || $role==User::ROLE_MARKETER)\n {\n $countries = Country::listAllCountries();\n }\n //otherwise find all countries where specific lanuage(language of current user is) is spoken\n else\n {\n $languageId = Language::getCurrentId(); //for example: 7\n $countries = Country::listCountries($languageId);\n\n } */\n\n //return countries per language\n $languageId = Language::getCurrentId(); //for example: 7\n $countries = Country::listCountries($languageId);\n\n return $countries;\n }", "function getCountrySelectList($db){\n\t\t$query = \"SELECT CT_CODE,CT_NAME_KR FROM \".TBL_COUNTRY.\" WHERE CT_CODE IS NOT NULL ORDER BY CT_NAME_KR\";\n\t\treturn $db->getArray($query);\n\t}", "function listCountryOptions()\n{\n $countries = array(\"Afghanistan\", \"Albania\", \"Algeria\", \"American Samoa\", \"Andorra\", \"Angola\", \"Anguilla\", \"Antarctica\", \"Antigua and Barbuda\", \"Argentina\", \"Armenia\", \"Aruba\", \"Australia\", \"Austria\", \"Azerbaijan\", \"Bahamas\", \"Bahrain\", \"Bangladesh\", \"Barbados\", \"Belarus\", \"Belgium\", \"Belize\", \"Benin\", \"Bermuda\", \"Bhutan\", \"Bolivia\", \"Bosnia and Herzegowina\", \"Botswana\", \"Bouvet Island\", \"Brazil\", \"British Indian Ocean Territory\", \"Brunei Darussalam\", \"Bulgaria\", \"Burkina Faso\", \"Burundi\", \"Cambodia\", \"Cameroon\", \"Canada\", \"Cape Verde\", \"Cayman Islands\", \"Central African Republic\", \"Chad\", \"Chile\", \"China\", \"Christmas Island\", \"Cocos (Keeling) Islands\", \"Colombia\", \"Comoros\", \"Congo\", \"Congo, the Democratic Republic of the\", \"Cook Islands\", \"Costa Rica\", \"Cote d'Ivoire\", \"Croatia (Hrvatska)\", \"Cuba\", \"Cyprus\", \"Czech Republic\", \"Denmark\", \"Djibouti\", \"Dominica\", \"Dominican Republic\", \"East Timor\", \"Ecuador\", \"Egypt\", \"El Salvador\", \"Equatorial Guinea\", \"Eritrea\", \"Estonia\", \"Ethiopia\", \"Falkland Islands (Malvinas)\", \"Faroe Islands\", \"Fiji\", \"Finland\", \"France\", \"France Metropolitan\", \"French Guiana\", \"French Polynesia\", \"French Southern Territories\", \"Gabon\", \"Gambia\", \"Georgia\", \"Germany\", \"Ghana\", \"Gibraltar\", \"Greece\", \"Greenland\", \"Grenada\", \"Guadeloupe\", \"Guam\", \"Guatemala\", \"Guinea\", \"Guinea-Bissau\", \"Guyana\", \"Haiti\", \"Heard and Mc Donald Islands\", \"Holy See (Vatican City State)\", \"Honduras\", \"Hong Kong\", \"Hungary\", \"Iceland\", \"India\", \"Indonesia\", \"Iran (Islamic Republic of)\", \"Iraq\", \"Ireland\", \"Israel\", \"Italy\", \"Jamaica\", \"Japan\", \"Jordan\", \"Kazakhstan\", \"Kenya\", \"Kiribati\", \"Korea, Democratic People's Republic of\", \"Korea, Republic of\", \"Kuwait\", \"Kyrgyzstan\", \"Lao, People's Democratic Republic\", \"Latvia\", \"Lebanon\", \"Lesotho\", \"Liberia\", \"Libyan Arab Jamahiriya\", \"Liechtenstein\", \"Lithuania\", \"Luxembourg\", \"Macau\", \"Macedonia, The Former Yugoslav Republic of\", \"Madagascar\", \"Malawi\", \"Malaysia\", \"Maldives\", \"Mali\", \"Malta\", \"Marshall Islands\", \"Martinique\", \"Mauritania\", \"Mauritius\", \"Mayotte\", \"Mexico\", \"Micronesia, Federated States of\", \"Moldova, Republic of\", \"Monaco\", \"Mongolia\", \"Montserrat\", \"Morocco\", \"Mozambique\", \"Myanmar\", \"Namibia\", \"Nauru\", \"Nepal\", \"Netherlands\", \"Netherlands Antilles\", \"New Caledonia\", \"New Zealand\", \"Nicaragua\", \"Niger\", \"Nigeria\", \"Niue\", \"Norfolk Island\", \"Northern Mariana Islands\", \"Norway\", \"Oman\", \"Pakistan\", \"Palau\", \"Panama\", \"Papua New Guinea\", \"Paraguay\", \"Peru\", \"Philippines\", \"Pitcairn\", \"Poland\", \"Portugal\", \"Puerto Rico\", \"Qatar\", \"Reunion\", \"Romania\", \"Russian Federation\", \"Rwanda\", \"Saint Kitts and Nevis\", \"Saint Lucia\", \"Saint Vincent and the Grenadines\", \"Samoa\", \"San Marino\", \"Sao Tome and Principe\", \"Saudi Arabia\", \"Senegal\", \"Seychelles\", \"Sierra Leone\", \"Singapore\", \"Slovakia (Slovak Republic)\", \"Slovenia\", \"Solomon Islands\", \"Somalia\", \"South Africa\", \"South Georgia and the South Sandwich Islands\", \"Spain\", \"Sri Lanka\", \"St. Helena\", \"St. Pierre and Miquelon\", \"Sudan\", \"Suriname\", \"Svalbard and Jan Mayen Islands\", \"Swaziland\", \"Sweden\", \"Switzerland\", \"Syrian Arab Republic\", \"Taiwan, Province of China\", \"Tajikistan\", \"Tanzania, United Republic of\", \"Thailand\", \"Togo\", \"Tokelau\", \"Tonga\", \"Trinidad and Tobago\", \"Tunisia\", \"Turkey\", \"Turkmenistan\", \"Turks and Caicos Islands\", \"Tuvalu\", \"Uganda\", \"Ukraine\", \"United Arab Emirates\", \"United Kingdom\", \"United States\", \"United States Minor Outlying Islands\", \"Uruguay\", \"Uzbekistan\", \"Vanuatu\", \"Venezuela\", \"Vietnam\", \"Virgin Islands (British)\", \"Virgin Islands (U.S.)\", \"Wallis and Futuna Islands\", \"Western Sahara\", \"Yemen\", \"Yugoslavia\", \"Zambia\", \"Zimbabwe\");\n foreach($countries as $country)\n {\n echo \"<option class='option' value='$country'>$country</option>\";\n }\n}", "public function getLimitCountries()\n {\n return $this->_limitCountries;\n }" ]
[ "0.82328606", "0.79425204", "0.7853372", "0.7819766", "0.7788552", "0.7752574", "0.7745809", "0.77285737", "0.7712425", "0.76149666", "0.75923795", "0.755674", "0.7508336", "0.7477317", "0.74669105", "0.742322", "0.7414343", "0.7392078", "0.73531646", "0.7339168", "0.73372555", "0.73251635", "0.7320133", "0.7320133", "0.7320133", "0.7311419", "0.73029333", "0.72932476", "0.7287472", "0.7280018", "0.72564584", "0.72373897", "0.7225872", "0.72126603", "0.72063595", "0.72032887", "0.7195879", "0.7190211", "0.7173059", "0.71637905", "0.714512", "0.7121544", "0.7119537", "0.71026343", "0.70959026", "0.70947367", "0.7071615", "0.7050387", "0.6983566", "0.694823", "0.69400495", "0.6932474", "0.69308114", "0.6924182", "0.69053656", "0.68875253", "0.6867652", "0.68650264", "0.68650264", "0.6859448", "0.68571615", "0.6850275", "0.6832094", "0.6805854", "0.6804394", "0.6785917", "0.6783489", "0.67530316", "0.67459685", "0.67328715", "0.6724446", "0.67190945", "0.67190945", "0.67134345", "0.6712258", "0.67033726", "0.6702359", "0.6689511", "0.6678907", "0.6650317", "0.6640677", "0.66372925", "0.6608587", "0.65705204", "0.6568796", "0.656488", "0.65627337", "0.6561943", "0.6556862", "0.6543905", "0.6539577", "0.6536672", "0.65254015", "0.6514198", "0.65009046", "0.65004134", "0.64983696", "0.6490978", "0.6483581", "0.6479292" ]
0.8069366
1
Get a list of states for a country for address verification.
public function states(string $country): array { $params['country'] = $country; return $this->client->get("address_verification/states", $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllStates(Country $country) {\n $out = [];\n $r = $this->db->query(\"SELECT divcode, divname FROM country_state WHERE country = '{$country->code}'\");\n while($row = $r->fetchArray(SQLITE3_ASSOC)) {\n $out[$row['divcode']] = $row['divname'];\n }\n return $out;\n }", "public function getStates() {\n $stateList = array();\n \n if (!empty($this->billing_country)) {\n /*\n * PCM\n */\n $stateList = Subregion::model()->findAll('region_id=\"' . $this->billing_country . '\"');\n\n $stateList = CHtml::listData($stateList, 'name', 'name');\n \n }\n return $stateList;\n }", "public function getStates() {\n $stateList = array();\n if (!empty($this->shipping_country)) {\n /*\n * PCM\n */\n $stateList = Subregion::model()->findAll('region_id=\"' . $this->shipping_country . '\"');\n\n $stateList = CHtml::listData($stateList, 'name', 'name');\n }\n return $stateList;\n }", "static function get_states() {\r\n // https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations\r\n $states = [];\r\n $states['AL'] = 'Alabama';\r\n $states['AK'] = 'Alaska';\r\n $states['AZ'] = 'Arizona';\r\n $states['AR'] = 'Arkansas';\r\n $states['CA'] = 'California';\r\n $states['CO'] = 'Colorado';\r\n $states['CT'] = 'Connecticut';\r\n $states['DE'] = 'Delaware';\r\n $states['DC'] = 'District of Columbia';\r\n $states['FL'] = 'Florida';\r\n $states['GA'] = 'Georgia';\r\n $states['HI'] = 'Hawaii';\r\n $states['ID'] = 'Idaho';\r\n $states['IL'] = 'Illinois';\r\n $states['IN'] = 'Indiana';\r\n $states['IA'] = 'Iowa';\r\n $states['KS'] = 'Kansas';\r\n $states['KY'] = 'Kentucky';\r\n $states['LA'] = 'Louisiana';\r\n $states['ME'] = 'Maine';\r\n $states['MD'] = 'Maryland';\r\n $states['MA'] = 'Massachusetts';\r\n $states['MI'] = 'Michigan';\r\n $states['MN'] = 'Minnesota';\r\n $states['MS'] = 'Mississippi';\r\n $states['MO'] = 'Missouri';\r\n $states['MT'] = 'Montana';\r\n $states['NE'] = 'Nebraska';\r\n $states['NV'] = 'Nevada';\r\n $states['NH'] = 'New Hampshire';\r\n $states['NJ'] = 'New Jersey';\r\n $states['NM'] = 'New Mexico';\r\n $states['NY'] = 'New York';\r\n $states['NC'] = 'North Carolina';\r\n $states['ND'] = 'North Dakota';\r\n $states['OH'] = 'Ohio';\r\n $states['OK'] = 'Oklahoma';\r\n $states['OR'] = 'Oregon';\r\n $states['PA'] = 'Pennsylvania';\r\n $states['RI'] = 'Rhode Island';\r\n $states['SC'] = 'South Carolina';\r\n $states['SD'] = 'South Dakota';\r\n $states['TN'] = 'Tennessee';\r\n $states['TX'] = 'Texas';\r\n $states['UT'] = 'Utah';\r\n $states['VT'] = 'Vermont';\r\n $states['VA'] = 'Virginia';\r\n $states['WA'] = 'Washington';\r\n $states['WV'] = 'West Virginia';\r\n $states['WI'] = 'Wisconsin';\r\n $states['WY'] = 'Wyoming';\r\n $states['AS'] = 'American Samoa';\r\n $states['GU'] = 'Guam';\r\n $states['MP'] = 'Northern Mariana Islands';\r\n $states['PR'] = 'Puerto Rico';\r\n $states['VI'] = 'U.S. Virgin Islands';\r\n $states['UM'] = 'U.S. Minor Outlying Islands';\r\n $states['FM'] = 'Micronesia';\r\n $states['MH'] = 'Marshall Islands';\r\n $states['PW'] = 'Palau';\r\n natsort($states);\r\n return $states;\r\n }", "public function test_list_country_states()\n {\n $data = factory(State::class)->create();\n $response = $this->get($this->url.$data->country_id.'/states', $this->headers());\n $response->assertStatus(200);\n $response->assertJsonStructure(array_keys($data->toarray()), $data->toarray());\n $this->assertDatabaseHas($this->table, $data->toarray());\n }", "public static function getStates()\n {\n return self::$statesUSA;\n }", "public function getAllStatesByCountryId($country) {\n $countryName = '';\n $countryId = '';\n $countries = explode(\"/\", $country);\n $countryName = $countries[0]; // piece1\n $countryId = $countries[1]; // piece2\n\n $sql = \"SELECT * FROM states WHERE country_id = '$countryId'\";\n $result = $this->db->query($sql);\n if ($result->num_rows() <= 0) {\n return false;\n } else {\n return $result->result_array();\n }\n }", "public function get_states_by_country($country_id)\n {\n\t\t$this->db2->select('s.id as state_id,s.name as state_name');\n\t\t$this->db2->from('state s');\n\t\t$this->db2->where('country_id',$country_id);\n\t\t$this->db2->order_by('state_name', 'Asc');\n\t\t$query = $this->db2->get();\n\t\t$results = $query->result_array(); \n\t\treturn $results;\n }", "function get_state_options_by_country($country) {\r\n\r\n /* $states = [\"India\" =>[ \"Tamil Nadu\",\"Kerala\", \"Andra Pradesh\" , \"Telungana\", \"Karnataka\"]];\r\n $options = $states[$country]; \r\n\treturn $options; */\r\n}", "function get_all_states()\n{\n\t\t$states = array(\n\t\t\t\"Alabama\" => \"Alabama\",\n\t\t\t\"Alaska\" => \"Alaska\",\n\t\t\t\"Arizona\" => \"Arizona\",\n\t\t\t\"Arkansas\" => \"Arkansas\",\n\t\t\t\"California\" => \"California\",\n\t\t\t\"Colorado\" => \"Colorado\",\n\t\t\t\"Connecticut\" => \"Connecticut\",\n\t\t\t\"Delaware\" => \"Delaware\",\n\t\t\t\"District of Columbia\" => \"District of Columbia\",\n\t\t\t\"Florida\" => \"Florida\",\n\t\t\t\"Georgia\" => \"Georgia\",\n\t\t\t\"Hawaii\" => \"Hawaii\",\n\t\t\t\"Idaho\" => \"Idaho\",\n\t\t\t\"Illinois\" => \"Illinois\",\n\t\t\t\"Indiana\" => \"Indiana\",\n\t\t\t\"Iowa\" => \"Iowa\",\n\t\t\t\"Kansas\" => \"Kansas\",\n\t\t\t\"Kentucky\" => \"Kentucky\",\n\t\t\t\"Louisiana\" => \"Louisiana\",\n\t\t\t\"Maine\" => \"Maine\",\n\t\t\t\"Maryland\" => \"Maryland\",\n\t\t\t\"Massachusetts\" => \"Massachusetts\",\n\t\t\t\"Michigan\" => \"Michigan\",\n\t\t\t\"Minnesota\" => \"Minnesota\",\n\t\t\t\"Mississippi\" => \"Mississippi\",\n\t\t\t\"Missouri\" => \"Missouri\",\n\t\t\t\"Montana\" => \"Montana\",\n\t\t\t\"Nebraska\" => \"Nebraska\",\n\t\t\t\"Nevada\" => \"Nevada\",\n\t\t\t\"New Hampshire\" => \"New Hampshire\",\n\t\t\t\"New Jersey\" => \"New Jersey\",\n\t\t\t\"New Mexico\" => \"New Mexico\",\n\t\t\t\"New York\" => \"New York\",\n\t\t\t\"North Carolina\" => \"North Carolina\",\n\t\t\t\"North Dakota\" => \"North Dakota\",\n\t\t\t\"Ohio\" => \"Ohio\",\n\t\t\t\"Oklahoma\" => \"Oklahoma\",\n\t\t\t\"Oregon\" => \"Oregon\",\n\t\t\t\"Pennsylvania\" => \"Pennsylvania\",\n\t\t\t\"Rhode island\" => \"Rhode island\",\n\t\t\t\"South Carolina\" => \"South Carolina\",\n\t\t\t\"South Dakota\" => \"South Dakota\",\n\t\t\t\"Tennessee\" => \"Tennessee\",\n\t\t\t\"Texas\" => \"Texas\",\n\t\t\t\"Utah\" => \"Utah\",\n\t\t\t\"Vermont\" => \"Vermont\",\n\t\t\t\"Virgin Islands\" => \"Virgin Islands\",\n\t\t\t\"Virginia\" => \"Virginia\",\n\t\t\t\"Washington\" => \"Washington\",\n\t\t\t\"West Virginia\" => \"West Virginia\",\n\t\t\t\"Wisconsin\" => \"Wisconsin\",\n\t\t\t\"Wyoming\" => \"Wyoming\",\n\t\t\t\"Alberta\" => \"Alberta\",\n\t\t\t\"Nova Scotia\" => \"Nova Scotia\",\n\t\t\t\"British Columbia\" => \"British Columbia\",\n\t\t\t\"Ontario\" => \"Ontario\",\n\t\t\t\"Manitoba\" => \"Manitoba\",\n\t\t\t\"Prince Edward Island\" => \"Prince Edward Island\",\n\t\t\t\"New Brunswick\" => \"New Brunswick\",\n\t\t\t\"Quebec\" => \"Quebec\",\n\t\t\t\"Newfoundland\" => \"Newfoundland\",\n\t\t\t\"Saskatchewan\" => \"Saskatchewan\",\n\t\t\t\"Northwest Territories\" => \"Northwest Territories\",\n\t\t\t\"Yukon Territory\" => \"Yukon Territory\",\n\t\t\t\"Nunavut\" => \"Nunavut\",\n\t\t\t\"American Samoa\" => \"American Samoa\",\n\t\t\t\"Guam\" => \"Guam\",\n\t\t\t\"Marshall Islands\" => \"Marshall Islands\",\n\t\t\t\"Micronesia (Federated States of)\" => \"Micronesia (Federated States of)\",\n\t\t\t\"Palau\" => \"Palau\",\n\t\t\t\"Puerto Rico\" => \"Puerto Rico\",\n\t\t\t\"U.S. Minor Outlying Islands\" => \"U.S. Minor Outlying Islands\",\n\t\t\t\"Northern Mariana Islands\" => \"Northern Mariana Islands\",\n\t\t\t\"Armed Forces Africa\" => \"Armed Forces Africa\",\n\t\t\t\"Armed Forces Americas AA (except Canada)\" => \"Armed Forces Americas AA (except Canada)\",\n\t\t\t\"Armed Forces Canada\" => \"Armed Forces Canada\",\n\t\t\t\"Armed Forces Europe AE\" => \"Armed Forces Europe AE\",\n\t\t\t\"Armed Forces Middle East AE\" => \"Armed Forces Middle East AE\",\n\t\t\t\"Armed Forces Pacific AP\" => \"Armed Forces Pacific AP\",\n\t\t\t\"Foreign\" => \"Foreign\",\n\t\t\t\"Others Not Listed above\" => \"Others Not Listed above\"\n\t\t);\n\treturn $states;\n}", "static function states()\n {\n return array(\n 'USA' => array('name' => 'United States',\n 'states' => array(\n 'AL'=>'ALABAMA',\n 'AK'=>'ALASKA',\n 'AZ'=>'ARIZONA',\n 'AR'=>'ARKANSAS',\n 'CA'=>'CALIFORNIA',\n 'CO'=>'COLORADO',\n 'CT'=>'CONNECTICUT',\n 'DE'=>'DELAWARE',\n 'DC'=>'DISTRICT OF COLUMBIA',\n 'FL'=>'FLORIDA',\n 'GA'=>'GEORGIA',\n 'HI'=>'HAWAII',\n 'ID'=>'IDAHO',\n 'IL'=>'ILLINOIS',\n 'IN'=>'INDIANA',\n 'IA'=>'IOWA',\n 'KS'=>'KANSAS',\n 'KY'=>'KENTUCKY',\n 'LA'=>'LOUISIANA',\n 'ME'=>'MAINE',\n 'MD'=>'MARYLAND',\n 'MA'=>'MASSACHUSETTS',\n 'MI'=>'MICHIGAN',\n 'MN'=>'MINNESOTA',\n 'MS'=>'MISSISSIPPI',\n 'MO'=>'MISSOURI',\n 'MT'=>'MONTANA',\n 'NE'=>'NEBRASKA',\n 'NV'=>'NEVADA',\n 'NH'=>'NEW HAMPSHIRE',\n 'NJ'=>'NEW JERSEY',\n 'NM'=>'NEW MEXICO',\n 'NY'=>'NEW YORK',\n 'NC'=>'NORTH CAROLINA',\n 'ND'=>'NORTH DAKOTA',\n 'OH'=>'OHIO',\n 'OK'=>'OKLAHOMA',\n 'OR'=>'OREGON',\n 'PA'=>'PENNSYLVANIA',\n 'PR'=>'PUERTO RICO',\n 'RI'=>'RHODE ISLAND',\n 'SC'=>'SOUTH CAROLINA',\n 'SD'=>'SOUTH DAKOTA',\n 'TN'=>'TENNESSEE',\n 'TX'=>'TEXAS',\n 'UT'=>'UTAH',\n 'VT'=>'VERMONT',\n 'VA'=>'VIRGINIA',\n 'WA'=>'WASHINGTON',\n 'WV'=>'WEST VIRGINIA',\n 'WI'=>'WISCONSIN',\n 'WY'=>'WYOMING'\n )\n ),\n 'CAN' => array('name' => 'Canada',\n 'states' => array(\n \"BC\"=>\"British Columbia\", \n \"ON\"=>\"Ontario\", \n \"NL\"=>\"Newfoundland and Labrador\", \n \"NS\"=>\"Nova Scotia\", \n \"PE\"=>\"Prince Edward Island\", \n \"NB\"=>\"New Brunswick\", \n \"QC\"=>\"Quebec\", \n \"MB\"=>\"Manitoba\", \n \"SK\"=>\"Saskatchewan\", \n \"AB\"=>\"Alberta\", \n \"NT\"=>\"Northwest Territories\", \n \"NU\"=>\"Nunavut\",\n \"YT\"=>\"Yukon Territory\"\n )\n )\n );\n }", "function stateList(){\n\t$stateList = array( 'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', \n\t\t\t\t\t 'District Of Columbia', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', \n\t\t\t\t\t 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', \n\t\t\t\t\t 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', \n\t\t\t\t\t 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', \n\t\t\t\t\t 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', \n\t\t\t\t\t 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming' );\n\n\treturn $stateList;\n}", "public function get_all_state()\n\t {\n\t \t $data=(array)json_decode(file_get_contents(\"php://input\"));\n\t \t$id=$data['country_id'];\n\t \t$query=$this->ApiModel->get_all_state($id);\n\t \techo json_encode($query);\n\t }", "public function getCountries() {\n\n $countries = civicrm_api3('Address', 'Getoptions', [\n 'field' => 'country_id',\n ]);\n return $countries['values'];\n }", "function getStatesList()\n\t\t{\n\t\t\t$sSQL\t=\t\"select abbr , name from tbl_states\";\n\t\t\t$response = $this->Execute($sSQL);\n\t\t\t\n\t\t\t$stateList = array();\n\t\t\t\n\t\t\twhile($row = $response->FetchRow())\n\t\t\t{\t\t\t\n\t\t\t\t$arr['abbr'] = $row['abbr'];\n\t\t\t\t$arr['name'] = $row['name'];\n\t\t\t\t$stateList[] = $arr;\n\t\t\t}\n\t\t\t\n\t\t\treturn $stateList;\t\t\t\n\t\t}", "public function getAllStates() {\n $states = [];\n $values = DB::table(self::TABLE_NAME)\n ->select([self::C_STATE, self::C_STATE_FULL_NAME])\n ->distinct()\n ->where('region', '!=', \" \")\n ->orderBy(self::C_STATE)\n ->get();\n\n foreach ($values as $value) {\n $states[$value->state] = $value->stateFullName;\n }\n\n return $states;\n }", "public function sGetCountryList()\n {\n $context = Shopware()->Container()->get('shopware_storefront.context_service')->getShopContext();\n $service = Shopware()->Container()->get('shopware_storefront.location_service');\n\n $countryList = $service->getCountries($context);\n $countryList = Shopware()->Container()->get('legacy_struct_converter')->convertCountryStructList($countryList);\n\n $countryList = array_map(function ($country) {\n $request = $this->front->Request();\n $countryId = (int) $country['id'];\n $country['flag'] = ((int) $request->getPost('country') === $countryId || (int) $request->getPost('countryID') === $countryId);\n\n return $country;\n }, $countryList);\n\n $countryList = $this->eventManager->filter(\n 'Shopware_Modules_Admin_GetCountries_FilterResult',\n $countryList,\n ['subject' => $this]\n );\n\n return $countryList;\n }", "public function states()\n {\n return $this->hasMany('App\\State', 'country_id')->orderby('name', 'asc');\n }", "function getStatesBehalfCountry($countryId) {\n $myModel = new My_Model();\n $whereArray = [\n \"country_id\" => $countryId\n ];\n $result = $myModel->select('states', \"*\", $whereArray);\n if (count($result) > 1) {\n return $result = [\n \"message\" => \"states list\",\n \"data\" => $result\n ];\n } else {\n return $resp = [\n \"message\" => \"no state available\",\n \"data\" => \"null\"\n ];\n }\n }", "static function getStates($bLong=False) {\n\t\tif ($bLong)\n\t\treturn array('AL'=>'Alabama (AL)','AK'=>'Alaska (AK)','AZ'=>'Arizona (AZ)','AR'=>'Arkansas (AR)','CA'=>'California (CA)','CO'=>'Colorado (CO)',\n\t\t\t'CT'=>'Connecticut (CT)','DE'=>'Delaware (DE)','FL'=>'Florida (FL)','GA'=>'Georgia (GA)','HI'=>'Hawaii (HI)','ID'=>'Idaho (ID)',\n\t\t\t'IL'=>'Illinois (IL)','IN'=>'Indiana (IN)','IA'=>'Iowa (IA)','KS'=>'Kansas (KS)','KY'=>'Kentucky (KY)','LA'=>'Louisiana (LA)',\n\t\t\t'ME'=>'Maine (ME)','MD'=>'Maryland (MD)','MA'=>'Massachusetts (MA)','MI'=>'Michigan (MI)','MN'=>'Minnesota (MN)','MS'=>'Mississippi (MS)',\n\t\t\t'MO'=>'Missouri (MO)','MT'=>'Montana (MT)','NE'=>'Nebraska (NE)','NV'=>'Nevada (NV)','NH'=>'New Hampshire (NH)','NJ'=>'New Jersey (NJ)',\n\t\t\t'NM'=>'New Mexico (NM)','NY'=>'New York (NY)','NC'=>'North Carolina (NC)','ND'=>'North Dakota (ND)','OH'=>'Ohio (OH)','OK'=>'Oklahoma (OK)',\n\t\t\t'OR'=>'Oregon (OR)','PA'=>'Pennsylvania (PA)','RI'=>'Rhode Island (RI)','SC'=>'South Carolina (SC)','SD'=>'South Dakota (SD)','TN'=>'Tennessee (TN)',\n\t\t\t'TX'=>'Texas (TX)','UT'=>'Utah (UT)','VT'=>'Vermont (VT)','VA'=>'Virginia (VA)','WA'=>'Washington (WA)','WV'=>'West Virginia (WV)',\n\t\t\t'WI'=>'Wisconsin (WI)','WY'=>'Wyoming (WY)');\n\t\telse\n\t\t\treturn array('AL','AK','AZ','AR','CA','CO','CT','DE','FL','GA','HI','ID','IL','IN','IA','KS','KY','LA','ME','MD','MA','MI','MN','MS',\n\t\t\t'MO','MT','NE','NV','NH','NJ','NM','NY','NC','ND','OH','OK','OR','PA','RI','SC','SD','TN','TX','UT','VT','VA','WA','WV','WI','WY');\n\t}", "public function getCountryList()\n {\n return $this->call('country.list');\n }", "public function getStates(Request $request) {\n if ($states = \\CountryState::getStates(strtoupper($request->get('country')))) {\n $options = '';\n foreach($states as $code=>$country) {\n $options .= '<option value=\"'.$code.'\">'.$country.'</option>';\n }\n $return = [\n 'states' => $states,\n 'options' => $options,\n ];\n } else {\n $return = [\n 'states' => null\n ];\n }\n return response()->json($return);\n }", "public function countries(): array\n {\n return $this->client->get(\"country\");\n }", "function get_list_states($preselect = null){\n $states = array('AL'=>\"Alabama\",\n 'AK'=>\"Alaska\",\n 'AZ'=>\"Arizona\",\n 'AR'=>\"Arkansas\",\n 'CA'=>\"California\",\n 'CO'=>\"Colorado\",\n 'CT'=>\"Connecticut\",\n 'DE'=>\"Delaware\",\n 'DC'=>\"District Of Columbia\",\n 'FL'=>\"Florida\",\n 'GA'=>\"Georgia\",\n 'HI'=>\"Hawaii\",\n 'ID'=>\"Idaho\",\n 'IL'=>\"Illinois\",\n 'IN'=>\"Indiana\",\n 'IA'=>\"Iowa\",\n 'KS'=>\"Kansas\",\n 'KY'=>\"Kentucky\",\n 'LA'=>\"Louisiana\",\n 'ME'=>\"Maine\",\n 'MD'=>\"Maryland\",\n 'MA'=>\"Massachusetts\",\n 'MI'=>\"Michigan\",\n 'MN'=>\"Minnesota\",\n 'MS'=>\"Mississippi\",\n 'MO'=>\"Missouri\",\n 'MT'=>\"Montana\",\n 'NE'=>\"Nebraska\",\n 'NV'=>\"Nevada\",\n 'NH'=>\"New Hampshire\",\n 'NJ'=>\"New Jersey\",\n 'NM'=>\"New Mexico\",\n 'NY'=>\"New York\",\n 'NC'=>\"North Carolina\",\n 'ND'=>\"North Dakota\",\n 'OH'=>\"Ohio\",\n 'OK'=>\"Oklahoma\",\n 'OR'=>\"Oregon\",\n 'PA'=>\"Pennsylvania\",\n 'RI'=>\"Rhode Island\",\n 'SC'=>\"South Carolina\",\n 'SD'=>\"South Dakota\",\n 'TN'=>\"Tennessee\",\n 'TX'=>\"Texas\",\n 'UT'=>\"Utah\",\n 'VT'=>\"Vermont\",\n 'VA'=>\"Virginia\",\n 'WA'=>\"Washington\",\n 'WV'=>\"West Virginia\",\n 'WI'=>\"Wisconsin\",\n 'WY'=>\"Wyoming\");\n foreach ($states as $key=>$val) {\n if ($preselect == $key) {\n $selected = 'selected';\n } else {\n $selected = null;\n }\n echo '<option value=\"' . $key . '\" ' . $selected . '>' . $val . '</option>';\n }\n }", "public function getStates(Request $request) {\n\n $states = StateModel::where('country_id', $request->country_id)->get();\n\n return response()->json($states);\n }", "public function countryList(){\n $response['status'] = \"false\"; \n $response['message'] = \"Invalid request.\"; \n \n $country = Country::getCountries();\n if(!empty($country)){\n $response['status'] = \"true\"; \n $response['message'] = \"Country data.\"; \n $response['data'] = $country; \n }\n $this->response($response);\n \n }", "function _get_valid_state_array()\r\n{\r\n\t$ARRAY = array();\t\t// return\r\n\r\n\t$STATES = array\r\n\t(\r\n 'AL' => 'Alabama',\r\n 'AK' => 'Alaska',\r\n 'AR' => 'Arizona',\r\n 'AZ' => 'Arkansas',\r\n 'CA' => 'California',\r\n 'CO' => 'Colorado',\r\n 'CT' => 'Connecticut',\r\n 'DE' => 'Delaware',\r\n 'FL' => 'Florida',\r\n 'GA' => 'Georgia',\r\n 'HI' => 'Hawaii',\r\n 'ID' => 'Idaho',\r\n 'IL' => 'Illinois',\r\n 'IN' => 'Indiana',\r\n 'IA' => 'Iowa',\r\n 'KS' => 'Kansas',\r\n 'KY' => 'Kentucky',\r\n 'LA' => 'Lousiana',\r\n 'ME' => 'Maine',\r\n 'MD' => 'Maryland',\r\n 'MA' => 'Massachusetts',\r\n 'MI' => 'Michigan',\r\n 'MN' => 'Minnesota',\r\n 'MS' => 'Mississippi',\r\n 'MO' => 'Missouri',\r\n 'MT' => 'Montana',\r\n 'NE' => 'Nebraska',\r\n 'NV' => 'Nevada',\r\n 'NH' => 'New Hampshire',\r\n 'NJ' => 'New Jersey',\r\n 'NM' => 'New Mexico',\r\n 'NY' => 'New York',\r\n 'NC' => 'North Carolina',\r\n 'ND' => 'North Dakota',\r\n 'OH' => 'Ohio',\r\n 'OK' => 'Oklahoma',\r\n 'OR' => 'Oregon',\r\n 'PA' => 'Pennsylvania',\r\n 'RI' => 'Rhode Island',\r\n 'SC' => 'South Carolina',\r\n 'SD' => 'South Dakota',\r\n 'TN' => 'Tennessee',\r\n 'TX' => 'Texas',\r\n 'UT' => 'Utah',\r\n 'VT' => 'Vermont',\r\n 'VA' => 'Virgina',\r\n 'WA' => 'Washington',\r\n 'WV' => 'West Virginia',\r\n 'WI' => 'Wisconsin',\r\n 'WY' => 'Wyoming',\r\n 'DC' => 'District of Columbia'\r\n\t);\r\n\t\r\n\tforeach ( $STATES as $key => $state )\r\n\t{\r\n\t\t$abr = strtoupper($key);\r\n\t\t$ARRAY[$abr] = strtoupper($state);\r\n\t}\r\n\t\r\n\treturn $ARRAY;\r\n}", "function getstates() {\n\t\t$sql = Processwire\\wire('database')->prepare(\"SELECT abbreviation as state, name FROM states\");\n\t\t$sql->execute();\n\t\treturn $sql->fetchAll(PDO::FETCH_ASSOC);\n\t}", "public function getState($countryId) {\n $data = [];\n $countries = $this->countryInformationAcquirer->getCountriesInfo();\n foreach ($countries as $country) {\n if ($country->getId() == $countryId) { \n $regions = [];\n if ($availableRegions = $country->getAvailableRegions()) {\n foreach ($availableRegions as $region) {\n $data[] = [\n 'code' => $region->getCode(),\n 'region_id' => $region->getId(),\n 'name' => $region->getName()\n ];\n }\n }\n }\n }\n\n return $data;\n }", "function getStatesProv($country = null) {\n $stpr = [];\n $data = getDataCsv('states.csv');\n\n if (($data) && is_array($data) && ($country)) {\n foreach ($data as $row) {\n if ($country === $row[0]) {\n $stpr[] = $row[1];\n }\n }\n sort($stpr);\n }\n\n return $stpr;\n}", "public function get_country_list() \n\t{\n\t\treturn $this->db->select('num_code')\n\t\t->select('country_name')\n\t\t->select('num_code')\n\t\t->from('system_iso3166_l10n')\n\t\t->order_by('country_name', 'ASC')\t\n\t\t->get()->result();\n\t}", "function GetStates () {\n\t\t$this->db->order_by('name_long','ASC');\n\t\t$result = $this->db->get('states');\n\n\t\t$states = array();\n\t\tforeach ($result->result_array() as $state) {\n\t\t\t$states[] = array(\n\t\t\t\t\t\t\t'code' => $state['name_short'],\n\t\t\t\t\t\t\t'name' => $state['name_long']\n\t\t\t\t\t\t);\n\t\t}\n\n\t\treturn $states;\n\t}", "function get_states()\n\t{\n\t\t$countryID = $this->uri->segment(3);\n\t\t\n\t\t$this->db->select(\"*\")\n\t\t\t\t ->from('state')\n\t\t\t\t ->where('countryID', $countryID);\n\t\t$db = $this->db->get();\n\t\t\n\t\t$array = array();\n\t\tforeach($db->result() as $row):\n\t\t\t$array[] = array(\"value\" => $row->state_id, \"property\" => $row->state_title);\n\t\tendforeach;\n\t\t\n\t\techo json_encode($array);\n\t\texit;\n\t}", "function country_list()\t{\r\n\t\t$list = array(\r\n\t\t\t'AF' => 'Afghanistan',\r\n\t\t\t'AX' => 'Aland Island (Finland)',\r\n\t\t\t'AL' => 'Albania',\r\n\t\t\t'DZ' => 'Algeria',\r\n\t\t\t'AD' => 'Andorra',\r\n\t\t\t'AO' => 'Angola',\r\n\t\t\t'AI' => 'Anguilla',\r\n\t\t\t'AG' => 'Antigua and Barbuda',\r\n\t\t\t'AR' => 'Argentina',\r\n\t\t\t'AM' => 'Armenia',\r\n\t\t\t'AW' => 'Aruba',\r\n\t\t\t'AU' => 'Australia',\r\n\t\t\t'AT' => 'Austria',\r\n\t\t\t'AZ' => 'Azerbaijan',\r\n\t\t\t'BS' => 'Bahamas',\r\n\t\t\t'BH' => 'Bahrain',\r\n\t\t\t'BD' => 'Bangladesh',\r\n\t\t\t'BB' => 'Barbados',\r\n\t\t\t'BY' => 'Belarus',\r\n\t\t\t'BE' => 'Belgium',\r\n\t\t\t'BZ' => 'Belize',\r\n\t\t\t'BJ' => 'Benin',\r\n\t\t\t'BM' => 'Bermuda',\r\n\t\t\t'BT' => 'Bhutan',\r\n\t\t\t'BO' => 'Bolivia',\r\n\t\t\t'BQ' => 'Bonaire (Netherlands Antilles)',\r\n\t\t\t'BA' => 'Bosnia-Herzegovina',\r\n\t\t\t'BW' => 'Botswana',\r\n\t\t\t'BR' => 'Brazil',\r\n\t\t\t'VG' => 'British Virgin Islands',\r\n\t\t\t'BN' => 'Brunei Darussalam',\r\n\t\t\t'BG' => 'Bulgaria',\r\n\t\t\t'BF' => 'Burkina Faso',\r\n\t\t\t'MM' => 'Burma',\r\n\t\t\t'BI' => 'Burundi',\r\n\t\t\t'KH' => 'Cambodia',\r\n\t\t\t'CM' => 'Cameroon',\r\n\t\t\t'CA' => 'Canada',\r\n\t\t\t'CV' => 'Cape Verde',\r\n\t\t\t'KY' => 'Cayman Islands',\r\n\t\t\t'CF' => 'Central African Republic',\r\n\t\t\t'TD' => 'Chad',\r\n\t\t\t'CL' => 'Chile',\r\n\t\t\t'CN' => 'China',\r\n\t\t\t'CX' => 'Christmas Island (Australia)',\r\n\t\t\t'CC' => 'Cocos Island (Australia)',\r\n\t\t\t'CO' => 'Colombia',\r\n\t\t\t'KM' => 'Comoros',\r\n\t\t\t'CG' => 'Congo, Republic of the',\r\n\t\t\t'CD' => 'Congo, Democratic Republic of the',\r\n\t\t\t'CK' => 'Cook Islands (New Zealand)',\r\n\t\t\t'CR' => 'Costa Rica',\r\n\t\t\t'CI' => 'Cote d\\'Ivoire',\r\n\t\t\t'HR' => 'Croatia',\r\n\t\t\t'CU' => 'Cuba',\r\n\t\t\t'CW' => 'Curacao (Netherlands Antilles)',\r\n\t\t\t'CY' => 'Cyprus',\r\n\t\t\t'CZ' => 'Czech Republic',\r\n\t\t\t'DK' => 'Denmark',\r\n\t\t\t'DJ' => 'Djibouti',\r\n\t\t\t'DM' => 'Dominica',\r\n\t\t\t'DO' => 'Dominican Republic',\r\n\t\t\t'TL' => 'East Timor (Indonesia)',\r\n\t\t\t'EC' => 'Ecuador',\r\n\t\t\t'EG' => 'Egypt',\r\n\t\t\t'SV' => 'El Salvador',\r\n\t\t\t'GQ' => 'Equatorial Guinea',\r\n\t\t\t'ER' => 'Eritrea',\r\n\t\t\t'EE' => 'Estonia',\r\n\t\t\t'ET' => 'Ethiopia',\r\n\t\t\t'FK' => 'Falkland Islands',\r\n\t\t\t'FO' => 'Faroe Islands',\r\n\t\t\t'FJ' => 'Fiji',\r\n\t\t\t'FI' => 'Finland',\r\n\t\t\t'FR' => 'France',\r\n\t\t\t'GF' => 'French Guiana',\r\n\t\t\t'PF' => 'French Polynesia',\r\n\t\t\t'GA' => 'Gabon',\r\n\t\t\t'GM' => 'Gambia',\r\n\t\t\t'GE' => 'Georgia, Republic of',\r\n\t\t\t'DE' => 'Germany',\r\n\t\t\t'GH' => 'Ghana',\r\n\t\t\t'GI' => 'Gibraltar',\r\n\t\t\t'GB' => 'Great Britain and Northern Ireland',\r\n\t\t\t'GR' => 'Greece',\r\n\t\t\t'GL' => 'Greenland',\r\n\t\t\t'GD' => 'Grenada',\r\n\t\t\t'GP' => 'Guadeloupe',\r\n\t\t\t'GT' => 'Guatemala',\r\n\t\t\t'GG' => 'Guernsey',\r\n\t\t\t'GN' => 'Guinea',\r\n\t\t\t'GW' => 'Guinea-Bissau',\r\n\t\t\t'GY' => 'Guyana',\r\n\t\t\t'HT' => 'Haiti',\r\n\t\t\t'HN' => 'Honduras',\r\n\t\t\t'HK' => 'Hong Kong',\r\n\t\t\t'HU' => 'Hungary',\r\n\t\t\t'IS' => 'Iceland',\r\n\t\t\t'IN' => 'India',\r\n\t\t\t'ID' => 'Indonesia',\r\n\t\t\t'IR' => 'Iran',\r\n\t\t\t'IQ' => 'Iraq',\r\n\t\t\t'IE' => 'Ireland',\r\n\t\t\t'IM' => 'Isle of Man (Great Britain and Northern Ireland)',\r\n\t\t\t'IL' => 'Israel',\r\n\t\t\t'IT' => 'Italy',\r\n\t\t\t'JM' => 'Jamaica',\r\n\t\t\t'JP' => 'Japan',\r\n\t\t\t'JE' => 'Jersey (Channel Islands) (Great Britain and Northern Ireland)',\r\n\t\t\t'JO' => 'Jordan',\r\n\t\t\t'KZ' => 'Kazakhstan',\r\n\t\t\t'KE' => 'Kenya',\r\n\t\t\t'KI' => 'Kiribati',\r\n\t\t\t'KW' => 'Kuwait',\r\n\t\t\t'KG' => 'Kyrgyzstan',\r\n\t\t\t'LA' => 'Laos',\r\n\t\t\t'LV' => 'Latvia',\r\n\t\t\t'LB' => 'Lebanon',\r\n\t\t\t'LS' => 'Lesotho',\r\n\t\t\t'LR' => 'Liberia',\r\n\t\t\t'LY' => 'Libya',\r\n\t\t\t'LI' => 'Liechtenstein',\r\n\t\t\t'LT' => 'Lithuania',\r\n\t\t\t'LU' => 'Luxembourg',\r\n\t\t\t'MO' => 'Macao',\r\n\t\t\t'MK' => 'Macedonia, Republic of',\r\n\t\t\t'MG' => 'Madagascar',\r\n\t\t\t'MW' => 'Malawi',\r\n\t\t\t'MY' => 'Malaysia',\r\n\t\t\t'MV' => 'Maldives',\r\n\t\t\t'ML' => 'Mali',\r\n\t\t\t'MT' => 'Malta',\r\n\t\t\t'MQ' => 'Martinique',\r\n\t\t\t'MR' => 'Mauritania',\r\n\t\t\t'MU' => 'Mauritius',\r\n\t\t\t'YT' => 'Mayotte (France)',\r\n\t\t\t'MX' => 'Mexico',\r\n\t\t\t'MD' => 'Moldova',\r\n\t\t\t'MC' => 'Monaco (France)',\r\n\t\t\t'MN' => 'Mongolia',\r\n\t\t\t'ME' => 'Montenegro',\r\n\t\t\t'MS' => 'Montserrat',\r\n\t\t\t'MA' => 'Morocco',\r\n\t\t\t'MZ' => 'Mozambique',\r\n\t\t\t'NA' => 'Namibia',\r\n\t\t\t'NR' => 'Nauru',\r\n\t\t\t'NP' => 'Nepal',\r\n\t\t\t'NL' => 'Netherlands',\r\n\t\t\t'AN' => 'Netherlands Antilles',\r\n\t\t\t'NC' => 'New Caledonia',\r\n\t\t\t'NZ' => 'New Zealand',\r\n\t\t\t'NI' => 'Nicaragua',\r\n\t\t\t'NE' => 'Niger',\r\n\t\t\t'NG' => 'Nigeria',\r\n\t\t\t'NU' => 'Niue',\r\n\t\t\t'NF' => 'Norfolk Island',\r\n\t\t\t'KP' => 'North Korea (Korea, Democratic People\\'s Republic of)',\r\n\t\t\t'NO' => 'Norway',\r\n\t\t\t'OM' => 'Oman',\r\n\t\t\t'PK' => 'Pakistan',\r\n\t\t\t'PA' => 'Panama',\r\n\t\t\t'PG' => 'Papua New Guinea',\r\n\t\t\t'PY' => 'Paraguay',\r\n\t\t\t'PE' => 'Peru',\r\n\t\t\t'PH' => 'Philippines',\r\n\t\t\t'PN' => 'Pitcairn Island',\r\n\t\t\t'PL' => 'Poland',\r\n\t\t\t'PT' => 'Portugal',\r\n\t\t\t'QA' => 'Qatar',\r\n\t\t\t'RE' => 'Reunion',\r\n\t\t\t'RO' => 'Romania',\r\n\t\t\t'RU' => 'Russia',\r\n\t\t\t'RW' => 'Rwanda',\r\n\t\t\t'BL' => 'Saint Barthelemy (Guadeloupe)',\r\n\t\t\t'SH' => 'Saint Helena',\r\n\t\t\t'KN' => 'Saint Kitts (Saint Christopher and Nevis)',\r\n\t\t\t'LC' => 'Saint Lucia',\r\n\t\t\t'MF' => 'Saint Martin (French) (Guadeloupe)',\r\n\t\t\t'PM' => 'Saint Pierre and Miquelon',\r\n\t\t\t'VC' => 'Saint Vincent and the Grenadines',\r\n\t\t\t'SM' => 'San Marino',\r\n\t\t\t'ST' => 'Sao Tome and Principe',\r\n\t\t\t'SA' => 'Saudi Arabia',\r\n\t\t\t'SN' => 'Senegal',\r\n\t\t\t'RS' =>\t'Serbia, Republic of',\r\n\t\t\t'SC' => 'Seychelles',\r\n\t\t\t'SL' => 'Sierra Leone',\r\n\t\t\t'SG' => 'Singapore',\r\n\t\t\t'SX' => 'Saint Maarten (Dutch) (Netherlands Antilles)',\r\n\t\t\t'SK' => 'Slovak Republic',\r\n\t\t\t'SI' => 'Slovenia',\r\n\t\t\t'SB' => 'Solomon Islands',\r\n\t\t\t'SO' => 'Somalia',\r\n\t\t\t'ZA' => 'South Africa',\r\n\t\t\t'GS' => 'South Georgia (Falkland Islands)',\r\n\t\t\t'KR' => 'South Korea (Korea, Republic of)',\r\n\t\t\t'SS' => 'Sudan', // South Sudan, not listed separately from Sudan by USPS\r\n\t\t\t'ES' => 'Spain',\r\n\t\t\t'LK' => 'Sri Lanka',\r\n\t\t\t'SD' => 'Sudan',\r\n\t\t\t'SR' => 'Suriname',\r\n\t\t\t'SZ' => 'Swaziland',\r\n\t\t\t'SE' => 'Sweden',\r\n\t\t\t'CH' => 'Switzerland',\r\n\t\t\t'SY' => 'Syrian Arab Republic',\r\n\t\t\t'TW' => 'Taiwan',\r\n\t\t\t'TJ' => 'Tajikistan',\r\n\t\t\t'TZ' => 'Tanzania',\r\n\t\t\t'TH' => 'Thailand',\r\n\t\t\t'TG' => 'Togo',\r\n\t\t\t'TK' => 'Tokelau (Union Group) (Western Samoa)',\r\n\t\t\t'TO' => 'Tonga',\r\n\t\t\t'TT' => 'Trinidad and Tobago',\r\n\t\t\t'TN' => 'Tunisia',\r\n\t\t\t'TR' => 'Turkey',\r\n\t\t\t'TM' => 'Turkmenistan',\r\n\t\t\t'TC' => 'Turks and Caicos Islands',\r\n\t\t\t'TV' => 'Tuvalu',\r\n\t\t\t'UG' => 'Uganda',\r\n\t\t\t'UA' => 'Ukraine',\r\n\t\t\t'AE' => 'United Arab Emirates',\r\n\t\t\t'UY' => 'Uruguay',\r\n\t\t\t'UZ' => 'Uzbekistan',\r\n\t\t\t'VU' => 'Vanuatu',\r\n\t\t\t'VA' => 'Vatican City',\r\n\t\t\t'VE' => 'Venezuela',\r\n\t\t\t'VN' => 'Vietnam',\r\n\t\t\t'WF' => 'Wallis and Futuna Islands',\r\n\t\t\t'WS' => 'Western Samoa',\r\n\t\t\t'YE' => 'Yemen',\r\n\t\t\t'ZM' => 'Zambia',\r\n\t\t\t'ZW' => 'Zimbabwe');\r\n\t\treturn $list;\r\n\t}", "public function getStateListByCountryId($country_id)\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('state');\n\t\t$this->db->where('state_status', '1');\n\t\t$this->db->where('country_id', $country_id);\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "public function getCountriesInfo();", "function get_indian_states(){\n\t\t$this->db->cache_on();\n\t\t\n\t\t$this->db->select('id, name');\n\t\t$this->db->where_in('country_id', '101');\n\t\t$this->db->order_by('name');\n\t\t$q = $this->db->get('states');\n\t\tif ($q->num_rows()>0) {\n\t\t\treturn $q->result_array();\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function getCountries();", "public function getAllCountryCodes() {\n\t\t$filter = new Filters\\Misc\\CountryCode();\n\t\treturn $filter->query->find();\n\t}", "public static function __getStates($country_id = \"2\", $active = \"1\", DbConnection $DbConnection = null) \r\n\t{\r\n\t \t$DbConnection = ($DbConnection == null) ? DbConnection::getInstance(\"_world\") : $DbConnection ;\r\n\t \t$sql = \"SELECT state_id, state FROM state WHERE country_id = '{$country_id}' AND active = '{$active}' \";\r\n\t \t\r\n\t \treturn $DbConnection->getPair($sql);\r\n\t}", "public function getStateListByCountryId($country_id)\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('state');\r\n\t\t$this->db->where('state_status', '1');\r\n\t\t$this->db->where('country_id', $country_id);\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function countries(): array\n {\n $payload = Payload::list('countries');\n\n $result = $this->transporter->get($payload->uri)->throw();\n\n return (array) $result->json('data');\n }", "function getstate_get(){\n\n $countryID = $this->uri->segment(4);\n\n $countryID = isset($countryID) ? $countryID : \"\";\n\n if ($countryID == FALSE) {\n $response = array(\n 'status' => FALSE,\n 'message' => 'Country id should not be empty.'\n );\n $this->response($response, REST_Controller::FIELD_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }\n \n $from = 'states';\n $where = array('country_id' => $countryID);\n $select = '*';\n $records = 2;\n\n $states = $this->base_model->getCommon($from, $where, $select, $records);\n\n if ($states) {\n \n $response = array(\n 'status' => TRUE,\n 'message' => 'States found successfully.',\n 'result' => $states);\n\n $this->set_response($response, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code \n }else{\n $response = array(\n 'status' => FALSE,\n 'message' => 'Country not found.');\n $this->response($response, REST_Controller::FIELD_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }\n }", "function getRegionsStub($country)\n{\n return array(\"Kentriki Makedonia\", \"Thraki\", \"Peloponisos\", \"Kriti\");\n}", "function getSiteCountries() {\n global $dbAccess;\n $this->db = $dbAccess;\n $data = $this->db->SimpleQuery(\"SELECT * FROM \" . TBL_COUNTRIES . \" WHERE status='1' ORDER BY country_name\");\n\n return $data;\n }", "public function getAllStatesByCode(){\n return array(\"AC\",\"AL\",\"AM\",\"AP\",\"BA\",\"CE\",\"DF\",\"ES\",\"GO\",\"MA\",\"MT\",\"MS\",\"MG\",\"PA\",\"PB\",\"PR\",\"PE\",\"PI\",\"RJ\",\"RN\",\"RO\",\"RS\",\"RR\",\"SC\",\"SE\",\"SP\",\"TO\");\n }", "static function get_countries() {\n static $ret = array();\n if(empty($ret)) {\n global $wpdb;\n $ret = $wpdb->get_results('SELECT * FROM ai_country ORDER BY name', OBJECT_K);\n }\n return $ret;\n }", "public static function getCountries()\n\t{\n\t\t$country[\"AFG\"] = Array(\"iso2\" => \"AF\", \"name\" => \"Afghanistan, Islamic Republic \");\n\t\t$country[\"ALA\"] = Array(\"iso2\" => \"AX\", \"name\" => \"Åland Islands\");\n\t\t$country[\"ALB\"] = Array(\"iso2\" => \"AL\", \"name\" => \"Albania, Republic of\");\n\t\t$country[\"DZA\"] = Array(\"iso2\" => \"DZ\", \"name\" => \"Algeria, People's Democratic Republic\");\n\t\t$country[\"ASM\"] = Array(\"iso2\" => \"AS\", \"name\" => \"American Samoa\");\n\t\t$country[\"AND\"] = Array(\"iso2\" => \"AD\", \"name\" => \"Andorra, Principality of\");\n\t\t$country[\"AGO\"] = Array(\"iso2\" => \"AO\", \"name\" => \"Angola, Republic of\");\n\t\t$country[\"AIA\"] = Array(\"iso2\" => \"AI\", \"name\" => \"Anguilla\");\n\t\t$country[\"ATA\"] = Array(\"iso2\" => \"AQ\", \"name\" => \"Antarctica (the territory Sout\");\n\t\t$country[\"ATG\"] = Array(\"iso2\" => \"AG\", \"name\" => \"Antigua and Barbuda\");\n\t\t$country[\"ARG\"] = Array(\"iso2\" => \"AR\", \"name\" => \"Argentina, Argentine Republic\");\n\t\t$country[\"ARM\"] = Array(\"iso2\" => \"AM\", \"name\" => \"Armenia, Republic of\");\n\t\t$country[\"ABW\"] = Array(\"iso2\" => \"AW\", \"name\" => \"Aruba\");\n\t\t$country[\"AUS\"] = Array(\"iso2\" => \"AU\", \"name\" => \"Australia, Commonwealth of\");\n\t\t$country[\"AUT\"] = Array(\"iso2\" => \"AT\", \"name\" => \"Austria, Republic of\");\n\t\t$country[\"AZE\"] = Array(\"iso2\" => \"AZ\", \"name\" => \"Azerbaijan, Republic of\");\n\t\t$country[\"BHS\"] = Array(\"iso2\" => \"BS\", \"name\" => \"Bahamas, Commonwealth of the\");\n\t\t$country[\"BHR\"] = Array(\"iso2\" => \"BH\", \"name\" => \"Bahrain, Kingdom of\");\n\t\t$country[\"BGD\"] = Array(\"iso2\" => \"BD\", \"name\" => \"Bangladesh, People's Republic \");\n\t\t$country[\"BRB\"] = Array(\"iso2\" => \"BB\", \"name\" => \"Barbados\");\n\t\t$country[\"BLR\"] = Array(\"iso2\" => \"BY\", \"name\" => \"Belarus, Republic of\");\n\t\t$country[\"BEL\"] = Array(\"iso2\" => \"BE\", \"name\" => \"Belgium, Kingdom of\");\n\t\t$country[\"BLZ\"] = Array(\"iso2\" => \"BZ\", \"name\" => \"Belize\");\n\t\t$country[\"BEN\"] = Array(\"iso2\" => \"BJ\", \"name\" => \"Benin, Republic of\");\n\t\t$country[\"BMU\"] = Array(\"iso2\" => \"BM\", \"name\" => \"Bermuda\");\n\t\t$country[\"BTN\"] = Array(\"iso2\" => \"BT\", \"name\" => \"Bhutan, Kingdom of\");\n\t\t$country[\"BOL\"] = Array(\"iso2\" => \"BO\", \"name\" => \"Bolivia, Republic of\");\n\t\t$country[\"BIH\"] = Array(\"iso2\" => \"BA\", \"name\" => \"Bosnia and Herzegovina\");\n\t\t$country[\"BWA\"] = Array(\"iso2\" => \"BW\", \"name\" => \"Botswana, Republic of\");\n\t\t$country[\"BVT\"] = Array(\"iso2\" => \"BV\", \"name\" => \"Bouvet Island (Bouvetoya)\");\n\t\t$country[\"BRA\"] = Array(\"iso2\" => \"BR\", \"name\" => \"Brazil, Federative Republic of\");\n\t\t$country[\"IOT\"] = Array(\"iso2\" => \"IO\", \"name\" => \"British Indian Ocean Territory\");\n\t\t$country[\"VGB\"] = Array(\"iso2\" => \"VG\", \"name\" => \"British Virgin Islands\");\n\t\t$country[\"BRN\"] = Array(\"iso2\" => \"BN\", \"name\" => \"Brunei Darussalam\");\n\t\t$country[\"BGR\"] = Array(\"iso2\" => \"BG\", \"name\" => \"Bulgaria, Republic of\");\n\t\t$country[\"BFA\"] = Array(\"iso2\" => \"BF\", \"name\" => \"Burkina Faso\");\n\t\t$country[\"BDI\"] = Array(\"iso2\" => \"BI\", \"name\" => \"Burundi, Republic of\");\n\t\t$country[\"KHM\"] = Array(\"iso2\" => \"KH\", \"name\" => \"Cambodia, Kingdom of\");\n\t\t$country[\"CMR\"] = Array(\"iso2\" => \"CM\", \"name\" => \"Cameroon, Republic of\");\n\t\t$country[\"CAN\"] = Array(\"iso2\" => \"CA\", \"name\" => \"Canada\");\n\t\t$country[\"CPV\"] = Array(\"iso2\" => \"CV\", \"name\" => \"Cape Verde, Republic of\");\n\t\t$country[\"CYM\"] = Array(\"iso2\" => \"KY\", \"name\" => \"Cayman Islands\");\n\t\t$country[\"CAF\"] = Array(\"iso2\" => \"CF\", \"name\" => \"Central African Republic\");\n\t\t$country[\"TCD\"] = Array(\"iso2\" => \"TD\", \"name\" => \"Chad, Republic of\");\n\t\t$country[\"CHL\"] = Array(\"iso2\" => \"CL\", \"name\" => \"Chile, Republic of\");\n\t\t$country[\"CHN\"] = Array(\"iso2\" => \"CN\", \"name\" => \"China, People's Republic of\");\n\t\t$country[\"CXR\"] = Array(\"iso2\" => \"CX\", \"name\" => \"Christmas Island\");\n\t\t$country[\"CCK\"] = Array(\"iso2\" => \"CC\", \"name\" => \"Cocos (Keeling) Islands\");\n\t\t$country[\"COL\"] = Array(\"iso2\" => \"CO\", \"name\" => \"Colombia, Republic of\");\n\t\t$country[\"COM\"] = Array(\"iso2\" => \"KM\", \"name\" => \"Comoros, Union of the\");\n\t\t$country[\"COD\"] = Array(\"iso2\" => \"CD\", \"name\" => \"Congo, Democratic Republic of \");\n\t\t$country[\"COG\"] = Array(\"iso2\" => \"CG\", \"name\" => \"Congo, Republic of the\");\n\t\t$country[\"COK\"] = Array(\"iso2\" => \"CK\", \"name\" => \"Cook Islands\");\n\t\t$country[\"CRI\"] = Array(\"iso2\" => \"CR\", \"name\" => \"Costa Rica, Republic of\");\n\t\t$country[\"CIV\"] = Array(\"iso2\" => \"CI\", \"name\" => \"Cote d'Ivoire, Republic of\");\n\t\t$country[\"HRV\"] = Array(\"iso2\" => \"HR\", \"name\" => \"Croatia, Republic of\");\n\t\t$country[\"CUB\"] = Array(\"iso2\" => \"CU\", \"name\" => \"Cuba, Republic of\");\n\t\t$country[\"CYP\"] = Array(\"iso2\" => \"CY\", \"name\" => \"Cyprus, Republic of\");\n\t\t$country[\"CZE\"] = Array(\"iso2\" => \"CZ\", \"name\" => \"Czech Republic\");\n\t\t$country[\"DNK\"] = Array(\"iso2\" => \"DK\", \"name\" => \"Denmark, Kingdom of\");\n\t\t$country[\"DJI\"] = Array(\"iso2\" => \"DJ\", \"name\" => \"Djibouti, Republic of\");\n\t\t$country[\"DMA\"] = Array(\"iso2\" => \"DM\", \"name\" => \"Dominica, Commonwealth of\");\n\t\t$country[\"DOM\"] = Array(\"iso2\" => \"DO\", \"name\" => \"Dominican Republic\");\n\t\t$country[\"ECU\"] = Array(\"iso2\" => \"EC\", \"name\" => \"Ecuador, Republic of\");\n\t\t$country[\"EGY\"] = Array(\"iso2\" => \"EG\", \"name\" => \"Egypt, Arab Republic of\");\n\t\t$country[\"SLV\"] = Array(\"iso2\" => \"SV\", \"name\" => \"El Salvador, Republic of\");\n\t\t$country[\"GNQ\"] = Array(\"iso2\" => \"GQ\", \"name\" => \"Equatorial Guinea, Republic of\");\n\t\t$country[\"ERI\"] = Array(\"iso2\" => \"ER\", \"name\" => \"Eritrea, State of\");\n\t\t$country[\"EST\"] = Array(\"iso2\" => \"EE\", \"name\" => \"Estonia, Republic of\");\n\t\t$country[\"ETH\"] = Array(\"iso2\" => \"ET\", \"name\" => \"Ethiopia, Federal Democratic R\");\n\t\t$country[\"FRO\"] = Array(\"iso2\" => \"FO\", \"name\" => \"Faroe Islands\");\n\t\t$country[\"FLK\"] = Array(\"iso2\" => \"FK\", \"name\" => \"Falkland Islands (Malvinas)\");\n\t\t$country[\"FJI\"] = Array(\"iso2\" => \"FJ\", \"name\" => \"Fiji, Republic of the Fiji Isl\");\n\t\t$country[\"FIN\"] = Array(\"iso2\" => \"FI\", \"name\" => \"Finland, Republic of\");\n\t\t$country[\"FRA\"] = Array(\"iso2\" => \"FR\", \"name\" => \"France, French Republic\");\n\t\t$country[\"GUF\"] = Array(\"iso2\" => \"GF\", \"name\" => \"French Guiana\");\n\t\t$country[\"PYF\"] = Array(\"iso2\" => \"PF\", \"name\" => \"French Polynesia\");\n\t\t$country[\"ATF\"] = Array(\"iso2\" => \"TF\", \"name\" => \"French Southern Territories\");\n\t\t$country[\"GAB\"] = Array(\"iso2\" => \"GA\", \"name\" => \"Gabon, Gabonese Republic\");\n\t\t$country[\"GMB\"] = Array(\"iso2\" => \"GM\", \"name\" => \"Gambia, Republic of the\");\n\t\t$country[\"GEO\"] = Array(\"iso2\" => \"GE\", \"name\" => \"Georgia\");\n\t\t$country[\"DEU\"] = Array(\"iso2\" => \"DE\", \"name\" => \"Germany, Federal Republic of\");\n\t\t$country[\"GHA\"] = Array(\"iso2\" => \"GH\", \"name\" => \"Ghana, Republic of\");\n\t\t$country[\"GIB\"] = Array(\"iso2\" => \"GI\", \"name\" => \"Gibraltar\");\n\t\t$country[\"GRC\"] = Array(\"iso2\" => \"GR\", \"name\" => \"Greece, Hellenic Republic\");\n\t\t$country[\"GRL\"] = Array(\"iso2\" => \"GL\", \"name\" => \"Greenland\");\n\t\t$country[\"GRD\"] = Array(\"iso2\" => \"GD\", \"name\" => \"Grenada\");\n\t\t$country[\"GLP\"] = Array(\"iso2\" => \"GP\", \"name\" => \"Guadeloupe\");\n\t\t$country[\"GUM\"] = Array(\"iso2\" => \"GU\", \"name\" => \"Guam\");\n\t\t$country[\"GTM\"] = Array(\"iso2\" => \"GT\", \"name\" => \"Guatemala, Republic of\");\n\t\t$country[\"GGY\"] = Array(\"iso2\" => \"GG\", \"name\" => \"Guernsey, Bailiwick of\");\n\t\t$country[\"GIN\"] = Array(\"iso2\" => \"GN\", \"name\" => \"Guinea, Republic of\");\n\t\t$country[\"GNB\"] = Array(\"iso2\" => \"GW\", \"name\" => \"Guinea-Bissau, Republic of\");\n\t\t$country[\"GUY\"] = Array(\"iso2\" => \"GY\", \"name\" => \"Guyana, Co-operative Republic \");\n\t\t$country[\"HTI\"] = Array(\"iso2\" => \"HT\", \"name\" => \"Haiti, Republic of\");\n\t\t$country[\"HMD\"] = Array(\"iso2\" => \"HM\", \"name\" => \"Heard Island and McDonald Isla\");\n\t\t$country[\"VAT\"] = Array(\"iso2\" => \"VA\", \"name\" => \"Holy See (Vatican City State)\");\n\t\t$country[\"HND\"] = Array(\"iso2\" => \"HN\", \"name\" => \"Honduras, Republic of\");\n\t\t$country[\"HKG\"] = Array(\"iso2\" => \"HK\", \"name\" => \"Hong Kong, Special Administrat\");\n\t\t$country[\"HUN\"] = Array(\"iso2\" => \"HU\", \"name\" => \"Hungary, Republic of\");\n\t\t$country[\"ISL\"] = Array(\"iso2\" => \"IS\", \"name\" => \"Iceland, Republic of\");\n\t\t$country[\"IND\"] = Array(\"iso2\" => \"IN\", \"name\" => \"India, Republic of\");\n\t\t$country[\"IDN\"] = Array(\"iso2\" => \"ID\", \"name\" => \"Indonesia, Republic of\");\n\t\t$country[\"IRN\"] = Array(\"iso2\" => \"IR\", \"name\" => \"Iran, Islamic Republic of\");\n\t\t$country[\"IRQ\"] = Array(\"iso2\" => \"IQ\", \"name\" => \"Iraq, Republic of\");\n\t\t$country[\"IRL\"] = Array(\"iso2\" => \"IE\", \"name\" => \"Ireland\");\n\t\t$country[\"IMN\"] = Array(\"iso2\" => \"IM\", \"name\" => \"Isle of Man\");\n\t\t$country[\"ISR\"] = Array(\"iso2\" => \"IL\", \"name\" => \"Israel, State of\");\n\t\t$country[\"ITA\"] = Array(\"iso2\" => \"IT\", \"name\" => \"Italy, Italian Republic\");\n\t\t$country[\"JAM\"] = Array(\"iso2\" => \"JM\", \"name\" => \"Jamaica\");\n\t\t$country[\"JPN\"] = Array(\"iso2\" => \"JP\", \"name\" => \"Japan\");\n\t\t$country[\"JEY\"] = Array(\"iso2\" => \"JE\", \"name\" => \"Jersey, Bailiwick of\");\n\t\t$country[\"JOR\"] = Array(\"iso2\" => \"JO\", \"name\" => \"Jordan, Hashemite Kingdom of\");\n\t\t$country[\"KAZ\"] = Array(\"iso2\" => \"KZ\", \"name\" => \"Kazakhstan, Republic of\");\n\t\t$country[\"KEN\"] = Array(\"iso2\" => \"KE\", \"name\" => \"Kenya, Republic of\");\n\t\t$country[\"KIR\"] = Array(\"iso2\" => \"KI\", \"name\" => \"Kiribati, Republic of\");\n\t\t$country[\"PRK\"] = Array(\"iso2\" => \"KP\", \"name\" => \"Korea, Democratic People's Rep\");\n\t\t$country[\"KOR\"] = Array(\"iso2\" => \"KR\", \"name\" => \"Korea, Republic of\");\n\t\t$country[\"KWT\"] = Array(\"iso2\" => \"KW\", \"name\" => \"Kuwait, State of\");\n\t\t$country[\"KGZ\"] = Array(\"iso2\" => \"KG\", \"name\" => \"Kyrgyz Republic\");\n\t\t$country[\"LAO\"] = Array(\"iso2\" => \"LA\", \"name\" => \"Lao People's Democratic Republ\");\n\t\t$country[\"LVA\"] = Array(\"iso2\" => \"LV\", \"name\" => \"Latvia, Republic of\");\n\t\t$country[\"LBN\"] = Array(\"iso2\" => \"LB\", \"name\" => \"Lebanon, Lebanese Republic\");\n\t\t$country[\"LSO\"] = Array(\"iso2\" => \"LS\", \"name\" => \"Lesotho, Kingdom of\");\n\t\t$country[\"LBR\"] = Array(\"iso2\" => \"LR\", \"name\" => \"Liberia, Republic of\");\n\t\t$country[\"LBY\"] = Array(\"iso2\" => \"LY\", \"name\" => \"Libyan Arab Jamahiriya\");\n\t\t$country[\"LIE\"] = Array(\"iso2\" => \"LI\", \"name\" => \"Liechtenstein, Principality of\");\n\t\t$country[\"LTU\"] = Array(\"iso2\" => \"LT\", \"name\" => \"Lithuania, Republic of\");\n\t\t$country[\"LUX\"] = Array(\"iso2\" => \"LU\", \"name\" => \"Luxembourg, Grand Duchy of\");\n\t\t$country[\"MAC\"] = Array(\"iso2\" => \"MO\", \"name\" => \"Macao, Special Administrative \");\n\t\t$country[\"MKD\"] = Array(\"iso2\" => \"MK\", \"name\" => \"Macedonia, the former Yugoslav\");\n\t\t$country[\"MDG\"] = Array(\"iso2\" => \"MG\", \"name\" => \"Madagascar, Republic of\");\n\t\t$country[\"MWI\"] = Array(\"iso2\" => \"MW\", \"name\" => \"Malawi, Republic of\");\n\t\t$country[\"MYS\"] = Array(\"iso2\" => \"MY\", \"name\" => \"Malaysia\");\n\t\t$country[\"MDV\"] = Array(\"iso2\" => \"MV\", \"name\" => \"Maldives, Republic of\");\n\t\t$country[\"MLI\"] = Array(\"iso2\" => \"ML\", \"name\" => \"Mali, Republic of\");\n\t\t$country[\"MLT\"] = Array(\"iso2\" => \"MT\", \"name\" => \"Malta, Republic of\");\n\t\t$country[\"MHL\"] = Array(\"iso2\" => \"MH\", \"name\" => \"Marshall Islands, Republic of \");\n\t\t$country[\"MTQ\"] = Array(\"iso2\" => \"MQ\", \"name\" => \"Martinique\");\n\t\t$country[\"MRT\"] = Array(\"iso2\" => \"MR\", \"name\" => \"Mauritania, Islamic Republic o\");\n\t\t$country[\"MUS\"] = Array(\"iso2\" => \"MU\", \"name\" => \"Mauritius, Republic of\");\n\t\t$country[\"MYT\"] = Array(\"iso2\" => \"YT\", \"name\" => \"Mayotte\");\n\t\t$country[\"MEX\"] = Array(\"iso2\" => \"MX\", \"name\" => \"Mexico, United Mexican States\");\n\t\t$country[\"FSM\"] = Array(\"iso2\" => \"FM\", \"name\" => \"Micronesia, Federated States o\");\n\t\t$country[\"MDA\"] = Array(\"iso2\" => \"MD\", \"name\" => \"Moldova, Republic of\");\n\t\t$country[\"MCO\"] = Array(\"iso2\" => \"MC\", \"name\" => \"Monaco, Principality of\");\n\t\t$country[\"MNG\"] = Array(\"iso2\" => \"MN\", \"name\" => \"Mongolia\");\n\t\t$country[\"MNE\"] = Array(\"iso2\" => \"ME\", \"name\" => \"Montenegro, Republic of\");\n\t\t$country[\"MSR\"] = Array(\"iso2\" => \"MS\", \"name\" => \"Montserrat\");\n\t\t$country[\"MAR\"] = Array(\"iso2\" => \"MA\", \"name\" => \"Morocco, Kingdom of\");\n\t\t$country[\"MOZ\"] = Array(\"iso2\" => \"MZ\", \"name\" => \"Mozambique, Republic of\");\n\t\t$country[\"MMR\"] = Array(\"iso2\" => \"MM\", \"name\" => \"Myanmar, Union of\");\n\t\t$country[\"NAM\"] = Array(\"iso2\" => \"NA\", \"name\" => \"Namibia, Republic of\");\n\t\t$country[\"NRU\"] = Array(\"iso2\" => \"NR\", \"name\" => \"Nauru, Republic of\");\n\t\t$country[\"NPL\"] = Array(\"iso2\" => \"NP\", \"name\" => \"Nepal, State of\");\n\t\t$country[\"ANT\"] = Array(\"iso2\" => \"AN\", \"name\" => \"Netherlands Antilles\");\n\t\t$country[\"NLD\"] = Array(\"iso2\" => \"NL\", \"name\" => \"Netherlands, Kingdom of the\");\n\t\t$country[\"NCL\"] = Array(\"iso2\" => \"NC\", \"name\" => \"New Caledonia\");\n\t\t$country[\"NZL\"] = Array(\"iso2\" => \"NZ\", \"name\" => \"New Zealand\");\n\t\t$country[\"NIC\"] = Array(\"iso2\" => \"NI\", \"name\" => \"Nicaragua, Republic of\");\n\t\t$country[\"NER\"] = Array(\"iso2\" => \"NE\", \"name\" => \"Niger, Republic of\");\n\t\t$country[\"NGA\"] = Array(\"iso2\" => \"NG\", \"name\" => \"Nigeria, Federal Republic of\");\n\t\t$country[\"NIU\"] = Array(\"iso2\" => \"NU\", \"name\" => \"Niue\");\n\t\t$country[\"NFK\"] = Array(\"iso2\" => \"NF\", \"name\" => \"Norfolk Island\");\n\t\t$country[\"MNP\"] = Array(\"iso2\" => \"MP\", \"name\" => \"Northern Mariana Islands, Comm\");\n\t\t$country[\"NOR\"] = Array(\"iso2\" => \"NO\", \"name\" => \"Norway, Kingdom of\");\n\t\t$country[\"OMN\"] = Array(\"iso2\" => \"OM\", \"name\" => \"Oman, Sultanate of\");\n\t\t$country[\"PAK\"] = Array(\"iso2\" => \"PK\", \"name\" => \"Pakistan, Islamic Republic of\");\n\t\t$country[\"PLW\"] = Array(\"iso2\" => \"PW\", \"name\" => \"Palau, Republic of\");\n\t\t$country[\"PSE\"] = Array(\"iso2\" => \"PS\", \"name\" => \"Palestinian Territory, Occupie\");\n\t\t$country[\"PAN\"] = Array(\"iso2\" => \"PA\", \"name\" => \"Panama, Republic of\");\n\t\t$country[\"PNG\"] = Array(\"iso2\" => \"PG\", \"name\" => \"Papua New Guinea, Independent \");\n\t\t$country[\"PRY\"] = Array(\"iso2\" => \"PY\", \"name\" => \"Paraguay, Republic of\");\n\t\t$country[\"PER\"] = Array(\"iso2\" => \"PE\", \"name\" => \"Peru, Republic of\");\n\t\t$country[\"PHL\"] = Array(\"iso2\" => \"PH\", \"name\" => \"Philippines, Republic of the\");\n\t\t$country[\"PCN\"] = Array(\"iso2\" => \"PN\", \"name\" => \"Pitcairn Islands\");\n\t\t$country[\"POL\"] = Array(\"iso2\" => \"PL\", \"name\" => \"Poland, Republic of\");\n\t\t$country[\"PRT\"] = Array(\"iso2\" => \"PT\", \"name\" => \"Portugal, Portuguese Republic\");\n\t\t$country[\"PRI\"] = Array(\"iso2\" => \"PR\", \"name\" => \"Puerto Rico, Commonwealth of\");\n\t\t$country[\"QAT\"] = Array(\"iso2\" => \"QA\", \"name\" => \"Qatar, State of\");\n\t\t$country[\"REU\"] = Array(\"iso2\" => \"RE\", \"name\" => \"Reunion\");\n\t\t$country[\"ROU\"] = Array(\"iso2\" => \"RO\", \"name\" => \"Romania\");\n\t\t$country[\"RUS\"] = Array(\"iso2\" => \"RU\", \"name\" => \"Russian Federation\");\n\t\t$country[\"RWA\"] = Array(\"iso2\" => \"RW\", \"name\" => \"Rwanda, Republic of\");\n\t\t$country[\"BLM\"] = Array(\"iso2\" => \"BL\", \"name\" => \"Saint Barthelemy\");\n\t\t$country[\"SHN\"] = Array(\"iso2\" => \"SH\", \"name\" => \"Saint Helena\");\n\t\t$country[\"KNA\"] = Array(\"iso2\" => \"KN\", \"name\" => \"Saint Kitts and Nevis, Federat\");\n\t\t$country[\"LCA\"] = Array(\"iso2\" => \"LC\", \"name\" => \"Saint Lucia\");\n\t\t$country[\"MAF\"] = Array(\"iso2\" => \"MF\", \"name\" => \"Saint Martin\");\n\t\t$country[\"SPM\"] = Array(\"iso2\" => \"PM\", \"name\" => \"Saint Pierre and Miquelon\");\n\t\t$country[\"VCT\"] = Array(\"iso2\" => \"VC\", \"name\" => \"Saint Vincent and the Grenadin\");\n\t\t$country[\"WSM\"] = Array(\"iso2\" => \"WS\", \"name\" => \"Samoa, Independent State of\");\n\t\t$country[\"SMR\"] = Array(\"iso2\" => \"SM\", \"name\" => \"San Marino, Republic of\");\n\t\t$country[\"STP\"] = Array(\"iso2\" => \"ST\", \"name\" => \"Sao Tome and Principe, Democra\");\n\t\t$country[\"SAU\"] = Array(\"iso2\" => \"SA\", \"name\" => \"Saudi Arabia, Kingdom of\");\n\t\t$country[\"SEN\"] = Array(\"iso2\" => \"SN\", \"name\" => \"Senegal, Republic of\");\n\t\t$country[\"SRB\"] = Array(\"iso2\" => \"RS\", \"name\" => \"Serbia, Republic of\");\n\t\t$country[\"SYC\"] = Array(\"iso2\" => \"SC\", \"name\" => \"Seychelles, Republic of\");\n\t\t$country[\"SLE\"] = Array(\"iso2\" => \"SL\", \"name\" => \"Sierra Leone, Republic of\");\n\t\t$country[\"SGP\"] = Array(\"iso2\" => \"SG\", \"name\" => \"Singapore, Republic of\");\n\t\t$country[\"SVK\"] = Array(\"iso2\" => \"SK\", \"name\" => \"Slovakia (Slovak Republic)\");\n\t\t$country[\"SVN\"] = Array(\"iso2\" => \"SI\", \"name\" => \"Slovenia, Republic of\");\n\t\t$country[\"SLB\"] = Array(\"iso2\" => \"SB\", \"name\" => \"Solomon Islands\");\n\t\t$country[\"SOM\"] = Array(\"iso2\" => \"SO\", \"name\" => \"Somalia, Somali Republic\");\n\t\t$country[\"ZAF\"] = Array(\"iso2\" => \"ZA\", \"name\" => \"South Africa, Republic of\");\n\t\t$country[\"SGS\"] = Array(\"iso2\" => \"GS\", \"name\" => \"South Georgia and the South Sa\");\n\t\t$country[\"ESP\"] = Array(\"iso2\" => \"ES\", \"name\" => \"Spain, Kingdom of\");\n\t\t$country[\"LKA\"] = Array(\"iso2\" => \"LK\", \"name\" => \"Sri Lanka, Democratic Socialis\");\n\t\t$country[\"SDN\"] = Array(\"iso2\" => \"SD\", \"name\" => \"Sudan, Republic of\");\n\t\t$country[\"SUR\"] = Array(\"iso2\" => \"SR\", \"name\" => \"Suriname, Republic of\");\n\t\t$country[\"SJM\"] = Array(\"iso2\" => \"SJ\", \"name\" => \"Svalbard & Jan Mayen Islands\");\n\t\t$country[\"SWZ\"] = Array(\"iso2\" => \"SZ\", \"name\" => \"Swaziland, Kingdom of\");\n\t\t$country[\"SWE\"] = Array(\"iso2\" => \"SE\", \"name\" => \"Sweden, Kingdom of\");\n\t\t$country[\"CHE\"] = Array(\"iso2\" => \"CH\", \"name\" => \"Switzerland, Swiss Confederati\");\n\t\t$country[\"SYR\"] = Array(\"iso2\" => \"SY\", \"name\" => \"Syrian Arab Republic\");\n\t\t$country[\"TWN\"] = Array(\"iso2\" => \"TW\", \"name\" => \"Taiwan\");\n\t\t$country[\"TJK\"] = Array(\"iso2\" => \"TJ\", \"name\" => \"Tajikistan, Republic of\");\n\t\t$country[\"TZA\"] = Array(\"iso2\" => \"TZ\", \"name\" => \"Tanzania, United Republic of\");\n\t\t$country[\"THA\"] = Array(\"iso2\" => \"TH\", \"name\" => \"Thailand, Kingdom of\");\n\t\t$country[\"TLS\"] = Array(\"iso2\" => \"TL\", \"name\" => \"Timor-Leste, Democratic Republ\");\n\t\t$country[\"TGO\"] = Array(\"iso2\" => \"TG\", \"name\" => \"Togo, Togolese Republic\");\n\t\t$country[\"TKL\"] = Array(\"iso2\" => \"TK\", \"name\" => \"Tokelau\");\n\t\t$country[\"TON\"] = Array(\"iso2\" => \"TO\", \"name\" => \"Tonga, Kingdom of\");\n\t\t$country[\"TTO\"] = Array(\"iso2\" => \"TT\", \"name\" => \"Trinidad and Tobago, Republic \");\n\t\t$country[\"TUN\"] = Array(\"iso2\" => \"TN\", \"name\" => \"Tunisia, Tunisian Republic\");\n\t\t$country[\"TUR\"] = Array(\"iso2\" => \"TR\", \"name\" => \"Turkey, Republic of\");\n\t\t$country[\"TKM\"] = Array(\"iso2\" => \"TM\", \"name\" => \"Turkmenistan\");\n\t\t$country[\"TCA\"] = Array(\"iso2\" => \"TC\", \"name\" => \"Turks and Caicos Islands\");\n\t\t$country[\"TUV\"] = Array(\"iso2\" => \"TV\", \"name\" => \"Tuvalu\");\n\t\t$country[\"UGA\"] = Array(\"iso2\" => \"UG\", \"name\" => \"Uganda, Republic of\");\n\t\t$country[\"UKR\"] = Array(\"iso2\" => \"UA\", \"name\" => \"Ukraine\");\n\t\t$country[\"ARE\"] = Array(\"iso2\" => \"AE\", \"name\" => \"United Arab Emirates\");\n\t\t$country[\"GBR\"] = Array(\"iso2\" => \"GB\", \"name\" => \"United Kingdom of Great Britain\");\n\t\t$country[\"USA\"] = Array(\"iso2\" => \"US\", \"name\" => \"United States of America\");\n\t\t$country[\"UMI\"] = Array(\"iso2\" => \"UM\", \"name\" => \"United States Minor Outlying I\");\n\t\t$country[\"VIR\"] = Array(\"iso2\" => \"VI\", \"name\" => \"United States Virgin Islands\");\n\t\t$country[\"URY\"] = Array(\"iso2\" => \"UY\", \"name\" => \"Uruguay, Eastern Republic of\");\n\t\t$country[\"UZB\"] = Array(\"iso2\" => \"UZ\", \"name\" => \"Uzbekistan, Republic of\");\n\t\t$country[\"VUT\"] = Array(\"iso2\" => \"VU\", \"name\" => \"Vanuatu, Republic of\");\n\t\t$country[\"VEN\"] = Array(\"iso2\" => \"VE\", \"name\" => \"Venezuela, Bolivarian Republic\");\n\t\t$country[\"VNM\"] = Array(\"iso2\" => \"VN\", \"name\" => \"Vietnam, Socialist Republic of\");\n\t\t$country[\"WLF\"] = Array(\"iso2\" => \"WF\", \"name\" => \"Wallis and Futuna\");\n\t\t$country[\"ESH\"] = Array(\"iso2\" => \"EH\", \"name\" => \"Western Sahara\");\n\t\t$country[\"YEM\"] = Array(\"iso2\" => \"YE\", \"name\" => \"Yemen\");\n\t\t$country[\"ZMB\"] = Array(\"iso2\" => \"ZM\", \"name\" => \"Zambia, Republic of\");\n\t\t$country[\"ZWE\"] = Array(\"iso2\" => \"ZW\", \"name\" => \"Zimbabwe, Republic of\");\n\t\t$country[\"0\"] = Array(\"iso2\" => \"0\", \"name\" => \"NO VALID COUNTRY\");\n\n\t\treturn $country;\n\t}", "private function addUsStates(CountryInterface $country)\r\n {\r\n $states = array(\r\n 'AL' => 'Alabama',\r\n 'AK' => 'Alaska',\r\n 'AZ' => 'Arizona',\r\n 'AR' => 'Arkansas',\r\n 'CA' => 'California',\r\n 'CO' => 'Colorado',\r\n 'CT' => 'Connecticut',\r\n 'DE' => 'Delaware',\r\n 'DC' => 'District Of Columbia',\r\n 'FL' => 'Florida',\r\n 'GA' => 'Georgia',\r\n 'HI' => 'Hawaii',\r\n 'ID' => 'Idaho',\r\n 'IL' => 'Illinois',\r\n 'IN' => 'Indiana',\r\n 'IA' => 'Iowa',\r\n 'KS' => 'Kansas',\r\n 'KY' => 'Kentucky',\r\n 'LA' => 'Louisiana',\r\n 'ME' => 'Maine',\r\n 'MD' => 'Maryland',\r\n 'MA' => 'Massachusetts',\r\n 'MI' => 'Michigan',\r\n 'MN' => 'Minnesota',\r\n 'MS' => 'Mississippi',\r\n 'MO' => 'Missouri',\r\n 'MT' => 'Montana',\r\n 'NE' => 'Nebraska',\r\n 'NV' => 'Nevada',\r\n 'NH' => 'New Hampshire',\r\n 'NJ' => 'New Jersey',\r\n 'NM' => 'New Mexico',\r\n 'NY' => 'New York',\r\n 'NC' => 'North Carolina',\r\n 'ND' => 'North Dakota',\r\n 'OH' => 'Ohio',\r\n 'OK' => 'Oklahoma',\r\n 'OR' => 'Oregon',\r\n 'PA' => 'Pennsylvania',\r\n 'RI' => 'Rhode Island',\r\n 'SC' => 'South Carolina',\r\n 'SD' => 'South Dakota',\r\n 'TN' => 'Tennessee',\r\n 'TX' => 'Texas',\r\n 'UT' => 'Utah',\r\n 'VT' => 'Vermont',\r\n 'VA' => 'Virginia',\r\n 'WA' => 'Washington',\r\n 'WV' => 'West Virginia',\r\n 'WI' => 'Wisconsin',\r\n 'WY' => 'Wyoming'\r\n );\r\n\r\n $this->addProvinces($country, $states); \r\n }", "function countryList()\n {\n $arrClms = array(\n 'country_id',\n 'name',\n );\n $varOrderBy = 'name ASC ';\n $arrRes = $this->select(TABLE_COUNTRY, $arrClms);\n //pre($arrRes);\n return $arrRes;\n }", "public function getStateList($state='') {\n\t\t$states = array(\"AL\", \"AK\", \"AZ\", \"AR\", \"CA\", \"CO\", \"CT\", \"DC\", \"DE\", \"FL\", \"GA\", \"HI\", \"ID\", \"IL\", \"IN\", \"IA\", \"KS\", \"KY\", \"LA\", \"ME\", \"MD\", \"MA\", \"MI\", \"MN\", \"MS\", \"MO\", \"MT\", \"NE\", \"NV\", \"NH\", \"NJ\", \"NM\", \"NY\", \"NC\", \"ND\", \"OH\", \"OK\", \"OR\", \"PA\", \"RI\", \"SC\", \"SD\", \"TN\", \"TX\", \"UT\", \"VT\", \"VA\", \"WA\", \"WV\", \"WI\", \"WY\");\n\t\t\n\t\t$options = '';\n\t\tforeach ($states as $eachState) {\n\t\t\t$selected = ($state == $eachState) ? ' selected=\"selected\"' : '';\n\t\t\t\n\t\t\t$options .= '<option value=\"'. $eachState .'\"'. $selected .'>'. $eachState .\"</option>\\n\";\n\t\t}\n\t\treturn $options;\n\t}", "function GetCountries()\n\t{\n\t\t$result = $this->sendRequest(\"GetCountries\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function getStateList()\n\t{\n\t\t$country_id = $this->input->post('country_id');\n\t\t$state_list = $this->company_details_model->getStateListByCountryId($country_id);\n\n\t\t$html = '';\n\t\tif(count($state_list) > 0)\n\t\t{\n\t\t\tforeach ($state_list as $s_list) \n\t\t\t{\n\t\t\t\t$html .= '<option value=\"'.$s_list->state_id.'\">'.$s_list->state_name.'</option>';\n\t\t\t}\n\t\t\t\n\t\t\techo $html; \n\t\t}\n\t\telse\n\t\t{\n\t\t\techo $html;\n\t\t}\n\t}", "public function getStateAction()\n {\n\n $country_id = $this->getRequest()->getPost('country_id');\n\n $token = $this->getRequest()->getPost('token');\n\n if($this->tokenval() != $token)\n {\n $response['msg'] = 'You are not authorized to access this';\n $response['status'] = '1';\n echo json_encode($response);\n exit;\n }\n\n //$states = Mage::getModel('directory/country')->load($country_id)->getRegions();\n\n $connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');\n\n $select = $connectionRead->select()\n ->from('citylist', array('*'))\n ->where('country_code=?',$country_id)\n ->group('region_name');\n\n $states = $connectionRead->fetchAll($select);\n\n //state names\n $response = array();\n\n $i=0;\n foreach ($states as $state) {\n $response[$i]['id'] = $state['id_citylist'];\n $response[$i]['country_code'] = $state['country_code'];\n $response[$i]['name'] = $state['region_name'];\n $i++;\n }\n\n echo json_encode($response);\n exit;\n }", "public function state_list(){\n $country_id = $_REQUEST['country_id'];\n $state_list = $this->User_Model->get_list_by_id2('state_id, country_id, state_name','country_id',$country_id,'state');\n if($state_list){\n $response[\"status\"] = TRUE;\n $response[\"state_list\"] = $state_list;\n } else {\n $response[\"status\"] = FALSE;\n $response[\"state_list\"] = $state_list;\n }\n\n $json_response = json_encode($response,JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);\n echo str_replace('\\\\/','/',$json_response);\n }", "public function getCountryList()\n {\n $countryList=array(\n 'BG'=>__('Bulgaria')\n 'DE'=>__('Germany'),\n 'GB'=>__('Great Britain'),\n );\n\n return $countryList;\n }", "public function country_list()\n {\n $result = common_select_values('id, name', 'ad_countries', '', 'result');\n return $result; \n }", "public function getCountryList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('country');\r\n\t\t$this->db->where('country_status', '1');\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function getCountryList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('country');\n\t\t$this->db->where('country_status', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "public function getStates($countryIdent = NULL) {\n\t\treturn $this->getSubDivisions($countryIdent);\n\t}", "public function countryList(){\n $sorted = $this->country->select('id','country_name')->get()->sortBy('country_name');\n return $sorted->values()->all();\n }", "public function getStates($id)\n {\n $result = $this->country->with(['states'])->find($id); \n $stateList = '<option value=\"\">Select State</option>';\n if(!empty($result->states)){\n foreach($result->states as $state){\n $stateList .= '<option value=\"'.$state->id.'\">'.$state->state_name.'</option>';\n }\n }\n return $stateList;\n //return response()->json($result);\n //echo \"<pre>\"; print_r($result->states); die;\n //return view('destination.index', ['data' => $result]);\n }", "public function getCountries() {\n\n $result = $this->doRequest('v1.0/all-countries', 'GET');\n\n return $result;\n\n }", "public static function getCountries()\n {\n return self::$countryList;\n }", "public function getCountriesList() {\n return $this->_get(7);\n }", "function countryList() {\n $country_array = array(\"Afghanistan\", \"Aland Islands\", \"Albania\", \"Algeria\", \"American Samoa\", \"Andorra\", \"Angola\", \"Anguilla\", \"Antarctica\", \"Antigua\", \"Argentina\", \"Armenia\", \"Aruba\", \"Australia\", \"Austria\", \"Azerbaijan\", \"Bahamas\", \"Bahrain\", \"Bangladesh\", \"Barbados\", \"Barbuda\", \"Belarus\", \"Belgium\", \"Belize\", \"Benin\", \"Bermuda\", \"Bhutan\", \"Bolivia\", \"Bosnia\", \"Botswana\", \"Bouvet Island\", \"Brazil\", \"British Indian Ocean Trty.\", \"Brunei Darussalam\", \"Bulgaria\", \"Burkina Faso\", \"Burundi\", \"Caicos Islands\", \"Cambodia\", \"Cameroon\", \"Canada\", \"Cape Verde\", \"Cayman Islands\", \"Central African Republic\", \"Chad\", \"Chile\", \"China\", \"Christmas Island\", \"Cocos (Keeling) Islands\", \"Colombia\", \"Comoros\", \"Congo\", \"Congo, Democratic Republic of the\", \"Cook Islands\", \"Costa Rica\", \"Cote d'Ivoire\", \"Croatia\", \"Cuba\", \"Cyprus\", \"Czech Republic\", \"Denmark\", \"Djibouti\", \"Dominica\", \"Dominican Republic\", \"Ecuador\", \"Egypt\", \"El Salvador\", \"Equatorial Guinea\", \"Eritrea\", \"Estonia\", \"Ethiopia\", \"Falkland Islands (Malvinas)\", \"Faroe Islands\", \"Fiji\", \"Finland\", \"France\", \"French Guiana\", \"French Polynesia\", \"French Southern Territories\", \"Futuna Islands\", \"Gabon\", \"Gambia\", \"Georgia\", \"Germany\", \"Ghana\", \"Gibraltar\", \"Greece\", \"Greenland\", \"Grenada\", \"Guadeloupe\", \"Guam\", \"Guatemala\", \"Guernsey\", \"Guinea\", \"Guinea-Bissau\", \"Guyana\", \"Haiti\", \"Heard\", \"Herzegovina\", \"Holy See\", \"Honduras\", \"Hong Kong\", \"Hungary\", \"Iceland\", \"India\", \"Indonesia\", \"Iran (Islamic Republic of)\", \"Iraq\", \"Ireland\", \"Isle of Man\", \"Israel\", \"Italy\", \"Jamaica\", \"Jan Mayen Islands\", \"Japan\", \"Jersey\", \"Jordan\", \"Kazakhstan\", \"Kenya\", \"Kiribati\", \"Korea\", \"Korea (Democratic)\", \"Kuwait\", \"Kyrgyzstan\", \"Lao\", \"Latvia\", \"Lebanon\", \"Lesotho\", \"Liberia\", \"Libyan Arab Jamahiriya\", \"Liechtenstein\", \"Lithuania\", \"Luxembourg\", \"Macao\", \"Macedonia\", \"Madagascar\", \"Malawi\", \"Malaysia\", \"Maldives\", \"Mali\", \"Malta\", \"Marshall Islands\", \"Martinique\", \"Mauritania\", \"Mauritius\", \"Mayotte\", \"McDonald Islands\", \"Mexico\", \"Micronesia\", \"Miquelon\", \"Moldova\", \"Monaco\", \"Mongolia\", \"Montenegro\", \"Montserrat\", \"Morocco\", \"Mozambique\", \"Myanmar\", \"Namibia\", \"Nauru\", \"Nepal\", \"Netherlands\", \"Netherlands Antilles\", \"Nevis\", \"New Caledonia\", \"New Zealand\", \"Nicaragua\", \"Niger\", \"Nigeria\", \"Niue\", \"Norfolk Island\", \"Northern Mariana Islands\", \"Norway\", \"Oman\", \"Pakistan\", \"Palau\", \"Palestinian Territory, Occupied\", \"Panama\", \"Papua New Guinea\", \"Paraguay\", \"Peru\", \"Philippines\", \"Pitcairn\", \"Poland\", \"Portugal\", \"Principe\", \"Puerto Rico\", \"Qatar\", \"Reunion\", \"Romania\", \"Russian Federation\", \"Rwanda\", \"Saint Barthelemy\", \"Saint Helena\", \"Saint Kitts\", \"Saint Lucia\", \"Saint Martin (French part)\", \"Saint Pierre\", \"Saint Vincent\", \"Samoa\", \"San Marino\", \"Sao Tome\", \"Saudi Arabia\", \"Senegal\", \"Serbia\", \"Seychelles\", \"Sierra Leone\", \"Singapore\", \"Slovakia\", \"Slovenia\", \"Solomon Islands\", \"Somalia\", \"South Africa\", \"South Georgia\", \"South Sandwich Islands\", \"Spain\", \"Sri Lanka\", \"Sudan\", \"Suriname\", \"Svalbard\", \"Swaziland\", \"Sweden\", \"Switzerland\", \"Syrian Arab Republic\", \"Taiwan\", \"Tajikistan\", \"Tanzania\", \"Thailand\", \"The Grenadines\", \"Timor-Leste\", \"Tobago\", \"Togo\", \"Tokelau\", \"Tonga\", \"Trinidad\", \"Tunisia\", \"Turkey\", \"Turkmenistan\", \"Turks Islands\", \"Tuvalu\", \"Uganda\", \"Ukraine\", \"United Arab Emirates\", \"United Kingdom\", \"United States\", \"Uruguay\", \"US Minor Outlying Islands\", \"Uzbekistan\", \"Vanuatu\", \"Vatican City State\", \"Venezuela\", \"Vietnam\", \"Virgin Islands (British)\", \"Virgin Islands (US)\", \"Wallis\", \"Western Sahara\", \"Yemen\", \"Zambia\", \"Zimbabwe\");\n foreach($country_array as $country) {\n echo \"\n <option>\n $country\n </option>\n\n \";\n }\n}", "public function getCountries()\n {\n $uri = '/countries';\n $cacheKey = substr($uri, 1);\n\n $result = $this->cache->get($cacheKey);\n if ($result == null) {\n $result = $this->requestData($uri);\n if (!$result) {\n return false;\n }\n $this->cache->save($cacheKey, $result);\n }\n return $result;\n\n }", "public function listCountries() {\r\n\t\t\t$sql = Connection::getHandle()->prepare(\"SELECT DISTINCT c.countries_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.countries_name,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.countries_iso_code_2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCASE WHEN z.zone_id > 0 THEN 'true' ELSE 'false' END AS zone\r\n\t\t\t\t\t\t\t\t\t\tFROM bs_countries c\r\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN bs_zones z ON (c.countries_iso_code_2 = z.countries_id)\r\n\t\t\t\t\t\t\t\t\t\tGROUP BY c.countries_id\r\n\t\t\t\t\t\t\t\t\t\tORDER BY c.countries_id\");\r\n\t\t\t$sql->execute();\r\n\r\n\t\t\twhile ($row = $sql->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\t$results[] = $row;\r\n\t\t\t}\r\n\r\n\t\t\treturn $results;\r\n\t\t}", "public static function getCountries()\n\t{\n\t\t# MAX ID is 314 atm\n\t\treturn array(\n\t//\t\t'0' => array('Unknown Country', 'eng', '--', '--'),\n\t//\t\t\"666\" => array('Local Area Network', 'eng', '--', '--'),\n\t//\t\t'305' => array('Abkhazia', ''),\n\t//\t\t'306' => array('Akrotiri and Dhekelia', ),\n\t\t\t'100' => array('Afghanistan', 'per:pas', 'as', 'AF', 29121286),\n\t\t\t'301' => array('Aland Islands', 'swe', 'eu', 'AX', 0),\n\t\t\t'69' => array('Albania', 'alb', 'eu', 'AL', 2986952),\n\t\t\t'307' => array('Alderney', 'eng:fre', 'eu', 'GG', 0),\n\t\t\t'79' => array('Algeria', 'ara:ama:fre', 'af', 'DZ', 34586184),\n\t\t\t'101' => array('American Samoa', 'eng:sam', 'au', 'AS', 66432),\n\t\t\t'71' => array('Andorra', 'cat', 'eu', 'AD', 84525),\n\t\t\t'102' => array('Angola', 'por', 'af', 'AO', 13068161),\n\t\t\t'103' => array('Anguilla', 'eng', 'ma', 'AI', 14766),\n\t\t\t'104' => array('Antarctica', 'eng', 'an', 'AQ', 0),\n\t\t\t'105' => array('Antigua And Barbuda', 'eng', 'ma', 'AG', 86754),\n\t\t\t'29' => array('Argentina', 'spa', 'sa', 'AR', 41343201),\n\t\t\t'36' => array('Armenia', 'arm', 'as', 'AM', 2966802),\n\t\t\t'106' => array('Aruba', 'dut', 'ma', 'AW', 104589),\n\t\t\t'308' => array('Ascension Island', 'eng', 'am', 'AC', 0),\n\t\t\t'26' => array('Australia', 'eng', 'au', 'AU', 21515754),\n\t\t\t'22' => array('Austria', 'ger', 'eu', 'AT', 8214160),\n\t\t\t'46' => array('Azerbaijan', 'aze', 'as', 'AZ', 8303512),\n\t\t\t'107' => array('Bahamas', 'eng', 'ma', 'BS', 310426),\n\t\t\t'108' => array('Bahrain', 'ara', 'as', 'BH', 738004),\n\t\t\t'75' => array('Bangladesh', 'ben', 'as', 'BD', 156118464),\n\t\t\t'109' => array('Barbados', 'eng:baj', 'ma', 'BB', 285653),\n\t\t\t'110' => array('Belarus', 'rus:bel', 'eu', 'BY', 9612632),\n\t\t\t'23' => array('Belgium', 'fre:ger:dut', 'eu', 'BE', 10423493),\n\t\t\t'111' => array('Belize', 'eng:spa', 'ma', 'BZ', 314522),\n\t\t\t'112' => array('Benin', 'fre', 'af', 'BJ', 9056010),\n\t\t\t'113' => array('Bermuda', 'eng', 'ma', 'BM', 68265),\n\t\t\t'114' => array('Bhutan', 'dzo', 'as', 'BT', 699847),\n\t\t\t'115' => array('Bolivia', 'spa:que:aym', 'sa', 'BO', 9947418),\n\t\t\t'82' => array('Bosnia Herzegovina', 'bos:ser:cro', 'eu', 'BA', 4621598),\n\t\t\t'116' => array('Botswana', 'eng:set', 'af', 'BW', 2029307),\n\t\t\t'117' => array('Bouvet Island', 'eng', 'sa', 'BV', 0),\n\t\t\t'38' => array('Brazil', 'por', 'sa', 'BR', 201103330),\n\t\t\t'118' => array('British Indian Ocean Territory', 'eng', 'au', 'IO', 0),\n\t\t\t'119' => array('Brunei Darussalam', 'mal:bru', 'as', 'BN', 395027),\n\t\t\t'37' => array('Bulgaria', 'bul', 'eu', 'BG', 7148785),\n\t\t\t'120' => array('Burkina Faso', 'fre:ind', 'af', 'BF', 16241811),\n\t\t\t'121' => array('Burundi', 'kir:fre:swa', 'af', 'BI', 9863117),\n\t\t\t'122' => array('Cambodia', 'khm', 'as', 'KH', 14453680),\n\t\t\t'123' => array('Cameroon', 'fre:eng', 'af', 'CM', 19294149),\n\t\t\t'19' => array('Canada', 'eng:fre', 'na', 'CA', 33759742),\n\t\t\t'124' => array('Cape Verde', 'por', 'af', 'CV', 508659),\n\t\t\t'125' => array('Cayman Islands', 'eng', 'ma', 'KY', 50209),\n\t\t\t'126' => array('Central African Republic', 'fre:san', 'af', 'CF', 4844927),\n\t\t\t'127' => array('Chad', 'fre:ara', 'af', 'TD', 10543464),\n\t\t\t'63' => array('Chile', 'spa', 'sa', 'CL', 16746491),\n\t\t\t'47' => array('China', 'chi', 'as', 'CN', 1330141295),\n\t\t\t'128' => array('Christmas Islands', 'eng', 'au', 'CX', 1402),\n\t\t\t'129' => array('Cocos (Keeling) Islands', 'eng', 'au', 'CC', 596),\n\t\t\t'31' => array('Colombia', 'spa', 'sa', 'CO', 44205293),\n\t\t\t'130' => array('Comoros', 'ara:fre', 'af', 'KM', 773407),\n\t\t\t'131' => array('Congo', 'fre', 'af', 'CG', 4125916),\n\t\t\t'132' => array('Congo, The Democratic Republic Of The', 'fre:swa:lin:kon:tsh', 'af', 'CD', 70916439),\n\t\t\t'133' => array('Cook Islands', 'eng:mao', 'au', 'CK', 11488),\n\t\t\t'83' => array('Costa Rica', 'spa', 'ma', 'CR', 4516220),\n\t\t\t'134' => array('Côte d’Ivoire', 'fre', 'af', 'CI', 0),\n\t\t\t'48' => array('Croatia', 'cro', 'eu', 'HR', 4486881),\n\t\t\t'62' => array('Cuba', 'spa', 'ma', 'CU', 11477459),\n\t\t\t'76' => array('Cyprus', 'gre:tur', 'eu', 'CY', 1102677),\n\t\t\t'20' => array('Czech Republic', 'cze', 'eu', 'CZ', 10201707),\n\t\t\t'21' => array('Denmark', 'dan', 'eu', 'DK', 5515575),\n\t\t\t'135' => array('Djibouti', 'ara:fre:afa:som', 'af', 'DJ', 740528),\n\t\t\t'136' => array('Dominica', 'eng', 'ma', 'DM', 72813),\n\t\t\t'60' => array('Dominican Republic', 'spa', 'ma', 'DO', 9823821),\n\t\t\t'309' => array('East Timor', 'tet:por:inn:eng', 'as', 'TL', 1154625),\n\t\t\t'77' => array('Ecuador', 'spa', 'sa', 'EC', 14790608),\n\t\t\t'14' => array('Egypt', 'ara', 'af', 'EG', 80471869),\n\t\t\t'137' => array('El Salvador', 'spa', 'ma', 'SV', 6052064),\n\t\t\t'138' => array('Equatorial Guinea', 'spa:fre:por:fan:bub:ann', 'af', 'GQ', 650702),\n\t\t\t'139' => array('Eritrea', 'ara:tig', 'af', 'ER', 5792984),\n\t\t\t'140' => array('Estonia', 'est', 'eu', 'EE', 1291170),\n\t\t\t'141' => array('Ethiopia', 'amh', 'af', 'ET', 88013491),\n\t\t\t'142' => array('Falkland Islands (Malvinas)', 'eng', 'sa', 'FK', 3140),\n\t\t\t'143' => array('Faroe Islands', 'far:dan', 'eu', 'FO', 49057),\n\t\t\t'144' => array('Fiji', 'eng:bau:hit', 'au', 'FJ', 875983),\n\t\t\t'15' => array('Finland', 'fin:swe', 'eu', 'FI', 5255068),\n\t\t\t'16' => array('France', 'fre', 'eu', 'FR', 64768389),\n\t\t\t'146' => array('French Guiana', 'fre', 'sa', 'GF', 0),\n\t\t\t'147' => array('French Polynesia', 'fre:tah', 'au', 'PF', 291000),\n\t\t\t'148' => array('French Southern Territories', 'fre', 'an', 'TF', 0),\n\t\t\t'149' => array('Gabon', 'fre', 'af', 'GA', 1545255),\n\t\t\t'150' => array('Gambia', 'eng', 'af', 'GM', 1824158),\n\t\t\t'151' => array('Georgia', 'geo', 'eu', 'GE', 4600825),\n\t\t\t'17' => array('Germany', 'ger', 'eu', 'DE', 82282988),\n\t\t\t'152' => array('Ghana', 'eng', 'af', 'GH', 24339838),\n\t\t\t'153' => array('Gibraltar', 'eng:spa', 'eu', 'GI', 28877),\n\t\t\t'44' => array('Greece', 'gre', 'eu', 'GR', 10749943),\n\t\t\t'154' => array('Greenland', 'grl:dan', 'na', 'GL', 57637),\n\t\t\t'155' => array('Grenada', 'eng', 'ma', 'GD', 107818),\n\t\t\t'156' => array('Guadeloupe', 'fre', 'ma', 'GP', 0),\n\t\t\t'157' => array('Guam', 'eng:cha', 'au', 'GU', 0),\n\t\t\t'18' => array('Guatemala', 'spa', 'ma', 'GT', 13550440),\n\t\t\t'310' => array('Guernsey', 'eng:fre', 'eu', 'GG', 64775),\n\t\t\t'158' => array('Guinea', 'fre:cri', 'af', 'GN', 10324025),\n\t\t\t'159' => array('Guinea-Bissau', 'por:cri', 'af', 'GW', 1565126),\n\t\t\t'160' => array('Guyana', 'eng:hin', 'sa', 'GY', 748486),\n\t\t\t'161' => array('Haiti', 'fre:hai', 'ma', 'HT', 9648924),\n\t//\t\t'162' => array('Heard And McDonald Islands', 'HM),\n\t\t\t'163' => array('Holy See (Vatican City State)', 'ita', 'eu', 'VA', 0),\n\t\t\t'66' => array('Honduras', 'spa', 'ma', 'HN', 7989415),\n\t\t\t'164' => array('Hong Kong', 'chi:eng', 'as', 'HK', 7089705),\n\t\t\t'9' => array('Hungary', 'hun', 'eu', 'HU', 9992339),\n\t\t\t'10' => array('Iceland', 'ice', 'eu', 'IS', 308910),\n\t\t\t'33' => array('India', 'hin:eng', 'as', 'IN', 1173108018),\n\t\t\t'165' => array('Indonesia', 'inn', 'as', 'ID', 242968342),\n\t\t\t'55' => array('Iran', 'per:kur', 'as', 'IR', 76923300),\n\t\t\t'166' => array('Iraq', 'ara:kur', 'as', 'IQ', 29671605),\n\t\t\t'11' => array('Ireland', 'iri:eng', 'eu', 'IE', 4622917),\n\t\t\t'304' => array('Isle of Man', 'max:eng', 'eu', 'IM', 83859),\n\t\t\t'35' => array('Israel', 'heb:ara', 'as', 'IL', 7353985),\n\t\t\t'12' => array('Italy', 'ita', 'eu', 'IT', 58090681),\n\t\t\t'56' => array('Jamaica', 'eng', 'ma', 'JM', 2847232),\n\t\t\t'13' => array('Japan', 'jap', 'as', 'JP', 126804433),\n\t\t\t'303' => array('Jersey', 'eng:fre', 'eu', 'JE', 93363),\n\t\t\t'167' => array('Jordan', 'ara:eng', 'as', 'JO', 6407085),\n\t\t\t'168' => array('Kazakhstan', 'kaz:rus', 'as', 'KZ', 15460484),\n\t\t\t'169' => array('Kenya', 'swa:eng', 'af', 'KE', 40046566),\n\t\t\t'170' => array('Kiribati', 'eng:gil', 'au', 'KI', 99482),\n\t\t\t'171' => array('Korea, Democratic People\\'s Republic Of', 'kor', 'as', 'KP', 22757275),\n\t\t\t'172' => array('Korea, Republic Of', 'kor', 'as', 'KR', 48636068),\n\t\t\t'311' => array('Kosovo', 'alb:ser', 'eu', 'RS', 1815048),\n\t\t\t'173' => array('Kuwait', 'ara', 'as', 'KW', 2789132),\n\t\t\t'174' => array('Kyrgyzstan', 'kyr:rus', 'as', 'KG', 5508626),\n\t\t\t'175' => array('Lao People\\'s Democratic Republic', 'lao', 'as', 'LA', 6368162),\n\t\t\t'28' => array('Latvia', 'lat', 'eu', 'LV', 2217969),\n\t\t\t'40' => array('Lebanon', 'ara:fre:eng:arm', 'as', 'LB', 4125247),\n\t\t\t'176' => array('Lesotho', 'sso:eng', 'af', 'LS', 1919552),\n\t\t\t'177' => array('Liberia', 'eng', 'af', 'LR', 3685076),\n\t\t\t'178' => array('Libya', 'ara', 'af', 'LY', 6461454),\n\t\t\t'179' => array('Liechtenstein', 'ger', 'eu', 'LI', 35002),\n\t\t\t'30' => array('Lithuania', 'lit', 'eu', 'LT', 3545319),\n\t\t\t'53' => array('Luxembourg', 'lux:ger:fre', 'eu', 'LU', 497538),\n\t\t\t'180' => array('Macau', 'chi:por', 'as', 'MO', 567957),\n\t\t\t'64' => array('Macedonia, Republic of', 'mac', 'eu', 'MK', 2072086),\n\t\t\t'181' => array('Madagascar', 'mag:fre:eng', 'af', 'MG', 21281844),\n\t\t\t'182' => array('Malawi', 'eng:chw', 'af', 'MW', 15447500),\n\t\t\t'73' => array('Malaysia', 'mal', 'as', 'MY', 28274729),\n\t\t\t'78' => array('Maldives', 'dhi', 'af', 'MV', 395650),\n\t\t\t'183' => array('Mali', 'fre', 'af', 'ML', 13796354),\n\t\t\t'184' => array('Malta', 'mat:eng', 'eu', 'MT', 406771),\n\t\t\t'185' => array('Marshall Islands', 'mar:eng', 'au', 'MH', 65859),\n\t\t\t'186' => array('Martinique', 'fre', 'ma', 'MQ', 0),\n\t\t\t'187' => array('Mauritania', 'ara:fre', 'af', 'MR', 3205060),\n\t\t\t'188' => array('Mauritius', 'eng:fre', 'af', 'MU', 1294104),\n\t\t\t'189' => array('Mayotte', 'fre', 'af', 'YT', 231139),\n\t\t\t'42' => array('Mexico', 'spa', 'ma', 'MX', 112468855),\n\t\t\t'190' => array('Micronesia, Federated States Of', 'eng', 'au', 'FM', 107154),\n\t\t\t'191' => array('Moldova, Republic Of', 'mol:rus:ukr:gag', 'eu', 'MD', 4317483),\n\t\t\t'192' => array('Monaco', 'fre:moq', 'eu', 'MC', 30586),\n\t\t\t'80' => array('Montenegro', 'mon:ser:bos:alb:cro', 'eu', 'ME', 666730),\n\t\t\t'193' => array('Mongolia', 'mgl', 'as', 'MN', 3086918),\n\t\t\t'194' => array('Montserrat', 'eng', 'ma', 'MS', 5118),\n\t\t\t'74' => array('Morocco', 'ara', 'af', 'MA', 31627428),\n\t\t\t'195' => array('Mozambique', 'por', 'af', 'MZ', 22061451),\n\t\t\t'196' => array('Myanmar', 'bur', 'as', 'MM', 53414374),\n\t\t\t'197' => array('Namibia', 'eng:ger:afr:osh', 'af', 'NA', 2128471),\n\t\t\t'198' => array('Nauru', 'eng:nau', 'au', 'NR', 9267),\n\t\t\t'199' => array('Nepal', 'nep', 'as', 'NP', 28951852),\n\t\t\t'25' => array('Netherlands, The', 'dut', 'eu', 'NL', 16783092),\n\t\t\t'200' => array('Netherlands Antilles', 'dut:eng:pap', 'ma', 'AN', 228693),\n\t\t\t'201' => array('New Caledonia', 'fre', 'au', 'NC', 252352),\n\t\t\t'39' => array('New Zealand', 'mao:eng', 'au', 'NZ', 4252277),\n\t\t\t'202' => array('Nicaragua', 'spa', 'ma', 'NI', 5995928),\n\t\t\t'203' => array('Niger', 'fre', 'af', 'NE', 15878271),\n\t\t\t'204' => array('Nigeria', 'eng', 'af', 'NG', 152217341),\n\t\t\t'205' => array('Niue', 'niu:eng', 'au', 'NU', 1354),\n\t\t\t'206' => array('Norfolk Island', 'eng:nfk', 'au', 'NF', 2155),\n\t\t\t'207' => array('Northern Mariana Islands', 'eng:cha:car', 'au', 'MP', 48317),\n\t\t\t'6' => array('Norway', 'nor', 'eu', 'NO', 4676305),\n\t\t\t'208' => array('Oman', 'ara', 'as', 'OM', 2967717),\n\t\t\t'209' => array('Pakistan', 'urd', 'as', 'PK', 184404791),\n\t\t\t'210' => array('Palau', 'eng:pal', 'au', 'PW', 20879),\n\t\t\t'211' => array('Palestinian Territory, Occupied', 'ara', 'as', 'PS', 0),\n\t//\t\t'57' => array('Palestine', '', ''),\n\t\t\t'45' => array('Panama', 'spa', 'ma', 'PA', 3410676),\n\t\t\t'212' => array('Papua New Guinea', 'eng:tok:hir', 'au', 'PG', 6064515),\n\t\t\t'213' => array('Paraguay', 'spa:gua', 'sa', 'PY', 6375830),\n\t\t\t'67' => array('Peru', 'spa', 'sa', 'PE', 29907003),\n\t\t\t'54' => array('Philippines, The', 'fil:eng', 'as', 'PH', 99900177),\n\t\t\t'214' => array('Pitcairn Islands', 'eng:pit', 'ma', 'PN', 48),\n\t\t\t'7' => array('Poland', 'pol', 'eu', 'PL', 38463689),\n\t\t\t'8' => array('Portugal', 'por', 'eu', 'PT', 10735765),\n\t//\t\t'319' => array('Pridnestrovian Moldavian Republic', '', '', ''),\n\t\t\t'215' => array('Puerto Rico', 'spa:eng', 'ma', 'PR', 3978702),\n\t\t\t'216' => array('Qatar', 'ara', 'as', 'QA', 840926),\n\t\t\t'217' => array('Reunion', 'fre', 'eu', 'RE', 0),\n\t\t\t'27' => array('Romania', 'rom', 'eu', 'RO', 21959278),\n\t\t\t'32' => array('Russian Federation', 'rus', 'as', 'RU', 139390205),\n\t\t\t'218' => array('Rwanda', 'kin:fre:eng', 'af', 'RW', 11055976),\n\t\t\t'219' => array('Saint Kitts And Nevis', 'eng', 'ma', 'KN', 49898),\n\t\t\t'220' => array('Saint Lucia', 'eng:ant', 'ma', 'LC', 160922),\n\t\t\t'221' => array('Saint Vincent And The Grenadines', 'eng', 'ma', 'VC', 104217),\n\t\t\t'222' => array('Samoa', 'eng:sam', 'ma', 'WS', 192001),\n\t\t\t'223' => array('San Marino', 'ita', 'eu', 'SM', 31477),\n\t\t\t'224' => array('Sao Tome And Principe', 'por', 'af', 'ST', 175808),\n\t\t\t'59' => array('Saudi Arabia', 'ara', 'as', 'SA', 25731776),\n\t\t\t'225' => array('Senegal', 'fre:wol', 'af', 'SN', 12323252),\n\t\t\t'81' => array('Serbia', 'ser:hun:slo:rom:cro:alb', 'eu', 'RS', 7344847),\n\t\t\t#'312' => array('Serbia and Montenegro', 'ser', 'eu', 'CS', 0),\n\t\t\t'226' => array('Seychelles', 'eng:fre', 'af', 'SC', 88340),\n\t\t\t'227' => array('Sierra Leone', 'eng', 'af', 'SL', 5245695),\n\t\t\t'52' => array('Singapore', 'eng:mal:man:tam', 'as', 'SG', 4701069),\n\t\t\t'4' => array('Slovakia', 'slo', 'eu', 'SK', 5470306),\n\t\t\t'41' => array('Slovenia', 'slv', 'eu', 'SI', 2003136),\n\t\t\t'228' => array('Solomon Islands', 'eng', 'au', 'SB', 559198),\n\t\t\t'229' => array('Somalia', 'som:eng:ita:ara', 'af', 'SO', 10112453),\n\t\t\t'3' => array('South Africa', 'afr:zul:xho:nso:tsw:sot:tso', 'af', 'ZA', 49109107),\n\t\t\t'313' => array('South Georgia and the South Sandwich Islands', 'eng', 'sa', 'GS', 0),\n\t//\t\t'317' => array('South Ossetia, Republic of', '', '', ''),\n\t\t\t'233' => array('South Sudan', 'ara:eng', 'af', 'SS', 0),\n\t\t\t'5' => array('Spain', 'spa', 'eu', 'ES', 46505963),\n\t\t\t'230' => array('Sri Lanka', 'sin:tam', 'as', 'LK', 21513990),\n\t\t\t'231' => array('St. Helena', 'eng', 'ma', 'sa', 7670),\n\t\t\t'232' => array('St. Pierre And Miquelon', 'fre', 'na', 'pm', 0),\n\t\t\t'233' => array('Sudan', 'ara:eng', 'af', 'SD', 43939598),\n\t\t\t'235' => array('Suriname', 'dut:sra', 'af', 'SR', 486618),\n\t//\t\t'236' => array('Svalbard And Jan Mayen Islands'), 2 COUNTRIES\n\t\t\t'237' => array('Swaziland', 'eng:swt', 'af', 'SZ', 1354051),\n\t\t\t'24' => array('Sweden', 'swe', 'eu', 'SE', 9074055),\n\t\t\t'43' => array('Switzerland', 'ger:fre:ita:rom', 'eu', 'CH', 7623438),\n\t\t\t'240' => array('Syrian Arab Republic', 'syr', 'as', 'SY', 22198110),\n\t\t\t'300' => array('Taiwan', 'tai:chi', 'as', 'TW', 23024956),\n\t\t\t'241' => array('Tajikistan', 'taj', 'as', 'TJ', 7487489),\n\t\t\t'242' => array('Tanzania, United Republic Of', 'swa:eng', 'af', 'TZ', 0),\n\t\t\t'65' => array('Thailand', 'tha', 'as', 'TH', 67089500),\n\t\t\t'243' => array('Timor-Leste', 'tet:por', 'au', 'tl', 0),\n\t\t\t'244' => array('Togo', 'fre', 'af', 'TG', 6587239),\n\t\t\t'245' => array('Tokelau', 'tol:eng', 'au', 'TK', 1400),\n\t\t\t'246' => array('Tonga', 'ton:eng', 'au', 'TO', 122580),\n\t\t\t'34' => array('Trinidad & Tobago', 'eng:spa', 'ma', 'TT', 1228691),\n\t\t\t'320' => array('Tristan da Cunha', 'eng', 'af', 'SH', 0),\n\t\t\t'70' => array('Tunisia', 'ara', 'af', 'TN', 10589025),\n\t\t\t'61' => array('Turkey', 'tur', 'as', 'TR', 77804122),\n\t\t\t'247' => array('Turkmenistan', 'tkm:rus:uzb:dar', 'as', 'TM', 4940916),\n\t\t\t'248' => array('Turks And Caicos Islands', 'eng', 'ma', 'TC', 23528),\n\t\t\t'249' => array('Tuvalu', 'tuv', 'au', 'TV', 10472),\n\t\t\t'250' => array('Uganda', 'eng:swa', 'af', 'UG', 33398682),\n\t\t\t'58' => array('Ukraine', 'ukr', 'eu', 'UA', 45415596),\n\t\t\t'251' => array('United Arab Emirates', 'ara', 'as', 'AE', 4975593),\n\t\t\t'2' => array('United Kingdom', 'eng', 'eu', 'GB', 62348447),\n\t\t\t'1' => array('United States', 'eng', 'na', 'US', 310232863),\n\t\t\t'252' => array('United States Minor Outlying Islands', 'eng', 'ma', 'UM', 0),\n\t\t\t'68' => array('Uruguay', 'spa', 'sa', 'UY', 3510386),\n\t\t\t'253' => array('Uzbekistan', 'uzb', 'as', 'UZ', 27865738),\n\t\t\t'254' => array('Vanuatu', 'bis:eng:fre', 'au', 'VU', 221552),\n\t\t\t'49' => array('Venezuela', 'spa', 'sa', 'VE', 27223228),\n\t\t\t'50' => array('Vietnam', 'vie', 'as', 'VN', 89571130),\n\t\t\t'255' => array('Virgin Islands (British)', 'eng', 'ma', 'VG', 24939),\n\t\t\t'256' => array('Virgin Islands (U.S.)', 'eng', 'ma', 'VI', 109750),\n\t\t\t'257' => array('Wallis And Futuna Islands', 'fre:uve:fut', 'au', 'WF', 0),\n\t\t\t'258' => array('Western Sahara', 'ara:spa', 'af', 'eh', 491519),\n\t\t\t'259' => array('Yemen', 'ara', 'as', 'YE', 23495361),\n\t\t\t'260' => array('Zambia', 'eng', 'af', 'ZM', 13460305),\n\t\t\t'270' => array('Zimbabwe', 'eng:sho:sid', 'af', 'ZW', 11651858),\n\t\t);\t\n\t}", "public function getCountryStateList($countCode) \n {\n $this->db->select('sm_state_code, sm_state_desc, sm_country_code');\n $this->db->from('ims_hris.state_main');\n\t\t$this->db->where('sm_country_code', $countCode);\n $this->db->order_by('sm_state_code');\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }", "public function list_states($state_abbr) {\n\t\t$sql = \"SELECT `state`,`state_abbr` FROM `state` ORDER BY `state` ASC\";\n $result = $this->new_mysql($sql);\n while ($row = $result->fetch_assoc()) {\n\t\t\tif ($row['state_abbr'] == $state_abbr) {\n\t\t\t\t$option .= \"<option selected value=\\\"$row[state_abbr]\\\">$row[state]</option>\";\n\t\t\t} else {\n\t\t\t\t$option .= \"<option value=\\\"$row[state_abbr]\\\">$row[state]</option>\";\n\t\t\t}\n\t\t}\n\t\treturn($option);\n\t}", "public static function us_states(): array\n\t{\n\t\treturn ArrayLists::us_states();\n\t}", "public function action_getlist_state() {\n $package = Model::factory('package');\n $output = '';\n $country_id = arr::get($_REQUEST, 'country_id');\n $state_id = arr::get($_REQUEST, 'state_id');\n\n $getmodel_details = $package->getstate_details($country_id);\n\n if (isset($country_id)) {\n\n $count = count($getmodel_details);\n if ($count > 0) {\n\n /* $output .='<select name=\"state\" id=\"state\" onchange=change_city_drop(\"\",\"\",\"\") class=\"form_control required\" title=\"'.__('select_the_state').'\">\n <option value=\"\">--Select--</option>'; */\n\n $output .= '<label>State</label><select class=\"form_control\" name=\"state\" id=\"state\" onchange=\"change_city_drop();\"><option>Select state</option>';\n\n foreach ($getmodel_details as $modellist) {\n $output .= '<option value=\"' . $modellist[\"state_id\"] . '\"';\n if ($state_id == $modellist[\"state_id\"]) {\n $output .= 'selected=selected';\n }\n $output .= '>' . $modellist[\"state_name\"] . '</option>';\n }\n\n $output .= '</select>';\n } else {\n $output .= '<label>State</label><select class=\"form_control\" name=\"state\" id=\"state\" onchange=\"change_city_drop();\"><option>Select state</option>';\n }\n }\n echo $output;\n exit;\n }", "public function get_countries()\n\t{\n\t\t$t_countries = xtc_get_countriesList();\n\t\treturn $t_countries;\n\t}", "public static function getStates() {\n $db = Zend_Registry::get('dbAdapterReadOnly');\n $select = $db->select()\n ->from(array('ps' => 'printer_states'))\n ->order('ps.id');\n\n return $db->fetchAll($select);\n }", "public function getStates() {\n return $this->createQuery()\n ->select(\"DISTINCT c.state\")\n ->from(\"Companies_Model_Company c\")\n ->whereIn(\"c.status\", Companies_Model_Company::getActiveStatuses())\n ->andWhere(\"c.local_business\")\n ->orderBy(\"c.state ASC\")\n ->execute(array(), Doctrine_Core::HYDRATE_SCALAR);\n }", "function getCountryList($options = array()) {\n\t\t$local_country_data = array();\n\t\t$where = array();\n\n\t\t# possible options of filtering\n\t\tif (!empty($options['country_id']))\n\t\t$where[] = \"id = \".$options['country_id'];\n\n\t\t# build SQL request\n\t\t$_sql = \"SELECT `id`, `iso2`, `iso3`, `name`\n\t\t\t\tFROM `%s` %s ORDER BY `name` ASC\";\n\t\t$sql = sprintf($_sql,\n\t\t$this->country_table,\n\t\t!empty($where) ? \"WHERE \".implode(\" AND \", $where) : \"\"\n\t\t);\n\t\t$result = mysql_query($sql);\n\n\t\twhile ($_city = mysql_fetch_assoc($result)) {\n\t\t\t$this->country_data[$_city['id']] = array (\n\t\t\t'id'\t=> $_city['id'],\n\t\t\t'iso2'\t=> $_city['iso2'],\n\t\t\t'iso3'\t=> $_city['iso3'],\n\t\t\t'name'\t=> $_city['name'],\n\t\t\t);\n\t\t\t$local_country_data[] = $this->country_data[$_city['id']];\n\t\t}\n\n\t\treturn $local_country_data;\n\t}", "public static function get_all_states()\n {\n $query = new Query;\n return $query->select(['core_states.*','core_zones.zone_name'])->from('core_states')\n ->innerJoin('core_zones','core_states.zone_id = core_zones.zone_id')\n ->orderBy(['core_states.state_name' => SORT_ASC])->All();\n }", "function select_states($country_id = '', $value = '') \n {\n $locale_model = model('App\\Models\\LocaleModel', false);\n $locale = $locale_model->fetch_states(['country_id' => $country_id]); \n\n $options = '';\n \n foreach($locale AS $state) \n {\n if(mb_strtolower($value) == mb_strtolower($state['name'])) \n {\n $selected = ' selected=\"selected\"';\n } \n else \n {\n $selected = '';\n }\n\n $options .= '\n <option value=\"'.$state['name'].'\" id=\"'.$state['id'].'\"'.$selected.'>\n '.$state['name'].\n '</option>';\n }\n return $options; \n }", "public function getAllCountries() {\n return $this->_countries->pluck ( 'name', 'code','id','flag');\n }", "function tep_get_countries_with_iso_codes($countries_id) {\n\treturn tep_get_countries($countries_id, true);\n}", "public function state_options()\n\t{\n\t\t$states = ee()->db\n\t\t\t\t->where('country_id', 233)\n\t\t\t\t->get('store_states');\n\n\t\t$output = '<option value=\"\">--Select State--</option>' . \"\\n\";\n\n\t\tforeach($states->result() as $state)\n\t\t{\n\t\t\tif($state->code == ee()->TMPL->fetch_param('state_code'))\n\t\t\t{\n\t\t\t\t$selected = ' selected=\"selected\"';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$selected = '';\n\t\t\t}\n\n\t\t\t$output .= '<option value=\"' . $state->code . '\"' . $selected . ' >' . $state->name . '</option>' . \"\\n\";\n\n\t\t}\t\t\n\n\t\treturn $output;\n\t}", "public function getListCountry()\n\t{\n\t\t$params = [\n\t\t\t'verify' => false,\n\t\t\t'query' => [\n\t\t\t\t'output' => Config::get( 'response.format' )\n\t\t\t]\n\t\t];\n\n\t\t$baseUrl = sprintf( Config::get( 'endpoints.base_url' ), Config::get( 'settings.api' ) ) . Config::get( 'endpoints.general_list_country' );\n\n\t\ttry {\n\t\t\t$response = parent::send( 'GET', $baseUrl, $params );\n\t\t} catch (TiketException $e) {\n\t\t\tthrow parent::convertException( $e );\n\t\t}\n\n\t\treturn $response;\n\t}", "function tep_get_country_zones($country_id) {\n $zones_array = array();\n\n $Qzones = Registry::get('Db')->get('zones', [\n 'zone_id',\n 'zone_name'\n ], [\n 'zone_country_id' => (int)$country_id\n ], 'zone_name');\n\n while ($Qzones->fetch()) {\n $zones_array[] = [\n 'id' => $Qzones->valueInt('zone_id'),\n 'text' => $Qzones->value('zone_name')\n ];\n }\n\n return $zones_array;\n }", "public static function countries(): array\n\t{\n\t\treturn ArrayLists::countries();\n\t}", "public function country_details() {\n $options = [\n 'projection' => [\n '_id' => 1,\n 'country_name' => 1,\n 'iso_country_code' => 1,\n 'telephone_code' => 1,\n 'currency_code' => 1,\n 'currency_symbol' => 1\n ],\n 'sort' => [\n 'country_name' => 1\n ]\n ];\n $res = $this->mongo_db->find(MDB_CSC, ['country_status' => 'A'], $options);\n\n return (!empty($res)) ? $res : array();\n }", "public function countryOptionList();", "public function rules_country_with_states($request_arr = array())\n {\n $valid_arr = array();\n $valid_res = $this->wsresponse->validateInputParams($valid_arr, $request_arr, \"country_with_states\");\n\n return $valid_res;\n }", "public function getCountryList() {\n $result = array();\n $collection = Mage::getModel('directory/country')->getCollection();\n foreach ($collection as $country) {\n $cid = $country->getId();\n $cname = $country->getName();\n $result[$cid] = $cname;\n }\n return $result;\n }", "public function getRegions($countryId = NULL) {\n if (isset($countryId) && $countryId != '') {\n $html = '<option value=\"\">--Select State--</option> ';\n\n $countryData = $this->get_single_row_by_id(TBL_COUNTRIES, 'id', $countryId, 'array');\n\n $this->db->select('id, country_id, region, code'); \n $this->db->where('country_id', $countryData['id']);\n $result = $this->db->get(TBL_REGIONS);\n if ($result->num_rows() > 0 )\n $data = $result->result_array();\n \n if (is_array($data) && !empty($data)) {\n foreach ($data as $states) {\n if ($countryData['country_name'] != $states['region'])\n $html .= '<option value=\"' . $states['id'] . '\">' . $states['region'] . '</option>';\n }\n } else {\n $html = '';\n $html .= '<option value=\"\">No States Available</option>';\n }\n return $html;\n } else {\n $this->db->select('id, country_id, region, code'); \n $result = $this->db->get(TBL_REGIONS);\n if ($result->num_rows() > 0 )\n return $result->result_array();\n else\n return FALSE;\n }\n }", "public static function getISOCountryList()\r\n\t{\r\n\t\t$iclISOCountryList = new PYS_ISOCountryList();\r\n\t\t\r\n\t\t$iclISOCountryList->add(826,\"United Kingdom\",\"GBR\",3);\r\n\t\t$iclISOCountryList->add(840,\"United States\",\"USA\",2);\r\n\t\t$iclISOCountryList->add(36,\"Australia\",\"AUS\",1);\r\n\t\t$iclISOCountryList->add(124,\"Canada\",\"CAN\",1);\r\n\t\t$iclISOCountryList->add(250,\"France\",\"FRA\",1);\r\n\t\t$iclISOCountryList->add(276,\"Germany\",\"DEU\",1);\r\n\t\t$iclISOCountryList->add(4,\"Afghanistan\",\"AFG\",0);\r\n\t\t$iclISOCountryList->add(248,\"Åland Islands\",\"ALA\",0);\t\r\n\t\t$iclISOCountryList->add(8,\"Albania\",\"ALB\",0);\r\n\t\t$iclISOCountryList->add(12,\"Algeria\",\"DZA\",0);\r\n\t\t$iclISOCountryList->add(16,\"American Samoa\",\"ASM\",0);\r\n\t\t$iclISOCountryList->add(20,\"Andorra\",\"AND\",0);\r\n\t\t$iclISOCountryList->add(24,\"Angola\",\"AGO\",0);\r\n\t\t$iclISOCountryList->add(660,\"Anguilla\",\"AIA\",0);\r\n\t\t$iclISOCountryList->add(10,\"Antarctica\",\"ATA\",0);\r\n\t\t$iclISOCountryList->add(28,\"Antigua and Barbuda\",\"ATG\",0);\r\n\t\t$iclISOCountryList->add(32,\"Argentina\",\"ARG\",0);\r\n\t\t$iclISOCountryList->add(51,\"Armenia\",\"ARM\",0);\r\n\t\t$iclISOCountryList->add(533,\"Aruba\",\"ABW\",0);\r\n\t\t$iclISOCountryList->add(40,\"Austria\",\"AUT\",0);\r\n\t\t$iclISOCountryList->add(31,\"Azerbaijan\",\"AZE\",0);\r\n\t\t$iclISOCountryList->add(44,\"Bahamas\",\"BHS\",0);\r\n\t\t$iclISOCountryList->add(48,\"Bahrain\",\"BHR\",0);\r\n\t\t$iclISOCountryList->add(50,\"Bangladesh\",\"BGD\",0);\r\n\t\t$iclISOCountryList->add(52,\"Barbados\",\"BRB\",0);\r\n\t\t$iclISOCountryList->add(112,\"Belarus\",\"BLR\",0);\r\n\t\t$iclISOCountryList->add(56,\"Belgium\",\"BEL\",0);\r\n\t\t$iclISOCountryList->add(84,\"Belize\",\"BLZ\",0);\r\n\t\t$iclISOCountryList->add(204,\"Benin\",\"BEN\",0);\r\n\t\t$iclISOCountryList->add(60,\"Bermuda\",\"BMU\",0);\r\n\t\t$iclISOCountryList->add(64,\"Bhutan\",\"BTN\",0);\r\n\t\t$iclISOCountryList->add(68,\"Bolivia\",\"BOL\",0);\r\n\t\t$iclISOCountryList->add(70,\"Bosnia and Herzegovina\",\"BIH\",0);\r\n\t\t$iclISOCountryList->add(72,\"Botswana\",\"BWA\",0);\r\n\t\t$iclISOCountryList->add(74,\"Bouvet Island\",\"BVT\",0);\r\n\t\t$iclISOCountryList->add(76,\"Brazil Federative\",\"BRA\",0);\r\n\t\t$iclISOCountryList->add(86,\"British Indian Ocean Territory\",\"IOT\",0);\r\n\t\t$iclISOCountryList->add(96,\"Brunei\",\"BRN\",0);\r\n\t\t$iclISOCountryList->add(100,\"Bulgaria\",\"BGR\",0);\r\n\t\t$iclISOCountryList->add(854,\"Burkina Faso\",\"BFA\",0);\r\n\t\t$iclISOCountryList->add(108,\"Burundi\",\"BDI\",0);\r\n\t\t$iclISOCountryList->add(116,\"Cambodia\",\"KHM\",0);\r\n\t\t$iclISOCountryList->add(120,\"Cameroon\",\"CMR\",0);\r\n\t\t$iclISOCountryList->add(132,\"Cape Verde\",\"CPV\",0);\r\n\t\t$iclISOCountryList->add(136,\"Cayman Islands\",\"CYM\",0);\r\n\t\t$iclISOCountryList->add(140,\"Central African Republic\",\"CAF\",0);\r\n\t\t$iclISOCountryList->add(148,\"Chad\",\"TCD\",0);\r\n\t\t$iclISOCountryList->add(152,\"Chile\",\"CHL\",0);\r\n\t\t$iclISOCountryList->add(156,\"China\",\"CHN\",0);\r\n\t\t$iclISOCountryList->add(162,\"Christmas Island\",\"CXR\",0);\r\n\t\t$iclISOCountryList->add(166,\"Cocos (Keeling) Islands\",\"CCK\",0);\r\n\t\t$iclISOCountryList->add(170,\"Colombia\",\"COL\",0);\r\n\t\t$iclISOCountryList->add(174,\"Comoros\",\"COM\",0);\r\n\t\t$iclISOCountryList->add(180,\"Congo\",\"COD\",0);\r\n\t\t$iclISOCountryList->add(178,\"Congo\",\"COG\",0);\r\n\t\t$iclISOCountryList->add(184,\"Cook Islands\",\"COK\",0);\r\n\t\t$iclISOCountryList->add(188,\"Costa Rica\",\"CRI\",0);\r\n\t\t$iclISOCountryList->add(384,\"Côte d'Ivoire\",\"CIV\",0);\r\n\t\t$iclISOCountryList->add(191,\"Croatia\",\"HRV\",0);\r\n\t\t$iclISOCountryList->add(192,\"Cuba\",\"CUB\",0);\r\n\t\t$iclISOCountryList->add(196,\"Cyprus\",\"CYP\",0);\r\n\t\t$iclISOCountryList->add(203,\"Czech Republic\",\"CZE\",0);\r\n\t\t$iclISOCountryList->add(208,\"Denmark\",\"DNK\",0);\r\n\t\t$iclISOCountryList->add(262,\"Djibouti\",\"DJI\",0);\r\n\t\t$iclISOCountryList->add(212,\"Dominica\",\"DMA\",0);\r\n\t\t$iclISOCountryList->add(214,\"Dominican Republic\",\"DOM\",0);\r\n\t\t$iclISOCountryList->add(626,\"East Timor\",\"TMP\",0);\r\n\t\t$iclISOCountryList->add(218,\"Ecuador\",\"ECU\",0);\r\n\t\t$iclISOCountryList->add(818,\"Egypt\",\"EGY\",0);\r\n\t\t$iclISOCountryList->add(222,\"El Salvador\",\"SLV\",0);\r\n\t\t$iclISOCountryList->add(226,\"Equatorial Guinea\",\"GNQ\",0);\r\n\t\t$iclISOCountryList->add(232,\"Eritrea\",\"ERI\",0);\r\n\t\t$iclISOCountryList->add(233,\"Estonia\",\"EST\",0);\r\n\t\t$iclISOCountryList->add(231,\"Ethiopia\",\"ETH\",0);\r\n\t\t$iclISOCountryList->add(238,\"Falkland Islands (Malvinas)\",\"FLK\",0);\r\n\t\t$iclISOCountryList->add(234,\"Faroe Islands\",\"FRO\",0);\r\n\t\t$iclISOCountryList->add(242,\"Fiji\",\"FJI\",0);\r\n\t\t$iclISOCountryList->add(246,\"Finland\",\"FIN\",0);\r\n\t\t$iclISOCountryList->add(254,\"French Guiana\",\"GUF\",0);\r\n\t\t$iclISOCountryList->add(258,\"French Polynesia\",\"PYF\",0);\r\n\t\t$iclISOCountryList->add(260,\"French Southern Territories\",\"ATF\",0);\r\n\t\t$iclISOCountryList->add(266,\"Gabon\",\"GAB\",0);\r\n\t\t$iclISOCountryList->add(270,\"Gambia\",\"GMB\",0);\r\n\t\t$iclISOCountryList->add(268,\"Georgia\",\"GEO\",0);\r\n\t\t$iclISOCountryList->add(288,\"Ghana\",\"GHA\",0);\r\n\t\t$iclISOCountryList->add(292,\"Gibraltar\",\"GIB\",0);\r\n\t\t$iclISOCountryList->add(300,\"Greece\",\"GRC\",0);\r\n\t\t$iclISOCountryList->add(304,\"Greenland\",\"GRL\",0);\r\n\t\t$iclISOCountryList->add(308,\"Grenada\",\"GRD\",0);\r\n\t\t$iclISOCountryList->add(312,\"Guadaloupe\",\"GLP\",0);\r\n\t\t$iclISOCountryList->add(316,\"Guam\",\"GUM\",0);\r\n\t\t$iclISOCountryList->add(320,\"Guatemala\",\"GTM\",0);\r\n\t\t$iclISOCountryList->add(831,\"Guernsey\",\"GGY\",0);\r\n\t\t$iclISOCountryList->add(324,\"Guinea\",\"GIN\",0);\r\n\t\t$iclISOCountryList->add(624,\"Guinea-Bissau\",\"GNB\",0);\r\n\t\t$iclISOCountryList->add(328,\"Guyana\",\"GUY\",0);\r\n\t\t$iclISOCountryList->add(332,\"Haiti\",\"HTI\",0);\r\n\t\t$iclISOCountryList->add(334,\"Heard Island and McDonald Islands\",\"HMD\",0);\r\n\t\t$iclISOCountryList->add(340,\"Honduras\",\"HND\",0);\r\n\t\t$iclISOCountryList->add(344,\"Hong Kong\",\"HKG\",0);\r\n\t\t$iclISOCountryList->add(348,\"Hungary\",\"HUN\",0);\r\n\t\t$iclISOCountryList->add(352,\"Iceland\",\"ISL\",0);\r\n\t\t$iclISOCountryList->add(356,\"India\",\"IND\",0);\r\n\t\t$iclISOCountryList->add(360,\"Indonesia\",\"IDN\",0);\r\n\t\t$iclISOCountryList->add(364,\"Iran\",\"IRN\",0);\r\n\t\t$iclISOCountryList->add(368,\"Iraq\",\"IRQ\",0);\r\n\t\t$iclISOCountryList->add(372,\"Ireland\",\"IRL\",0);\r\n\t\t$iclISOCountryList->add(833,\"Isle of Man\",\"IMN\",0);\r\n\t\t$iclISOCountryList->add(376,\"Israel\",\"ISR\",0);\r\n\t\t$iclISOCountryList->add(380,\"Italy\",\"ITA\",0);\r\n\t\t$iclISOCountryList->add(388,\"Jamaica\",\"JAM\",0);\r\n\t\t$iclISOCountryList->add(392,\"Japan\",\"JPN\",0);\r\n\t\t$iclISOCountryList->add(832,\"Jersey\",\"JEY\",0);\r\n\t\t$iclISOCountryList->add(400,\"Jordan\",\"JOR\",0);\r\n\t\t$iclISOCountryList->add(398,\"Kazakhstan\",\"KAZ\",0);\r\n\t\t$iclISOCountryList->add(404,\"Kenya\",\"KEN\",0);\r\n\t\t$iclISOCountryList->add(296,\"Kiribati\",\"KIR\",0);\r\n\t\t$iclISOCountryList->add(410,\"Korea\",\"KOR\",0);\r\n\t\t$iclISOCountryList->add(408,\"Korea\",\"PRK\",0);\r\n\t\t$iclISOCountryList->add(414,\"Kuwait\",\"KWT\",0);\r\n\t\t$iclISOCountryList->add(417,\"Kyrgyzstan\",\"KGZ\",0);\r\n\t\t$iclISOCountryList->add(418,\"Lao\",\"LAO\",0);\r\n\t\t$iclISOCountryList->add(428,\"Latvia\",\"LVA\",0);\r\n\t\t$iclISOCountryList->add(422,\"Lebanon\",\"LBN\",0);\r\n\t\t$iclISOCountryList->add(426,\"Lesotho\",\"LSO\",0);\r\n\t\t$iclISOCountryList->add(430,\"Liberia\",\"LBR\",0);\r\n\t\t$iclISOCountryList->add(434,\"Libyan Arab Jamahiriya\",\"LBY\",0);\r\n\t\t$iclISOCountryList->add(438,\"Liechtenstein\",\"LIE\",0);\r\n\t\t$iclISOCountryList->add(440,\"Lithuania\",\"LTU\",0);\r\n\t\t$iclISOCountryList->add(442,\"Luxembourg\",\"LUX\",0);\r\n\t\t$iclISOCountryList->add(446,\"Macau\",\"MAC\",0);\r\n\t\t$iclISOCountryList->add(807,\"Macedonia\",\"MKD\",0);\r\n\t\t$iclISOCountryList->add(450,\"Madagascar\",\"MDG\",0);\r\n\t\t$iclISOCountryList->add(454,\"Malawi\",\"MWI\",0);\r\n\t\t$iclISOCountryList->add(458,\"Malaysia\",\"MYS\",0);\r\n\t\t$iclISOCountryList->add(462,\"Maldives\",\"MDV\",0);\r\n\t\t$iclISOCountryList->add(466,\"Mali\",\"MLI\",0);\r\n\t\t$iclISOCountryList->add(470,\"Malta\",\"MLT\",0);\r\n\t\t$iclISOCountryList->add(584,\"Marshall Islands\",\"MHL\",0);\r\n\t\t$iclISOCountryList->add(474,\"Martinique\",\"MTQ\",0);\r\n\t\t$iclISOCountryList->add(478,\"Mauritania Islamic\",\"MRT\",0);\r\n\t\t$iclISOCountryList->add(480,\"Mauritius\",\"MUS\",0);\r\n\t\t$iclISOCountryList->add(175,\"Mayotte\",\"MYT\",0);\r\n\t\t$iclISOCountryList->add(484,\"Mexico\",\"MEX\",0);\r\n\t\t$iclISOCountryList->add(583,\"Micronesia\",\"FSM\",0);\r\n\t\t$iclISOCountryList->add(498,\"Moldova\",\"MDA\",0);\r\n\t\t$iclISOCountryList->add(492,\"Monaco\",\"MCO\",0);\r\n\t\t$iclISOCountryList->add(496,\"Mongolia\",\"MNG\",0);\r\n\t\t$iclISOCountryList->add(499,\"Montenegro\",\"MNE\",0);\t\r\n\t\t$iclISOCountryList->add(500,\"Montserrat\",\"MSR\",0);\r\n\t\t$iclISOCountryList->add(504,\"Morocco\",\"MAR\",0);\r\n\t\t$iclISOCountryList->add(508,\"Mozambique\",\"MOZ\",0);\r\n\t\t$iclISOCountryList->add(104,\"Myanmar\",\"MMR\",0);\r\n\t\t$iclISOCountryList->add(516,\"Namibia\",\"NAM\",0);\r\n\t\t$iclISOCountryList->add(520,\"Nauru\",\"NRU\",0);\r\n\t\t$iclISOCountryList->add(524,\"Nepal\",\"NPL\",0);\r\n\t\t$iclISOCountryList->add(528,\"Netherlands\",\"NLD\",0);\r\n\t\t$iclISOCountryList->add(530,\"Netherlands Antilles\",\"ANT\",0);\r\n\t\t$iclISOCountryList->add(540,\"New Caledonia\",\"NCL\",0);\r\n\t\t$iclISOCountryList->add(554,\"New Zealand\",\"NZL\",0);\r\n\t\t$iclISOCountryList->add(558,\"Nicaragua\",\"NIC\",0);\r\n\t\t$iclISOCountryList->add(562,\"Niger\",\"NER\",0);\r\n\t\t$iclISOCountryList->add(566,\"Nigeria\",\"NGA\",0);\r\n\t\t$iclISOCountryList->add(570,\"Niue\",\"NIU\",0);\r\n\t\t$iclISOCountryList->add(574,\"Norfolk Island\",\"NFK\",0);\r\n\t\t$iclISOCountryList->add(580,\"Northern Mariana Islands\",\"MNP\",0);\r\n\t\t$iclISOCountryList->add(578,\"Norway\",\"NOR\",0);\r\n\t\t$iclISOCountryList->add(512,\"Oman\",\"OMN\",0);\r\n\t\t$iclISOCountryList->add(586,\"Pakistan\",\"PAK\",0);\r\n\t\t$iclISOCountryList->add(585,\"Palau\",\"PLW\",0);\r\n\t\t$iclISOCountryList->add(275,\"Palestine\",\"PSE\",0);\t\r\n\t\t$iclISOCountryList->add(591,\"Panama\",\"PAN\",0);\r\n\t\t$iclISOCountryList->add(598,\"Papua New Guinea\",\"PNG\",0);\r\n\t\t$iclISOCountryList->add(600,\"Paraguay\",\"PRY\",0);\r\n\t\t$iclISOCountryList->add(604,\"Peru\",\"PER\",0);\r\n\t\t$iclISOCountryList->add(608,\"Philippines\",\"PHL\",0);\r\n\t\t$iclISOCountryList->add(612,\"Pitcairn\",\"PCN\",0);\r\n\t\t$iclISOCountryList->add(616,\"Poland\",\"POL\",0);\r\n\t\t$iclISOCountryList->add(620,\"Portugal\",\"PRT\",0);\r\n\t\t$iclISOCountryList->add(630,\"Puerto Rico\",\"PRI\",0);\r\n\t\t$iclISOCountryList->add(634,\"Qatar\",\"QAT\",0);\r\n\t\t$iclISOCountryList->add(638,\"Réunion\",\"REU\",0);\r\n\t\t$iclISOCountryList->add(642,\"Romania\",\"ROM\",0);\r\n\t\t$iclISOCountryList->add(643,\"Russian Federation\",\"RUS\",0);\r\n\t\t$iclISOCountryList->add(646,\"Rwanda\",\"RWA\",0);\r\n\t\t$iclISOCountryList->add(652,\"Saint Barthélemy\",\"BLM\",0);\r\n\t\t$iclISOCountryList->add(654,\"Saint Helena\",\"SHN\",0);\r\n\t\t$iclISOCountryList->add(659,\"Saint Kitts and Nevis\",\"KNA\",0);\r\n\t\t$iclISOCountryList->add(662,\"Saint Lucia\",\"LCA\",0);\r\n\t\t$iclISOCountryList->add(663,\"Saint Martin (French part)\",\"MAF\",0);\r\n\t\t$iclISOCountryList->add(666,\"Saint Pierre and Miquelon\",\"SPM\",0);\r\n\t\t$iclISOCountryList->add(670,\"Saint Vincent and the Grenadines\",\"VCT\",0);\r\n\t\t$iclISOCountryList->add(882,\"Samoa\",\"WSM\",0);\r\n\t\t$iclISOCountryList->add(674,\"San Marino\",\"SMR\",0);\r\n\t\t$iclISOCountryList->add(678,\"São Tomé and Príncipe Democratic\",\"STP\",0);\r\n\t\t$iclISOCountryList->add(682,\"Saudi Arabia\",\"SAU\",0);\r\n\t\t$iclISOCountryList->add(686,\"Senegal\",\"SEN\",0);\r\n\t\t$iclISOCountryList->add(688,\"Serbia\",\"SRB\",0);\r\n\t\t$iclISOCountryList->add(690,\"Seychelles\",\"SYC\",0);\r\n\t\t$iclISOCountryList->add(694,\"Sierra Leone\",\"SLE\",0);\r\n\t\t$iclISOCountryList->add(702,\"Singapore\",\"SGP\",0);\r\n\t\t$iclISOCountryList->add(703,\"Slovakia\",\"SVK\",0);\r\n\t\t$iclISOCountryList->add(705,\"Slovenia\",\"SVN\",0);\r\n\t\t$iclISOCountryList->add(90,\"Solomon Islands\",\"SLB\",0);\r\n\t\t$iclISOCountryList->add(706,\"Somalia\",\"SOM\",0);\r\n\t\t$iclISOCountryList->add(710,\"South Africa\",\"ZAF\",0);\r\n\t\t$iclISOCountryList->add(239,\"South Georgia and the South Sandwich Islands\",\"SGS\",0);\r\n\t\t$iclISOCountryList->add(724,\"Spain\",\"ESP\",0);\r\n\t\t$iclISOCountryList->add(144,\"Sri Lanka\",\"LKA\",0);\r\n\t\t$iclISOCountryList->add(736,\"Sudan\",\"SDN\",0);\r\n\t\t$iclISOCountryList->add(740,\"Suriname\",\"SUR\",0);\r\n\t\t$iclISOCountryList->add(744,\"Svalbard and Jan Mayen\",\"SJM\",0);\r\n\t\t$iclISOCountryList->add(748,\"Swaziland\",\"SWZ\",0);\r\n\t\t$iclISOCountryList->add(752,\"Sweden\",\"SWE\",0);\r\n\t\t$iclISOCountryList->add(756,\"Switzerland\",\"CHE\",0);\r\n\t\t$iclISOCountryList->add(760,\"Syrian Arab Republic\",\"SYR\",0);\r\n\t\t$iclISOCountryList->add(158,\"Taiwan,\",\"TWN\",0);\r\n\t\t$iclISOCountryList->add(762,\"Tajikistan\",\"TJK\",0);\r\n\t\t$iclISOCountryList->add(834,\"Tanzania\",\"TZA\",0);\r\n\t\t$iclISOCountryList->add(764,\"Thailand\",\"THA\",0);\r\n\t\t$iclISOCountryList->add(768,\"Togo\",\"TGO\",0);\r\n\t\t$iclISOCountryList->add(772,\"Tokelau\",\"TKL\",0);\r\n\t\t$iclISOCountryList->add(776,\"Tonga\",\"TON\",0);\r\n\t\t$iclISOCountryList->add(780,\"Trinidad and Tobago\",\"TTO\",0);\r\n\t\t$iclISOCountryList->add(788,\"Tunisia\",\"TUN\",0);\r\n\t\t$iclISOCountryList->add(792,\"Turkey\",\"TUR\",0);\r\n\t\t$iclISOCountryList->add(795,\"Turkmenistan\",\"TKM\",0);\r\n\t\t$iclISOCountryList->add(796,\"Turks and Caicos Islands\",\"TCA\",0);\r\n\t\t$iclISOCountryList->add(798,\"Tuvalu\",\"TUV\",0);\r\n\t\t$iclISOCountryList->add(800,\"Uganda\",\"UGA\",0);\r\n\t\t$iclISOCountryList->add(804,\"Ukraine\",\"UKR\",0);\r\n\t\t$iclISOCountryList->add(784,\"United Arab Emirates\",\"ARE\",0);\r\n\t\t$iclISOCountryList->add(581,\"United States Minor Outlying Islands\",\"UMI\",0);\r\n\t\t$iclISOCountryList->add(858,\"Uruguay Eastern\",\"URY\",0);\r\n\t\t$iclISOCountryList->add(860,\"Uzbekistan\",\"UZB\",0);\r\n\t\t$iclISOCountryList->add(548,\"Vanuatu\",\"VUT\",0);\r\n\t\t$iclISOCountryList->add(336,\"Vatican City State\",\"VAT\",0);\r\n\t\t$iclISOCountryList->add(862,\"Venezuela\",\"VEN\",0);\r\n\t\t$iclISOCountryList->add(704,\"Vietnam\",\"VNM\",0);\r\n\t\t$iclISOCountryList->add(92,\"Virgin Islands, British\",\"VGB\",0);\r\n\t\t$iclISOCountryList->add(850,\"Virgin Islands, U.S.\",\"VIR\",0);\r\n\t\t$iclISOCountryList->add(876,\"Wallis and Futuna\",\"WLF\",0);\r\n\t\t$iclISOCountryList->add(732,\"Western Sahara\",\"ESH\",0);\r\n\t\t$iclISOCountryList->add(887,\"Yemen\",\"YEM\",0);\r\n\t\t$iclISOCountryList->add(894,\"Zambia\",\"ZMB\",0);\r\n\t\t$iclISOCountryList->add(716,\"Zimbabwe\",\"ZWE\",0);\r\n\t\t\r\n\t\treturn $iclISOCountryList;\r\n\t}", "public function get_all_countries_list()\n\t {\n\t \t$query=$this->ApiModel->get_all_countries();\n\t \techo json_encode($query);\n\t }", "public function state_full()\r\n {\r\n\r\n // $address = new PiplApi_Address(array('country' => 'US', 'state' => 'CO'));\r\n // print $address->state; // Outputs \"CO\"\r\n // print $address->state_full(); // Outputs \"Colorado\"\r\n\r\n if ($this->is_valid_state())\r\n {\r\n return PiplApi_Utils::$piplapi_states[strtoupper($this->country)][strtoupper($this->state)];\r\n }\r\n return;\r\n }", "private function countryIso()\n {\n $cacheKey = 'country_abbrs';\n $ttl = config('priongeography.cache_ttl', 60*24);\n\n return $this->cache->remember($cacheKey, $ttl, function () {\n $countries = scandir(__DIR__.'/config/geography');\n $countries = str_replace(\".php\", \"\", $countries);\n unset($countries[0]);\n unset($countries[1]);\n\n return $countries;\n });\n }", "private function getCountriesList()\n {\n $list = [];\n $countries = Twilio::init()->getAvailableCountries();\n\n foreach($countries as $item) {\n $list[$item->country_code] = $item->country;\n }\n ksort($list);\n return $list;\n }", "function _country_get_predefined_list() {\n static $countries;\n\n if (isset($countries)) {\n return $countries;\n }\n $t = get_t();\n\n $countries = array(\n 'AD' => $t('Andorra'),\n 'AE' => $t('United Arab Emirates'),\n 'AF' => $t('Afghanistan'),\n 'AG' => $t('Antigua and Barbuda'),\n 'AI' => $t('Anguilla'),\n 'AL' => $t('Albania'),\n 'AM' => $t('Armenia'),\n 'AN' => $t('Netherlands Antilles'),\n 'AO' => $t('Angola'),\n 'AQ' => $t('Antarctica'),\n 'AR' => $t('Argentina'),\n 'AS' => $t('American Samoa'),\n 'AT' => $t('Austria'),\n 'AU' => $t('Australia'),\n 'AW' => $t('Aruba'),\n 'AX' => $t('Aland Islands'),\n 'AZ' => $t('Azerbaijan'),\n 'BA' => $t('Bosnia and Herzegovina'),\n 'BB' => $t('Barbados'),\n 'BD' => $t('Bangladesh'),\n 'BE' => $t('Belgium'),\n 'BF' => $t('Burkina Faso'),\n 'BG' => $t('Bulgaria'),\n 'BH' => $t('Bahrain'),\n 'BI' => $t('Burundi'),\n 'BJ' => $t('Benin'),\n 'BL' => $t('Saint Barthélemy'),\n 'BM' => $t('Bermuda'),\n 'BN' => $t('Brunei'),\n 'BO' => $t('Bolivia'),\n 'BR' => $t('Brazil'),\n 'BS' => $t('Bahamas'),\n 'BT' => $t('Bhutan'),\n 'BV' => $t('Bouvet Island'),\n 'BW' => $t('Botswana'),\n 'BY' => $t('Belarus'),\n 'BZ' => $t('Belize'),\n 'CA' => $t('Canada'),\n 'CC' => $t('Cocos (Keeling) Islands'),\n 'CD' => $t('Congo (Kinshasa)'),\n 'CF' => $t('Central African Republic'),\n 'CG' => $t('Congo (Brazzaville)'),\n 'CH' => $t('Switzerland'),\n 'CI' => $t('Ivory Coast'),\n 'CK' => $t('Cook Islands'),\n 'CL' => $t('Chile'),\n 'CM' => $t('Cameroon'),\n 'CN' => $t('China'),\n 'CO' => $t('Colombia'),\n 'CR' => $t('Costa Rica'),\n 'CU' => $t('Cuba'),\n 'CV' => $t('Cape Verde'),\n 'CX' => $t('Christmas Island'),\n 'CY' => $t('Cyprus'),\n 'CZ' => $t('Czech Republic'),\n 'DE' => $t('Germany'),\n 'DJ' => $t('Djibouti'),\n 'DK' => $t('Denmark'),\n 'DM' => $t('Dominica'),\n 'DO' => $t('Dominican Republic'),\n 'DZ' => $t('Algeria'),\n 'EC' => $t('Ecuador'),\n 'EE' => $t('Estonia'),\n 'EG' => $t('Egypt'),\n 'EH' => $t('Western Sahara'),\n 'ER' => $t('Eritrea'),\n 'ES' => $t('Spain'),\n 'ET' => $t('Ethiopia'),\n 'FI' => $t('Finland'),\n 'FJ' => $t('Fiji'),\n 'FK' => $t('Falkland Islands'),\n 'FM' => $t('Micronesia'),\n 'FO' => $t('Faroe Islands'),\n 'FR' => $t('France'),\n 'GA' => $t('Gabon'),\n 'GB' => $t('United Kingdom'),\n 'GD' => $t('Grenada'),\n 'GE' => $t('Georgia'),\n 'GF' => $t('French Guiana'),\n 'GG' => $t('Guernsey'),\n 'GH' => $t('Ghana'),\n 'GI' => $t('Gibraltar'),\n 'GL' => $t('Greenland'),\n 'GM' => $t('Gambia'),\n 'GN' => $t('Guinea'),\n 'GP' => $t('Guadeloupe'),\n 'GQ' => $t('Equatorial Guinea'),\n 'GR' => $t('Greece'),\n 'GS' => $t('South Georgia and the South Sandwich Islands'),\n 'GT' => $t('Guatemala'),\n 'GU' => $t('Guam'),\n 'GW' => $t('Guinea-Bissau'),\n 'GY' => $t('Guyana'),\n 'HK' => $t('Hong Kong S.A.R., China'),\n 'HM' => $t('Heard Island and McDonald Islands'),\n 'HN' => $t('Honduras'),\n 'HR' => $t('Croatia'),\n 'HT' => $t('Haiti'),\n 'HU' => $t('Hungary'),\n 'ID' => $t('Indonesia'),\n 'IE' => $t('Ireland'),\n 'IL' => $t('Israel'),\n 'IM' => $t('Isle of Man'),\n 'IN' => $t('India'),\n 'IO' => $t('British Indian Ocean Territory'),\n 'IQ' => $t('Iraq'),\n 'IR' => $t('Iran'),\n 'IS' => $t('Iceland'),\n 'IT' => $t('Italy'),\n 'JE' => $t('Jersey'),\n 'JM' => $t('Jamaica'),\n 'JO' => $t('Jordan'),\n 'JP' => $t('Japan'),\n 'KE' => $t('Kenya'),\n 'KG' => $t('Kyrgyzstan'),\n 'KH' => $t('Cambodia'),\n 'KI' => $t('Kiribati'),\n 'KM' => $t('Comoros'),\n 'KN' => $t('Saint Kitts and Nevis'),\n 'KP' => $t('North Korea'),\n 'KR' => $t('South Korea'),\n 'KW' => $t('Kuwait'),\n 'KY' => $t('Cayman Islands'),\n 'KZ' => $t('Kazakhstan'),\n 'LA' => $t('Laos'),\n 'LB' => $t('Lebanon'),\n 'LC' => $t('Saint Lucia'),\n 'LI' => $t('Liechtenstein'),\n 'LK' => $t('Sri Lanka'),\n 'LR' => $t('Liberia'),\n 'LS' => $t('Lesotho'),\n 'LT' => $t('Lithuania'),\n 'LU' => $t('Luxembourg'),\n 'LV' => $t('Latvia'),\n 'LY' => $t('Libya'),\n 'MA' => $t('Morocco'),\n 'MC' => $t('Monaco'),\n 'MD' => $t('Moldova'),\n 'ME' => $t('Montenegro'),\n 'MF' => $t('Saint Martin (French part)'),\n 'MG' => $t('Madagascar'),\n 'MH' => $t('Marshall Islands'),\n 'MK' => $t('Macedonia'),\n 'ML' => $t('Mali'),\n 'MM' => $t('Myanmar'),\n 'MN' => $t('Mongolia'),\n 'MO' => $t('Macao S.A.R., China'),\n 'MP' => $t('Northern Mariana Islands'),\n 'MQ' => $t('Martinique'),\n 'MR' => $t('Mauritania'),\n 'MS' => $t('Montserrat'),\n 'MT' => $t('Malta'),\n 'MU' => $t('Mauritius'),\n 'MV' => $t('Maldives'),\n 'MW' => $t('Malawi'),\n 'MX' => $t('Mexico'),\n 'MY' => $t('Malaysia'),\n 'MZ' => $t('Mozambique'),\n 'NA' => $t('Namibia'),\n 'NC' => $t('New Caledonia'),\n 'NE' => $t('Niger'),\n 'NF' => $t('Norfolk Island'),\n 'NG' => $t('Nigeria'),\n 'NI' => $t('Nicaragua'),\n 'NL' => $t('Netherlands'),\n 'NO' => $t('Norway'),\n 'NP' => $t('Nepal'),\n 'NR' => $t('Nauru'),\n 'NU' => $t('Niue'),\n 'NZ' => $t('New Zealand'),\n 'OM' => $t('Oman'),\n 'PA' => $t('Panama'),\n 'PE' => $t('Peru'),\n 'PF' => $t('French Polynesia'),\n 'PG' => $t('Papua New Guinea'),\n 'PH' => $t('Philippines'),\n 'PK' => $t('Pakistan'),\n 'PL' => $t('Poland'),\n 'PM' => $t('Saint Pierre and Miquelon'),\n 'PN' => $t('Pitcairn'),\n 'PR' => $t('Puerto Rico'),\n 'PS' => $t('Palestinian Territory'),\n 'PT' => $t('Portugal'),\n 'PW' => $t('Palau'),\n 'PY' => $t('Paraguay'),\n 'QA' => $t('Qatar'),\n 'RE' => $t('Reunion'),\n 'RO' => $t('Romania'),\n 'RS' => $t('Serbia'),\n 'RU' => $t('Russia'),\n 'RW' => $t('Rwanda'),\n 'SA' => $t('Saudi Arabia'),\n 'SB' => $t('Solomon Islands'),\n 'SC' => $t('Seychelles'),\n 'SD' => $t('Sudan'),\n 'SE' => $t('Sweden'),\n 'SG' => $t('Singapore'),\n 'SH' => $t('Saint Helena'),\n 'SI' => $t('Slovenia'),\n 'SJ' => $t('Svalbard and Jan Mayen'),\n 'SK' => $t('Slovakia'),\n 'SL' => $t('Sierra Leone'),\n 'SM' => $t('San Marino'),\n 'SN' => $t('Senegal'),\n 'SO' => $t('Somalia'),\n 'SR' => $t('Suriname'),\n 'ST' => $t('Sao Tome and Principe'),\n 'SV' => $t('El Salvador'),\n 'SY' => $t('Syria'),\n 'SZ' => $t('Swaziland'),\n 'TC' => $t('Turks and Caicos Islands'),\n 'TD' => $t('Chad'),\n 'TF' => $t('French Southern Territories'),\n 'TG' => $t('Togo'),\n 'TH' => $t('Thailand'),\n 'TJ' => $t('Tajikistan'),\n 'TK' => $t('Tokelau'),\n 'TL' => $t('East Timor'),\n 'TM' => $t('Turkmenistan'),\n 'TN' => $t('Tunisia'),\n 'TO' => $t('Tonga'),\n 'TR' => $t('Turkey'),\n 'TT' => $t('Trinidad and Tobago'),\n 'TV' => $t('Tuvalu'),\n 'TW' => $t('Taiwan'),\n 'TZ' => $t('Tanzania'),\n 'UA' => $t('Ukraine'),\n 'UG' => $t('Uganda'),\n 'UM' => $t('United States Minor Outlying Islands'),\n 'US' => $t('United States'),\n 'UY' => $t('Uruguay'),\n 'UZ' => $t('Uzbekistan'),\n 'VA' => $t('Vatican'),\n 'VC' => $t('Saint Vincent and the Grenadines'),\n 'VE' => $t('Venezuela'),\n 'VG' => $t('British Virgin Islands'),\n 'VI' => $t('U.S. Virgin Islands'),\n 'VN' => $t('Vietnam'),\n 'VU' => $t('Vanuatu'),\n 'WF' => $t('Wallis and Futuna'),\n 'WS' => $t('Samoa'),\n 'YE' => $t('Yemen'),\n 'YT' => $t('Mayotte'),\n 'ZA' => $t('South Africa'),\n 'ZM' => $t('Zambia'),\n 'ZW' => $t('Zimbabwe'),\n );\n\n // Sort the list.\n natcasesort($countries);\n\n return $countries;\n}", "private function allCountries()\n {\n $countries = [];\n $isos = $this->countryIso();\n foreach ($isos as $iso) {\n $path = __DIR__ . '/config/geography/' . $iso . '.php';\n $countries[$iso] = require $path;\n }\n\n return $countries;\n }", "public static function getCountriesDropdownArray() {\n global $lC_Language;\n \n $countries_array = array(array('id' => '',\n 'text' => $lC_Language->get('pull_down_default')));\n foreach (lC_Address::getCountries() as $country) {\n $countries_array[] = array('id' => $country['id'],\n 'text' => $country['name']);\n } \n \n return $countries_array; \n }", "public function actionGet_states(){\n if (isset($_POST['country_id']) != 0) {\n $output = '';\n $country_id = $_POST['country_id'];\n $att_name = $_POST['att_name'];\n $all_states = DvStates::find()->where(['country_id' => $country_id])->all();\n $allstates = ArrayHelper::map($all_states, 'id', 'name');\n if ($att_name == 'DvRegistration[country]') {\n $output .= '<select id=\"dvusers-state\" class=\"form-control\" name=\"DvRegistration[state]\" required=\"required\" aria-invalid=\"false\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"\" data-original-title=\"Select State\">';\n } else {\n $output .= '<select id=\"dvusers-state\" class=\"form-control\" name=\"usermeta[state]\" required=\"required\" aria-invalid=\"false\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"\" data-original-title=\"Select State\">';\n }\n $output .= '<option value=\"\">Select State</option>';\n foreach ($allstates as $id => $name) {\n $output .= '<option value=\"' . $id . '\">' . $name . '</option>';\n }\n $output .= '</select>';\n return $output;\n } else {\n return $this->redirect(['dv-users/index']);\n }\n }", "public function getAllStatesByName(){\n return array(\"Acre\" ,\"Alagoas\",\"Amazonas\",\"Amapá\",\"Bahia\",\"Ceará\",\"Distrito Federal\",\"Espírito Santo\",\"Goiás\",\"Maranhão\",\"Mato Grosso\",\"Mato Grosso do Sul\",\"Minas Gerais\",\"Pará\",\"Paraíba\",\"Paraná\",\"Pernambuco\",\"Piauí\",\"Rio de Janeiro\",\"Rio Grande do Norte\",\"Rondônia\",\"Rio Grande do Sul\",\"Roraima\",\"Santa Catarina\",\"Sergipe\",\"São Paulo\",\"Tocantins\");\n }" ]
[ "0.7579769", "0.74495417", "0.72990924", "0.72704816", "0.72699696", "0.7187907", "0.7137268", "0.70176685", "0.6987478", "0.6966189", "0.67869556", "0.6778944", "0.6775856", "0.6770199", "0.6745136", "0.67390084", "0.67341036", "0.6726711", "0.66620976", "0.663287", "0.6615733", "0.66152316", "0.6605556", "0.6592925", "0.6551487", "0.65468144", "0.6527216", "0.65180254", "0.64846253", "0.64517784", "0.64486724", "0.6443376", "0.64364195", "0.64169794", "0.63896316", "0.63781536", "0.63735384", "0.63727105", "0.63707906", "0.6368842", "0.6361088", "0.6349471", "0.6306752", "0.6299085", "0.6271404", "0.62467444", "0.6220327", "0.62200207", "0.621502", "0.62123513", "0.61854005", "0.6182986", "0.61815715", "0.6158629", "0.6129838", "0.6111579", "0.61111575", "0.60936725", "0.60854846", "0.60689384", "0.6064933", "0.6062193", "0.60577315", "0.60508966", "0.6019501", "0.5983612", "0.5979799", "0.5976479", "0.5970623", "0.5962613", "0.59578663", "0.59551567", "0.5954587", "0.59510565", "0.59467965", "0.59297484", "0.59269893", "0.5925458", "0.5921179", "0.5918776", "0.5918088", "0.59119767", "0.59109896", "0.59048045", "0.5903788", "0.59026915", "0.58968484", "0.5896234", "0.5867708", "0.58533067", "0.5853171", "0.5844253", "0.5844205", "0.58416325", "0.5836605", "0.5828981", "0.58249974", "0.58243257", "0.58160496", "0.58148307" ]
0.83598095
0
Define the model's default state.
public function definition() { return [ 'name' => substr($this->faker->unique()->sentence(3, true), 0, 50), 'color' => $this->faker->hexColor, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultState()\r\n\t{\r\n\t}", "static function get_default_state();", "public function getDefaultUserState();", "private function setDefaultStates(): void\n {\n foreach ($this->arr_attributes as $strParamName) {\n $this->states[$strParamName] = $this->params->get($strParamName, 0);\n }\n }", "abstract protected function getDefaultModel();", "public function applyDefaultValues()\n {\n $this->is_active = false;\n $this->is_closed = false;\n }", "protected function getDefaultModelObject() : void\n {\n return;\n }", "public function applyDefaultValues()\n {\n $this->active = false;\n }", "protected function makeDefault()\n {\n $this->options = [];\n $this->menuSource = MenuSource::STATIC_SOURCE;\n $this->action = new Action(ActionType::MENU(), 'Default menu name', 'Default menu text');\n }", "public function set()\n {\n\t\tif ($this->model->state())\n $this->model->set();\n }", "public function __default()\n\t{\n\n\t}", "protected function initial_set_default() {\n\t\tif ( isset( $this->field[ 'config' ][ 'default' ] ) ) {\n\t\t\t$this->default = $this->field[ 'config' ][ 'default' ];\n\t\t} else {\n\t\t\t$this->default = '';\n\t\t}\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->type = 1;\n\t\t$this->total_index = 0;\n\t\t$this->is_published = true;\n\t\t$this->is_featured = false;\n\t\t$this->comments_count = 0;\n\t}", "public function setModelDefaults() \n {\n if (!empty($this->model->defaultFieldValues())) {\n \n foreach($this->model->defaultFieldValues() as $field => $defaultValue) {\n\n $this->model->$field = $defaultValue;\n }\n } \n }", "function getDefaultState(){\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->where(array('is_default'=>true));\r\n\t\t$recordSet = $this->db->get(TBL_MST_STATES);\r\n\t\t$data=$recordSet->result() ;\r\n\t\treturn $data[0]->id;\r\n\t}", "public function setValueDefault()\n {\n $this->isActive = true;\n $this->createdAt = new \\DateTime();\n }", "public function applyDefaultValues()\n {\n $this->deleted = false;\n $this->amount = 1;\n $this->amountevaluation = 0;\n $this->defaultstatus = 0;\n $this->defaultdirectiondate = 0;\n $this->defaultenddate = 0;\n $this->defaultpersoninevent = 0;\n $this->defaultpersonineditor = 0;\n $this->maxoccursinevent = 0;\n $this->showtime = false;\n $this->ispreferable = true;\n $this->isrequiredcoordination = false;\n $this->isrequiredtissue = false;\n $this->mnem = '';\n }", "public function getDefaultStateName() {\n return $this->values->get('DefaultStateName');\n }", "public function default() {\n \n $this->data = ModuleConfig::settings();\n // [Module_Data]\n }", "public static function bootStateMachine()\n {\n static::creating(function ($model) {\n $fieldState = $model->getFieldState();\n if (empty($model->$fieldState)) {\n $model->$fieldState = $model->getInitialState();\n }\n $model->beforeTransition($model->fromTransition, $model->toTransition);\n $model->setStateChangeAt();\n });\n static::created(function ($model) {\n $model->afterTransition($model->fromTransition, $model->toTransition);\n });\n static::saving(function ($model) {\n $model->beforeTransition($model->fromTransition, $model->toTransition);\n $model->setStateChangeAt();\n });\n static::saved(function ($model) {\n $model->afterTransition($model->fromTransition, $model->toTransition);\n });\n }", "function _setModelState()\r\n {\r\n $state = parent::_setModelState(); \r\n $app = JFactory::getApplication();\r\n $model = $this->getModel( $this->get('suffix') );\r\n $ns = $this->getNamespace();\r\n\r\n $state['filter_id_from'] = $app->getUserStateFromRequest($ns.'id_from', 'filter_id_from', '', '');\r\n $state['filter_id_to'] = $app->getUserStateFromRequest($ns.'id_to', 'filter_id_to', '', '');\r\n $state['filter_name'] = $app->getUserStateFromRequest($ns.'name', 'filter_name', '', '');\r\n $state['filter_enabled'] = $app->getUserStateFromRequest($ns.'enabled', 'filter_enabled', '', '');\r\n $state['filter_taxclass'] = $app->getUserStateFromRequest($ns.'taxclass', 'filter_taxclass', '', '');\r\n $state['filter_shippingtype'] = $app->getUserStateFromRequest($ns.'shippingtype', 'filter_shippingtype', '', '');\r\n \r\n foreach (@$state as $key=>$value)\r\n {\r\n $model->setState( $key, $value ); \r\n }\r\n return $state;\r\n }", "public function getInitialState(): StateContract\n {\n return $this->newState(['value' => 1]);\n }", "public function state();", "public function setUserDefaultStatus($userDefaultStatus);", "public function setStateModel($stateModel) {}", "public function getBaseState() {}", "public function init()\r\n {\r\n $this->_helper->db->setDefaultModelName('DefaultMetadataValue');\r\n }", "public function set_to_default()\n\t{\n\t\t// SimpleDB requires a value for every attribue...\n\t\t$this->_name = NULL;\n\t\t$this->_contextid = NULL;\n\t\t$this->_userid = NULL;\n $this->_deleted = 0;\n\t\t$this->_lastmodified = 0;\t\n\t}", "public function create_default() {\n if (!$this->model->has_default()) {\n $default_data = [\n 'id' => 1,\n 'name' => 'Beregu',\n 'desc' => 'team vs team',\n ];\n $this->model->create_default($default_data);\n\n $default_data = [\n 'id' => 2,\n 'name' => 'Individu',\n 'desc' => 'individu vs individu',\n ];\n $this->model->create_default($default_data);\n }\n }", "public function __construct(State $model)\n\t{\n\t\t$this->model = $model;\n\t}", "public function getStateModel() {}", "public function set_default_data() {\n\t\t$this->button_text_color = '#FFFFFF';\n\t\t$this->button_background_color = '#6699CC';\n\n\t\t$this->header_text_color = '#FFFFFF';\n\t\t$this->header_background_color = '#6699CC';\n\n\t\t$this->button_text = 'Do Not Sell My Data';\n\n\t\t$this->publish_status = 'Draft';\n\t\t$this->last_published = '';\n\n\t\t$this->ot_logo = '';\n\t\t$this->display_position = 'right';\n\t\t$this->floating_button\t= '';\n\t\t$this->isLinkEnabled \t= 'textlink';\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->points = '0';\n\t\t$this->type = 0;\n\t\t$this->hidden = 0;\n\t\t$this->relationship_status = 0;\n\t\t$this->show_email = 1;\n\t\t$this->show_gender = 1;\n\t\t$this->show_hometown = 1;\n\t\t$this->show_home_phone = 1;\n\t\t$this->show_mobile_phone = 1;\n\t\t$this->show_birthdate = 1;\n\t\t$this->show_address = 1;\n\t\t$this->show_relationship_status = 1;\n\t\t$this->credit = 0;\n\t\t$this->login = 0;\n\t}", "public function initializeDefaults()\n {\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function setDefaultAttribute($value){\n $this->attributes['default'] = ($value === 'true' || $value ? true : false);\n}", "private function _set_default()\r\n\t{\r\n\t\tif($this->input->post('default'))\r\n\t\t{\r\n\t\t\t$this->db->update('showcases',array('default' => 0));\r\n\t\t\t$this->db->where('id', $this->input->post('default'));\r\n\t\t\t$this->db->update('showcases',array('default' => 1));\r\n\t\t\t\r\n\t\t\t$this->set_message('success', 'Vetrina predefinita aggiornata con successo!');\r\n\t\t\tredirect($this->list);\r\n\t\t}\r\n\t}", "public function applyDefaultValues()\n {\n $this->is_not = false;\n $this->rank = 0;\n }", "public function __default()\r\n \t{\r\n \t if( self::isArg( 'notifwindow') )\r\n \t {\r\n $this->view = \"common_notifwindow\";\r\n \t $this->viewArgs['table'] = self::getArg( \"table\", AT_posint, true );\r\n \t }\r\n \t else\r\n \t {\r\n $this->view = \"dummygame_dummygame\";\r\n self::trace( \"Complete reinitialization of board game\" );\r\n }\r\n \t}", "private function _load_default_model(){\n\n\t\t$default_model_name = strtolower(get_class($this)) . '_model';\n\n\t\tif(file_exists(APPPATH . 'models/' . $default_model_name . '.php')){\n\n\t\t\t$this->load->model($default_model_name, strtolower(get_class($this)));\n\t\t\t$this->_default_model = strtolower(get_class($this));\n\t\t}\n\n\t}", "public function model()\n {\n return State::class;\n }", "public function model()\n {\n return State::class;\n }", "public function getDefault();", "public function setDefaultValues()\n\t{\t\t\n\t\t\t \n\t}", "protected function initialiseModel()\n {\n parent::initialiseModel();\n\n $this->SelectedTab = 0;\n }", "final protected function _defaults(){\n if(! $this->_defaults) return;\n foreach($this->_defaults as $conf => $default_value){\n if(! self::inform($conf)) self::define($conf, $default_value);\n }\n }", "public function useDefaults()\n\t{\n\t\t$this->use_defaults = true;\n\t}", "public function set_behaviors_default_data() {\n\n\t\t$this->is_google_personalize_enabled = 'checked';\n\t\t$this->google_confirmation_title = 'Personalized advertisements';\n\t\t$this->google_confirmation_message = 'Turning this off will opt you out of personalized advertisements delivered from Google on this website.';\n\t\t$this->confirmbutton = 'Confirm';\n\t\t$this->is_email_enabled = 'checked';\n\t\t$this->email_address = '';\n\t\t$this->popup_main_title = 'Do Not Sell My Personal Information';\n\t\t$this->link_text = 'Privacy Policy';\n\t\t$this->link_url = '';\n\t\t$this->privacy_policy_message = 'Exercise your consumer rights by contacting us below';\n\t\t$this->is_phone_enabled = 'checked';\n\t\t$this->phone_number = '';\n\t\t$this->form_link_text = 'Exercise Your Rights';\n\t\t$this->form_link_url = '';\n\t\t$this->form_enable = 'checked';\n\t\t$this->publish_status = 'Draft';\n\t\t$this->last_published = '';\n\t\t$this->selectuseroption\t\t\t\t = 'All';\n\t\t$this->isIABEnabled \t\t\t\t = 'checked';\n\t\t$this->isLSPAenable \t\t\t\t = '';\n\t}", "public function makeDefault() {\n $this->update([\n 'color' => null,\n 'size' => null\n ]);\n }", "public function applyDefaultData()\n {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $config = $objectManager->get('\\Magento\\Framework\\App\\Config\\ScopeConfigInterface');\n\n $this->setsup_is_active(1);\n $this->setsup_locale($config->getValue('general/locale/code'));\n $this->setsup_currency($config->getValue('currency/options/base'));\n $this->setsup_country($config->getValue('general/country/default'));\n\n return $this;\n }", "protected function setDefaultValues()\n {\n parent::setDefaultValues();\n\t}", "public function setDefaultStateName($stateName) {\n $this->values->put('DefaultStateName', $stateName);\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n parent::__construct();\n $this->applyDefaultValues();\n }", "public function applyDefaultValues()\n {\n $this->jml_lantai = '1';\n $this->asal_data = '1';\n $this->last_sync = '1901-01-01 00:00:00';\n }", "function init() {\n $this->options['selected'] = isset($this->options['value']) ?\n true : @(bool)$this->options['default'];\n }", "public function __construct()\n {\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n $this->applyDefaultValues();\n }", "public function __construct()\n {\n $this->applyDefaultValues();\n }", "public function init() {\n\t\t// use this method to initialize default values.\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "protected function cliModelInit()\n {\n }", "function getDefaultValue() \n {\n return $this->getValueByFieldName( 'statevar_default' );\n }", "public function __default()\r\n {\r\n if( self::isArg( 'notifwindow') ) {\r\n $this->view = \"common_notifwindow\";\r\n $this->viewArgs['table'] = self::getArg( \"table\", AT_posint, true );\r\n } else {\r\n $this->view = \"thecrew_thecrew\";\r\n self::trace( \"Complete reinitialization of board game\" );\r\n }\r\n }", "public function toggleDefault()\n {\n $this->language->default = ! $this->language->default;\n }", "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "function post_model_init($from_cache = FALSE)\n {\n }", "public static function preModel(){\n\t\t\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->applyDefaultValues();\n\t}", "protected function get_default() {\n\t\treturn false;\n\t}", "protected function setDefaultTemplate(): void\n {\n $this->setDefaultData(function(Generator $faker) {\n return [\n 'password' => 'xx',\n 'username' => $faker->email,\n 'modified' => time(),\n // set the model's default values\n // For example:\n // 'name' => $faker->lastName\n ];\n });\n }", "function setDefault($value)\n {\n $this->_defValue = $value;\n }", "public function __default()\r\n {\r\n if (self::isArg('notifwindow')) {\r\n $this->view = \"common_notifwindow\";\r\n $this->viewArgs['table'] = self::getArg(\"table\", AT_posint, true);\r\n } else {\r\n $this->view = \"lettertycoon_lettertycoon\";\r\n self::trace(\"Complete reinitialization of board game\");\r\n }\r\n }", "protected function setDefaults()\n {\n return;\n }", "public function defaultData();", "public function getStatesModel()\n\t{\n\t\treturn $this->statesModel = new StatesModel();\n\t}", "public function getDefaultValue();", "public function getDefaultValue();", "public function applyDefaultValues()\n\t{\n\t\t$this->closed = 0;\n\t\t$this->lastfmid = 0;\n\t\t$this->hasphotos = 0;\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->platform = 'pc';\n\t\t$this->experience_score = 0;\n\t\t$this->up_votes = 0;\n\t\t$this->down_votes = 0;\n\t\t$this->is_guest = 0;\n\t\t$this->is_admin = 0;\n\t\t$this->today_votes = 0;\n\t\t$this->email_on = 1;\n\t}", "private function getStateDefaultStatus($state)\n {\n\t\tif(\\Cart2Quote\\License\\Model\\License::getInstance()->isValid()) {\n\t\t\t$status = false;\n $stateNode = $this->_getState($state);\n if ($stateNode) {\n $status = $this->quoteStatusFactory->create()->loadDefaultByState($state);\n $status = $status->getStatus();\n }\n return $status;\n\t\t}\n\t}" ]
[ "0.77757794", "0.72255844", "0.6857964", "0.67950636", "0.67661", "0.6433752", "0.64074224", "0.63712305", "0.61876214", "0.61864567", "0.6159088", "0.61543477", "0.6153316", "0.61428887", "0.6116904", "0.61084956", "0.6106097", "0.60391295", "0.60389197", "0.6019848", "0.5986674", "0.59860927", "0.5976762", "0.59668744", "0.59477085", "0.5901205", "0.58822954", "0.5878731", "0.5871747", "0.5848243", "0.58415335", "0.58413815", "0.5833248", "0.5825086", "0.58250594", "0.5806455", "0.58058864", "0.58041453", "0.58029646", "0.57660234", "0.57429475", "0.57429475", "0.57427984", "0.57279396", "0.5711024", "0.5692638", "0.5673827", "0.566948", "0.5664214", "0.5660662", "0.56602883", "0.5649529", "0.56371003", "0.56371003", "0.56371003", "0.56371003", "0.56371003", "0.56371003", "0.56371003", "0.56371003", "0.56371003", "0.5635351", "0.5633597", "0.5625998", "0.5625998", "0.5625998", "0.5625998", "0.5625998", "0.56185526", "0.5617039", "0.5617039", "0.5617039", "0.559846", "0.5595863", "0.5588903", "0.5571013", "0.5570181", "0.55631495", "0.55542296", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.5544705", "0.55306304", "0.5529163", "0.55278975", "0.5527834", "0.55129236", "0.55105746", "0.5509279", "0.5508973", "0.5508973", "0.5507722", "0.55054384", "0.5486495" ]
0.0
-1
setAdditionalProperties If the subattribute has additional option values add them to the object public properties
public function setAdditionalProperties(Array $values) { unset($values['key']); unset($values['value']); unset($values['dependencies']); if ($values) { foreach ($values as $key => $value) { $this->$key = $value; } } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function &setRawAdditionalProperties($value);", "public function setAdditionalProperties(bool $additionalProperties): self\n {\n $this->additionalProperties = $additionalProperties;\n return $this;\n }", "abstract public function getRawAdditionalProperties();", "public function moveAllOtherUserdefinedPropertiesToAdditionalArguments() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "protected function addAdditionalIdentityPropertiesIfNeeded() {}", "function getAdditionalAttributes() ;", "public function getAdditionalProperties(): bool\n {\n return $this->additionalProperties;\n }", "public function setAttributes();", "private function setAdditionalOptions(): void\n\t{\n\t\tforeach ( $this->configuration->getAdditionalOptions() as $additionalOptionIdentifier => $additionalOptionValue )\n\t\t{\n\t\t\tif ( true === in_array( $additionalOptionIdentifier, static::EXCLUDED_ADDITIONAL_OPTIONS, true ) )\n\t\t\t{\n\t\t\t\tldap_set_option( $this->ldapHandle, $additionalOptionIdentifier, $additionalOptionValue );\n\t\t\t}\n\t\t}\n\t}", "protected function initializeAttributes() {\n\t\tparent::initializeAttributes();\n\n\t\t$this->attributes['subtype'] = 'procuralog';\n\t}", "public function applyOptions(): void\n {\n if ($this->hasEndpoint()) {\n $this->withOptions(['endpoint' => $this->endpoint]);\n }\n\n $this->setProp('value', $this->attribute);\n $this->setProp('entities', $this->options(), false);\n }", "private function addProperties(&$objReceive)\n {\n $properties = [\n 'target_date', 'voucher_url', 'participant_first_name', 'participant_last_name',\n 'activity_title', 'activity_id', 'plan_title', 'plan_unit_items',\n 'plan_options', 'plan_transportation_item', 'booked_date', 'plan_start_time',\n 'display_amount_gross_final', 'activity_cancel_policies', 'checkin_date',\n 'checkin_time', 'checkin_location_title', 'checkin_location_description',\n 'pick_up_date', 'pick_up_time', 'pick_up_location_title', 'pick_up_location_description',\n 'hotel_name', 'hotel_address', 'hotel_tel', 'hotel_reservation_first_name',\n 'hotel_reservation_last_name', 'arrival_date', 'departure_date', 'flight_number',\n 'destination_tel',\n ];\n $defArray = ['plan_unit_items', 'plan_options', 'activity_cancel_policies'];\n \n // add properties dynamically\n foreach ($properties as $property) {\n $objReceive->{$property} = in_array($property, $defArray) ? [] : null;\n }\n }", "protected function collect_attributes() {\n\t\tforeach ( $this->properties as $key => $val ) {\n\t\t\tif ( in_array($key, self::$global_attributes) || in_array($key, static::$element_attributes) ) {\n\t\t\t\t$this->attributes[ $key ] = $val;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// also check for compound attributes, such as data-src, aria-required, etc.\n\t\t\tforeach ( self::$global_attribute_pattern_prefixes as $prefix ) {\n\t\t\t\tif ( preg_match( '/'. $prefix .'[-]\\w+/', $key ) ) {\n\t\t\t\t\t$this->attributes[ $key ] = $val;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected function fillProperties()\n {\n foreach ($this as $key => $value) {\n if ($this->isPrivate($key)) {\n continue;\n }\n $this->currentProperties[\"{$key}\"] = $value;\n $this->newProperties[\"{$key}\"] = $value;\n }\n }", "private function addProperties( $options ){\n\n // loop over properties\n for( $i = 0; $i < count( $this->elementProperties ); $i++ ){\n // property exists\n if( isset( $options[$this->elementProperties[$i]] ) ){\n \n // get property value\n $propertyValue = $options[$this->elementProperties[$i]];\n \n // is src\n if( $this->elementProperties[$i] == 'src' ){\n // add image url to source\n $propertyValue = $this->imageUrl . $propertyValue;\n }\n // is src\n \n // add property id and value\n echo ' ' .$this->elementProperties[$i] . '=\"' . $propertyValue . '\" ';\n }\n // property exists\n }\n // loop over properties\n }", "public function initMutateProperty()\n {\n foreach ( $this->initMutateProperties as $property ) {\n $this->mutateProperties[ $property ] = $this->{$property};\n }\n $this->view->addParams( [\n 'mutateProperties' => $this->mutateProperties\n ] );\n }", "protected function _addProperties($clonee) {\r\n\t\t/* Intentionally empty */\r\n\t}", "public function setAdditionalInformation($val)\n {\n $this->_propDict[\"additionalInformation\"] = $val;\n return $this;\n }", "protected function buildPropertyInfoAlter() {\n }", "public function setAdditional(array $additional)\n {\n $this->additional = $additional;\n return $this;\n }", "public function setAttributes(Collection $properties);", "private function addAtrributesToCRUD() {\r\n if (!empty($this->__attributes)) {\r\n $this->myCRUD()->setAtributes($this->__attributes);\r\n }\r\n }", "function set_attr($attr=array()) {\n $this->other_attr = $attr;\n }", "public function setProperties() {\n\t\t$this->public_prop = 'public';\n\t\t$this->protected_prop = 100;\n\t\t$this->private_prop = true;\n\n\t\t// Set a non-predefined property.\n\t\t$this->dynamic = new self();\n\t}", "protected function setProperties()\n {\n foreach ($this->data as $key => $value) {\n $this->$key = $value;\n }\n }", "private function setAdditionalFields($additionalFields)\n {\n $this->additionalFields = $additionalFields;\n }", "public function setProperties($properties)\n {\n\n }", "protected function initializeAttributes() {\n\t\tparent::initializeAttributes();\n\n\t\t$this->attributes['subtype'] = \"assignments\";\n\t}", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "public function addAdditionalProperty($name, $value)\n {\n $this->additionalProperties[$name] = $value;\n }", "function convert_additional( &$obj )\n\t{\n\t\t// set default photo\n\t\t$obj->default_photo = $this->get_default_photo( $obj->id, 'food-additional' );\n\n\t}", "public function after_custom_props() {}", "public function setExtra($extra)\n {\n $this->extra = json_encode($extra);\n return $this;\n }", "public function setAttributes($item,$attributes) {\n\t\t$this->_properties[$item]['Attributes'] = ' '.$attributes;\n\t}", "public function getAdditionalProperties()\n {\n if ($this->decoded_additional_properties === false) {\n $raw = trim($this->getRawAdditionalProperties());\n $this->decoded_additional_properties = empty($raw) ? [] : json_decode($raw, true);\n\n if (!is_array($this->decoded_additional_properties)) {\n $this->decoded_additional_properties = [];\n }\n }\n\n return $this->decoded_additional_properties;\n }", "abstract protected function properties();", "public function setExtra($extra);", "public function setExtra($extra)\n\t{\n\t\t$this->_extra = (array)$extra;\n\t}", "protected function add_additional_elements()\n {\n if (count($this->additional_elements) > 0)\n {\n $count = 0;\n foreach ($this->additional_elements as $element)\n {\n if ($element->getType() != 'hidden')\n {\n $count ++;\n }\n }\n\n if ($count > 0)\n {\n $this->addElement('category', Translation::get('AdditionalProperties'));\n foreach ($this->additional_elements as $element)\n {\n $this->addElement($element);\n }\n $this->addElement('category');\n }\n }\n }", "private function init_properties( array $properties ) {\n\t\t// recursively filter null values\n\t\t$this->properties = Arrays::filter_recursive( $properties );\n\t\t// collect all attributes properties for this element\n\t\t$this->collect_attributes();\n\t}", "protected function _fillAvailableProperties()\n {\n $properties = array(\n __(\"Special Properties\") => array(\n 0 => __(\"<Unmapped>\"),\n -1 => __(\"Tags\"),\n -2 => __(\"File\"),\n -3 => __(\"Item Type\"),\n -4 => __(\"Collection\"),\n -5 => __(\"Public\"),\n -6 => __(\"Featured\"),\n )\n );\n $elementSets = $this->_helper->db->getTable('ElementSet')->findAll();\n foreach ($elementSets as $elementSet)\n {\n $idNamePairs = array();\n $elementTexts = $elementSet->getElements();\n foreach ($elementTexts as $elementText)\n {\n $idNamePairs[$elementText->id] = $elementText->name;\n }\n $properties[$elementSet->name] = $idNamePairs;\n }\n $this->view->available_properties = $properties;\n }", "public static function add_standard_properties() {\n\n\t\t// Set properties.\n\t\tself::$field->id = rgar( self::$nf_field, 'id' );\n\t\tself::$field->label = rgar( self::$nf_field, 'label' );\n\t\tself::$field->adminLabel = rgar( self::$nf_field, 'admin_label' );\n\t\tself::$field->isRequired = rgar( self::$nf_field, 'req' );\n\t\tself::$field->cssClass = rgar( self::$nf_field, 'class' );\n\t\tself::$field->defaultValue = rgar( self::$nf_field, 'default_value_type' ) === '_custom' || rgar( self::$nf_field, 'default_value_type' ) === '' ? rgar( self::$nf_field, 'default_value' ) : null;\n\n\t}", "public function allowProperties() {}", "private function parseProperties(): void\n {\n $properties = $this->extractProperties();\n\n foreach ($properties as $property)\n {\n if ($property['docblock']===null)\n {\n $docId = null;\n }\n else\n {\n $docId = PhpAutoDoc::$dl->padDocblockInsertDocblock($property['docblock']['doc_line_start'],\n $property['docblock']['doc_line_end'],\n $property['docblock']['doc_docblock']);\n }\n\n PhpAutoDoc::$dl->padClassInsertProperty($this->clsId,\n $docId,\n $property['name'],\n Cast::toManInt($property['is_static']),\n $property['visibility'],\n $property['value'],\n $property['start'],\n $property['end']);\n }\n }", "public function addAttributes($post_id)\n\t{\n\t\t$attr = 'custom';\n\t\t\n\t\twp_set_object_terms($post_id, '0', $attr);\n\n $thedata[sanitize_title($attr)] = array(\n \t'name' => wc_clean($attr),\n 'value' => '0',\n 'postion' => '0',\n 'is_visible' => '0',\n 'is_variation' => '1',\n 'is_taxonomy' => '1'\n );\n \n\t\tupdate_post_meta($post_id, '_product_attributes', $thedata);\n\t\t\t\t\t\t\n\t}", "public function setProperties( ArrayObject $params )\n {\n foreach ( $this->attributeTypes as $attr => $type )\n {\n // 1: fijarse si esta en params\n // 2: verificar si el valor que tiene en params es del mismo tipo que el atributo\n // - Si el tipo es numerico, y el valor es string, ver que sea un string numerico. http://www.php.net/is_numeric (ojo con numeros negativos o si empiezan con \".\" o \",\", probar!!!)\n // - Si el tipo es date o time, y el tipo es un string, ver que el string tiene forma de date o time.\n // - Distinguir entre valor cero y valor null.\n\n // TODO: Ver como se podrian tambien setear listas de \"objetos simples\" (no es la idea que esto setee atributos que son PO, solo atributos simples)\n if (isset($params[$attr]) && !$this->isInyectedAttribute($attr)) // IMPORTANTE: id, class, deleted no se pueden setear por set properties!!!\n {\n // Esto es set$attr pero mas rapido!\n // TODO: Chekeos de tipos...\n // WARNING: Esto solo setea atributos simples! Hay que ver si puedo hacer el tema de setear atributos de clases asociadas... (depende de la notacion de las keys de params)\n // SI HAGO TODO EL CHEKEO EN setAttributeValue, solo llamo a esa y listo...\n \n $this->attributeValues[$attr] = (is_string($params[$attr]) ? trim($params[$attr]) : $params[$attr]);\n \n // Si attr el un id de un hasOne, y viene un string vacio, me tira un error en DatabaseXXX\n // al intentar poner un '' en un campo INT id, pero NULL le puedo poner. Asi que si viene\n // un valor vacio, le pongo NULL.\n if ($this->attributeValues[$attr] === '') $this->attributeValues[$attr] = NULL;\n \n \n // FIXME: deberia garantizar que solo vienen valores simples en params.\n \n // Marco como dirty en atributos simples (asignar en cada loop del for es mas barato\n // que estar chequeando si se modifico un campo y setear afuera del loop).\n $this->dirty = true;\n }\n }\n }", "public function setExtra($extra)\r\n {\r\n $this->extra=$extra;\r\n }", "public function setProperties(array $data)\n {\n $this->properties = $data;\n }", "private function addProperties( $properties, $options ){\n\n // loop over properties\n for( $i = 0; $i < count( $properties ); $i++ ){\n \n // property exists\n if( isset( $options[$properties[$i]] ) ){\n \n // add property id and value\n echo ' ' . $properties[$i] . '=\"' . $options[$properties[$i]] . '\" ';\n }\n // property exists\n }\n // loop over properties\n }", "public function setExtra($extra)\n {\n $resultData = $this->hydrateIfJsonToArray($extra);\n if (!empty($resultData)) {\n $this->extra = $resultData;\n }\n else {\n $this->extra = [];\n }\n }", "protected function mergeTranslationsWithAttributes()\n\t{\n\t\t$this->attributes = array_merge($this->attributes, $this->translatedAttributes);\n\t}", "public function setAttributes($attributes){ }", "abstract public function field_props();", "public function get_extended_properties( array $properties, $object_type );", "protected function additionalFieldsAllowed(): bool\n\t{\n\t\treturn true;\n\t}", "abstract protected function get_properties();", "public function initProps()\n {\n foreach ($this->cmds as $key => $parseValues) {\n $this->props[$key] = false;\n }\n\n foreach ($this->flags as $key => $parseValues) {\n $this->props[$key] = false;\n }\n }", "private function getAttributeSetData(array $additional): array\n {\n $data = [\n 'attributes' => [],\n 'groups' => [],\n 'not_attributes' => [],\n 'removeGroups' => [],\n 'attribute_set_name' => 'Default',\n ];\n\n return array_merge($data, $additional);\n }", "private function mapProperties(): void\n {\n $this->properties = Collect::keyBy($this->collection->getProperties()->getValues(), 'identifier');\n }", "public function initializeHasStepAttributes(): void\n {\n $this->casts[static::stepAttributesField()] = SchemalessAttributes::class;\n }", "function shouldSkipUnknownProperties() ;", "public function setExtended() {\n /* first cut out regular and unwanted fields */\n $excludeExtended = $this->controller->getProperty('excludeExtended','');\n $excludeExtended = explode(',',$excludeExtended);\n $profileFields = $this->profile->toArray();\n $userFields = $this->user->toArray();\n $extended = array();\n $fields = $this->dictionary->toArray();\n $fields = $this->filterAllowedFields($fields);\n $userGroupField = $this->controller->getProperty('usergroupsField','');\n foreach ($fields as $field => $value) {\n if (!isset($profileFields[$field])\n && !isset($userFields[$field])\n && $field != 'password_confirm'\n && $field != 'passwordconfirm'\n && $field != $userGroupField\n && !in_array($field,$excludeExtended)\n ) {\n $extended[$field] = $value;\n }\n }\n /* now set extended data */\n $this->profile->set('extended',$extended);\n }", "public function setSchemaExtensionProperties($val)\n {\n $this->_propDict[\"properties\"] = $val;\n return $this;\n }", "public function loadAttributeOptions()\n {\n parent::loadAttributeOptions();\n $currentOptions = $this->getAttributeOption();\n if (is_array($currentOptions) &&\n ! isset($currentOptions['payment_method'])\n ) {\n $currentOptions['payment_method'] = __('Payment Method');\n $this->setAttributeOption($currentOptions);\n }\n return $this;\n }", "public function setElementProperties() {\r\n $properties = null;\r\n $propertyData = $this->getProperty('propdata',null);\r\n if ($propertyData != null && is_string($propertyData)) {\r\n $propertyData = $this->modx->fromJSON($propertyData);\r\n }\r\n if (is_array($propertyData)) {\r\n $this->object->setProperties($propertyData);\r\n }\r\n return $propertyData;\r\n }", "public function addAttributes($arrAttributes) {\n foreach ($arrAttributes as $key => $val) {\n $this->attributes[$key] = $val;\n }\n }", "protected function add_additional_fields_to_object($response_data, $request)\n {\n }", "protected function _add_render_attributes() {\n \n // use parent attributes\n parent::_add_render_attributes();\n \n }", "public function addAttributes(string $property, array $attributes)\n {\n $this->attributes[$property] = $attributes;\n }", "public function setUserAttributes();", "private function addAttributeComplexArrayToCollection(Collection $collection, array $attribute): void\r\n {\r\n if (isset($attribute['attribute'])) {\r\n $collection->addAttributeToSelect($attribute['attribute']);\r\n }\r\n if (isset($attribute['fallback_attribute'])) {\r\n $collection->addAttributeToSelect($attribute['fallback_attribute']);\r\n }\r\n }", "public function set_props($args)\n {\n }", "public function setAdditionalFields(string $additionalFields)\n {\n $this->additionalFields = $additionalFields;\n\n return $this;\n }", "public function propertyInfoAlter(EntityMetadataWrapper $wrapper, array $property_info) {\n if (entity_get_property_info($wrapper->type())) {\n // Overwrite the existing properties with the list of properties including\n // all fields regardless of the used bundle.\n $property_info['properties'] = entity_get_all_property_info($wrapper->type());\n }\n\n if (!isset($this->added_properties)) {\n $this->added_properties = array(\n 'search_api_language' => array(\n 'label' => t('Item language'),\n 'description' => t(\"A field added by the search framework to let components determine an item's language. Is always indexed.\"),\n 'type' => 'token',\n 'options list' => 'entity_metadata_language_list',\n ),\n );\n // We use the reverse order here so the hierarchy for overwriting property\n // infos is the same as for actually overwriting the properties.\n foreach (array_reverse($this->getAlterCallbacks()) as $callback) {\n $props = $callback->propertyInfo();\n if ($props) {\n $this->added_properties += $props;\n }\n }\n }\n // Let fields added by data-alter callbacks override default fields.\n $property_info['properties'] = array_merge($property_info['properties'], $this->added_properties);\n\n return $property_info;\n }", "private function api_set_properties( $properties ) {\n\n\t\t// Verify tracking status\n\t\tif ( $this->disable_tracking() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// identify user first\n\t\t$this->set_named_identity( null );\n\n\t\t// remove blank properties\n\t\tif( isset( $properties[''] ) ) {\n\t\t\tunset( $properties[''] );\n\t\t}\n\n\t\t// record the properties\n\t\t$this->get_api()->set( $properties );\n\t}", "public function getAdditionalAddAttributes(): ?array;", "private function set_properties($properties=array()){\n\n if ((!isset($properties)) || (!is_array($properties))){\n $properties=$this->$properties;\n return $properties;\n }\n else\n {\n $this->$properties=$properties; //set object properties\n }\n\n }", "public function unpackAdditionalAttributes(&$data, $mergeInstructions)\n {\n MonsterVariable::processEntityVariables($this);\n if (isset($data['comment'])) {\n $this->processComments($data['comment']);\n }\n }", "abstract protected function setValidationCustomAttributes(): array;", "function hook_openid_connect_user_properties_to_skip_alter(array &$properties_to_skip) {\n}" ]
[ "0.7152561", "0.6513602", "0.6374759", "0.60897803", "0.59763205", "0.59763205", "0.59763205", "0.59763205", "0.59760904", "0.5975519", "0.5975255", "0.5975255", "0.5912394", "0.5876184", "0.5848766", "0.5825301", "0.58228374", "0.58182436", "0.5812921", "0.5775338", "0.571808", "0.5713235", "0.5688221", "0.56415135", "0.56289047", "0.56179094", "0.5545024", "0.55067044", "0.5468207", "0.5451663", "0.5446037", "0.54376745", "0.54202354", "0.54077613", "0.5393814", "0.53584766", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.532677", "0.5318914", "0.53151804", "0.5300934", "0.5298553", "0.52915615", "0.52821755", "0.52719396", "0.5269211", "0.52653164", "0.5244871", "0.52445734", "0.5229184", "0.5229137", "0.5228245", "0.52251124", "0.5214168", "0.5206334", "0.52032274", "0.51990765", "0.51928824", "0.5186006", "0.516585", "0.51634175", "0.5163296", "0.5159938", "0.51477426", "0.5139872", "0.5094405", "0.508971", "0.5089411", "0.5088049", "0.50815254", "0.50740206", "0.5060027", "0.5053899", "0.50437856", "0.502263", "0.5012148", "0.5009537", "0.500937", "0.5009076", "0.5008567", "0.4997326", "0.49939984", "0.49937767", "0.49869365", "0.4982411", "0.49813822", "0.49805623", "0.49776378" ]
0.0
-1
hasDependencies Determine if a subcategory has dependent subcategories This is used when assigning product_id's to a user eg. when assigning cloth types to a user, some cloth types won't depend on all of the subcategories
public function hasDependencies(): bool { return (bool) $this->getDependencies(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasSubdependencies(): bool;", "public function hasDependent()\n {\n return (1 == $this->_hasDependent);\n }", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "public function has_dependencies(): bool;", "public function check_if_has_dependency() {\n $res = true;\n\n foreach ( $this->depends_on as $class ) {\n if ( ! class_exists( $class['name'] ) ) {\n $this->dependency_error[] = $class['notice'];\n $res = false;\n $this->dependency_not_found = true;\n }\n }\n\n return $res;\n }", "public function isDependant();", "function twe_news_has_category_subcategories($category_id) {\n global $db;\n $child_category_query = \"select count(*) as count from \" . TABLE_NEWS_CATEGORIES . \" where parent_id = '\" . $category_id . \"'\";\n $child_category = $db->Execute($child_category_query);\n\n if ($child_category->fields['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "public function has_active_dependencies(): bool;", "public static function has_dependents(){\n\t\treturn false;\n\t}", "function cumple_dependencias()\n\t{\n\t\treturn count($this->get_dependencias_faltantes()) > 0;\n\t}", "public function has_inactive_dependencies(): bool;", "public function hasChildren()\n {\n $query = 'SELECT category_id FROM '. \\rex::getTablePrefix() .'d2u_machinery_categories '\n .'WHERE parent_category_id = '. $this->category_id;\n $result = \\rex_sql::factory();\n $result->setQuery($query);\n\n if ($result->getRows() > 0) {\n return true;\n }\n\n return false;\n\n }", "public function check_for_dependents()\n\t{\n\t\t$query = \"SELECT * FROM \" . cms_db_prefix() . \"module_deps WHERE parent_module = ?\";\n\t\t$row = cms_db()->GetRow($query, array($this->get_name()));\n\n\t\tif ($row)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public static function determineHasChild()\n {\n $criteria = new Criteria();\n self::addAdminCriteria($criteria);\n $categories = self::doSelect($criteria);\n\n foreach ($categories as $category) {\n $criteria = new Criteria();\n $criteria->add(self::PARENT_ID, $category->getId());\n\n $criteriaSet = new Criteria();\n\n if (self::doCount($criteria) > 0) {\n $criteriaSet->add(self::HAS_CHILD, 1);\n }\n else {\n $criteriaSet->add(self::HAS_CHILD, 0);\n }\n\n $criteriaWhere = new Criteria();\n $criteriaWhere->add(self::ID, $category->getId());\n\n BasePeer::doUpdate($criteriaWhere, $criteriaSet, Propel::getConnection(self::DATABASE_NAME));\n }\n\n }", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "private function _hasSubCategories($category){\n $cat = Mage::getModel('catalog/category')->load($category->getId());\n $subcats = $cat->getChildren();\n if (empty($subcats)){\n return false;\n } else {\n return true;\n }\n }", "public function has_no_inactive_dependencies(): bool;", "function remove_dependents() {\n\t\t/** todo\n\t\tforeach($this->has_many_data as $key => $value) {\n\t\t\tdebug($key, $value);\n\n\t\t}\n\n\t\tforeach($this->has_one_data as $key => $value) {\n\t\t\tdebug($key, $value);\n\t\t}\n\t\t*/\n\n\t\treturn true;\n\t}", "public function has_no_active_dependencies(): bool;", "public function dependencyExist(): bool\n {\n if ($this->dependencyExist !== null) {\n return $this->dependencyExist;\n }\n\n $this->dependencyExist = (bool)$this->getPqrForm()->getRow('sys_dependencia');\n\n return $this->dependencyExist;\n }", "function tep_has_product_subproducts($products_id) {\n\t$subproducts_query = tep_db_query(\"select count(*) as count from \" . TABLE_PRODUCTS . \" where products_parent_id = '\" . (int)$products_id . \"'\");\n\t$subproducts = tep_db_fetch_array($subproducts_query);\n\tif ($subproducts['count'] > 0) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "public function hasCategories() {\n return $this->_has(16);\n }", "function problematicDependencies() {\n foreach ($this->dependency_log as $id => $tbls) {\n if (count($tbls) > 1) return count($tbls);\n }\n return 0;\n }", "public function hasCategories()\n {\n return !empty($this->categories);\n }", "public function hasDependencyErrors() {}", "public function hasCategories()\n {\n return !$this->categories->isEmpty();\n }", "public function check_dependencies() {\n\n $dependencies = [];\n\n /**\n * Sample plugin dependency\n *\n * Depends on ACF plugin active\n */\n// if ( ! class_exists( 'acf' ) ) {\n// $dependencies[] = [\n// 'type' => 'error',\n// 'message' => $this->name . ' ' . __( 'requires ACF PRO plugin activated', 'goapostas' )\n// ];\n// }\n\n /**\n * Depends on ACF plugin active\n */\n if ( false === version_compare( PHP_VERSION, '7.0.0', '>=' ) ) {\n $dependencies[] = [\n 'type' => 'error',\n 'message' => $this->name . ' ' . __( 'requires PHP 7.0.0 or higher. Your PHP version is ' . PHP_VERSION, 'goapostas' )\n ];\n }\n\n if ( ! empty( $dependencies ) ) {\n $this->show_admin_notices( $dependencies );\n\n return false;\n }\n\n return true;\n }", "protected function _isDependence($name) {\r\n \treturn array_key_exists($name, $this->_dependenciesMap);\r\n }", "public function hasBuiltDependencies()\n {\n foreach ($this->dependencies as $dep) {\n /** @var $dep PackageVersion */\n\n if ( ! $dep->isBuilt()) {\n return false;\n }\n }\n\n return true;\n }", "public function isDependant() {\n return $this->isDependant;\n }", "public function hasSubItems() {\n return count($this->subItems) > 0;\n }", "public function testFilterSubCategoryNotEmptyExistingCategoryId() {\n $allCategories = $this->model_catalog_product->getAllCategories(); //run conditions on getProducts method\n $filters = array( //set up conditions for test\n 'filter_category_id' => $allCategories[0]['category_id'], //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", filter_category_id=>27, 1 products');\n }", "function nameExistInParent(){\n\n\t\t$cat = $this->add('xepan\\commerce\\Model_Category');\n\t\t$cat->addCondition('parent_category_id',$this['parent_category_id']?:null);\n\t\t$cat->addCondition('name',$this['name']);\n\t\t$cat->addCondition('id','<>',$this->id);\n\t\t$cat->tryLoadAny();\n\n\t\treturn $cat->loaded();\n\n\t\treturn $this->ref('parent_category_id')->loaded()? \n\t\t$this->ref('parent_category_id')->ref('SubCategories')\n\t\t\t\t->addCondition('name',$this['name'])\n\t\t\t\t->addCondition('id','<>',$this->id)\n\t\t\t\t->tryLoadAny()->loaded(): false;\n\t}", "protected function dependenciesComplete() {\n foreach ($this->dependencies as $dependency) {\n $migration = MigrationBase::getInstance($dependency);\n if (!$migration->isComplete()) {\n return FALSE;\n }\n }\n return TRUE;\n }", "public function contains_dependency(string $basename): bool;", "public function hasSub()\n {\n if(is_null($this->items) || !count($this->items)) return false;\n return true;\n }", "public function subCategories()\n {\n return $this->belongsToMany(Category::class, 'solution_categories', 'solution_id', 'category_id')->isChild();\n }", "public function isDependancy_simple() {\n\t\t$this->getDependancy_simple();\n\t}", "public static function checkDependencies() {\n\t\treturn true;\n\t}", "public function hasChildren()\n {\n return $this->myChildren()->exists();\n }", "public function hasCategory(): bool;", "public function testFilterSubCategoryNotEmpty() {\n $filters = array( //set up conditions for test\n 'filter_category_id' => 'true', //necessary to access filter_sub_category\n 'filter_sub_category' => 'true',\n );\n $products = $this->model_catalog_product->getProducts($filters); //run conditions on getProducts method\n $productsTotal = $this->model_catalog_product->getTotalProducts($filters);\n $this->assertTrue(sizeof($products) == $productsTotal, sizeof($products) . ' Retrieved from filter_sub_category=>\"true\", 0 products');\n }", "public function hasDescendants();", "function has_sub($menu_item_id, &$items) {\n\t$sub_count = 0;\n foreach ($items as $item) {\n\t if ($item->menu_item_parent && $item->menu_item_parent==$menu_item_id) {\n\t\t $sub_count++;\n\t\t}\n }\n return $sub_count;\n}", "private function checkDependencies() {\n return true;\n }", "public function verify_dependencies()\n {\n $verifier = new DependencyVerifier(Package::get(static::context()));\n $success = $verifier->is_removable();\n \n $this->add_message(self::TYPE_NORMAL, $verifier->get_logger()->render());\n \n if (! $success)\n {\n return $this->failed(Translation::get('PackageDependenciesFailed'));\n }\n else\n {\n $this->add_message(self::TYPE_NORMAL, Translation::get('PackageDependenciesVerified'));\n return true;\n }\n }", "public function hasDependency(string $name): bool;", "public function hasParentId(){\n return $this->_has(3);\n }", "public function hasChilds() {\n if(is_bool($this->hasChilds)){\n if(($this->hasChilds and empty($this->childs)) or (!$this->hasChilds and !empty($this->childs))){\n return $this->getResource()->hasChilds();\n } else {\n return $this->hasChilds;\n }\n }\n return $this->getResource()->hasChilds();\n }", "public function hasDependency(string $name) : bool\n {\n return (isset($this->package->dependencies) && isset($this->package->dependencies->$name))\n || (isset($this->package->devDependencies) && isset($this->package->devDependencies->$name));\n }", "protected function checkUsage(){\n $modId = $this->getModId();\n $oDeclarator = AMI_ModDeclarator::getInstance();\n $parentModId = $oDeclarator->getParent($modId);\n return\n AMI::issetAndTrueOption($parentModId, 'use_categories');\n }", "public static function check_dependencies() {\n\t\tif ( ! self::check_php() ) {\n\t\t\tadd_action( 'admin_notices', array( 'WP_Job_Manager_Dependency_Checker', 'add_php_notice' ) );\n\t\t\tadd_action( 'admin_init', array( __CLASS__, 'deactivate_self' ) );\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! self::check_wp() ) {\n\t\t\tadd_action( 'admin_notices', array( 'WP_Job_Manager_Dependency_Checker', 'add_wp_notice' ) );\n\t\t\tadd_filter( 'plugin_action_links_' . JOB_MANAGER_PLUGIN_BASENAME, array( 'WP_Job_Manager_Dependency_Checker', 'wp_version_plugin_action_notice' ) );\n\t\t}\n\n\t\treturn true;\n\t}", "public function isReadyForPurge()\n\t{\n\t\tif($this->getStatus() != CategoryStatus::DELETED)\n\t\t\treturn false;\n\t\t\t\n\t\tif($this->getMembersCount())\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getMembersCount() . \"] users\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getEntriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getEntriesCount() . \"] entries\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getDirectSubCategoriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getDirectSubCategoriesCount() . \"] sub categories\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "function category_has_children() {\n global $wpdb;\n $term = get_queried_object();\n $category_children_check = $wpdb->get_results(\" SELECT * FROM wp_term_taxonomy WHERE parent = '$term->term_id' \");\n if ($category_children_check) {\n return true;\n } else {\n return false;\n }\n}", "public function hasChildren() {\n\t\treturn $this->children()->count() > 0;\n\t}", "private function is_required( &$dependency ) {\n\t\tif ( isset( $dependency['required'] ) ) {\n\t\t\treturn ( true === $dependency['required'] || 'true' === $dependency['required'] );\n\t\t}\n\t\tif ( isset( $dependency['optional'] ) ) {\n\t\t\treturn ( false === $dependency['optional'] || 'false' === $dependency['optional'] );\n\t\t}\n\t\treturn true;\n\t}", "public function getHasChild()\n {\n $sql = \"SELECT * FROM \" . TB_USAGE . \" WHERE parent_id = \" . $this->db->sqltext($this->mix_id);\n $this->db->query($sql);\n if ($this->db->num_rows() > 0) {\n $this->hasChild = true;\n } else {\n $this->hasChild = false;\n }\n\n return $this->hasChild;\n }", "public function hasPriceCategory()\n {\n return $this->price_category !== null;\n }", "public function hasChildren() \n {\n return count($this->children) > 0;\n }", "function in_comic_category() {\n\tglobal $post, $category_tree;\n\t\n\t$comic_categories = array();\n\tforeach ($category_tree as $node) {\n\t\t$comic_categories[] = end(explode(\"/\", $node));\n\t}\n\treturn (count(array_intersect($comic_categories, wp_get_post_categories($post->ID))) > 0);\n}", "private function checkProductCategories()\n {\n $products = Product::with('categories')->get();\n $errors = [];\n foreach ($products as $product) {\n if ($product->categories->count() < 1) {\n $errors[] = sprintf(\n 'The product \"%s (%s)\" has no category set.',\n $product->name,\n $product->id\n );\n }\n }\n\n return count($errors) > 0 ? implode(\"\\n\", $errors) : true;\n }", "public static function hasChildren($category_id)\n\t{\n\t\t//TODO: cache stuff if possible\n\t\t//check input\n\t\t$category_id = intval($category_id);\n\t\tif ($category_id==0){\n\t\t\treturn false;\n\t\t}\n\t\t$db = DataAccess::getInstance();\n\t\t$sql = \"SELECT COUNT(*) FROM \".geoTables::categories_table.\" WHERE `parent_id` = ?\";\n\t\t$count = (int)$db->GetOne($sql, array($category_id));\n\t\treturn ($count > 0);\n\t}", "function canFinish($numCourses, array $prerequisites) {\n $len = count($prerequisites);\n\n if ($len == 0) return range(0, $numCourses - 1);\n\n // counter for number of prereq in each course\n $pCounter = [];\n for ($i = 0; $i < $len; $i ++ ) {\n $pCounter[$prerequisites[$i][0]] ++;\n }\n\n //store courses that have no prerequisites\n $queue = new SplDoublyLinkedList();\n for ($i = 0; $i < $numCourses; $i ++ ) {\n if ($pCounter[$i] == 0) {\n $queue->push($i);\n }\n }\n\n // number of courses that have no prerequisites\n $numNoPre = $queue->count();\n\n $result = [];\n $j = 0;\n\n\n while ($queue->count() > 0) {\n $top = $queue->shift();\n $result[$j ++] = $top;\n\n for ($i = 0; $i < $len; $i++) {\n if ($prerequisites[$i][1] == $top) {\n $pCounter[$prerequisites[$i][0]] --;\n if ($pCounter[$prerequisites[$i][0]] == 0) {\n $numNoPre ++;\n $queue->push($prerequisites[$i][0]);\n }\n }\n }\n }\n\n\n $canFinish = $numNoPre == $numCourses;\n\n return $canFinish ? $result : null;\n}", "public function hasCategory()\n {\n return $this->category !== null;\n }", "public function hasChildren() {\n return $this->children()->count();\n }", "public function checkDependencies($migration_id) {\n $migrationInstance = $this->pluginManagerMigration->createStubMigration($this->definitions[$migration_id]);\n $dependencies = $migrationInstance->getMigrationDependencies();\n $depends_on = implode(', ', $dependencies['required']);\n foreach ($dependencies['required'] as $id) {\n if (!$this->getMigrationSource($id)) {\n $this->messenger()->addError($this->t('@migration_id depends on: @ids', [\n '@migration_id' => $migration_id,\n '@ids' => $depends_on,\n ]));\n return FALSE;\n }\n }\n if ($depends_on) {\n $this->messenger()->addMessage($this->t('@migration_id depends on: @ids', [\n '@migration_id' => $migration_id,\n '@ids' => $depends_on,\n ]));\n }\n\n return TRUE;\n }", "function noExistDependence($dependence_name)\n\t{\n\t\t$query = $this->db->get_where('dependence', array('name'=>$dependence_name));\n\t\treturn $query->num_rows() == 0;\n\t}", "public function hasChildren() {}", "public function hasChildren() {}", "public function hasChildren() {}", "public function hasChildren() {}", "public function hasChildren() {}", "function has_child($id){\n\t\t$rs = $this->db->query('select count(*) from c_dokumen_informasi where parent_id='.$id.'')->result_array();\n\t\t$row = $rs;\n\t\treturn $row[0] > 0 ? true : false;\n\t}", "private function hasChilds(): bool\n {\n return (bool)$this->treePathModelClass::find()\n ->byParentId($this->owner->id)\n ->byChildId($this->owner->getAttribute($this->ownerParentIdAttribute))\n ->count();\n }", "protected function has_active_siblings($category)\n {\n \n \n $sibling = Db_DbHelper::queryArray('select * from gd_google_taxonomy where visible=1 and parent_id=:parent_id and id<>:id', array('parent_id'=>$category->parent_id, 'id'=>$category->id));\n \n return count($sibling) > 0;\n \n \n }", "public function has_children()\n {\n return ($this->size > 2);\n }", "public function deleteRootCategoryWithSubcategoriesHavingProducts()\n {\n //Data\n $productData = $this->loadData('simple_product_required');\n $rootCategoryData = $this->loadData('root_category_required');\n $subCategoryData = $this->loadData('sub_category_all',\n array('category_products_search_sku' => $productData['general_sku'],\n 'parent_category' => $rootCategoryData['name']));\n //Steps\n $this->navigate('manage_products');\n $this->productHelper()->createProduct($productData);\n //Verifying\n $this->assertMessagePresent('success', 'success_saved_product');\n //Steps\n $this->assertPreConditions();\n $this->categoryHelper()->createCategory($rootCategoryData);\n //Verifying\n $this->assertMessagePresent('success', 'success_saved_category');\n //Steps\n $this->categoryHelper()->createCategory($subCategoryData);\n //Verifying\n $this->assertMessagePresent('success', 'success_saved_category');\n //Steps\n $this->categoryHelper()->selectCategory($rootCategoryData['name']);\n $this->categoryHelper()->deleteCategory('delete_category', 'confirm_delete');\n //Verifying\n $this->assertMessagePresent('success', 'success_deleted_category');\n }", "public function hasDepartments() {\n $deps = $this->getDepartments();\n if ($deps->count() > 0) {\n return true;\n }\n return false;\n }", "public function getAllowMissingDependencies() : bool\n {\n return $this->allowMissingDependencies;\n }", "function tep_products_in_category_count($categories_id, $include_deactivated = false) {\n $products_count = 0;\n\n if ($include_deactivated) {\n $products_query = tep_db_query(\"select count(*) as total from \" . TABLE_PRODUCTS . \" p, \" . TABLE_PRODUCTS_TO_CATEGORIES . \" p2c where p.products_id = p2c.products_id and p2c.categories_id = '\" . $categories_id . \"'\");\n } else {\n //$products_query = tep_db_query(\"select count(*) as total from \" . TABLE_PRODUCTS . \" p, \" . TABLE_PRODUCTS_TO_CATEGORIES . \" p2c where p.products_id = p2c.products_id and p.products_status != '0' and p2c.categories_id = '\" . $categories_id . \"'\");\n $products_query = tep_db_query(\"select count(*) as total from \" . TABLE_PRODUCTS . \" p, \" . TABLE_PRODUCTS_TO_CATEGORIES . \" p2c where p.products_id = p2c.products_id and p2c.categories_id = '\" . $categories_id . \"'\");\n }\n\n $products = tep_db_fetch_array($products_query);\n\n $products_count += $products['total'];\n\n $childs_query = tep_db_query(\"select categories_id from \" . TABLE_CATEGORIES . \" where parent_id = '\" . $categories_id . \"'\");\n if (tep_db_num_rows($childs_query)) {\n while ($childs = tep_db_fetch_array($childs_query)) {\n $products_count += tep_products_in_category_count($childs['categories_id'], $include_deactivated);\n }\n }\n\n return $products_count;\n}", "public function hasDepartment() {\n return $this->_has(2);\n }", "function checkPrerequisites($conn, $studentID, $semester, $courseID){\n $prereqs = array();\n \n $sql = \"SELECT prerequisitecourseID FROM prerequisite WHERE courseID = '$courseID'\";\n $result = mysqli_query($conn, $sql);\n \n while($row = $result->fetch_row()){\n \n array_push($prereqs, $row[0]);\n }\n\n for($x = 0; $x < count($prereqs); $x++){\n $sql = \"SELECT coursesection.CRN from enrollment \n LEFT JOIN coursesection ON coursesection.CRN = enrollment.CRN\n WHERE enrollment.studentID = $studentID && coursesection.semesterID != $semester && courseID = \\\"\" . $prereqs[$x] . \"\\\"\";\n $result = mysqli_query($conn, $sql);\n if($result->num_rows <= 0){\n return false;\n }\n }\n \n \n\n\n return true;\n\n }", "public static function hasDependencies($ID)\n\t{\n\t\tif(!is_int($ID))\n\t\t{\n\t\t\t$ID = (int)$ID;\n\t\t}\n\t\t$ID = max($ID, 0);\n\n\t\t$query = new Query(ActivityTable::getEntity());\n\t\t$query->addSelect('ID');\n\t\t$query->addFilter('=PROVIDER_ID', Provider::PROVIDER_ID);\n\t\t$query->addFilter('=PROVIDER_TYPE_ID', $ID);\n\t\t$query->setLimit(1);\n\n\t\t$dbResult = $query->exec();\n\t\treturn is_array($dbResult->fetch());\n\t}", "protected function getDependencies($a_entity, $a_version, $a_rec, $a_ids)\r\n\t{\r\n\t\treturn false;\r\n\t}", "public function active_dependencies(): Collection;", "public function hasChildren(): bool\n {\n return $this->children()->count() > 0;\n }", "public function supportsCourseCatalogHierarchy() {\n \treturn $this->manager->supportsCourseCatalogHierarchy();\n\t}", "public function hasSubGroups()\n\t{\n\t\treturn count($this->_subGroups) > 0;\n\t}", "public function hasChildren()\n {\n }", "public function hasChildren()\n {\n }", "public function hasChildren();", "public function hasChildren();", "public function hasChildren();", "public function hasChildren();", "public function isUsedInFieldDependency() {\n $rm = new Tracker_RulesManager($this->getTracker());\n return $rm->isUsedInFieldDependency($this);\n }", "function hasChildren( &$childrenCount, $id = \"this\" )\r\n {\r\n $ret = false;\r\n\r\n if ( $id == \"this\" )\r\n {\r\n $id = $this->ID;\r\n }\r\n\r\n if ( is_numeric( $id ) )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $company_type_array = array();\r\n $db->array_query( $company_type_array, \"SELECT ParentID FROM eZContact_CompanyType WHERE ParentID='$id'\" );\r\n $childrenCount = count( $company_type_array );\r\n\r\n if ( $childrenCount != 0 )\r\n {\r\n $ret = true;\r\n }\r\n }\r\n\r\n return $ret;\r\n }", "public function hasChildren() : bool\n {\n return $this->children->isNotEmpty();\n }", "public function hasMultipleFK()\n {\n return (count($this->getForeignKeys()) > 1);\n }", "public function testHasVisibleSubCats()\n {\n $this->setRequestParameter('mnid', 'root');\n $oManufacturerTree = oxNew('oxManufacturerList');\n $oManufacturerTree->buildManufacturerTree('manufacturerlist', 'root', $this->getConfig()->getShopHomeURL());\n\n $oManufacturer = oxNew('Manufacturerlist');\n $oManufacturer->setManufacturerTree($oManufacturerTree);\n\n $this->assertEquals(4, $oManufacturer->hasVisibleSubCats());\n }", "function plugin_itilcategorygroups_check_prerequisites() {\n if (version_compare(GLPI_VERSION,'0.85', 'lt')) {\n echo \"This plugin requires GLPI 0.85\";\n return false;\n }\n return true;\n}" ]
[ "0.75162625", "0.64234", "0.6405413", "0.6320249", "0.6108572", "0.6096099", "0.6004871", "0.60002625", "0.5906114", "0.58648807", "0.5845892", "0.58141434", "0.5791958", "0.57521176", "0.56916195", "0.56820107", "0.56315273", "0.55962", "0.5595996", "0.55829376", "0.5573405", "0.55697066", "0.5563508", "0.5558547", "0.5547402", "0.5490665", "0.54767793", "0.5455856", "0.53986865", "0.5393456", "0.5367628", "0.53616077", "0.5358646", "0.5358377", "0.5332204", "0.53179854", "0.530541", "0.5295327", "0.5287566", "0.5255538", "0.52185035", "0.5215952", "0.52089095", "0.518954", "0.5182287", "0.5180236", "0.51755536", "0.5150742", "0.51406497", "0.5139664", "0.5129193", "0.51181597", "0.5077797", "0.50710183", "0.50443923", "0.5040982", "0.50390095", "0.5028771", "0.5024598", "0.5022725", "0.501398", "0.50065297", "0.50027514", "0.4999744", "0.49927217", "0.4988927", "0.49861306", "0.49789226", "0.4978407", "0.4978407", "0.4978407", "0.4978407", "0.49756813", "0.4971447", "0.496476", "0.49556148", "0.4952333", "0.49501047", "0.49474323", "0.49333593", "0.49237537", "0.49158522", "0.491391", "0.49071795", "0.49047175", "0.48880178", "0.48852614", "0.48834705", "0.48719737", "0.48719737", "0.487101", "0.487101", "0.487101", "0.487101", "0.48696548", "0.48692715", "0.48682785", "0.48666313", "0.4864313", "0.48607516" ]
0.60807365
6
Provides test cases for testValidateResponse.
public function validateResponseProvider() { $defaults = [ 'route_name' => 'jsonapi.node--article.individual', 'resource_type' => new ResourceType('node', 'article', NULL), ]; $test_data = [ // Test validation success. [ 'json' => <<<'EOD' { "data": { "type": "node--article", "id": "4f342419-e668-4b76-9f87-7ce20c436169", "attributes": { "nid": "1", "uuid": "4f342419-e668-4b76-9f87-7ce20c436169" } } } EOD , 'expected' => TRUE, 'description' => 'Response validation flagged a valid response.', ], // Test validation failure: no "type" in "data". [ 'json' => <<<'EOD' { "data": { "id": "4f342419-e668-4b76-9f87-7ce20c436169", "attributes": { "nid": "1", "uuid": "4f342419-e668-4b76-9f87-7ce20c436169" } } } EOD , 'expected' => FALSE, 'description' => 'Response validation failed to flag an invalid response.', ], // Test validation failure: "errors" at the root level. [ 'json' => <<<'EOD' { "data": { "type": "node--article", "id": "4f342419-e668-4b76-9f87-7ce20c436169", "attributes": { "nid": "1", "uuid": "4f342419-e668-4b76-9f87-7ce20c436169" } }, "errors": [{}] } EOD , 'expected' => FALSE, 'description' => 'Response validation failed to flag an invalid response.', ], // Test validation of an empty response passes. [ 'json' => NULL, 'expected' => TRUE, 'description' => 'Response validation flagged a valid empty response.', ], // Test validation fails on empty object. [ 'json' => '{}', 'expected' => FALSE, 'description' => 'Response validation flags empty array as invalid.', ], ]; $test_cases = array_map(function ($input) use ($defaults) { [$json, $expected, $description, $route_name, $resource_type] = array_values($input + $defaults); return [ $this->createRequest($route_name, $resource_type), $this->createResponse($json), $expected, $description, ]; }, $test_data); return $test_cases; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function provideTestValidateResponse()\n {\n return array(\n // all pass\n array(true, true, true, true, null),\n // no success but acceptable, no AVS or CVV failures\n array(false, true, true, true, null),\n // AVS failure\n array(false, false, false, true, 'Radial_CreditCard_Exception'),\n // CVV failure\n array(false, false, true, false, 'Radial_CreditCard_Exception'),\n // no success, no failures but still unacceptable\n array(false, false, true, true, 'Radial_CreditCard_Exception'),\n );\n }", "public function test_validation()\n\t{\n\t\tfor ($i = 1; $i <= 8; $i++) {\n\t\t\tlist(, $args) = $this->parse(\"test$i.xml\");\n\t\t\t$response = AFK_XmlRpc_Parser::serialise_response(\n\t\t\t\tcall_user_func_array(array($this, \"validate_$i\"), $args)\n\t\t\t);\n\t\t\t$expected = $this->load(\"test$i.response.xml\");\n\t\t\t$response = $this->format($response);\n\t\t\t$expected = $this->format($expected);\n\t\t\t$this->assertEquals($expected, $response);\n\t\t}\n\t}", "public function testBasicView() {\n\t\t\t\n\t\t\t$response1 = Director::test('/api/check', array('email' => '[email protected]'));\n\t\t\t$this->assertTrue(\n\t\t\t\t\tjson_decode($response1->getBody())->return_code == 0,\n\t\t\t\t\t'Valid email test failed'\n\t\t\t);\n\t\n\t\t\t$response2 = Director::test('/api/check', array('email' => 'chris@taxtraders'));\n\t\t\t$this->assertEquals(\n\t\t\t\t\tjson_decode($response2->getBody())->return_code,\n\t\t\t\t\t1, \n\t\t\t\t\t'Invalid email test failed'\n\t\t\t);\n\t\n\t\t\t$response3 = Director::test('/api/check', array('name' => 'Test'));\n\t\t\t$this->assertTrue(\n\t\t\t\t\tjson_decode($response3->getBody())->return_code == 0\n\t\t\t\t\t, 'Valid name test failed'\n\t\t\t);\n\t\n\t\t\t$response4 = Director::test('/api/check', array('name' => 'Test007'));\n\t\t\t$this->assertEquals(\n\t\t\t\t\tjson_decode($response4->getBody())->return_code,\n\t\t\t\t\t1,\n\t\t\t\t\t'Invalid name test failed'\n\t\t\t);\n\t\n\t\t}", "public function testGetAllValidVouchers(){\n $response = $this->json('POST', 'api/voucher/all', ['email' => '[email protected]']);\n\n $response\n ->assertStatus(200)\n ->assertJsonStructure([\n [\n 'code',\n 'offer'\n ]\n ]);\n }", "function testValidate(){\n\t\t$useraccount = new UserAccount();\n\t\t$data_without_firstname = $this->test_data;\t\t\n\t\t$data_without_firstname['firstname'] = \"\";\n\t\t$useraccount->processPost($data_without_firstname);\n\t\t$this->assertRegExp(\"/First Name/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that the lastname must have a value\n\t\t$useraccount = new UserAccount();\n\t\t$data_without_lastname = $this->test_data;\n\t\t$data_without_lastname['lastname'] = \"\";\n\t\t$useraccount->processPost($data_without_lastname);\n\t\t$this->assertRegExp(\"/last name/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that the email must have a value\n\t\t $useraccount = new UserAccount();\n\t\t$data_without_email = $this->test_data;\n\t\t$data_without_email['email'] = \"\";\n\t\t$useraccount->processPost($data_without_email);\n\t\t$this->assertRegExp(\"/email/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that atleast one group has been selected\n\t\t$useraccount = new UserAccount();\n\t\t$data_without_group = $this->test_data;\n\t\t$data_without_group['usergroups_groupid'] = array();\n\t\t$useraccount->processPost($data_without_group);\t\t\n\t\t$this->assertRegExp(\"/Group/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that the email is unique \n\t\t$useraccount = new UserAccount();\n\t\t$data_with_duplicate_email = $this->test_data;\n\t\t$data_with_duplicate_email['email'] = \"[email protected]\";\n\t\t$useraccount->processPost($data_with_duplicate_email);\t\t\n\t\t$this->assertRegExp(\"/already exists/i\", $useraccount->getErrorStackAsString());\n\t}", "public function testValidRequest()\n {\n $this->client->{$this->method}(\n $this->endpoint,\n $this->getValidData(),\n $this->requestHeaders\n );\n $this->assertResponseCode(200, 299);\n }", "public function validation()\n {\n $equalValidator = new stubEqualValidator(5);\n $this->assertFalse($equalValidator->validate('foo'));\n $this->assertFalse($equalValidator->validate(null));\n $this->assertFalse($equalValidator->validate(true));\n $this->assertFalse($equalValidator->validate(false));\n $this->assertFalse($equalValidator->validate(4));\n $this->assertFalse($equalValidator->validate(6));\n $this->assertTrue($equalValidator->validate(5));\n \n $equalValidator = new stubEqualValidator('foo');\n $this->assertFalse($equalValidator->validate('bar'));\n $this->assertFalse($equalValidator->validate('foo5'));\n $this->assertFalse($equalValidator->validate(null));\n $this->assertFalse($equalValidator->validate(true));\n $this->assertFalse($equalValidator->validate(false));\n $this->assertTrue($equalValidator->validate('foo'));\n $this->assertFalse($equalValidator->validate(4));\n \n $equalValidator = new stubEqualValidator(true);\n $this->assertFalse($equalValidator->validate('foo'));\n $this->assertFalse($equalValidator->validate(null));\n $this->assertTrue($equalValidator->validate(true));\n $this->assertFalse($equalValidator->validate(false));\n $this->assertFalse($equalValidator->validate(4));\n \n $equalValidator = new stubEqualValidator(false);\n $this->assertFalse($equalValidator->validate('foo'));\n $this->assertFalse($equalValidator->validate(null));\n $this->assertFalse($equalValidator->validate(true));\n $this->assertTrue($equalValidator->validate(false));\n $this->assertFalse($equalValidator->validate(4));\n \n $equalValidator = new stubEqualValidator(null);\n $this->assertFalse($equalValidator->validate('foo'));\n $this->assertTrue($equalValidator->validate(null));\n $this->assertFalse($equalValidator->validate(true));\n $this->assertFalse($equalValidator->validate(false));\n $this->assertFalse($equalValidator->validate(4));\n \n $this->equalValidator = new stubEqualValidator(5);\n $this->assertFalse($equalValidator->validate(new stdClass()));\n }", "public function get_validate_response_data() {\n\t\treturn [];\n\t}", "public function testIsValid() {\n\n\n\n }", "public function testDataResponse()\n {\n $driverPassesEndpoint = new DriverPassesEndpoint(getenv('MRP_API_KEY'));\n $data = $driverPassesEndpoint->setClassId(1000)\n ->setScheduleId(5508)\n ->setDataOrder('nameAsc')\n ->setDriverId(1023)\n ->setEndDate('8/21/2016')\n ->setStartDate('8/21/2015')\n ->getRequest();\n\n $this->assertNotEmpty($data);\n $this->assertTrue(is_object($data));\n $this->assertEquals(1, $data->RequestValid);\n }", "public function testGettingResponse()\n {\n $response = new Response(\n json_encode(array(\n 'msg' => 'Testing Beepsend API'\n )), \n array(\n 'http_code' => 200,\n 'Content-Type' => 'application/json'\n )\n );\n \n $value = $response->get();\n $this->assertEquals('Testing Beepsend API', $value['msg']);\n }", "public function testCreateSurveyResponse0()\n {\n }", "public function testCreateSurveyResponse0()\n {\n }", "public function dataProviderForTestIsValid()\n {\n $addressArchive = new Request\\AddressArchive();\n $addressArchive->setAddress('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n\n $addressBalance = new Request\\AddressBalance();\n $addressBalance->setAddress('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n\n $addressBalanceInvalid = clone $addressBalance;\n $addressBalanceInvalid->setConfirmations(-1);\n\n $addressUnarchive = new Request\\AddressUnarchive();\n $addressUnarchive->setAddress('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n\n $autoConsolidateAddresses = new Request\\AutoConsolidateAddresses();\n $autoConsolidateAddresses->setDays(60);\n\n $listAddressesInvalid = new Request\\ListAddresses();\n $listAddressesInvalid->setConfirmations(400);\n\n $send = new Request\\Send();\n $send->setTo('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n $send->setAmount(10000);\n\n return array(\n array(\n 'request' => $addressArchive,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\AddressArchive(),\n 'expected' => false,\n ),\n array(\n 'request' => $addressBalance,\n 'expected' => true,\n ),\n array(\n 'request' => $addressBalanceInvalid,\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\AddressBalance(),\n 'expected' => false,\n ),\n array(\n 'request' => $addressUnarchive,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\AddressUnarchive(),\n 'expected' => false,\n ),\n array(\n 'request' => $autoConsolidateAddresses,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\AutoConsolidateAddresses(),\n 'expected' => false,\n ),\n array(\n 'request' => $listAddressesInvalid,\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\ListAddresses(),\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\NewAddress(),\n 'expected' => true,\n ),\n array(\n 'request' => $send,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\Send(),\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\SendMany(),\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\WalletBalance(),\n 'expected' => true,\n ),\n );\n }", "public function doValidate(){\n if (!is_array($this->getValidates())){\n throw new \\Exception(\"dose this function must call setValidate() function first.\");\n }\n\n foreach($this->getValidates() as $k => $v){\n //$v = (ValidateData)$v;\n if (TextUtils::isEmpty($v->getInput()) && $v->getRequire() == true){\n $v->setResult(false);\n }else{\n $v->setResult(true);\n }\n\n if ($v->getResult() && !TextUtils::isEmpty($v->getInput())){\n switch($v->getValidator()){\n case ValidateData::VALIDATOR_CUSTOM:\n $v->setResult($this->check($v->getInput(),$v->getRegexp()));\n break;\n case ValidateData::VALIDATOR_COMPARE:\n $result = false;\n if (!TextUtils::isEmpty($v->getOperator())){\n switch ($v->getOperator()){\n case ValidateData::OPERATOR_EQUIVALENT:\n $result = $v->getInput() == $v->getTo();\n break;\n case ValidateData::OPERATOR_GREATER:\n $result = $v->getInput() > $v->getTo();\n break;\n case ValidateData::OPERATOR_LESS:\n $result = $v->getInput() < $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_GREATER:\n $result = $v->getInput() >= $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_LESS:\n $result = $v->getInput() <= $v->getTo();\n break;\n case ValidateData::OPERATOR_NOT_EQUIVALENT:\n $result = $v->getInput() != $v->getTo();\n break;\n }\n\n }\n $v->setResult($result);\n break;\n case ValidateData::VALIDATOR_LENGTH:\n $len = mb_strlen($v->getInput(),'UTF-8');\n $v->setResult($len >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult($len <= $v->getMax() && $len >= $v->getMin());\n }\n\n break;\n\n case ValidateData::VALIDATOR_RANGE:\n $v->setResult((int)$v->getInput() >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult((int)$v->getInput() <= $v->getMax() && (int)$v->getInput() >= $v->getMin());\n }\n\n break;\n default:\n $v->setResult($this->check($v->getInput(),$this->getValidator($v->getValidator())));\n break;\n }\n }\n }\n return $this->getError();\n }", "private function verifyResponse()\n {\n $errorMessages = [];\n \n if (!isset($this->endpoint)) {\n $errorMessages[] = \"$endpoint must be set.\";\n }\n \n if (!isset($this->statusCode)) {\n $errorMessages[] = \"$statusCode must be set.\";\n }\n \n if (!is_array($this->data)) {\n $errorMessages[] = \"$data must be formatted as an array.\";\n }\n \n if (!is_array($this->errors)) {\n $errorMessages[] = \"$errors must be formatted as an array.\";\n }\n\n if (!empty($errorMessages)) {\n return $errorMessages;\n }\n \n return true;\n }", "public function providerTestValidate()\n {\n return [\n ['string', ['length' => ['min' => 0, 'max' => 10]]],\n ['string', ['length' => ['min' => 0, 'max' => 2]], false],\n ['string', ['length' => ['min' => 9, 'max' => 10]], false],\n ];\n }", "public function getValidationResult();", "public function testValidRedemtion()\n {\n $response = $this->json('POST', 'api/voucher/redeem', ['email' => '[email protected]','code'=>'XkKp8Jki']);\n\n $response\n ->assertStatus(200)\n ->assertJsonStructure([\n 'percentage_discount'\n ]);\n }", "public function testCustomValidator()\n {\n $this->klein_app->service()->addValidator(\n 'donkey',\n function ($string, $color) {\n $regex_str = $color . '[-_]?donkey';\n\n return preg_match('/' . $regex_str . '/', $string);\n }\n );\n\n $this->klein_app->respond(\n '/[:test_param]',\n function ($request, $response, $service) {\n $service->validateParam('test_param')\n ->notNull()\n ->isDonkey('brown');\n\n // We should only get here if we passed our validations\n echo 'yup!';\n }\n );\n\n $this->assertSame(\n 'yup!',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/browndonkey')\n )\n );\n $this->assertSame(\n 'yup!',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/brown-donkey')\n )\n );\n $this->assertSame(\n 'yup!',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/brown_donkey')\n )\n );\n $this->assertSame(\n 'fail',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/bluedonkey')\n )\n );\n $this->assertSame(\n 'fail',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/blue-donkey')\n )\n );\n $this->assertSame(\n 'fail',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/blue_donkey')\n )\n );\n $this->assertSame(\n 'fail',\n $this->dispatchAndReturnOutput(\n MockRequestFactory::create('/brown_donk')\n )\n );\n }", "public function testResponseGet()\n {\n $result = json_decode($this->body, true);\n\n $this->assertEquals($this->response->get('Model'), $result['Model']);\n $this->assertEquals($this->response->get('RequestId'), $result['RequestId']);\n $this->assertEquals($this->response->get('Inexistence'), null);\n $this->assertEquals($this->response->get('Inexistence', 'Inexistence'), 'Inexistence');\n }", "public function test(){\n //$response1 = $this->makeRmsRequest(new GetRoomTypeApiRequestProcessor());\n $response2 = $this->makeRmsRequest(new GetAvailabilityRatesApiRequestProcessor());\n\n return $this->returnResponse(\n $this->getResponseStatus('SUCCESS'),\n 'user added successfully',\n $response2,\n 200\n );\n // \\Log::debug($response1);\n // \\Log::debug($response2);\n }", "public function testValidate() \n { \n $tester = new Cda();\n $tester->fecha_ingreso = \"Ingresar valor de pruebas para el campo fecha_ingreso de tipo date\";\n $tester->fecha_solicitud = \"Ingresar valor de pruebas para el campo fecha_solicitud de tipo date\";\n $tester->tramite_administrativo = \"Ingresar valor de pruebas para el campo tramite_administrativo de tipo varchar\";\n $tester->id_cproceso_arca = \"Ingresar valor de pruebas para el campo id_cproceso_arca de tipo int4\";\n $tester->id_cproceso_senagua = \"Ingresar valor de pruebas para el campo id_cproceso_senagua de tipo int4\";\n $tester->rol_en_calidad = \"Ingresar valor de pruebas para el campo rol_en_calidad de tipo varchar\";\n $tester->numero_tramites = \"Ingresar valor de pruebas para el campo numero_tramites de tipo int4\";\n $tester->id_cda = \"Ingresar valor de pruebas para el campo id_cda de tipo int4\";\n $tester->id_usuario_enviado_por = \"Ingresar valor de pruebas para el campo id_usuario_enviado_por de tipo numeric\";\n $tester->institucion_solicitante = \"Ingresar valor de pruebas para el campo institucion_solicitante de tipo varchar\";\n $tester->solicitante = \"Ingresar valor de pruebas para el campo solicitante de tipo varchar\";\n $tester->cod_centro_atencion_ciudadano = \"Ingresar valor de pruebas para el campo cod_centro_atencion_ciudadano de tipo int4\";\n $tester->id_demarcacion = \"Ingresar valor de pruebas para el campo id_demarcacion de tipo numeric\";\n \n expect_that($tester->validate());\n // en caso de incluir valores errados para el modelo: expect_not($model->validate());\n return $tester;\n }", "public function testValidateDocumentJsonValidation()\n {\n }", "protected function test() {\n // TEST BLOCK - comment out once validation to here is verified\n $resp[\"method\"] = $this->method;\n $resp[\"request\"] = $this->request;\n $resp[\"putfile\"] = $this->file;\n $resp[\"verb\"] = $this->verb;\n $resp[\"args\"] = $this->args;\n //return $resp;\n // END TEST BLOCK\n if ($this->method == 'GET') {\n //return $this->verb; // For testing if-else ladder\n return testGetHandler( $this->args ); // Invoke your handler here\n }\n elseif ($this->method == 'POST') {\n return testPostHandler( $this->args );// Invoke your handler here\n }\n elseif ($this->method == 'DELETE' && count($this->args) == 1 ) {\n return $this->args[0]; // ID of delete request\n }\n else {\n return $resp; // DEBUG usage, help determine why failure occurred\n return \"Invalid requests\";\n }\n }", "public function validUserResponse ($userResponse);", "function assertResponseObject($responseObject, $returnValidationMethodOrClassName = 'is_object', $errorCount = 0, $warningCount = 0){\n $this->assertIsA($responseObject, 'RightNow\\Libraries\\ResponseObject');\n if(is_callable($returnValidationMethodOrClassName)){\n $this->assertTrue($returnValidationMethodOrClassName($responseObject->result));\n }\n else{\n $this->assertIsA($responseObject->result, $returnValidationMethodOrClassName);\n }\n $this->assertSame($errorCount, count($responseObject->errors));\n $this->assertSame($warningCount, count($responseObject->warnings));\n }", "public function testValidate()\n {\n $this->todo('stub');\n }", "public function test_response() \n\t{\n\t\treturn CCResponse::create( 'Callbacks are pretty cool' );\n\t}", "public function testGetSurveyResponses0()\n {\n }", "public function testGetSurveyResponses0()\n {\n }", "public function checkValidResponse()\n {\n // do nothing if validation is disabled or request method not set\n if ( ! $this->options['validate'] || empty( $this->method ) ) return;\n\n $this->expected = $this->expectByMethod( $this->method );\n\n if ( $this->check( $this->getStatusCode(), $this->expected ) ) return;\n\n $exception = new ResponseException( \"The request was not successful! Response message was: '{$this->response}'\", $this->getStatusCode() );\n\n $exception->setExpectedStatusCode( $this->expected );\n\n throw $exception;\n }", "public function testValidate() \n { \n $tester = new FdTanquesAlmacenaApscom();\n $tester->id_tanquesalmacena = \"Ingresar valor de pruebas para el campo id_tanquesalmacena de tipo int4\";\n $tester->ubicacion_tanque = \"Ingresar valor de pruebas para el campo ubicacion_tanque de tipo varchar\";\n $tester->capacidad_tanque = \"Ingresar valor de pruebas para el campo capacidad_tanque de tipo numeric\";\n $tester->medicion_entrada = \"Ingresar valor de pruebas para el campo medicion_entrada de tipo int4\";\n $tester->material = \"Ingresar valor de pruebas para el campo material de tipo int4\";\n $tester->frecuencia_mantenimiento = \"Ingresar valor de pruebas para el campo frecuencia_mantenimiento de tipo int4\";\n $tester->estado_tanque = \"Ingresar valor de pruebas para el campo estado_tanque de tipo int4\";\n $tester->problemas = \"Ingresar valor de pruebas para el campo problemas de tipo int4\";\n $tester->id_conjunto_respuesta = \"Ingresar valor de pruebas para el campo id_conjunto_respuesta de tipo int4\";\n $tester->id_junta = \"Ingresar valor de pruebas para el campo id_junta de tipo int4\";\n $tester->id_pregunta = \"Ingresar valor de pruebas para el campo id_pregunta de tipo int4\";\n $tester->id_respuesta = \"Ingresar valor de pruebas para el campo id_respuesta de tipo int4\";\n $tester->id_capitulo = \"Ingresar valor de pruebas para el campo id_capitulo de tipo int4\";\n \n expect_that($tester->validate());\n // en caso de incluir valores errados para el modelo: expect_not($model->validate());\n return $tester;\n }", "public function testValidate()\n {\n // Add user to check for the existing user case\n $user = new User(\"[email protected]\", \"Some User\", \"asdfasdf\", \"student\");\n $this->assertNotFalse($user->insert());\n\n // Some basic missing fields\n $errors = User::validate(\"asdf\", \"\", \"aaa\", \"bbb\", \"admin\");\n\n $this->assertContains(\"Invalid email\", $errors);\n $this->assertContains(\"Name cannot be empty\", $errors);\n $this->assertContains(\"Password should be stronger\", $errors);\n $this->assertContains(\"Passwords do not match\", $errors);\n $this->assertContains(\"Invalid user type\", $errors);\n\n // Existing email\n $errors = User::validate($user->getEmail(), \"Some Name\", \"a23456789\", \"a23456789\",\n \"lecturer\");\n $this->assertContains(\"Email already exists\", $errors);\n\n // Successful registration\n $errors = User::validate(\"[email protected]\", \"Some Name\", \"a23456789\", \"a23456789\", \"student\");\n $this->assertEmpty($errors);\n }", "public function testVerifyUsingPOST()\n {\n\n }", "public function testSuccessfulResponseDataFormatForConfirmProcessWithValidSuccessfulStatus(): void\n {\n $this->tryTestWithRequest();\n $this->assertTrue($this->response->getOriginalResponse()->isSuccessful());\n }", "public function testCalculateIssPostTest()\n {\n foreach ($this->testCasesData() as $tesCase => $data) {\n $response = $this->call(\n 'POST',\n 'strategyPattern/calculateIssTax',\n $data['input']\n );\n\n $response->assertJsonFragment(\n $data['output']['data']\n );\n\n $response->assertStatus($data['output']['status']);\n }\n }", "public function validationAction() {\n\n $video_type = $this->_getParam('type');\n $code = $this->_getParam('code');\n $ajax = $this->_getParam('ajax', false);\n $valid = false;\n\n //CHECK WHICH API SHOULD BE USED\n if ($video_type == \"youtube\") {\n $valid = $this->checkYouTube($code);\n }\n\n if ($video_type == \"vimeo\") {\n $valid = $this->checkVimeo($code);\n }\n\n $this->view->code = $code;\n $this->view->ajax = $ajax;\n $this->view->valid = $valid;\n }", "public function youCanMakeSuccessResponses()\n {\n // Arrange...\n $fruit = $this->createTestModel();\n\n // Act...\n $response = $this->responder->success( $fruit );\n\n // Assert...\n $this->assertInstanceOf( JsonResponse::class, $response );\n $this->assertEquals( $response->getStatusCode(), 200 );\n $this->assertEquals( $response->getData( true ), [\n 'status' => 200,\n 'success' => true,\n 'data' => [\n 'name' => 'Mango',\n 'price' => 10,\n 'isRotten' => false\n ]\n ] );\n }", "public function youCanMakeSuccessResponses()\n {\n // Arrange...\n $fruit = $this->createTestModel();\n\n // Act...\n $response = $this->responder->success( $fruit );\n\n // Assert...\n $this->assertInstanceOf( JsonResponse::class, $response );\n $this->assertEquals( $response->getStatusCode(), 200 );\n $this->assertEquals( $response->getData( true ), [\n 'status' => 200,\n 'success' => true,\n 'data' => [\n 'name' => 'Mango',\n 'price' => 10,\n 'isRotten' => false\n ]\n ] );\n }", "public function testValidateSucceed()\n\t{\n\t\t$this->assertTrue(ArrayQuery::validate('test,valid'));\n\t}", "public function testValidate() \n { \n $tester = new CdaReporteInformacion();\n $tester->sector_solicitado = \"Ingresar valor de pruebas para el campo sector_solicitado de tipo varchar\";\n $tester->institucion_solicitante = \"Ingresar valor de pruebas para el campo institucion_solicitante de tipo varchar\";\n $tester->solicitante = \"Ingresar valor de pruebas para el campo solicitante de tipo varchar\";\n $tester->fuente_solicitada = \"Ingresar valor de pruebas para el campo fuente_solicitada de tipo varchar\";\n $tester->q_solicitado = \"Ingresar valor de pruebas para el campo q_solicitado de tipo numeric\";\n $tester->tiempo_years = \"Ingresar valor de pruebas para el campo tiempo_years de tipo int4\";\n $tester->id_tfuente = \"Ingresar valor de pruebas para el campo id_tfuente de tipo int4\";\n $tester->id_subtfuente = \"Ingresar valor de pruebas para el campo id_subtfuente de tipo int4\";\n $tester->id_caracteristica = \"Ingresar valor de pruebas para el campo id_caracteristica de tipo int4\";\n $tester->id_treporte = \"Ingresar valor de pruebas para el campo id_treporte de tipo int4\";\n $tester->id_destino = \"Ingresar valor de pruebas para el campo id_destino de tipo int4\";\n $tester->id_uso_solicitado = \"Ingresar valor de pruebas para el campo id_uso_solicitado de tipo int4\";\n $tester->id_ubicacion = \"Ingresar valor de pruebas para el campo id_ubicacion de tipo int4\";\n $tester->id_reporte_informacion = \"Ingresar valor de pruebas para el campo id_reporte_informacion de tipo int4\";\n $tester->abscisa = \"Ingresar valor de pruebas para el campo abscisa de tipo numeric\";\n $tester->id_cda = \"Ingresar valor de pruebas para el campo id_cda de tipo int4\";\n $tester->observaciones = \"Ingresar valor de pruebas para el campo observaciones de tipo varchar\";\n $tester->proba_excedencia_obtenida = \"Ingresar valor de pruebas para el campo proba_excedencia_obtenida de tipo numeric\";\n $tester->proba_excedencia_certificado = \"Ingresar valor de pruebas para el campo proba_excedencia_certificado de tipo numeric\";\n $tester->decision = \"Ingresar valor de pruebas para el campo decision de tipo varchar\";\n $tester->observaciones_decision = \"Ingresar valor de pruebas para el campo observaciones_decision de tipo varchar\";\n $tester->id_actividad = \"Ingresar valor de pruebas para el campo id_actividad de tipo int4\";\n $tester->id_cactividad_proceso = \"Ingresar valor de pruebas para el campo id_cactividad_proceso de tipo int4\";\n \n expect_that($tester->validate());\n // en caso de incluir valores errados para el modelo: expect_not($model->validate());\n return $tester;\n }", "public function testHandlesValidationError()\n {\n $client = new MockClient('https://api.xavierinstitute.edu', [\n new JsonResponse([\n 'error' => [\n 'code' => 422,\n 'message' => '',\n 'fields' => [\n 'teacher' => ['The provided teacher is not employed here.'],\n ],\n ],\n ], 422),\n ]);\n\n $this->expectException(ValidationException::class);\n $client->post('classes', ['teacher' => 'Erik Lehnsherr']);\n }", "public function testValidateFormSuccess()\n {\n $formData = \"onions\";\n $validation = GRUB\\Validator\\Validator::validateIngredient($formData);\n $expected = \"onions\";\n $this->assertEquals($validation, $expected);\n }", "public function testSuccess()\n {\n }", "public function testSuccessfulResponseDataFormatForConfirmProcessWithValidCredentialsAndParameters(): void\n {\n $this->tryTestWithRequest();\n $responseBody = $this->response->getOriginalResponse()->getBody();\n $keys = (array) json_decode(json_encode($responseBody), true);\n\n $this->assertArrayHasKey('status', $keys);\n $this->assertArrayHasKey('message', $keys);\n $this->assertArrayHasKey('result', $keys);\n $this->assertArrayHasKey('transaction_id', $keys['result']);\n $this->assertArrayHasKey('amount', $keys['result']);\n }", "public function testValidateDocumentMsgValidation()\n {\n }", "public function testValueValid() {\n $config = [\n 'success' => 1,\n 'data' => 'example'\n ];\n $this->assertEmpty($this->getValidator()->validate($config));\n }", "protected function passedValidation(){\n // List all fields is allow in rules\n $rules = $this->rules();\n $allowFields = [];\n foreach($this->rules() as $key => $rule){\n if(! in_array($key, $allowFields)){\n array_push($allowFields, $key);\n }\n }\n\n // List all fileds in request\n $deniedFields = [];\n foreach($this->validationData() as $key => $rule){\n if(! in_array($key, $allowFields)){\n array_push($deniedFields, ucfirst($key).\" is not allow in request!\");\n }\n }\n\n // Response to client\n if(count($deniedFields)){\n throw new HttpResponseException(\n response()->json(['errors' => $deniedFields], JsonResponse::HTTP_UNPROCESSABLE_ENTITY)\n );\n }\n }", "public function testValidateTrue(): void\n {\n $this->assertFalse($this->validate(true));\n }", "public function testCheckValidUser()\n {\n $body = file_get_contents(__DIR__ . '/TestXMLData/find_user_data.xml');\n\n $mock = new MockHandler([\n new Response(200, [], $body)\n ]);\n $handler = HandlerStack::create($mock);\n $client = new Client(['handler' => $handler]);\n\n try {\n $response = $client->request('/');\n } catch (GuzzleException $e) {\n echo Psr7\\str($e->getRequest());\n if ($e->hasResponse()) {\n echo Psr7\\str($e->getResponse());\n }\n }\n\n $given = $this->userdata->isValidUser($response);\n $expected = true;\n\n $this->assertEquals($expected, $given);\n }", "public function testValidateFormFailure()\n {\n $formData = 10;\n $validation = GRUB\\Validator\\Validator::validateIngredient($formData);\n $expected = 10;\n $this->assertEquals($validation, $expected);\n }", "public function testApiRegistrationValidation()\n {\n $notUnique = $this->getTestRegisterData(false, 5);\n $response = $this->withHeaders([ 'Authorization' => $this->getBearerClientToken() ])\n ->json('POST', $this->getRegisterRoute(), $notUnique);\n\n $response->assertStatus(422);\n $errors = collect($response->decodeResponseJson()->json('errors'));\n $this->assertEquals(2, count($errors));\n $this->assertTrue($errors->has('password'));\n $this->assertTrue($errors->has('email'));\n }", "public function testValidateResponse($isSuccess, $isAcceptable, $isAvsSuccess, $isCvvSuccess, $exception)\n {\n $payload = $this->_buildPayloadToValidate($isSuccess, $isAcceptable, $isAvsSuccess, $isCvvSuccess);\n $this->_replaceCheckoutSession();\n if ($exception) {\n $this->setExpectedException($exception);\n }\n $paymentMethod = Mage::getModel('radial_creditcard/method_ccpayment');\n $this->assertSame(\n $paymentMethod,\n EcomDev_Utils_Reflection::invokeRestrictedMethod($paymentMethod, '_validateAuthResponse', array($payload))\n );\n }", "abstract public function runValidation();", "public function validateResponseField() {\n // Active or default version set in configuration for a given\n // major version. Information is available in the call_asset/configuration.\n $active_version = (string) $this->call_asset['configuration']['active_version'];\n\n if (!isset($this->response_field[ $active_version ])) {\n // With the active version configuration, test against the call\n // response field versions if a response field for that version\n // has been defined (data can be mapped to a response field).\n\n // Call version not implemented.\n $response = [\n 'code' => 501, // Not Implemented.\n 'message' => 'Call : Call version not implemented.'\n ];\n TripalWebServiceResponse::errorResponse($response);\n }\n }", "public function testErrorMessage()\n {\n $holiday = new MalaysiaHoliday;\n $response = $holiday->fromState(['Selangor', 'Malaccaa'])->get();\n\n $this->assertTrue($response['status']);\n $this->assertTrue($response['data'][0]['regional'] == 'Selangor');\n\n\n $this->assertFalse($response['data'][1]['regional'] == 'Malacca');\n $this->assertTrue($response['data'][1]['collection'] == []);\n\n $this->assertCount(1, $response['error_messages']);\n $this->assertTrue($response['error_messages'][0] == 'Malaccaa is not include in the regional state');\n }", "public function testCalculateIssTest()\n {\n foreach ($this->testCasesData() as $tesCase => $data) {\n $rota = 'strategyPattern/calculateIssTax?'.http_build_query($data['input']);\n $response = $this->call('GET', $rota);\n\n $response->assertJsonFragment(\n $data['output']['data']\n );\n\n $response->assertStatus($data['output']['status']);\n }\n }", "private function validateData() {\r\n\r\n $requiredFields = array(\"v_code\" => \"Verification code not supplied\",\r\n \"psw1\" => \"Password field is empty\",\r\n \"psw2\" => \"Password field is empty\",);\r\n\r\n\r\n //0 means there is no error\r\n $error_status = \\VAL_NO_ERROR;\r\n\r\n /*\r\n Initialize error object that will be returned by this function\r\n */\r\n $error_obj = new stdClass();\r\n $error_obj->msg = \"\";\r\n $error_obj->field = \"\";\r\n $error_obj->code = 0;\r\n $error_obj->type = \\VAL_NO_ERROR;\r\n\r\n //check if required variables are defined\r\n foreach ($requiredFields as $key => $value) {\r\n $value = $this->request->request->get($key);\r\n if (empty( $value )) {\r\n $error_obj->field = $key;\r\n $error_obj->msg = $requiredFields[$key];\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n //return after each field that is found wrong\r\n return $error_obj;\r\n }\r\n }\r\n\r\n $pass_1 = $this->request->request->get('psw1');\r\n $pass_2 = $this->request->request->get('psw2');\r\n\r\n //Check if emails match\r\n if (strcmp($pass_1, $pass_2) != 0) {\r\n $error_obj->field = \"psw2\";\r\n $error_obj->msg = \"Passwords are different\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n /*\r\n Only check one password. If both passwords are thesame, we only need to check one of them.\r\n */\r\n if (!preg_match('/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/', $pass_1)) {\r\n $error_obj->field = \"psw1\";\r\n $error_obj->msg = \"Password must have a digit, lower and upper case charters. Min lenght is 6\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n return $error_obj;\r\n }", "public function testErrors() {\n $numberOfErrors = 3;\n $generalError = new Error(\"This is the message\");\n $missingArgumentError = new MissingArgumentError(\"This is the message\", \"Argument Name\", \"Some amazing argument type\");\n $invalidIdentifierError = new InvalidIdentifierError(\"This is the message\", \"This is the given identifier - sweet\");\n\n $response = new Response();\n $response->addError($generalError);\n $response->addError($missingArgumentError);\n $response->addError($invalidIdentifierError);\n $errors = $response->errors();\n\n $this->assertEquals($numberOfErrors, count($errors));\n $this->assertEquals($generalError, $errors[0]);\n $this->assertEquals($missingArgumentError, $errors[1]);\n $this->assertEquals($invalidIdentifierError, $errors[2]);\n }", "public function validation()\n {\n $this->assertFalse($this->denyValidator->validate(123));\n $this->assertFalse($this->denyValidator->validate('1234'));\n $this->assertFalse($this->denyValidator->validate(true));\n $this->assertFalse($this->denyValidator->validate(null));\n $this->assertFalse($this->denyValidator->validate(new stdClass()));\n }", "abstract protected static function getResponse(Request $request, Validator $validator): Response;", "public function test_valid_data()\n {\n\n\n\n $data=[\"amount\"=> 1000,\n \"unpaid_appliance_rates\"=> 2,\n \"appliance_rate_cost\"=> 200,\n \"tariff_fixed_costs\"=> 160,\n \"price_per_kwh\"=> 700\n ];\n\n $response = $this->post('/api/transactions', $data);\n // $response->assertStatus(200);\n $response->assertJson( [\"data\"=> [\n \"type\"=> \"transaction\",\n \"attributes\"=> [\n \"paid_for_appliance_rates\"=> 400,\n \"fully_covered_appliance_rate\"=> 2,\n \"paid_for_fixed_tariff\"=> 160,\n \"paid_for_energy\"=> 490,\n \"topup_for_energy\"=> 50,\n \"sold_energy\"=> 0.7\n ]\n ]]);\n }", "private function validateMatchingResponseForToken(array $request, array $response, array $rules)\n {\n $logicEvaluator = new LogicEvaluator($rules, $response);\n\n foreach ($request as $claimName => $valueInRequest) {\n if (!$this->isVerificationClaim($claimName)) {\n continue;\n }\n\n $enabled = $this->getBoolValue($valueInRequest, 'conditional', true, $logicEvaluator);\n // If value=false is given, we accept both true and false.\n // It would make no sense to ask for stricly unverified e-mail or phone-number.\n // $essential is not considered for verification claims\n $mustBeVerified = $this->getBoolValue($valueInRequest, 'value', false, $logicEvaluator);\n $valueInResponse = $this->getClaimValue($response, $claimName);\n\n $baseClaimName = substr($claimName, 0, strlen($claimName) - strlen('_verified'));\n $baseClaimValueInRequest = isset($request[$baseClaimName]) ? $request[$baseClaimName] : [];\n $isBaseClaimEnabled = $this->getBoolValue($baseClaimValueInRequest, 'conditional', true, $logicEvaluator);\n $baseClaimValueInResponse = $this->getClaimValue($response, $baseClaimName);\n $isBaseClaimSet = !is_null($baseClaimValueInResponse);\n $isBaseClaimEssential = $this->getBoolValue($baseClaimValueInRequest, 'essential', false, $logicEvaluator);\n if (!$isBaseClaimEnabled && $isBaseClaimSet) {\n throw new ValidationException(\"Verifiable claim $baseClaimName disabled by conditional, but set.\");\n }\n\n if ($isBaseClaimEssential && !$isBaseClaimSet) {\n throw new ValidationException(\"Verifiable claim $baseClaimName essential, but missing.\");\n }\n\n if ($enabled && $isBaseClaimEnabled && $isBaseClaimSet) {\n if (!is_bool($valueInResponse)) {\n throw new ValidationException(\"Verification claim $claimName missing or has an invalid type.\");\n }\n\n if ($mustBeVerified && $valueInResponse !== true) {\n throw new ValidationException(\"Verification claim $claimName not true.\");\n }\n }\n }\n }", "public function validateRequest();", "public function validTestsProvider()\n\t {\n\t\treturn array(\n\t\t\t\"generating expanded document and validating it\" => array(\"valid-01\"),\n\t\t\t\"adding one hierarchy node\" => array(\"valid-02\"),\n\t\t\t\"adding three hierarchy nodes\" => array(\"valid-03\"),\n\t\t\t\"moving hierarchy node around\" => array(\"valid-04\"),\n\t\t\t\"testing absence of mandatory attribute of one of the hierarchy nodes\" => array(\"valid-05\"),\n\t\t\t\"changing placement of one of the mandatory leaves (for example, in different choice branch)\" => array(\"valid-06\"),\n\t\t\t\"one mandatory leaf element is removed from schema\" => array(\"valid-07\"),\n\t\t\t\"three mandatory leaves are deleted from schema\" => array(\"valid-08\"),\n\t\t\t\"last-level choice is first selected\" => array(\"valid-09\"),\n\t\t\t\"last-level choice is second selected\" => array(\"valid-10\"),\n\t\t\t\"three choices in a row are wrong\" => array(\"valid-11\"),\n\t\t\t\"processing non-DOMElement nodes (for example, DOMComment)\" => array(\"valid-12\"),\n\t\t\t\"two nodes with the same name have attributes with the same name\" => array(\"valid-13\"),\n\t\t\t\"elements with the same name have similar nametrace\" => array(\"valid-14\"),\n\t\t\t\"elements with the same name have similar nametrace, also the choice change occurs\" => array(\"valid-15\"),\n\t\t\t\"one or more elements in inputelements has absolute addressing\" => array(\"valid-16\"),\n\t\t\t\"all elements in inputelements have absolute addressing\" => array(\"valid-17\"),\n\t\t\t\"schema has multiple root elements\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"valid-18\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\"schema has attribute group for one of nodes\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"valid-19\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\"inserting two hierarchy levels between two elements\" => array(\"valid-20\"),\n\t\t\t\"root element attributes are processed as regular element attributes\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"valid-21\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\"choice adjacent to another element which contains another choice\" => array(\"valid-22\"),\n\t\t );\n\t }", "public function test_example()\n {\n $response = $this->post('/api/v1/login', ['email' => '[email protected]', 'password' => 'vihan123']);\n if($response->status() != 200) {\n print_r('route call error (test 1)');\n return $response->assertStatus(500);\n\n }\n $data = json_decode($response->content());\n if( (int)$data->status != 200 ) {\n print_r('User can not login (test 2)');\n return$response->assertStatus(500);\n }\n var_dump('user logined to the system');\n\n $token = $data->data->token;\n $response = $this->withHeaders([\n 'Authorization' => 'Bearer '.$token,\n ])->get('/api/v1/GetCurrencyInformation?currency=DOLLAR');\n\n if($response->status() != 200) {\n print_r('Route error or authentication error (test 3)');\n return $response->assertStatus(500);\n }\n\n $data = json_decode($response->content());\n if( (int)$data->status !== 200 ) {\n print_r('Data error in output (test 4)');\n return $response->assertStatus(500);\n }\n if( !isset($data->data->id) || $data->data->id <= '' ) {\n print_r('Data Error (test 5)');\n return $response->assertStatus(500);\n }\n var_dump('Currency information get successfully');\n\n return $response->assertStatus(200);\n }", "protected function validate() {\n\t\t// This loop has to be removed for 1.1\n\t\tforeach ($this->data as $k => $v) {\n\t\t\tif ($k == '__SESS_ID') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$sep = strpos('/', $k) !== false ? '/' : '-';\n\t\t\tbreak;\n\t\t}\n\n\t\t$validities = array();\n\n\t\t$hasError = ake(self::RESPONSE_ERROR, $this->responses);\n\n\t\tif (empty($this->data)) {\n\t\t\treturn $hasError;\n\t\t}\n\n\t\t$sep = null;\n\n\n\t\t// DEPRECATED, to be removed for 1.1\n\t\tforeach ($this->data as $k => $v) {\n\t\t\tif ($k == '__SESS_ID') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (is_null($sep)) {\n\t\t\t\t$sep = strpos($k, '/') !== false ? '/' : '-';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// DEPRECATED, to be removed for 1.1\n\t\tif ($sep == '/') {\n\t\t\tforeach ($this->data as $k => $v) {\n\t\t\t\tif ($k == '__SESS_ID') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$id = explode($sep, $k);\n\n\t\t\t\tif (count($id) > 3) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->structure[$this->table] as &$field) {\n\t\t\t\t\tif (is_array($field) && array_key_exists('name', $field) && $field['name'] == $id[2]) {\n\t\t\t\t\t\tif (array_key_exists('validation', $field)) {\n\t\t\t\t\t\t\t$r = '/' . $field['validation']['rule'] . '/';\n\n\t\t\t\t\t\t\tif (!preg_match($r, $v)) {\n\t\t\t\t\t\t\t\t$hasError = true;\n\t\t\t\t\t\t\t\t$this->addResponse($field['validation']['message'], self::RESPONSE_ERROR);\n\t\t\t\t\t\t\t\t$validities[$field['name']] = false;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$validities[$field['name']] = 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\n\t\t\t\t$this->toSave[$id[2]] = $v;\n\t\t\t}\n\n\t\t\t$this->view->set('validities', $validities);\n\n\t\t\treturn $hasError == false;\n\t\t\t// NEW WAY TO VALIDATE\n\t\t}\n\n\n\t\t// Here is final line code to keep for 1.1\n\n\t\t$dbs = array();\n\n\t\t// We order POST data by db/table to call the right model for each data\n\t\tforeach ($this->data as $k => $v) {\n\t\t\t// Find something less ugly\n\t\t\t$c = count(explode('-', $k)) - 1;\n\n\t\t\t// DB nor table given, we apply implicit db and table of this controller\n\t\t\tif ($c == 0) {\n\t\t\t\t$db = $this->_implicit;\n\n\t\t\t\tif (!is_null($this->model)) {\n\t\t\t\t\tthrow new ErrorException('POST field ' . $k . ' has not been associated to a table.');\n\t\t\t\t}\n\n\t\t\t\t$table = $this->model->getTable();\n\n\t\t\t\t$field = $k;\n\t\t\t\t// Only table and field are given, we apply implicit db of this controller\n\t\t\t} else if ($c == 1) {\n\t\t\t\t$db = $this->_implicit;\n\t\t\t\tlist ( $table, $field ) = explode('-', $k);\n\t\t\t} else {\n\t\t\t\tlist ( $db, $table, $field ) = explode('-', $k);\n\t\t\t}\n\n\n\t\t\t// Now we add field in all fields to be validated\n\t\t\t$db = camelize($db, '_');\n\n\t\t\tif (!ake($db, $dbs)) {\n\t\t\t\t$dbs[$db] = array();\n\t\t\t}\n\n\t\t\t$model = camelize($table, '_');\n\n\t\t\tif (!ake($model, $dbs[$db])) {\n\t\t\t\t$dbs[$db][$model] = array();\n\t\t\t}\n\n\t\t\t$dbs[$db][$model][$field] = $v;\n\t\t}\n\n\t\t$result = array();\n\n\t\t// And we call each model to validate data\n\t\tforeach ($dbs as $db => $models) {\n\t\t\tforeach ($models as $model => $fields) {\n\t\t\t\t$result = $this->$db->$model->validate($fields, $result);\n\t\t\t}\n\t\t}\n\n\t\t// [DEPRECATED] >>\n\t\t$this->toSave = $result['data'];\n\t\t// << [DEPRECATED]\n\t\t// We send result messages to view\n\t\tforeach ($result['messages'] as $msg) {\n\t\t\t$this->addResponse($msg, self::RESPONSE_ERROR);\n\t\t}\n\n\t\t$this->view->set('validities', $result['validities']);\n\n\t\treturn empty($result['messages']);\n\t}", "public function testGetErrorMessagesAfterValidationFailure()\n {\n $this->validator->isValid(-211);\n $this->assertCount(1, $this->validator->errors());\n }", "public function testAbook()\n {\n\n // $this->assertTrue(true);\n $response= $this->json ('post','/books',['name'=> 'MyHeroAcademiaVOL.2']);\n\n $response ->assertStatus(200)\n -> assertJson ([\n 'created'=>true\n ]);\n\n $response1= $this->json ('post','/books',['name'=> 'Samurai Champloo VOL.1']);\n\n $response1 ->assertStatus(200)\n -> assertJson ([\n 'created'=>true\n ]);\n\n $response2= $this->json ('post','/books',['name'=> 'Attack On Titan VOL.6']);\n\n $response2 ->assertStatus(200)\n -> assertJson ([\n 'created'=>true\n ]);\n\n $response3= $this->json ('post','/books',['name'=> 'Kimetsu No Yaiba VOL.4']);\n\n $response3 ->assertStatus(200)\n -> assertJson ([\n 'created'=>true\n ]);\n\n\n }", "public static function applyValidation() {\n foreach (self::$_rules as $rk => $rv) {\n $_element = self::$_rules[$rk];\n if (is_array($_element)) {\n foreach ($_element as $key => $ruleValue) {\n if (!self::$_elements[$rk]['inValid']) {\n $method = \"_\" . $key;\n self::$_inputElement = $rk;\n self::$_elementValue = self::$_values[$rk];\n self::$_validationRule = $key;\n self::$_ruleValue = $ruleValue;\n\n self::$method();\n }\n }\n }\n }\n\n if (count(self::$_response) == 0) {\n return true;\n }\n\n return self::$_response;\n }", "public function testVerifyAllowedEmailAddressGet()\n {\n }", "public function listCaseTestValidateForInput()\n {\n return [\n ['name', '', 'The name field is required.'],\n ['identity_number', '', 'The identity number field is required.'],\n ['dob', '', 'The dob does not match the format Y-m-d.'],\n ['address', '', 'The address must be a string.'],\n ['avatar', '','The avatar must be an image'],\n ['avatar', '','The avatar must be a file of type: png, jpg, jpeg'],\n ];\n }", "public function testGetErrorMessagesAfterValidationFailure()\n {\n $validator = new Callback(function ($input) {\n return ($input == 1) ? true : false;\n });\n\n $this->assertFalse($validator->isValid(2));\n $this->assertCount(1, $validator->errors());\n }", "public function testAutocompleteResponse()\n {\n }", "public function testExample()\n {\n \t$res = $this->json('GET', 'excel/create');\n \tif($res->exception) dd($res->exception);\n $res->assertOk();\n }", "private function assertErrorValidation($response)\n {\n $response->assertStatus(422)\n ->assertJson([\n 'status' => 'error'\n ]);\n }", "public function isValidationPassed();", "public function testValidate() \n { \n $tester = new TarTareaProgramada();\n $tester->id_tarea_programada = \"Ingresar valor de pruebas para el campo id_tarea_programada de tipo int4\";\n $tester->nom_tarea_programada = \"Ingresar valor de pruebas para el campo nom_tarea_programada de tipo varchar\";\n $tester->fecha_inicio = \"Ingresar valor de pruebas para el campo fecha_inicio de tipo date\";\n $tester->fecha_termina = \"Ingresar valor de pruebas para el campo fecha_termina de tipo date\";\n $tester->fecha_proxima_eje = \"Ingresar valor de pruebas para el campo fecha_proxima_eje de tipo date\";\n $tester->intervalo_ejecucion = \"Ingresar valor de pruebas para el campo intervalo_ejecucion de tipo int4\";\n $tester->numero_ejecucion = \"Ingresar valor de pruebas para el campo numero_ejecucion de tipo int4\";\n \n expect_that($tester->validate());\n // en caso de incluir valores errados para el modelo: expect_not($model->validate());\n return $tester;\n }", "public function testValidate() \n { \n $tester = new PsProceso();\n $tester->id_proceso = \"Ingresar valor de pruebas para el campo id_proceso de tipo int4\";\n $tester->nom_proceso = \"Ingresar valor de pruebas para el campo nom_proceso de tipo varchar\";\n $tester->id_tproceso = \"Ingresar valor de pruebas para el campo id_tproceso de tipo int4\";\n $tester->id_modulo = \"Ingresar valor de pruebas para el campo id_modulo de tipo int4\";\n $tester->url_datos_basicos = \"Ingresar valor de pruebas para el campo url_datos_basicos de tipo varchar\";\n \n expect_that($tester->validate());\n // en caso de incluir valores errados para el modelo: expect_not($model->validate());\n return $tester;\n }", "public function testParseResponse() {\n $data = $this->dl->parseResponse($this->sampleData, \"JSON\");\n $this->assertion($data['zip'], \"37931\", \"Parsed zip should equal 37931.\");\n $this->assertion($data['conditions'], \"clear sky\", \"Parsed conditions should equal clear sky.\");\n $this->assertion($data['pressure'], \"1031\", \"Parsed pressure should equal 1031.\");\n $this->assertion($data['temperature'], \"35\", \"Parsed temperature should equal 35.\");\n $this->assertion($data['windDirection'], \"ESE\", \"Parsed wind direction should equal ESE.\");\n $this->assertion($data['windSpeed'], \"1.06\", \"Parsed wind speed should equal 1.06.\");\n $this->assertion($data['humidity'], \"80\", \"Parsed humidity should equal 80.\");\n $this->assertion($data['timestamp'], \"1518144900\", \"Parsed timestamp should equal 1518144900.\");\n }", "public function testValidateDocumentXlsxValidation()\n {\n }", "public function testValidateMultipleRules() {\n $validator = new Validator();\n $value = 15;\n $collection = new RuleCollection();\n $collection->addRule($this->getMockRuleReturnTrue());\n $collection->addRule($this->getMockRuleReturnTrue());\n $result = $validator->validateMultipleRules($value, $collection);\n $this->assertTrue($result);\n }", "public function testCheckAndReturnData()\n {\n /* -----------------------------------------------------------------------------\n * in below $csvData var we have faked the data that we get pass to this method\n * ------------------------------------------------------------------------------*/\n $csvData = [[['first_name','last_name','address'],['usman','liaqat','lahore']]]; \n \n $column = 'last_name';\n\n /*\n |--------------------------------------------------------------------------\n | NO Data Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test the no data scenario\n |\n */\n\n $resp = $this->checkAndReturnData($column, []);\n\n /* ------------------------------------------------------------------------------------\n * we compare the response of checkAndReturnData in case when any of data is available\n * -------------------------------------------------------------------------------------*/\n $this->assertEquals($resp,response()->json([\"message\"=>\"No data found\",\"data\"=>$this->responseFormat],200));\n \n\n /*\n |--------------------------------------------------------------------------\n | NULL Column Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test the NULL column scenario, If it gets true then it returs all the data\n |\n */\n\n $resp = $this->checkAndReturnData(null, $csvData);\n\n /* ----------------------------------------------------------------------------------------\n * we compare the response of checkAndReturnData method in case when column passed is null\n * -----------------------------------------------------------------------------------------*/\n $this->assertEquals($resp,response()->json(['message'=>\"Success\",\"data\"=>$csvData[0]],200));\n\n\n /*\n |--------------------------------------------------------------------------\n | Both Data And Column Available Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test this scenario, it returns true when column is not null and data is available\n |\n */\n\n $resp = $this->checkAndReturnData($column, $csvData);\n\n /* -----------------------------------------------------------------------------------\n * we compare the response of checkAndReturnData method in case when it returns false\n * ------------------------------------------------------------------------------------*/\n $this->assertFalse($resp);\n \n }", "public function testValidateToken()\n {\n }", "public function testGetErrorMessagesAfterFailure()\n {\n $validator = new Integer();\n $validator->isValid(\"23\");\n $this->assertCount(1, $validator->errors());\n }", "public function testValidateDocumentXlsValidation()\n {\n }", "public function test_asserting_a_json_paths_value()\n {\n\n $response = $this->json('POST', '/report', [ \"surveyName\" => \"IBDPREM_One\",\n \"gender\" => \"male\",\n \"age\" => \"all\",\n \"ageAbove\" => \"\",\n \"ageBelow\" => \"\",\n \"ageEquals\" => \"\",\n \"weight\" => \"all\",\n \"weightAbove\" => \"\",\n \"weightBelow\" => \"\",\n \"weightEquals\" => \"\",\n \"height\" => \"all\",\n \"heightAbove\" => \"\",\n \"heightBelow\" => \"\",\n \"heightEquals\" => \"\",\n \"medicationUsage\" => \"none\"\n\n]);\n\n $response\n ->assertStatus(500);\n\n }", "abstract public function validateData();", "public function validateResponseApi($response)\n {\n //Get response\n $data = json_decode($response->content());\n\n //If there is errors, throw error\n if (isset($data->errors))\n throw new Exception($data->errors, $response->getStatusCode());\n else {//if response is successful, return response\n return $data->data;\n }\n }", "public function test_validate_deposit_count()\n {\n $deposit = $this->obj->validate_count(1);\n $resp = $this->obj->validate_deposit_count();\n if($deposit < 4){\n $this->assertTrue($resp);\n }else{\n $this->assertFalse($resp);\n }\n }", "public function testExample()\n {\n $response=new RecommendUser();\n $res= $response->GetAllUsers();\n $data=$response=array(//will change it to the request from users\n array(\n 'id'=>0,\n 'username'=>'ahmed magdy',\n 'age' => 20,\n 'interests' =>'software',\n 'score' => 25\n ),array(\n 'id'=>1,\n 'username'=>'ahmed zizo',\n 'age' => 20,\n 'interests' =>'worker',\n 'score' => 50\n ),array(\n 'id'=>3,\n 'username'=>'ane magdy',\n 'age' => 20,\n 'interests' =>'software',\n 'score' => 10\n ));\n $data=json_encode($data);\n $this->assertEquals($data,$res);\n }", "public function testReglas()\n {\n #regla1\n $obj = new Evaluacion();\n $response = $obj->validar(1);\n $this->assertEquals(true,$response);\n\n $response = $obj->validar(0);\n $this->assertEquals(false,$response);\n\n #regla2\n $response = $obj->validar_mecanica(3);\n $this->assertEquals(true,$response);\n\n $response = $obj->validar_mecanica(2);\n $this->assertEquals(true,$response);\n\n $response = $obj->validar_mecanica(1);\n $this->assertEquals(false,$response);\n\n #regla3\n $response = $obj->validar_frecuencia(31);\n $this->assertEquals(true,$response);\n\n $response = $obj->validar_frecuencia(30);\n $this->assertEquals(false,$response);\n\n #regla4\n\n $response = $obj->validar_fecha('2021-12-26');\n $this->assertEquals(true,$response);\n\n $response = $obj->validar_fecha('2020-12-22');\n $this->assertEquals(false,$response);\n\n #regla5\n $response = $obj->validar_oxigeno(92);\n $this->assertEquals(false,$response);\n\n $response = $obj->validar_oxigeno(100);\n $this->assertEquals(false,$response);\n\n $response = $obj->validar_oxigeno(91);\n $this->assertEquals(true,$response);\n\n #regla6\n $response = $obj->validar_porcentaje(12,10);\n $this->assertEquals(false,$response);\n\n $response = $obj->validar_porcentaje(13,10);\n $this->assertEquals(false,$response);\n\n\n }", "public function testGetErrorMessagesBeforeRunningValidation()\n {\n $validator = new Callback(function ($input) {\n return ($input == 1) ? true : false;\n });\n $this->assertEquals([], $validator->errors());\n }", "public static function validate() {}", "public function test_can_create_wp_http_response(): void {\n\n\t\t$response = HTTP_Helper::wp_response( array( 'key' => 'test_VALUE' ), 500 );\n\n\t\t$this->assertInstanceOf( WP_HTTP_Response::class, $response );\n\t\t$this->assertIsArray( $response->get_data() );\n\t\t$this->assertArrayHasKey( 'key', $response->get_data() );\n\t\t$this->assertEquals( 'test_VALUE', $response->get_data()['key'] );\n\t\t$this->assertEquals( 500, $response->get_status() );\n\t}", "public function testManage() {\n $this->dispatch('/settings/ajax');\n $this->assertController(\"ajax\");\n $this->assertAction(\"index\");\n $this->assertResponseCode(200);\n\n // Parse the response\n $response = Zend_Json::decode($this->getResponse()->getBody());\n\n $this->assertTrue($response['payload']['first_name'] == 'admin');\n $this->assertEquals($response['payload']['email'], '[email protected]'); \n $this->assertTrue($response['payload']['job_type'] == 1);\n }", "public function index() {\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->TestValid->set($this->request->data);\n\t\t\tif ($this->TestValid->validates()){\n\t\t\t\techo 'バリデーションOK';\n\t\t\t} else {\n\t\t\t\techo 'バリデーションNG';\n\t\t\t}\n\t\t}\n\t}", "public function testDataResponse()\n {\n $driversEndpoint = new DriverClassesEndpoint(getenv('MRP_API_KEY'));\n $data = $driversEndpoint->setDriverCount(1)\n ->setOrder('name')\n ->setIncludeStats('true')\n ->setScheduleYear(2016)\n ->setFeaturedOnly('true')\n ->setForcePic('false')\n ->setIncludeDrivers('true')\n ->getRequest();\n\n $this->assertNotEmpty($data);\n $this->assertTrue(is_object($data));\n $this->assertEquals(1, $data->RequestValid);\n }", "function testValidFieldsetExpectsValidateToBeCalled() {\n\t\t// arrange\n\t\tglobal $post;\n\t\t$factory = $this->getMockBuilder('TestValidFieldsetField')\n\t\t\t\t\t\t->setMethods( array( 'validate_fieldset', ) )\n\t\t\t\t\t\t->getMock();\n\t\t$factory->expects($this->once())\n\t\t\t\t->method('validate_fieldset')\n\t\t\t\t->will($this->returnValue(true));\n\t\t$validate = array();\n\n\t\t// act\n\t\t$factory->validate( $post->ID, $factory->fields['field'], $validate );\n\n\t\t// assert\n\t\t// Test will fail if validate_fieldset isn't executed once and only once\n\t}" ]
[ "0.7518808", "0.70561737", "0.6353644", "0.6353529", "0.6174038", "0.61053807", "0.6091408", "0.6086279", "0.60802823", "0.5981951", "0.5963931", "0.59409463", "0.59409463", "0.59330094", "0.58452576", "0.5818209", "0.5793829", "0.57513213", "0.57440084", "0.57345396", "0.5731363", "0.5713116", "0.56895584", "0.5688732", "0.5677443", "0.5672605", "0.5672127", "0.5666548", "0.5661314", "0.56513107", "0.56513107", "0.564631", "0.5643104", "0.564025", "0.563654", "0.5634311", "0.56258976", "0.56225336", "0.5616985", "0.5616985", "0.55955124", "0.55901396", "0.55893886", "0.5589281", "0.5586551", "0.55813897", "0.55756694", "0.55739737", "0.5572808", "0.55693775", "0.5568559", "0.5567589", "0.55644816", "0.55565256", "0.55513006", "0.554345", "0.55420053", "0.5540909", "0.5533827", "0.5523661", "0.552223", "0.5495604", "0.548117", "0.54786056", "0.5468565", "0.5460792", "0.5460623", "0.54604554", "0.5453847", "0.54534256", "0.5447584", "0.5446365", "0.5442216", "0.5439458", "0.5435885", "0.5432003", "0.5426394", "0.5417284", "0.5413533", "0.54061437", "0.5397385", "0.53929657", "0.5384177", "0.53770953", "0.5374586", "0.5372426", "0.5366597", "0.53664637", "0.53634906", "0.53571284", "0.53359324", "0.533329", "0.53331375", "0.5332912", "0.5324776", "0.5322094", "0.5319009", "0.53177255", "0.53164995", "0.531579" ]
0.69895244
2
Helper method to create a request object.
protected function createRequest($route_name, ResourceType $resource_type) { $request = new Request(); $request->attributes->set(RouteObjectInterface::ROUTE_NAME, $route_name); $request->attributes->set(Routes::RESOURCE_TYPE_KEY, $resource_type); return $request; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createRequest();", "public function createRequest();", "public function createRequest()\n {\n return new ChipVN_Http_Request;\n }", "function request() {\n return new Request;\n }", "protected function _getRequest() {\n\t\treturn new Request;\n\t}", "public static function create()\n {\n $contentType = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : 'text/html';\n return (new Request(\n $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'] ,\n $_REQUEST, $contentType\n ))->processBody();\n }", "public static function factory()\n {\n $request = new Request();\n static::$_current = $request;\n return $request;\n }", "public function toRequest(): Request\n {\n // Create URI\n $uri = new Uri(sprintf($this->uriTemplate, $this->shop));\n\n // Create headers\n $authenticatedRequestHeader = $this->accessTokenTransformer\n ->toAuthenticatedRequestHeader($this->accessToken);\n\n // Create headers\n $headers = array_merge($this->headers, $authenticatedRequestHeader);\n\n // Create request\n return new Request($this->httpMethod, $uri, $headers);\n }", "public function request(): Request\n {\n if (class_exists('Src\\Http\\Request')) {\n return new Request;\n }\n }", "public static function createRequest($rawRequest) {\n if(self::isHttpPostRequest($rawRequest)) {\n return new HttpPostRequest($rawRequest);\n }\n // if it is not a post request, create a get request\n else {\n return new HttpGetRequest($rawRequest);\n }\n }", "public function createRequest(): IRequest;", "public function getRequest(): Request\n\t{\n\t\t//Get php://input for PUT and DELETE methods\n\t\tparse_str(file_get_contents('php://input'), $_DATA);\n\t\treturn new Request($_SERVER, $_GET + $_POST + $_DATA);\n\t}", "public static function request() {\n\t\tif (!isset(self::$_request)) {\n\t\t\tself::$_request=new \\GO\\Base\\Request();\n\t\t}\n\t\treturn self::$_request;\n\t}", "protected function obtainRequest() {\n return Request::createFromGlobals();\n }", "private function newRequest($queryString= '') {\n return new Request(new TestInput('GET', '/'.$queryString));\n }", "public function createRequest(Request $request)\n {\n $body = ConnectClient::getInstance()->fulfillment->sendRequest('POST', '/requests', $request);\n return Model::modelize('Request', json_decode($body));\n }", "public static function createFromGlobals()\n {\n $class = __CLASS__;\n\n \n //Modification for modouth flow TODO: extend request class and override createFromGlobals method\n //to handle params stored in session\n \n $OAUTH_PARAMS = array();\n \n $clientKey = 'modoauth-clientid';\n $resTypeKey = 'modoauth-responsetype';\n $stateKey = 'modoauth-state';\n \n if(isset($_SESSION['modoauth'])){\n $oauthParams = $_SESSION['modoauth'];\n $OAUTH_PARAMS = array(\n \"client_id\"=>$oauthParams[$clientKey],\n \"response_type\"=>$oauthParams[$resTypeKey],\n \"state\"=>$oauthParams[$stateKey]\n );\n }\n \n $request = new $class(array_merge($_GET,$OAUTH_PARAMS), $_POST, array(), $_COOKIE, $_FILES, $_SERVER);\n\n $contentType = $request->server('CONTENT_TYPE', '');\n $requestMethod = $request->server('REQUEST_METHOD', 'GET'); \n if (0 === strpos($contentType, 'application/x-www-form-urlencoded')\n && in_array(strtoupper($requestMethod), array('PUT', 'DELETE'))\n ) {\n parse_str($request->getContent(), $data);\n $request->request = $data;\n } elseif (0 === strpos($contentType, 'application/json')\n && in_array(strtoupper($requestMethod), array('POST', 'PUT', 'DELETE'))\n ) {\n $data = json_decode($request->getContent(), true);\n $request->request = $data;\n }\n \n return $request;\n }", "public function createRequest(string $method, $uri): RequestInterface;", "private function createRequest()\n {\n $requests = $this->createGuzzleRequests();\n if (count($requests) == 1) {\n $request = reset($requests);\n } else {\n $multipartRequest = new MultipartRequest($this->client, new ApiRequest([\n 'version' => 'latest',\n 'requests' => $requests,\n 'boundary' => ApiHelper::generateId(),\n 'multipartType' => 'mixed',\n ]));\n $request = $this->createGuzzleRequest($multipartRequest->getMethod(), $multipartRequest->getUri(), $multipartRequest->getHeaders(), $multipartRequest->getBody());\n }\n\n return $request;\n }", "public static function factory($uri)\n\t{\n\t\treturn new Request($uri);\n\t}", "public function build(HttpRequest $request): Request\n {\n $headers = (new HeaderResourceBuilder())->build($request);\n\n return new Request($request->getMethod(), $request->getUri(), ...$headers);\n }", "static public function createFromGlobals()\n {\n $request = new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);\n\n if (0 === strpos($request->server->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded')\n && in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), array('PUT', 'DELETE'))\n ) {\n parse_str($request->getContent(), $data);\n $request->request = new Collection($data);\n }\n\n return $request;\n }", "function request()\n\t{\n\t\treturn phanda()->create(\\Phanda\\Foundation\\Http\\Request::class);\n\t}", "public function getRequest()\n {\n if (is_null($this->_request)) {\n $this->_request = new Request();\n }\n return $this->_request;\n }", "public function createRequest(string $method, $uri): RequestInterface\n {\n return new Request($uri, $method, null);\n }", "public function get_request()\n {\n $request = new midgardmvc_core_request();\n $request->set_method($this->appserver_context['env']['REQUEST_METHOD']);\n if (isset($this->appserver_context['env']['HTTP_X_HTTP_METHOD_OVERRIDE']))\n {\n $request->set_method($this->appserver_context['env']['HTTP_X_HTTP_METHOD_OVERRIDE']);\n }\n\n // Parse URL into components (Mjolnir doesn't do this for us)\n $url_components = parse_url(\"http://{$this->appserver_context['env']['HTTP_HOST']}{$this->appserver_context['env']['REQUEST_URI']}\");\n\n // Handle GET parameters\n if (!empty($url_components['query']))\n {\n $get_parameters = array();\n parse_str($url_components['query'], $get_parameters);\n $request->set_query($get_parameters);\n }\n\n $request->resolve_node($url_components['path']);\n\n return $request;\n }", "public function buildRequest()\n {\n if (php_sapi_name() === 'cli') {\n return $this->buildCliRequest();\n } else {\n return $this->buildWebRequest();\n }\n }", "private function getBuilder(): RequestBuilder\n {\n return new RequestBuilder(new StreamFactory());\n }", "public function createRequest($url);", "protected function buildRequest() {\n\t\t/* @var $request \\TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request */\n\t\t$request = $this->objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Mvc\\\\Web\\\\Request');\n\t\t$request->setControllerVendorName($this->vendorName);\n\t\t$request->setControllerExtensionName($this->extensionName);\n\t\t$request->setPluginName($this->pluginName);\n\t\t$request->setControllerName($this->controllerName);\n\t\t$request->setControllerActionName($this->actionName);\n\t\t$request->setFormat($this->formatName);\n\t\t$request->setArguments($this->arguments);\n\t\treturn $request;\n\t}", "private function createRequest(): ServerRequest\n {\n return new ServerRequest(\n 'POST',\n 'https://localhost/',\n [\n 'Accept' => '*/*',\n 'content-type' => 'application/json',\n 'User-Agent' => 'GitHub-Hookshot/0000000',\n 'X-GitHub-Delivery' => '00000000-0000-0000-0000-000000000000',\n 'X-GitHub-Event' => 'ping',\n 'X-Hub-Signature' =>\n 'sha1=5563c89a2f4743278567358293adc9a65680725b',\n ],\n '{\"zen\":\"Approachable is better than simple.\",\"hook_id\":202756468,\"sender\":{\"url\":\"https://api.github.com/users/loilo\"}}'\n );\n }", "protected function newRequest($token)\n {\n return new Request($token);\n }", "protected function _createRequest($spec)\n {\n if (isset($spec['input'])) {\n $spec['post'] = [];\n }\n $request = ServerRequestFactory::fromGlobals(\n array_merge($_SERVER, $spec['environment'], ['REQUEST_URI' => $spec['url']]),\n $spec['query'],\n $spec['post'],\n $spec['cookies']\n );\n $request = $request->withAttribute('session', $spec['session']);\n\n if (isset($spec['input'])) {\n $stream = new Stream('php://memory', 'rw');\n $stream->write($spec['input']);\n $stream->rewind();\n $request = $request->withBody($stream);\n }\n\n return $request;\n }", "public function getRequest(): \\GuzzleHttp\\Psr7\\Request\n {\n }", "protected function getCreateRequest()\n\t{\n\t\t$url = $this->url();\n\t\t\n\t\t$url\n\t\t\t->getQuery()\n\t\t\t\t->setParameter('code', 200)\n\t\t\t\t->setParameter('format', 'json')\n\t\t\t\t->setParameter('output', '{\"id\": 1}');\n\t\t\t\n\t\treturn new Api\\Request\\Create((string) $url);\n\t}", "private function createRequest()\n {\n $xml = new DOMDocument();\n $xml->formatOutput = true;\n\n $trackRequest = $xml->appendChild($xml->createElement(\"TrackRequest\"));\n $trackRequest->setAttribute('xml:lang', 'en-US');\n\n $request = $trackRequest->appendChild($xml->createElement(\"Request\"));\n\n $node = $xml->importNode($this->createTransactionNode(), true);\n $request->appendChild($node);\n\n $request->appendChild($xml->createElement(\"RequestAction\", \"Track\"));\n\n if (null !== $this->requestOption) {\n $request->appendChild($xml->createElement(\"RequestOption\", $this->requestOption));\n }\n\n if (null !== $this->trackingNumber) {\n $trackRequest->appendChild($xml->createElement(\"TrackingNumber\", $this->trackingNumber));\n }\n\n return $xml->saveXML();\n }", "public function createRequest(\n string|null $ifMatch = null,\n string|null $ifNoneMatch = null,\n string|null $ifModifiedSince = null,\n string|null $ifUnmodifiedSince = null,\n string|null $ifRange = null,\n string|null $range = null,\n string $method = 'post'\n ): Request {\n $headers = array_filter([\n 'HTTP_IF_MATCH' => $ifMatch,\n 'HTTP_IF_NONE_MATCH' => $ifNoneMatch,\n 'HTTP_IF_MODIFIED_SINCE' => $ifModifiedSince,\n 'HTTP_IF_UNMODIFIED_SINCE' => $ifUnmodifiedSince,\n 'HTTP_IF_RANGE' => $ifRange,\n 'HTTP_RANGE' => $range,\n ], fn ($value) => !empty($value));\n\n return Request::create('/test', strtoupper($method), [], [], [], $headers);\n }", "protected function createHttpRequest()\n {\n return $this->createMock(RequestInterface::class);\n }", "protected function create_new_request( $data )\n {\n $request = new \\WP_REST_Request();\n\n $request->set_header( 'X-POC-Access-Token', '8wdT9UsxXd' );\n\n $request->set_header( 'Content-Type', 'application/json' );\n\n $request->set_body( json_encode( $data ) );\n\n return $request;\n }", "public function makeRequest(\n string $method,\n $uri,\n array $headers = [],\n $body = null,\n string $version = '1.1'\n ): RequestInterface {\n return new Request($method, $uri, $headers, $body, $version);\n }", "protected function createRequest()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n $this->call('wizard:request', $params);\n }", "public function createServerRequestFromGlobals(): ServerRequestInterface;", "public function createServerRequestFromGlobals(): ServerRequestInterface;", "public function newRequestWithoutOptions()\n {\n return new RequestBuilder(\n $this, $this->getPostProcessor()\n );\n }", "public function getRequest()\n {\n SecurityHelper::sanitize_array($_REQUEST);\n \n $files = array();\n\t\tforeach ( $_FILES as $k=>$file )\n\t\t\t$files[$k] = new FileUploadRequest($file['error'], $file['tmp_name'], $file['size'], $file['type'], $file['name']);\n \n return new Request($_REQUEST, $files);\n }", "protected function newRequest($queryString= '') {\n parse_str(ltrim($queryString, '?'), $params);\n\n $r= new HttpScriptletRequest();\n $r->setParams($params);\n $r->setURI(new URL(self::BASE_URL.$queryString));\n\n return $r;\n }", "protected function createRequest($method = 'GET', $uri = '/', $query = null)\n {\n $env = Environment::mock();\n $env['REQUEST_METHOD'] = strtoupper($method);\n $env['REQUEST_URI'] = $uri;\n\n if ($query !== null) {\n $env['QUERY_STRING'] = is_array($query) ? http_build_query($query) : $query;\n }\n\n $request = Request::createFromGlobals($env);\n return $request;\n }", "public static function create($type)\n\t{\n\t\tif (empty($type) || 0 === strpos($type, 'text/html')) {\n\t\t\treturn new HttpGetRequest;\n\t\t}\n\n\t\tif (0 === strpos($type, 'application/json')) {\n\t\t\treturn new HttpJsonRequest;\n\t\t}\n\n\t\treturn new HttpPostRequest;\n\t}", "function request(): Request\n\t{\n\t\tstatic $request;\n\n\t\tif($request === null)\n\t\t{\n\t\t\t$request = Application::instance()->getContainer()->get(Request::class);\n\t\t}\n\n\t\treturn $request;\n\t}", "protected function buildWebRequest()\n {\n $args = $_REQUEST;\n $params = array();\n\n $route = $_SERVER['REQUEST_URI'];\n $posQuestionMark = strpos($route, '?');\n if ($posQuestionMark !== false) {\n $route = substr($route, 0, $posQuestionMark);\n }\n \n $posIndex = strpos($route, 'index.php');\n if ($posIndex !== false) {\n $route = substr($route, $posIndex + strlen('index.php'));\n }\n \n // Transform the arguments\n foreach ($args as $key => $value) {\n if (is_numeric($value)) {\n // Transform the value into the correct data type\n $value = $value * 1;\n }\n \n $params[$key] = $value;\n }\n\n // Generate the full url and extract the base\n $scheme = $this->getScheme();\n $fullUrl = $scheme . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\n $isSsl = false;\n if ($scheme == 'https') {\n $isSsl = true;\n }\n \n $routePosition = strlen($fullUrl);\n if ($route !== '' && $route !== '/') {\n $routePosition = strpos($fullUrl, $route);\n }\n \n $method = $_SERVER['REQUEST_METHOD'];\n $requestedUrl = $this->getRequestedUrl();\n $base = substr($fullUrl, 0, $routePosition);\n $headers = $this->getHeaders($_SERVER);\n $protocol = $_SERVER['SERVER_PROTOCOL'];\n \n $locale = 'en_US';\n if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {\n $locale = $this->getLocale($_SERVER['HTTP_ACCEPT_LANGUAGE']);\n }\n \n $operatingSystem = $this->getOperatingSystem();\n\n return new WebRequest($method, $requestedUrl, $route, $params, $base, $locale, $operatingSystem, $isSsl, $headers, $protocol);\n }", "protected function buildRequest($requestUri)\n {\n return new Request([], [], [], [], [], ['REQUEST_URI' => $requestUri]);\n }", "public function createRequest(\n string $method,\n $uri,\n array $headers = [],\n $body = null,\n string $protocol = '1.1'\n ): RequestInterface;", "public function getRequest($type, $values)\n\t{\n\t\treturn new Request($type, $values);\n\t}", "function getRequest()\n {\n if ( !$this->_request )\n {\n if ( method_exists( $this, '_getRequest' ) )\n {\n $object = $this->_getRequest();\n if ( $object instanceof \\Hotlink\\Framework\\Model\\Api\\Request )\n {\n $this->setRequest( $object );\n }\n }\n if ( !$this->_request )\n {\n //$request = Mage::getModel('hotlink_framework/api_request');\n $request = $this->interactionApiRequestFactory->create();\n $this->setRequest( $request );\n }\n }\n return $this->_request;\n }", "protected function createRequestMockWithoutViewState()\n {\n //$request = $this->getMockBuilder('\\Symfony\\Component\\HttpFoundation\\Request')->disableOriginalConstructor()->getMock();\n $request = Request::create('');\n $request->query = new ParameterBag(array(\n 'param2' => 'param2_value'\n ));\n\n return $request;\n }", "protected function getRequest($url, $method) {\n return new HttpRequest($url, $method);\n }", "public static function createFromHttpRequest(Request $request)\n {\n $static = new static();\n $static->name = $request->name;\n $static->email = $request->email;\n $static->password = $request->password;\n $static->role = $request->role;\n $static->description = $request->description;\n\n return $static;\n }", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequestWrapper();", "public function createRequest(PushMessage $message) : RequestInterface\n {\n $request = new Request(\n 'POST',\n $this->getUri($message),\n $this->getHeaders($message),\n $this->getBody($message)\n );\n\n return $request;\n }", "public function buildRequest($method, $url, array $queryParams = [], $body = null, array $headers = [])\n\t{\n\t\t$request = new Request;\n\n\t\t// Set the request method\n\t\t$request->setMethod(strtoupper($method));\n\n\t\t// Set the URI\n\t\t$request->setUrl($this->getOption(self::OPTION_BASE_URI) . $url);\n\n\t\t// Set the query params\n\t\t$request->setQueries(array_merge($this->getOption(self::OPTION_DEFAULT_QUERY_PARAMS), $queryParams));\n\n\t\t// Set the request body\n\t\t$request->setBody($body);\n\n\t\t// Set the headers\n\t\t$request->setHeaders(array_merge($this->getOption(self::OPTION_DEFAULT_HEADERS), $headers));\n\n\t\t// Check for Content-Type header and set it\n\t\tif( in_array($request->getMethod(), ['POST','PUT','PATCH']) &&\n\t\t\t$request->getHeader('Content-Type') === null &&\n\t\t\t($contentType = $this->getOption(self::OPTION_DEFAULT_CONTENT_TYPE)) ){\n\t\t\t$request->setHeader('Content-Type', $contentType);\n\t\t}\n\n\t\treturn $request;\n\t}", "public function createInternalRequestClient();", "protected function createRequest(array $query, array $request, array $content)\n {\n return new Request($query, $request, [], [], [], [], json_encode($content));\n }", "abstract protected function createBackendRequest(Request $request);", "public function getRequest(): RequestInterface;", "public function getRequestBuilder()\n {\n return new RequestBuilder();\n }", "public function newGroceryRequest(): GroceryRequest\n {\n return new GroceryRequest($this->_apiKey);\n }", "public function createFromRequest(Request $request);", "public function getRequest() {\n if (is_null($this->Request)) {\n $this->Request = new Request();\n $this->Request->setTransport(Request::TRANSPORT_CURL);\n $this->Request->setUrl(self::ENDPOINT_SEND);\n }\n return $this->Request;\n }", "public function testCreateRequest() {\n\t\t$uri = 'http://www.php.net';\n\t\t$request = new HttpWebRequest($uri);\n\t\t\n\t\t// make sure it's the correct type/sub-type\n\t\t$this->assertTrue($request instanceof WebRequest);\n\t\t$this->assertTrue($request instanceof HttpWebRequest);\n\t\t\n\t\t// check to see if the uri was properly set\n\t\t$this->assertEquals($uri, $request->requestUri);\n\t}", "public function __construct(Request $request);", "protected function _getNewEmptyRequest()\n {\n return $this->_getNewSdkInstance('Radial_RiskService_Sdk_Request');\n }", "public function createNewRequest()\n { \n return $this->clientManager->createNewRequest('user');\n }", "public function & GetRequest ();", "function init_request($request)\n {\n }", "function init_request($request)\n {\n }", "private function setRequest() {\n // Create request object\n $this->request = Request::createFromGlobals();\n // Check caching and exit if so\n // - create a dummy response for possible 304\n $response = new Response();\n $seconds = Config::get()->pagecachetime;\n $response->setLastModified(new DateTime('-' . $seconds . ' seconds'));\n if ($response->isNotModified($this->getRequest())) {\n $response\n ->setSharedMaxAge($seconds)\n ->send();\n exit();\n }\n // Add better json request support\n // check request Content-Type\n $ctCheck = 0 === strpos(\n $this->request->headers->get('CONTENT_TYPE')\n , 'application/json'\n );\n // check request Method\n $methodCheck = in_array(\n strtoupper($this->request->server->get('REQUEST_METHOD', 'GET'))\n , array('PUT', 'DELETE', 'POST')\n );\n if ($ctCheck && $methodCheck) {\n $params = (array) json_decode($this->request->getContent());\n $this->request->request = new ParameterBag($params);\n }\n }", "public function createRequest($method, $uri, array $query = [])\n {\n $uri = rtrim($this->getConfig('base_uri'), '/') . static::bindUri($uri, $query);\n return new Request($method, $uri);\n }", "public function getRequest() {}", "public function getRequest() {}", "public function prepareRequest() {\n $auth = new WebServiceSoap\\SveaAuth(\n $this->conf->getUsername($this->orderType, $this->countryCode),\n $this->conf->getPassword($this->orderType, $this->countryCode),\n $this->conf->getClientNumber($this->orderType, $this->countryCode) \n );\n\n $address = new WebServiceSoap\\SveaAddress( \n $auth, \n (isset($this->companyId) ? true : false), \n $this->countryCode, \n (isset($this->companyId) ? $this->companyId : $this->ssn) \n );\n\n $this->request = new WebServiceSoap\\SveaRequest( $address );\n\n return $this->request;\n }", "public function __construct( Request $request )\n {\n\n }", "public static function fromRingRequest(array $request)\n {\n $options = [];\n if (isset($request['version'])) {\n $options['protocol_version'] = $request['version'];\n }\n if (!isset($request['http_method'])) {\n throw new \\InvalidArgumentException('No http_method');\n }\n return new Request($request['http_method'], Core::url($request), isset($request['headers']) ? $request['headers'] : [], isset($request['body']) ? Stream::factory($request['body']) : null, $options);\n }", "protected function getRequest(){\n $client = $this->client;\n if(!$client instanceof Client){\n $client = new Client();\n }\n return $client;\n }", "private function createRequest(int $status, string $body = null) : Request\n {\n $mockHandler = new MockHandler([\n new GuzzlePsrResponse($status, [], $body)\n ]);\n\n $handlerStack = HandlerStack::create($mockHandler);\n\n $client = new Client(['handler' => $handlerStack]);\n\n return new Request($client);\n }", "protected function getRequest() {}", "protected function createRequest($method, $path, $body = null, array $headers = [])\n {\n $defaultHeaders = isset($this->config['headers']) ? $this->config['headers'] : [];\n return new Request(\n $method,\n $path,\n array_merge($defaultHeaders, $headers),\n $body\n );\n }", "public function newProductRequest(): ProductRequest\n {\n return new ProductRequest($this->_apiKey);\n }", "public function __construct($request) {\n\t\t\n\t\t\t$this->_request = $request;\n\t\t\t\n\t\t}", "private function getRequest($content)\n {\n return new Request([], [], [], [], [], [], json_encode($content));\n }", "public function build(): RequestCacheNamesRequest\n\t{\n\t\t$instance = new RequestCacheNamesRequest();\n\t\t$instance->securityOrigin = $this->securityOrigin;\n\t\t$instance->storageKey = $this->storageKey;\n\t\t$instance->storageBucket = $this->storageBucket;\n\t\treturn $instance;\n\t}", "public function getRequest(): Request\n {\n return Model::getRequest();\n }", "abstract public function createFromRequest(Request $request = null, array $otherAttributes = array());" ]
[ "0.817306", "0.817306", "0.8059864", "0.7983641", "0.79801846", "0.7768697", "0.75882554", "0.75701535", "0.7438603", "0.73101777", "0.72880125", "0.72686934", "0.7268006", "0.7257655", "0.7140494", "0.71388453", "0.71101147", "0.70885634", "0.706506", "0.7051098", "0.70428413", "0.7029522", "0.70115787", "0.7006418", "0.70051426", "0.6989647", "0.69806147", "0.6948098", "0.69441575", "0.6916925", "0.6885628", "0.68445086", "0.6825394", "0.67917216", "0.67850673", "0.6780805", "0.6760547", "0.6756948", "0.6734861", "0.6727491", "0.6713281", "0.67118764", "0.67118764", "0.6693037", "0.6652512", "0.66359586", "0.66242653", "0.6608005", "0.6596269", "0.6576961", "0.6564261", "0.65526503", "0.6538429", "0.65260714", "0.65160656", "0.64755", "0.6472613", "0.64698756", "0.64698756", "0.64698756", "0.64698756", "0.64698756", "0.64698756", "0.64698756", "0.64698756", "0.64583313", "0.6456993", "0.64553326", "0.64524037", "0.6447315", "0.6437412", "0.64346176", "0.6434011", "0.64332396", "0.6425642", "0.64068997", "0.640443", "0.6400035", "0.6388298", "0.63855714", "0.6383946", "0.6366072", "0.6366072", "0.6355013", "0.635404", "0.63487524", "0.63487524", "0.6344356", "0.63391143", "0.63380224", "0.63367933", "0.63358706", "0.63351524", "0.63273954", "0.6312837", "0.6307036", "0.6300649", "0.6297987", "0.62827206", "0.62807286" ]
0.68330646
32
Helper method to create a resource response from arbitrary JSON.
protected function createResponse($json = NULL) { $response = new ResourceResponse(); if ($json) { $response->setContent($json); } return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function instantiateJsonResource($payload)\n {\n return new JsonResource($payload);\n }", "private function _createJson()\n {\n return new SlimBootstrap\\ResponseOutputWriter\\Json(\n $this->_request,\n $this->_response,\n $this->_headers,\n $this->_shortName\n );\n }", "function json_response() {\n return app(JsonResponse::class);\n }", "abstract protected function createResource();", "protected function parseResource($resource)\n {\n return json_decode($resource, true);\n }", "private function json() {\n if( $this->format === 'application/hal+json' ) {\n header('Content-Type: application/hal+json; charset=utf-8', TRUE, $this->status);\n $hal_response = (new Resource())\n ->setURI(\"/{$this->resource}\". (isset($this->filters['id']) ? $this->filters['id'] : ''))\n ->setLink($this->resource, new Link(\"/{$this->resource}\"))\n ->setData($this->content);\n\n $writer = new Hal\\JsonWriter(true);\n return $writer->execute($hal_response);\n } else {\n header('Content-Type: application/json; charset=utf-8', TRUE, $this->status);\n return json_encode($this->content, JSON_NUMERIC_CHECK);\n }\n }", "public function createResponse(): ResponseInterface {\n return $this->responseFactory->createResponse()->withHeader('Content-Type', 'application/json');\n }", "private function renderJsonResponse($json, $code = 200)\n {\n return new Response($json, $code, ['application/json']);\n }", "public function json($content): ResponseInterface;", "public static function createFromJson($json);", "private function makeExpectedResource(): CustomerResource\n {\n return new CustomerResource(1, 'John Smith', new AddressResource('UK', 'London'));\n }", "public function jsonAction()\n {\n $response = new Response(json_encode(['name' => 'John Doe']));\n $response->headers->set('Content-Type', 'application/json');\n\n return $response;\n }", "public function json($data): PsrResponseInterface;", "private function createResponse($request)\n {\n return json_decode($request->getBody()->getContents());\n }", "public function toApi(): JsonResource\n {\n return resolve(InputResourcerContract::class, ['input' => $this]);\n }", "private function ajson($data){\n $json = $this->get('serializer')->serialize($data, 'json');\n\n // Response with httpfoundation\n $response = new Response();\n\n // Assign content to the response\n $response->setContent($json);\n\n // Specify response format\n $response->headers->set('Content-Type', 'application/json');\n\n // Return response\n return $response;\n }", "public static function fromJson($json)\n {\n $response = new Response();\n $response->job_id = $json->job_id;\n $response->status = $json->status;\n if ($response->msgs){\n $response->msgs = $json->msgs;\n }\n $response->data = $json->data;\n\n return $response;\n }", "protected function buildResponse($json)\n {\n //log the http response to the timeline\n $this->dispatch('utilbundle.symfout', new SymfonyEvent($this->get('g4_container')->getManifestId(), $json, get_class($this), $this->getRequest()->getRequestUri(), $this->get('g4_container')->getRequestPairKey(), 200));\n\n return new Response($json);\n }", "abstract public function createResponse(AbstractRequestClient $request);", "public function __invoke(): JsonResponse\n {\n $ads = $this->show_properties_to_business_use_case->execute();\n\n $response = new JsonResponse($ads);\n $response->setEncodingOptions( $response->getEncodingOptions() | JSON_PRETTY_PRINT );\n\n return $response;\n }", "abstract protected function createResponse(GuzzleResponse $response);", "public function json(array $data = [], int $status = 200, array $headers = []): ResponseInterface;", "function createResponse ( $from, $action=\"Process Request\", $api_key=null )\n {\n $response = new SyndicationResponse();\n $response->raw = $from;\n\n /// an exception was thrown\n if ( is_subclass_of($from,'Exception') )\n {\n $response->success = false;\n $response->status = $from->getCode();\n $response->format = 'Exception';\n $response->addMessage(array(\n 'errorCode' => $from->getCode(),\n 'errorMessage' => $from->getMessage(),\n 'errorDetail' => \"{$action} Exception\"\n ));\n return $response;\n\n /// we got a response from the server\n } else if ( is_array($from)\n && !empty($from['http'])\n && !empty($from['format']) )\n {\n $status = isset($from['http']['http_code']) ? intval($from['http']['http_code']) : null;\n $response->status = $status;\n /// SUCCESS\n if ( $status>=200 && $status<=299 )\n {\n $response->success = true;\n /// CLIENT SIDE ERROR\n } else if ( $status>=400 && $status<=499 ) {\n /// BAD API KEY\n if ( $status == 401 ) {\n $errorDetail = \"Unauthorized. Check API Key.\";\n /// VALID URL but specific id given does not exist\n } else if ( $status == 404 && !empty($api_key) ) {\n $errorDetail = \"Failed to {$action}. {$api_key} Not Found.\";\n /// Error in the request\n } else {\n $errorDetail = \"Failed to {$action}. Request Error.\";\n }\n $response->success = false;\n $response->addMessage(array(\n 'errorCode' => $status,\n 'errorMessage' => $this->httpStatusMessage($status),\n 'errorDetail' => $errorDetail\n ));\n /// SERVER SIDE ERROR\n } else if ( $status>=500 && $status<=599 ) {\n $response->success = false;\n $response->addMessage(array(\n 'errorCode' => $status,\n 'errorMessage' => $this->httpStatusMessage($status),\n 'errorDetail' => \"Failed to {$action}. Server Error.\"\n ));\n }\n\n if ( $from['format']=='json' )\n {\n /// for any json response\n /// [meta] and [results] expected back from api\n /// [meta][messages] should be consumed if found\n /// [meta][pagination] should be consumed if found\n /// [message] was changed to plural, check for both for now just incase\n\n /// look for meta\n if ( isset($from['meta']) )\n {\n if ( isset($from['meta']['pagination']) )\n {\n $response->addPagination($from['meta']['pagination']);\n }\n if ( isset($from['meta']['messages']) )\n {\n $response->addMessage($from['content']['meta']['messages']);\n }\n if ( isset($from['meta']['message']) )\n {\n $response->addMessage($from['content']['meta']['message']);\n }\n } else if ( isset($from['content']) && isset($from['content']['meta']) ) {\n if ( isset($from['content']['meta']['pagination']) )\n {\n $response->addPagination($from['content']['meta']['pagination']);\n }\n if ( isset($from['content']['meta']['messages']) )\n {\n $response->addMessage($from['content']['meta']['messages']);\n }\n if ( isset($from['content']['meta']['message']) )\n {\n $response->addMessage($from['content']['meta']['message']);\n }\n }\n /// look for results\n if ( isset($from['content']) )\n {\n if ( isset($from['content']['results']) )\n {\n $response->results = (array)$from['content']['results'];\n } else {\n $response->results = (array)$from['content'];\n }\n }\n $response->format = 'json';\n return $response;\n } else if ( $from['format']=='image' ) {\n $response->format = 'image';\n\n /// a single string: base64 encoded image : imagecreatefromstring?\n $response->results = $from['content'];\n return $response;\n /// unknown format\n } else {\n $response->format = $from['format'];\n /// a single string : html : filtered_html?\n $response->results = $from['content'];\n return $response;\n }\n }\n /// we got something weird - can't deal with this\n $response->success = false;\n $status = null;\n if ( is_array($from) && !empty($from['http']) && isset($from['http']['http_status']) )\n {\n $status = $from['http']['http_status'];\n }\n $response->addMessage(array(\n 'errorCode' => $status,\n 'errorMessage' => $this->httpStatusMessage($status),\n 'errorDetail' => \"Unknown response from Server.\"\n ));\n return $response;\n }", "public static function json($data)\n {\n return new JSONResponse($data);\n }", "public function createResponse(): IResponse;", "private function createJsonResponse(\n string $filename,\n \\GuzzleHttp\\Psr7\\Response $response\n )\n {\n $json_response = new \\stdClass();\n $json_response->fileName = $filename;\n $json_response->statusCode = $response->getStatusCode();\n $json_response->reasonPhrase = $response->getReasonPhrase();\n\n return $json_response;\n }", "public function createResponse()\n {\n return new GuzzleResponse();\n }", "private function _createJsonHal()\n {\n return new SlimBootstrap\\ResponseOutputWriter\\JsonHal(\n $this->_request,\n $this->_response,\n $this->_headers,\n $this->_shortName\n );\n }", "public function create(){\n if($resources = Resources::orderby('ResourceName')->get()){\n return Response::json(array(\"status\" => \"success\", \"resources\" => $resources));\n } else {\n return Response::json(array(\"status\" => \"failed\", \"message\" => \"Some thing wrong.\"));\n }\n }", "public function create(): JsonResponse;", "protected function responseJSON($data) {\n \t// Convert to JSON\n \t$dataJSON = $this->serializeJson($data);\n \t$response = new Response($dataJSON);\n \t$response->headers->set('Content-Type', 'application/json');\n \treturn $response;\n }", "public function createResponse(LimitedClientInterface $client) : ResponseInterface;", "public function createResponse()\n {\n return new Response;\n }", "protected function asObj($resource, $method=self::GET, $data=[]){\n\n $json = $this->asRaw($resource, $method, $data);\n\n if( empty($json) )\n throw new ClientException(\"Empty response from the API for resource {$resource}.\");\n\n $obj = @json_decode( $json );\n\n if( $json and $obj and isset($obj->status) ){\n\n if( self::SUCCESS == $obj->status ){\n\n //successful request\n\n if( ! isset($obj->data) )\n $obj->data = NULL;\n\n if( ! isset($obj->meta) )\n $obj->meta = NULL;\n\n $this->data = isset($obj->data) ? $obj->data : new \\stdClass();\n $this->meta = isset($obj->meta) ? $obj->meta : new \\stdClass();\n\n return $obj;\n\n }\n else\n throw new ClientException(\"{$obj->code} Error: {$obj->message}\");\n }\n\n throw new ServiceUnavailableException(\"Invalid response from the API for resource {$resource}.\");\n\n }", "public function handle($response)\n {\n $body = (string)$response->getBody();\n $jsonResponse = new ResponseJson($body, true);\n\n return $jsonResponse;\n }", "protected function createResourceObject(array $response): BaseResource\n {\n return new Ticket($this->client, $response, $this->invoiceId);\n }", "public function json($datas = [], $status = 200) {\n\t\t$this->response\t\t= new Response();\n\n\t\t$this->response->setContent(\n\t\t\t$datas\n\t\t);\n\n\t\t$this->response->setStatusCode($status);\n\n\t\treturn $this->response;\n\t}", "function json_response($content, $status = 200, $headers = [])\n{\n $data = json_encode($content);\n $headers[\"Content-Type\"] = \"application/json\";\n response($data, $status, $headers);\n}", "private function jsonResponse($data)\r\n {\r\n return new JsonModel($data);\r\n }", "public function response($result, $request)\n {\n return new RouteResource($result);\n }", "public function createFromResponse(): Article\n {\n return new Article((array) $this);\n }", "public function json($data, $status = 200, $headers = array(), $context = array())\n {\n return (new JsonResponse($data, $status, $headers));\n }", "protected function responseJson($json, int $code = 200)\n {\n return $this->response\n ->withStatus($code)\n ->withType('application/json')\n ->withStringBody(json_encode($json));\n }", "protected function createResource()\n {\n $resourceOptions = [\n 'resource' => $this->info['resource'],\n '--module' => $this->moduleName,\n ];\n\n $options = $this->setOptions([\n 'parent',\n 'assets'=>'uploads',\n 'data'\n ]);\n\n $this->call('engez:resource', array_merge($resourceOptions, $options));\n }", "public function getCreateResponse($entity);", "public static function generateJSON();", "public function makeResponse(): ResponseInterface;", "public static function createFromResponse(ResponseInterface $response, ApiProviderInterface $api, ApiResourceInterface $owner = null)\n {\n $data = json_decode((string) $response->getBody(), true);\n\n return new static($api, $data, $owner);\n }", "public function jsonToObject(): ?ViaCepApi {\n if ($this->responseType == \"json\" && $this->response != \"[]\") {\n $this->responseType = \"object\";\n $this->response = (object) json_decode($this->response);\n }\n \n return $this; \n }", "public function __invoke(): JsonLdResponse\n {\n return new JsonLdResponse(\n [\n '@context' => [\n '@vocab' => url(config('hydra.docs_url')),\n 'hydra' => 'http://www.w3.org/ns/hydra/core#',\n 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',\n ],\n '@id' => url(config('hydra.docs_url')),\n '@type' => 'hydra:ApiDocumentation',\n Vocabulary::TITLE => config('hydra.title'),\n Vocabulary::DESCRIPTION => config('hydra.description'),\n 'hydra:entrypoint' => config('hydra.entrypoint'),\n 'hydra:supportedClass' => $this->classes->toJsonLd(),\n ]\n );\n }", "public function jsonProvider() {\n return '{\n \"data\": {\n \"attributes\": {\n \"object_domain\": \"contact\",\n \"object_id\": \"1\",\n \"due\": \"2019-01-25T07:50:14+00:00\",\n \"urgency\": 1,\n \"description\": \"Need to verify this guy house.\",\n \"items\": [\n \"Visit his house\",\n \"Capture a photo\",\n \"Meet him on the house\"\n ],\n \"task_id\": \"123\"\n }\n }\n }';\n}", "public function toResponse($request): JsonResponse\n {\n return tap(response()->json(\n $this->resource->resolve($request),\n $this->calculateStatus()\n ), function ($response) use ($request) {\n $response->original = $this->resource->resource;\n\n $this->resource->withResponse($request, $response);\n });\n }", "public function toObject(): object\n {\n $body = (string) $this->response->getBody();\n\n return json_decode($body) ?? (object) [];\n }", "public static function json($content)\n {\n $response = new static;\n $response\n ->header('Content-type', 'application/json')\n ->body(json_encode($content));\n return $response;\n }", "public function toResponse($request)\n {\n return tap(response()->json(\n $this->wrap(\n $this->resource->resolve($request),\n array_merge_recursive(\n $this->paginationInformation($request),\n $this->resource->with($request),\n $this->resource->additional\n )\n ),\n $this->calculateStatus(),\n [],\n $this->resource->jsonOptions()\n ), function ($response) use ($request) {\n $response->original = $this->resource->resource->map(function ($item) {\n return is_array($item) ? Arr::get($item, 'resource') : $item->resource;\n });\n\n $this->resource->withResponse($request, $response);\n });\n }", "private function jsonResponse() {\n return json_format($this->response, $this->pretty);\n }", "public function data(): Response\n {\n $data = json_decode(file_get_contents($this->resources . '/potato_sales.json'));\n\n return new JsonResponse([\"data\" => $data]);\n }", "protected function _getJSONEncodedResponse()\n {\n if (function_exists('__json_encode'))\n {\n return json_encode($this->_Response);\n }\n else\n {\n return $this->_prepareJSONToEval($this->_jsonEncode($this->_Response));\n }\n\n }", "protected function intoResource($payload)\n {\n // Transformer are intended to singular resources,\n // so what to do with collections\n if ($this->transformer != null) {\n $payload = $this->transformPayload($payload);\n }\n\n if($payload instanceof Collection || $payload instanceof AbstractPaginator) {\n return is_array($payload->first()) \n ? new ResourceCollection($payload->map(function($item) {\n return new ArrayWrapper($item);\n }))\n : new ResourceCollection($payload);\n }\n\n if($payload instanceof Arrayable) {\n return $this->instantiateJsonResource($payload);\n }\n \n if(is_array($payload)) {\n return $this->instantiateJsonResource(new ArrayWrapper($payload));\n }\n \n if($payload instanceof \\JsonSerializable) {\n return $this->instantiateJsonResource($payload);\n }\n\n throw new ResponderException(\"Cannot serialize object\");\n }", "function json_response($data = [], $message = null, $status = 200, array $headers = [], $options = 0)\n {\n return new JsonResponse(compact('data', 'status', 'message'), $status, $headers, $options);\n }", "protected function createJsonResponse($data, $code = 200)\n {\n $response = new JsonResponse($data, $code);\n return $response;\n }", "protected function asObject()\n\t{\n\t\treturn \\json_decode($this->response);\n\t}", "function makeResponse($response)\n {\n $result = current(Util::toArray($response));\n\n $response = new Response([\n 'raw_body' => $result,\n\n ## get response message as array\n 'default_expected' => function($rawBody) use ($result) {\n return $result;\n }\n ]);\n // TODO handle exceptions\n\n /** @var iResponse $response */\n $response = $this->exceptionHandler($response);\n \n\n return $response;\n }", "public function withJson($data)\n {\n $new = $this->withContentType('application/json');\n return $new->withContent(json_encode($data));\n }", "public function json($data)\n {\n $this->template = NULL;\n $this->response->headers('Content-Type', 'application/json; charset=utf-8');\n $this->response->body(json_encode($data));\n }", "public function create(): JsonResponse\n {\n return response()->json([\n 'product' => null,\n 'warehouses' => $this->wareHouseRepository->getData(new WarehouseRequest()),\n 'suppliers' => $this->supplierRepository->getData(new SupplierRequest()),\n ]);\n }", "public static function toResource(): Resource\n {\n return new Resource(static::class);\n }", "public static function make($data = null, $status = 200, array $headers = []): JsonResponse\n {\n $instance = new static(null, $status, $headers);\n\n return $instance->setContent($data);\n }", "public static function init(array $data): TemplateResponse\n {\n /** @var TemplateResponse $obj */\n $obj = ObjectSerializer::deserialize(\n $data,\n TemplateResponse::class,\n );\n\n return $obj;\n }", "public function transformJsonResponse($json)\n {\n // In a REST-API call, the first five chars are )]}'\\n\n // to decode it, we have to strip it\n // See https://review.typo3.org/Documentation/rest-api.html#output\n if (substr($json, 0, 4) === ')]}\\'') {\n $json = substr($json, 5);\n }\n\n return json_decode($json, true);\n }", "protected function createResource()\n {\n $this->call('make:resource', array_filter([\n 'name' => $this->getNameInput().'Resource',\n ]));\n }", "public function create()\n\t{\n\t\treturn new StandardResource($this->arguments[0]->resourceId, 'StandardResource');\n\t}", "public function __toString()\n {\n return $this->response->get('json');\n }", "public function test_can_create_psr7_response(): void {\n\n\t\t$response = HTTP_Helper::response( array( 'key' => 'test_VALUE' ), 500 );\n\n\t\t$body = json_decode( (string) $response->getBody(), true );\n\n\t\t$this->assertInstanceOf( ResponseInterface::class, $response );\n\t\t$this->assertIsArray( $body );\n\t\t$this->assertArrayHasKey( 'key', $body );\n\t\t$this->assertEquals( 'test_VALUE', $body['key'] );\n\t\t$this->assertEquals( 500, $response->getStatusCode() );\n\t}", "public function returnJson($json)\n {\n $response = $this->getResponse();\n $response->setStatusCode(200);\n $util = new Util(null);\n\n header('Content-type: application/json');\n\n $response->setContent(json_encode($util->utf8ize($json)));\n\n return $response;\n }", "public function create()\n\t{\n\t\treturn \\Response::json(Input::json());\n\t}", "public function create()\n {\n // Define objet to be returned as a json string\n $data = new \\stdClass();\n $data->success = false;\n $data->error = \"Not allowed\";\n\n return \\Response::json($data);\n }", "public function json($data = array(), $status = 200, array $headers = array())\n\t{\n\t\treturn new JsonResponse($data, $status, $headers);\n\t}", "public function deserializeResponse(string $response): Response;", "public function response($api_key, $node) {\n\t\t$data = \\Drupal::service('serializer')->serialize($node, 'json', ['plugin_id' => 'entity']);\n \treturn new JsonResponse($data);\n\t}", "public static function objToJsonResponse($result) {\n $response = new JsonResponse();\n $response->setData($result);\n return $response;\n }", "public function createResponse($res, $content = null)\n {\n if (isset($content)) {\n $response = [\n 'errors' => false,\n 'content' => $content,\n ];\n } else {\n $response = [\n 'errors' => false,\n ];\n }\n return $res->withJson($response, 200, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);\n }", "public function testRespondMethodShouldMakeJsonResponses()\n {\n $response = new JsonResponse($error = ['foo' => 1], $status = 400, $headers = ['x-foo' => 1]);\n $this->errorFactory->shouldReceive('make')->andReturn($error);\n $this->responseFactory->shouldReceive('make')->andReturn($response);\n\n $result = $this->responseBuilder->respond($status, $headers);\n\n $this->assertEquals($response, $result);\n $this->responseFactory->shouldHaveReceived('make')->with($error, $status, $headers)->once();\n }", "private function response ($data) {\n $response = new Response($this->serializer->serialize($data, 'json'));\n $response->headers->set('Content-Type','application/json');\n $response->headers->set('Access-Control-Allow-Headers', 'origin, content-type, accept');\n $response->headers->set('Access-Control-Allow-Origin', '*');\n return $response;\n }", "public function response($data = NULL, $status = 200, array $headers = []) {\n return new JsonResponse($data, $status, $headers);\n }", "private function response($data) {\n\t\treturn json_decode($data);\n\t}", "final public function getResponse() {\r\n $template = $this->getProvider()->get('PM\\Main\\Web\\Component\\Template\\Json');\r\n $response = $this->getProvider()->get('response');\r\n $response->setTemplate($template);\r\n return $response;\r\n }", "public function foo(): ResponseInterface\n {\n return $this->createResponse('foo');\n }", "public function testCreate()\n {\n $result = new \\Arch\\Output\\HTTP\\Response\\JSON();\n $this->assertInstanceOf('\\Arch\\Output\\HTTP\\Response\\JSON', $result);\n }", "function api_create_response($payload, $status, $message) {\n if (is_numeric($payload)) {\n\n if ($payload == 1)\n $payload = array();\n elseif ($payload == 2)\n $payload = new \\stdClass();\n }\n\n $response_array = array('payload' => $payload, 'status' => $status, 'message' => $message);\n return $response_array;\n}", "private function createResponse(){\r\n #scraping metatag to get IMAGE TITLE and FULL PATH INC FILE NAME \r\n $metaTag = get_meta_tags($this->url);\r\n\r\n \r\n $this->setImageTitle($metaTag[\"sailthru_title\"]); #setting up title\r\n $this->setFileName($metaTag[\"sailthru_image_full\"]); #setting up full file name\r\n $this->setDimensions(); #setting up image dimensions\r\n \r\n $this->setFileSize(); #setting up file size in kB\r\n \r\n #create response array based on properties\r\n $array = array('title' => $this->imageTitle,\r\n 'dimensions' => $this->imageDimensions,\r\n 'filename' => $this->getPlainFileName(),\r\n 'file size in kB' => $this->fileSize\r\n );\r\n \r\n return $array;\r\n }", "public static function forResource(JsonResource $resource, string $message): static\n {\n $model = $resource->resource;\n\n return new static('Error encoding resource [' . $resource::class . '] with model [' . $model::class . '] with ID [' . $model->getKey() . '] to JSON: ' . $message);\n }", "public function __construct( $raw_response_json ) {\n\n\t\t$this->raw_response_json = $raw_response_json;\n\n\t\t$this->response_data = json_decode( $raw_response_json );\n\t}", "abstract public function prepare_response( $object, $context );", "public function makeResponse(array $data, string $title, array $headings): SymphonyResponse\n {\n return response()->json($data);\n }", "public function toResource($item)\n {\n return new $this->resource($item);\n }", "static function parseResponse(string $data): ApiResponse\n {\n $obj = new static;\n $obj->setData($data);\n return $obj;\n }", "public function json()\n {\n $code = 200;\n\n if (!Request::has(\"no_response_code\") || Request::input('no_response_code') != \"yes\") {\n $code = $this->getCode();\n }\n\n return response()->json($this->getResponse(), $code);\n }", "abstract public function transformResource($resource);", "protected function getCreateResponse()\n\t{\n\t\treturn new Api\\Response\\Create();\t\n\t}" ]
[ "0.63463795", "0.6201093", "0.61457247", "0.60321003", "0.5983709", "0.59776056", "0.59756637", "0.59735614", "0.5971271", "0.59570324", "0.59452164", "0.59303325", "0.5910199", "0.588668", "0.5855579", "0.58547795", "0.5849975", "0.5846977", "0.5828988", "0.58284366", "0.57841766", "0.5740029", "0.56545526", "0.56259215", "0.56129706", "0.5611727", "0.55878186", "0.5587094", "0.5574906", "0.55400395", "0.5527807", "0.5511569", "0.55064076", "0.549875", "0.5475747", "0.5461057", "0.5454503", "0.5452091", "0.5451682", "0.54472893", "0.5440726", "0.54290324", "0.54282343", "0.54157877", "0.53988504", "0.53947604", "0.5381486", "0.5380394", "0.53677267", "0.5351872", "0.5347205", "0.5345205", "0.5343002", "0.5331833", "0.5323569", "0.5321505", "0.53154856", "0.53061366", "0.52963495", "0.5288163", "0.5263941", "0.5260974", "0.52562654", "0.525577", "0.5253271", "0.52527225", "0.52381897", "0.52201325", "0.52035075", "0.5201477", "0.5199319", "0.51902723", "0.5187874", "0.51839805", "0.517993", "0.5177473", "0.5170013", "0.5169876", "0.516592", "0.5159945", "0.51515275", "0.5146214", "0.5140405", "0.51310754", "0.5118956", "0.51153857", "0.5113844", "0.5111077", "0.5104951", "0.51026446", "0.50995433", "0.5097961", "0.50967884", "0.5078988", "0.5073904", "0.5070322", "0.5061595", "0.5055228", "0.504868", "0.5043227" ]
0.753264
0
Use this when you need to update the javascript object (!)
function save($isAjaxR=true) { if ($isAjaxR) $this->doNotRenderHeader = true; $this->set('menu', json_encode($this->create_archive_nav_array())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update( &$object );", "function update() {\n\n\t\t\t}", "protected function _update()\n\t{\n\t}", "protected function update() {}", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "protected function updateObject()\n {\n $gatewayData = $this->encodeDataToJson();\n\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"user_id\") . \"=\" . $this->db->quote($this->user_id))\n ->set($this->db->quoteName(\"project_id\") . \"=\" . $this->db->quote($this->project_id))\n ->set($this->db->quoteName(\"reward_id\") . \"=\" . $this->db->quote($this->reward_id))\n ->set($this->db->quoteName(\"unique_key\") . \"=\" . $this->db->quote($this->unique_key))\n ->set($this->db->quoteName(\"gateway\") . \"=\" . $this->db->quote($this->gateway))\n ->set($this->db->quoteName(\"gateway_data\") . \"=\" . $this->db->quote($gatewayData))\n ->set($this->db->quoteName(\"auser_id\") . \"=\" . $this->db->quote($this->auser_id))\n ->set($this->db->quoteName(\"session_id\") . \"=\" . $this->db->quote($this->session_id))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n }", "public static function update(){\r\n }", "public function update();", "public function update();", "public function update();", "public function update();", "public function update()\r\n {\r\n \r\n }", "public function update()\n\t{\n\n\t}", "public function update()\r\n {\r\n //\r\n }", "abstract protected function update ();", "public function update() {\r\n\r\n\t}", "public function update($obj)\n {\n }", "public static function update(){\n }", "public function update() {\r\n }", "protected function updateObject($jsonObject) {\n }", "public function update()\n {\n }", "public function update () {\n\n }", "function update() {\n\t\tglobal $tpl, $lng;\n\n\t\t$form = $this->initForm(TRUE);\n\t\tif ($form->checkInput()) {\n\t\t\tif ($this->updateElement($this->getPropertiesFromPost($form))) {\n\t\t\t\tilUtil::sendSuccess($lng->txt('msg_obj_modified'), TRUE);\n\t\t\t\t$this->returnToParent();\n\t\t\t}\n\t\t}\n\n\t\t$form->setValuesByPost();\n\t\t$tpl->setContent($form->getHtml());\n\t}", "public function updating()\n {\n # code...\n }", "public function update()\n {\n //\n }", "public function update()\n {\n //\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "abstract public function updateData();", "abstract public function update();", "abstract public function update();", "public function update()\n {\n\n }", "public function update()\n {\n\n }", "public abstract function update();", "public function update()\n {\n \n }", "public function update()\n {\n \n }", "public function javascript (\\stdClass $param);", "public function update($object): void;", "public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->id;\n }", "public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->id;\n }", "public function update()\n {\n # code...\n }", "function updateObjectReference()\n\t{\n\t\tif (is_object($this->mob_node))\n\t\t{\n\t\t\t$this->mal_node =& $this->mob_node->first_child();\n\t\t\tif (is_object($this->mal_node) && $this->mal_node->node_name() == \"MediaAlias\")\n\t\t\t{\n\t\t\t\t$this->mal_node->set_attribute(\"OriginId\", \"il__mob_\".$this->getMediaObject()->getId());\n\t\t\t}\n\t\t}\n\t}", "public function update() {\n \n }", "protected function initJavascriptCode() {}", "protected function update(): static\n {\n if ( ! $this->headers->has('Content-Type') || 'text/javascript' === $this->headers->get('Content-Type')) {\n $this->headers->set('Content-Type', 'application/json');\n }\n\n return $this->setContent($this->data);\n }", "abstract function update();", "public abstract function update($object);", "protected function update()\n {\n if (!$this->headers->has('Content-Type') || 'text/javascript' === $this->headers->get('Content-Type')) {\n $this->headers->set('Content-Type', 'application/json');\n }\n\n return $this->setContent($this->data);\n }", "public function update(){\n\n }", "public function update(){\n\n }", "public function js_2()\n {\n }", "protected function setJavaScriptCodeArray() {}", "public function Do_update_Example1(){\n\n\t}", "public function _update()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "function vitero_grade_item_update(stdClass $vitero) {\n}", "public function setUpdated(): void\n {\n $this->originalData = $this->itemReflection->dehydrate($this->item);\n }", "public function update() {\n parent::update();\n }", "public function js_1()\n {\n }", "public function update() {\n\t\treturn;\n\t}", "function to_js()\n {\n if ($this->property(\"url\") == null) {\n throw new AjaxNoUrlException('In class <b>' . get_class($this) . '</b> URL must be specified using method <b>url($url)</b>');\n }\n if ($this->property(\"success\") == null && $this->property(\"replace\") == null && $this->property(\"update\") == null && $this->property(\"dataType\") != \"script\") {\n throw new AjaxNoOnSuccessException('In class <b>' . get_class($this) . '</b> success action must be specified using method <b>on_success($js)</b>');\n }\n\n // Shall we not update or replace?\n if ($this->property(\"replace\") == null && $this->property(\"update\") == null) {\n $this->property(\"success\", \"function (data, textStatus){\" . $this->property(\"success\") . \";this;}\");\n } else {\n // Update\n if ($this->property(\"update\") !== null) {\n //Firefox problem - bug? $this->property(\"success\",\"function (data, textStatus){\\$(\".$this->property(\"update\").\").empty();\\$(\".$this->property(\"update\").\").append(data);this;}\");\n $this->property(\"success\", 'function (data, textStatus){$(\"' . $this->property(\"update\") . '\").empty().html(data);this;}');\n // Removing update\n $this->property = \\Sinevia\\ArrayUtils::keyDelete($this->property, \"update\");\n }\n // Replace\n else {\n $this->property(\"success\", 'function (data, textStatus){$(\"#' . $this->property(\"replace\") . '\").after(data).parent().find(\"#' . $this->property(\"replace\") . '\").remove();this;}');\n // Removing replace\n $this->property = \\Sinevia\\ArrayUtils::array_key_delete($this->property, \"replace\");\n }\n }\n // Is there custom user error?\n if ($this->property(\"error\") == null) {\n $this->property(\"error\", \"function (XMLHttpRequest, textStatus, errorThrown){alert('Status: '+textStatus+'\\\\nError: '+errorThrown);this;}\");\n } else {\n $this->property(\"error\", \"function (XMLHttpRequest, textStatus, errorThrown){\" . $this->property(\"error\") . \";this;}\");\n }\n if ($this->property(\"beforeSend\") !== null) {\n $this->property(\"beforeSend\", \"function (XMLHttpRequest){\" . $this->property(\"beforeSend\") . \";this;}\");\n }\n if ($this->property(\"complete\") !== null) {\n $this->property(\"complete\", \"function (XMLHttpRequest, textStatus){\" . $this->property(\"complete\") . \";this;}\");\n }\n // Are there params?\n if ($this->property(\"param\") !== null) {\n $params = $this->property(\"param\");\n $data = array();\n foreach ($params as $name => $value) {\n $data[] = $name . '=' . $value;\n }\n $data = implode(\"&\", $data);\n $this->property = \\Sinevia\\ArrayUtils::keyDelete($this->property, \"param\");\n $this->property(\"data\", $data);\n }\n $keys = array();\n foreach ($this->property as $key => $value) {\n if ($key == \"success\") {\n $keys[] = $key . ':' . $value;\n } elseif ($key == \"error\") {\n $keys[] = $key . ':' . $value;\n } elseif ($key == \"complete\") {\n $keys[] = $key . ':' . $value;\n } elseif ($key == \"beforeSend\") {\n $keys[] = $key . ':' . $value;\n } elseif ($key == \"async\") {\n $keys[] = $key . ':' . $value;\n } elseif ($key == \"cache\") {\n $keys[] = $key . ':' . $value;\n } else {\n $keys[] = $key . ':\"' . $value . '\"';\n }\n }\n \n $jquery = \"$.ajax({\" . implode(\",\", $keys) . \"})\";\n //return \"alert('\".$jquery.\"')\";\n return $jquery;\n }", "public function js_value()\n {\n }", "public function testUpdate(): void { }", "abstract public function updateItem(&$object);", "public function update()\n\t{\n\t\tif (app::is_ajax())\n\t\t{\n\t\t\t$values = new stdClass;\n\t\t\t$values->id = $this->input->post('inline-id');\n\t\t\t$values->title = $this->input->post('inline-title');\n\t\t\t$values->url = $this->input->post('inline-url');\n\t\t\n\t\t\tif ($this->rownd->save($values))\n\t\t\t{\n\t\t\t\t$title = character_limiter($values->title, 56, '...');\n\t\t\t\t$this->output->set_content_type('application/json')\n\t\t\t\t\t\t\t ->set_output(json_encode(array('id'=>$values->id, 'title'=> $title, 'url'=>$values->url)));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect('/');\n\t\t}\n\t}", "function modified() { $this->_modified=1; }", "function modified() { $this->_modified=1; }", "public function update(): void\n {\n }", "public function js()\n {\n }", "public function updateJson() {\r\n\t\t$this->prepareDb();\r\n\t\tif (!$this->getFileContent()) {\r\n\t\t\t$this->log(\"empty db\", 0);\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\t$this->_jsonFc = json_decode($this->_jsonFc, true);\r\n\t\tif (is_array($this->_jsonFc)) {\r\n\t\t\t$found = false;\r\n\t\t\tforeach ($this->_jsonFc as $key => $fc) {\r\n\t\t\t\tif (isset($fc[\"id\"]) && $fc[\"id\"] == $this->_jsonId) {\r\n\t\t\t\t\t$this->_jsonFc[$key][\"json\"] = $this->expJson();\r\n\t\t\t\t\t$found = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($found) {\r\n\t\t\t\tfile_put_contents($this->_path_db, json_encode($this->_jsonFc, JSON_PRETTY_PRINT));\r\n\t\t\t} else {\r\n\t\t\t\t$this->log(\"id not found in db\", 0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->clearDump();\r\n\t}", "function setObject($object);", "public function _js_vars()\n {\n }", "public function update(){\n\t\t$modifications[] = new Modification();\n\t}", "function Likee_upd(){\n\t\t// Make a local reference to the ExpressionEngine super object\n\t\t$this->EE =& get_instance();\n\t}", "public function update()\n {\n if ( ! $this->bean->getId()) {\n $this->bean->user = R::dispense('user')->current();\n }\n $this->bean->year = date('Y', strtotime($this->bean->invoicedate));\n $this->bean->m = date('m', strtotime($this->bean->invoicedate));\n $this->bean->d = date('d', strtotime($this->bean->invoicedate));\n $this->bean->yearname = $this->bean->year.$this->bean->name;\n parent::update();\n }", "public function update_object ($obj)\n {\n parent::update_object ($obj);\n $this->access_id = $obj->parent_folder_id ();\n }", "function Geofinder_upd()\n\t{\n\t\t$this->EE =& get_instance();\n\t}", "protected function _updatefields() {}", "private function updateObject($name,$object){\n $this->cache->set($name, $object);\n }", "public function onUpdate();", "public function onUpdate();", "public function onUpdate();", "public function update($data) {}", "public function update($data) {}", "public function put($key,$value)\n {\n $this->js_vars[ $key ] = $value;\n }", "function update() {\n\t\t$vars = $this->params['url'];\n\t\t$this->Event->id = $vars['id'];\n\t\t$this->Event->saveField('start', $vars['start']);\n\t\t$this->Event->saveField('end', $vars['end']);\n\t\t$this->Event->saveField('all_day', $vars['allday']);\n\t}", "function getjsOnDataChanged() { return $this->_jsondatachanged; }", "function after_update() {}", "protected function UpdateJson($params=array()) {\n\t\tforeach($params as $key => $value)\n\t\t\t$this->$key = $value;\n\t\t$obj = $this->CreateJson();\n\t\t$obj->recordsList->records[0]->id = $this->id;\n\t\treturn $obj;\n\t}", "protected function afterUpdating()\n {\n }", "protected final function _markModified()\n {\n DomainWatcher::addModifiedObject($this);\n }" ]
[ "0.64404577", "0.63372916", "0.6235913", "0.62104625", "0.61825216", "0.61825216", "0.60959136", "0.6042448", "0.6038225", "0.6038225", "0.6038225", "0.6038225", "0.60234666", "0.6012305", "0.5986901", "0.59738976", "0.59713435", "0.59339154", "0.5929569", "0.5920208", "0.5900075", "0.5876982", "0.5869059", "0.5868443", "0.58533514", "0.58483714", "0.58483714", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58478296", "0.58401084", "0.57675415", "0.57675415", "0.5755441", "0.5755441", "0.57552665", "0.5738152", "0.5738152", "0.57220757", "0.56973416", "0.56867933", "0.56867933", "0.56543696", "0.56400084", "0.5626096", "0.5621589", "0.5612628", "0.5611677", "0.56098276", "0.5583923", "0.55604655", "0.55604655", "0.55319667", "0.55309397", "0.55082166", "0.55022705", "0.5491183", "0.5488117", "0.5471591", "0.547094", "0.54578584", "0.5441196", "0.5437923", "0.54348606", "0.54336864", "0.5430211", "0.5422962", "0.5422962", "0.54180497", "0.5400573", "0.5388459", "0.5387249", "0.53799105", "0.5372868", "0.53721714", "0.53710604", "0.5367825", "0.5363677", "0.53593343", "0.5355788", "0.53456575", "0.53456575", "0.53456575", "0.5340833", "0.5340833", "0.5337939", "0.53314507", "0.5330895", "0.53240824", "0.53191054", "0.53178936", "0.5303406" ]
0.0
-1
Use in header.php Currently does not render because only called through performAction()
function index($isAjaxR=true) { if ($isAjaxR) $this->doNotRenderHeader = true; return $this->create_archive_nav_menu($this->create_archive_nav_array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n\t{\n\t\t// Render\n\t\t/*$this->_helper->content\n\t\t\t//->setNoRender()\n\t\t\t->setEnabled()\n\t\t\t;*/\n\t}", "public function render(){\r\n //Current controller is loaded from within the action method.\r\n define(\"RENDER_BEGIN\", microtime());\r\n \r\n\t\t\t$this->controller->render();\r\n \r\n\t\t\t\r\n\t\t}", "public function perform()\n {\n // template var with charset used for the html pages\n $this->viewVar['charset'] = $this->config->getModuleVar('common', 'charset');\n $this->viewVar['cssFolder'] = JAPA_PUBLIC_DIR . 'styles/'.$this->config->getModuleVar('common', 'styles_folder');\n $this->viewVar['urlBase'] = $this->router->getBase(); \n $this->viewVar['loggedUserRole'] = $this->controllerVar['loggedUserRole'];\n $this->viewVar['isUserLogged'] = $this->controllerVar['isUserLogged'];\n $this->viewVar['adminWebController'] = $this->config->getVar('default_module_application_controller'); \n \n $this->viewVar['text'] = array();\n\n // get text for the front page\n $this->model->action('misc','getText', \n array('id_text' => 1,\n 'result' => & $this->viewVar['text'],\n 'fields' => array('body'))); \n \n // get result of the header and footer controller\n // \n $this->viewVar['header'] = $this->controllerLoader->header(); \n $this->viewVar['footer'] = $this->controllerLoader->footer(); \n $this->viewVar['rightBorder'] = $this->controllerLoader->rightBorder(); \n }", "protected function header()\n {\n\n }", "public function hookHeader()\n {\n $language_code = $this->context->language->language_code;\n $this->context->controller->addJS($this->_path . '/views/js/front.js');\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\n if (version_compare(_PS_VERSION_, '1.6.1.0', '>=')) {\n Media::addJsDef(\n array(\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\n 'wi_weather_url' => $this->getUrl(),\n 'wi_weather_city' => $this->getCity($language_code)\n )\n );\n } else {\n $this->context->smarty->assign(\n array(\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\n 'wi_weather_url' => $this->getUrl(),\n 'wi_weather_city' => $this->getCity($language_code)\n )\n );\n\n return $this->context->smarty->fetch(\n _PS_MODULE_DIR_ . $this->name\n . DIRECTORY_SEPARATOR . 'views'\n . DIRECTORY_SEPARATOR . 'templates'\n . DIRECTORY_SEPARATOR . 'front'\n . DIRECTORY_SEPARATOR . 'javascript.tpl'\n );\n }\n }", "public function action_view()\n {\n // Correct page has been loaded in the before() function\n $pagename = Wi3::inst()->routing->args[0];\n $this->prepareForViewing($pagename);\n // Render page\n $renderedInAdminArea = false;\n $this->request->response = Wi3_Renderer::renderPage($pagename, $renderedInAdminArea);\n // Page caching will be handled via an Event. See bootstrap.php and the Caching plugin\n }", "public function headAction()\n {\n \n }", "private function _doRender(){\n\t\tinclude $this->_viewLocation;\n\t}", "function charity_header() {\n do_action('charity_header');\n}", "function bb_header()\n{\n\tdo_action('bb_header');\n}", "function display_portal_header()\r\n {\r\n Display :: header(null);\r\n }", "public function index_action() {\n \\TPL::output('/pl/be/sns/wx/main');\n exit;\n }", "function render() {\n\t\t\t//echo(\"I would be calling the \".$this->controller.\" controller and the \".$this->action.\" action with \".count($this->idArray).\" IDs\");\n\t\t\tif(!file_exists(APP_ROOT.'/controllers/'.$this->controller.'Controller.class.php')) {\n\t\t\t\theader(\"HTTP/1.0 500 Server Error\");\n\t\t\t\techo(\"Bad controller\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//echo(\"I would be calling the \".$this->controller.\" controller and the \".$this->action.\" action with \".count($this->idArray).\" IDs\");\n\t\t\trequire_once(APP_ROOT.'/controllers/'.$this->controller.'Controller.class.php');\n\t\t\t$cname = $this->controller.\"Controller\";\n\t\t\t$controller = new $cname;\n\t\t\t$res = $controller->{$this->action}($this->request);\n\t\t\techo($res);\n\t\t}", "public function hookDisplayBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\n $this->context->controller->addJquery();\n Media::addJsDef(array(\n 'TWISPAY_LIVE_MODE' => Configuration::get('TWISPAY_LIVE_MODE'),\n ));\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n if ($this->context->cookie->redirect_error) {\n /** Display persistent error */\n $this->context->controller->errors[] = $this->context->cookie->redirect_error;\n /** Clean persistent error */\n unset($this->context->cookie->redirect_error);\n }\n }", "protected function displayContent() {\r\n\t\t$this -> model -> processLogout();\r\n\t\theader('Location: index.php?page=home');\r\n\t}", "function of_head() { do_action( 'of_head' ); }", "private static function render(){\n\t\tif(flexMVC::$view) $viewpath = VIEWS.flexMVC::$view.VIEWPAGE_EXT;\n\t\telse $viewpath = CURRENT_VIEW_FOLDER_LOCATION.CURRENT_VIEW.VIEWPAGE_EXT;\n\t\tif(!is_file($viewpath)){\n\t\t\t$viewpath = VIEWS.flexMVC::$error_page.VIEWPAGE_EXT;\n\t\t\tif(!file_exists($viewpath)){\n\t\t\t\techo(\"Please define your errors page => \" . flexMVC::$error_page);\n\t\t\t\texit;\n\t\t\t}\n\t\t\theader($_SERVER[\"SERVER_PROTOCOL\"].\" 404 Not Found\"); \n\t\t\tob_start();\n\t\t\tinclude($viewpath);\n\t\t\t$content = ob_get_clean();\n\t\t\tflexMVC::get_layout(VIEWS.\"_layouts/\".flexMVC::$layout.VIEWPAGE_EXT, $content);\n\t\t}else{\n\t\t\tob_start();\n\t\t\tinclude($viewpath);\n\t\t\t$content = ob_get_clean();\n\t\t\tflexMVC::get_layout(VIEWS.\"_layouts/\".flexMVC::$layout.VIEWPAGE_EXT, $content);\n\t\t\t$_SESSION['flexMVC_lastActive'] = strtotime(\"now\");\n\t\t}\n\t}", "function in_admin_header()\n {\n }", "function execute() {\n\t\tglobal $wgRequest;\n\t\t$this->skin = $skin = $this->data['skin'];\n\t\t$action = $wgRequest->getText( 'action' );\n \n // check if TOC is present\n $hasToc = strpos($this->data['bodytext'], 'id=\"toc\"');\n \n\t\t// Suppress warnings to prevent notices about missing indexes in $this->data\n\t\twfSuppressWarnings();\n\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"<?php $this->text('xhtmldefaultnamespace') ?>\" <?php\n\tforeach($this->data['xhtmlnamespaces'] as $tag => $ns) {\n\t\t?>xmlns:<?php echo \"{$tag}=\\\"{$ns}\\\" \";\n\t} ?>xml:lang=\"<?php $this->text('lang') ?>\" lang=\"<?php $this->text('lang') ?>\" dir=\"<?php $this->text('dir') ?>\">\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>\" />\n\t\t<?php $this->html('headlinks')?> \n\t\t<title><?php echo $this->cleanTitle('pagetitle'); ?></title>\n\t\t<?php $this->html('csslinks') ?>\n\n\t\t<!--[if lt IE 7]><script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('stylepath') ?>/common/IEFixes.js?<?php echo $GLOBALS['wgStyleVersion'] ?>\"></script>\n\t\t<meta http-equiv=\"imagetoolbar\" content=\"no\" /><![endif]-->\n\n\t\t<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>\n\n <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"<?php $this->text('stylepath') ?>/ev/standard.css\" />\n\n\t\t<script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>\"><!-- wikibits js --></script>\n\t\t<!-- Head Scripts -->\n<?php $this->html('headscripts') ?>\n<?php\tif($this->data['jsvarurl']) { ?>\n\t\t<script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('jsvarurl') ?>\"><!-- site js --></script>\n<?php\t} ?>\n<?php\tif($this->data['pagecss']) { ?>\n\t\t<style type=\"text/css\"><?php $this->html('pagecss') ?></style>\n<?php\t}\n\t\tif($this->data['usercss']) { ?>\n\t\t<style type=\"text/css\"><?php $this->html('usercss') ?></style>\n<?php\t}\n\t\tif($this->data['userjs']) { ?>\n\t\t<script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('userjs' ) ?>\"></script>\n<?php\t}\n\t\tif($this->data['userjsprev']) { ?>\n\t\t<script type=\"<?php $this->text('jsmimetype') ?>\"><?php $this->html('userjsprev') ?></script>\n<?php\t}\n\t\tif($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>\n\t</head>\n<body<?php if($this->data['body_ondblclick']) { ?> ondblclick=\"<?php $this->text('body_ondblclick') ?>\"<?php } ?>\n<?php if($this->data['body_onload']) { ?> onload=\"<?php $this->text('body_onload') ?>\"<?php } ?>\n class=\"yui-skin-sam ccPage mediawiki <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinnameclass') ?>\">\n <div id=\"globalWrapper\">\n <div id=\"headerWrapper\" class=\"box\">\n <div id=\"headerLogo\">\n <h1><a href=\"/\"><span>F&ouml;rderverein&nbsp;Gentoo&nbsp;e.V.</span></a></h1>\n </div>\n <div id=\"headerNav\">\n <ul id=\"t-personal\">\n <?php \t\t\tforeach($this->data['personal_urls'] as $key => $item) { ?>\n \t\t\t\t<li id=\"<?php echo Sanitizer::escapeId( \"pt-$key\" ) ?>\"<?php\n \t\t\t\t\tif ($item['active']) { ?> class=\"active\"<?php } ?>><a href=\"<?php\n \t\t\t\techo htmlspecialchars($item['href']) ?>\"<?php echo $skin->tooltipAndAccesskeyAttribs('pt-'.$key) ?><?php\n \t\t\t\tif(!empty($item['class'])) { ?> class=\"<?php\n \t\t\t\techo htmlspecialchars($item['class']) ?>\"<?php } ?>><?php\n \t\t\t\techo htmlspecialchars($item['text']) ?></a></li>\n <?php\t\t\t} ?>\n \t\t </ul>\n </div>\n <div id=\"headerSearch\">\n <form method=\"get\" id=\"searchform\" action=\"<?php $this->text('searchaction') ?>\">\n <div>\n <input type=\"text\" \n <?php echo $this->skin->tooltipAndAccesskeyAttribs('search');\n \t\t\t\t\tif( isset( $this->data['search'] ) ) {\n \t\t\t\t\t\t?> value=\"<?php $this->text('search') ?>\" <?php } ?> \n \t\t\t\t name=\"search\" id=\"search\" class=\"inactive\" /> <input type=\"submit\" id=\"searchsubmit\" value=\"Suchen\" />\n </div>\n </form> \n </div>\n </div>\n <div id=\"mainContent\" class=\"box\">\n <!-- toolboxes -->\n <!--<div id=\"pageNav\"></div>-->\n \n <!-- page title -->\n <div class=\"block\" id=\"title\">\n <div id=\"contentSub\"><h3 class=\"category\"><?php echo str_replace(\"&lt; \", \"\", $this->data['subtitle']) ?></h3></div> \n <?php echo $this->cleanTitle(); ?>\n </div>\n \n <!-- page content -->\n <div id=\"contentPrimary\" class=\"<?php if (!$hasToc) {?>noToc<?php }?>\">\n\t <div class=\"block page\">\n <?php if($this->data['sitenotice']) { ?><div id=\"siteNotice\"><?php $this->html('sitenotice') ?></div><?php } ?>\n \t\t\n <?php if($this->data['undelete']) { ?><div id=\"contentSub2\"><?php $this->html('undelete') ?></div><?php } ?>\n \t\t\t<?php if($this->data['newtalk'] ) { ?><div class=\"usermessage\"><?php $this->html('newtalk') ?></div><?php } ?>\n \t\t\t<!-- start content -->\n \t\t\t<?php $this->html('bodytext') ?>\n \t\t\t<?php if($this->data['catlinks']) { $this->html('catlinks'); } ?>\n \t\t\t<!-- end content -->\n \t\t\t<?php if($this->data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>\n </div>\n </div>\n </div>\n \n <!-- footer -->\n <div id=\"footer\">\n <div id=\"footerContent\" class=\"box\">\n <ul id=\"t-page\">\n \t<?php\t\tforeach($this->data['content_actions'] as $key => $tab) {\n \t\t\t\t\techo '\n \t\t\t\t <li id=\"' . Sanitizer::escapeId( \"ca-$key\" ) . '\"';\n \t\t\t\t\tif( $tab['class'] ) {\n \t\t\t\t\t\techo ' class=\"'.htmlspecialchars($tab['class']).'\"';\n \t\t\t\t\t}\n \t\t\t\t\techo'><a href=\"'.htmlspecialchars($tab['href']).'\"';\n \t\t\t\t\t# We don't want to give the watch tab an accesskey if the\n \t\t\t\t\t# page is being edited, because that conflicts with the\n \t\t\t\t\t# accesskey on the watch checkbox. We also don't want to\n \t\t\t\t\t# give the edit tab an accesskey, because that's fairly su-\n \t\t\t\t\t# perfluous and conflicts with an accesskey (Ctrl-E) often\n \t\t\t\t\t# used for editing in Safari.\n \t\t\t\t \tif( in_array( $action, array( 'edit', 'submit' ) )\n \t\t\t\t \t&& in_array( $key, array( 'edit', 'watch', 'unwatch' ))) {\n \t\t\t\t \t\techo $skin->tooltip( \"ca-$key\" );\n \t\t\t\t \t} else {\n \t\t\t\t \t\techo $skin->tooltipAndAccesskeyAttribs( \"ca-$key\" );\n \t\t\t\t \t}\n \t\t\t\t \techo '>'.htmlspecialchars($tab['text']).'</a></li>';\n \t\t\t\t} ?>\n \t\t </ul>\n \t \n <ul id=\"t-toolbox\">\n <?php\n \t\tif($this->data['notspecialpage']) { ?>\n \t\t\t\t<li id=\"t-whatlinkshere\"><a href=\"<?php\n \t\t\t\techo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href'])\n \t\t\t\t?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></li>\n <?php\n \t\t\tif( $this->data['nav_urls']['recentchangeslinked'] ) { ?>\n \t\t\t\t<li id=\"t-recentchangeslinked\"><a href=\"<?php\n \t\t\t\techo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href'])\n \t\t\t\t?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked') ?></a></li>\n <?php \t\t}\n \t\t}\n \t\tif(isset($this->data['nav_urls']['trackbacklink'])) { ?>\n \t\t\t<li id=\"t-trackbacklink\"><a href=\"<?php\n \t\t\t\techo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])\n \t\t\t\t?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></li>\n <?php \t}\n \t\tif($this->data['feeds']) { ?>\n \t\t\t<li id=\"feedlinks\"><?php foreach($this->data['feeds'] as $key => $feed) {\n \t\t\t\t\t?><span id=\"<?php echo Sanitizer::escapeId( \"feed-$key\" ) ?>\"><a href=\"<?php\n \t\t\t\t\techo htmlspecialchars($feed['href']) ?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;</span>\n \t\t\t\t\t<?php } ?></li><?php\n \t\t}\n\n \t\tforeach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {\n\n \t\t\tif($this->data['nav_urls'][$special]) {\n \t\t\t\t?><li id=\"t-<?php echo $special ?>\"><a href=\"<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href'])\n \t\t\t\t?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('t-'.$special) ?>><?php $this->msg($special) ?></a></li>\n <?php\t\t}\n \t\t}\n\n \t\tif(!empty($this->data['nav_urls']['print']['href'])) { ?>\n \t\t\t\t<li id=\"t-print\"><a href=\"<?php echo htmlspecialchars($this->data['nav_urls']['print']['href'])\n \t\t\t\t?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('t-print') ?>><?php $this->msg('printableversion') ?></a></li><?php\n \t\t}\n\n \t\tif(!empty($this->data['nav_urls']['permalink']['href'])) { ?>\n \t\t\t\t<li id=\"t-permalink\"><a href=\"<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href'])\n \t\t\t\t?>\"<?php echo $this->skin->tooltipAndAccesskeyAttribs('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php\n \t\t} elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?>\n \t\t\t\t<li id=\"t-ispermalink\"<?php echo $this->skin->tooltip('t-ispermalink') ?>><?php $this->msg('permalink') ?></li><?php\n \t\t}\n\n \t\twfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) );\n \t\twfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) );\n ?>\n </ul> \t \n \t \n <?php if($this->data['lastmod' ]) { ?><p><?php $this->html('lastmod') ?></p><?php } ?>\n \t \n \t <p>Gentoo&reg; ist eine eingetragene Marke des Förderverein&nbsp;Gentoo&nbsp;e.V. <strong>&copy; 2009&ndash;11 Förderverein Gentoo e.V.</strong>\n <a href=\"/wiki/Kontakt\" title=\"Impressum\">Impressum/Kontakt</a>\n </p>\n\n \t \n <!--<ul> \n \t <?php if($this->data['about' ]) { ?><li><?php $this->html('about') ?></li><?php } ?>\n </ul>-->\n </div>\n </div>\n \n </div>\n\n <?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>\n <?php $this->html('reporttime'); ?>\n <?php if ( $this->data['debug'] ) { ?>\n <!-- Debug output:\n <?php $this->text( 'debug' ); ?>\n\n -->\n <?php } ?>\n</body></html>\n<?php\n\t}", "function display_header() {}", "protected function actionHeader() {\n Navigation::activateItem($this->navlink);\n $this->setTabNavigationIcon('black');\n $this->addSubNavigation(_('Lesen'), 'show');\n if (Utils\\hasPermission($this->edit_permission)) {\n $this->addSubNavigation(_('Bearbeiten'), 'edit');\n }\n }", "public function myaction()\n {\n $this->viewBuilder()->disableAutoLayout();\n $this->viewBuilder()->setTemplate('take_action');\n }", "public function render() {\r\n require_once '../template/front.php';\r\n }", "public function output(){\n\t\t$this->index($this->input->get('action'));\n\t}", "function Header(){\n\t\t}", "abstract protected function RenderHead();", "public function hookHeader()\n {\n if ($this->context->controller instanceof OrderConfirmationController) {\n $this->context->controller->addJS($this->_path . '/views/js/scratch-card.js');\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\n }\n }", "function printHeader()\n\t{\n\t\t$_SESSION['last_page'] = $_SERVER['QUERY_STRING'];\n\t\tif( isset($_SESSION['admin']) && $_SESSION['admin'])\n\t\t{\n\t\t\t$this->admin_nav = \"<a class=\\\"button\\\" href=\\\"?section=project_management\\\" title=\\\"Go to project management\\\">Project Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=reference_value_management\\\" title=\\\"Go to reference value management\\\">Reference Value Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=user_management\\\" title=\\\"Go to user management\\\">User Management</a>\\n\";\n\t\t}\n\t\t$this->initSessionVariables();\n\t\tinclude 'View/Header.html';\n\t}", "abstract protected function header();", "public function __invoke() {\n//\t\t\t$this->register_effect($e);\n\n\t\tif ($this->header_js) {\n\t\t$this->load_jquery();\n\t\t?>\n<script>\n<?php echo $this->header_js ?>\n</script>\n\n\t\t<?php\n\t\t}\n\t}", "public function before_render() {}", "public function indexAction() {\n\t\t$this->_initAction()\n\t\t\t->renderLayout();\n\t}", "public function header() {\n\t}", "public function defaultAction()\n {\n $this->templatelang->load($this->_controller.'.'.$this->_action);\n\n // Rendering view page\n $this->_view();\n }", "public function render_wizard() {\n\t\tinclude Plugin::instance()->get_view( 'common/page' );\n\t}", "protected function renderPage()\n {\n $this->requestCallback();\n require_once \\dirname(__FILE__) . '/../../views/settings.php';\n }", "public function indexAction()\r\n {\r\n $this->_initAction()\r\n ->renderLayout();\r\n }", "protected function viewAction()\n {\n }", "function header() {\n }", "public function main() {\r\n // Access check!\r\n // The page will show only if there is a valid page and if this page may be viewed by the user\r\n $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause);\r\n $access = is_array($this->pageinfo) ? 1 : 0;\r\n\r\n if (($this->id && $access) || ($GLOBALS['BE_USER']->user['admin'] && !$this->id)) {\r\n\r\n // Draw the header.\r\n $this->doc = t3lib_div::makeInstance('bigDoc');\r\n $this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath('medbootstraptools').'res/css/bemodul.css'); \r\n $this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath('medbootstraptools').'res/bootstrap/css/bootstrap.min.css'); \r\n $this->doc->backPath = $GLOBALS['BACK_PATH'];\r\n $this->doc->form = '<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">';\r\n\r\n // JavaScript\r\n $this->doc->JScode = '\r\n <script src=\"../typo3conf/ext/medbootstraptools/res/js/jquery-1.8.3.min.js\"></script>\r\n <script src=\"../typo3conf/ext/medbootstraptools/res/js/functions.js\"></script>\r\n <script language=\"javascript\" type=\"text/javascript\">\r\n script_ended = 0;\r\n function jumpToUrl(URL) {\r\n document.location = URL;\r\n }\r\n </script>\r\n ';\r\n $this->doc->postCode = '\r\n <script language=\"javascript\" type=\"text/javascript\">\r\n script_ended = 1;\r\n if (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\r\n </script>\r\n ';\r\n\r\n $headerSection = $this->doc->getHeader('pages', $this->pageinfo, $this->pageinfo['_thePath']) . '<br />'\r\n . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.path') . ': ' . t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'], -50);\r\n\r\n $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title'));\r\n //$this->content .= $this->doc->header($GLOBALS['LANG']->getLL('title'));\r\n //$this->content .= $this->doc->spacer(5);\r\n //$this->content .= $this->doc->section('', $this->doc->funcMenu($headerSection, t3lib_BEfunc::getFuncMenu($this->id, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function'])));\r\n //$this->content .= $this->doc->divider(5);\r\n // Render content:\r\n $this->moduleContent();\r\n\r\n // Shortcut\r\n if ($GLOBALS['BE_USER']->mayMakeShortcut()) {\r\n $this->content .= $this->doc->spacer(20) . $this->doc->section('', $this->doc->makeShortcutIcon('id', implode(',', array_keys($this->MOD_MENU)), $this->MCONF['name']));\r\n }\r\n\r\n $this->content .= $this->doc->spacer(10);\r\n } else {\r\n // If no access or if ID == zero\r\n\r\n $this->doc = t3lib_div::makeInstance('bigDoc');\r\n $this->doc->backPath = $GLOBALS['BACK_PATH'];\r\n\r\n $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title'));\r\n $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('title'));\r\n $this->content .= $this->doc->spacer(5);\r\n $this->content .= $this->doc->spacer(10);\r\n }\r\n }", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "function main()\t{\n\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t// Access check!\n\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);\n\t\t$access = is_array($this->pageinfo) ? 1 : 0;\n\n\t\tif (($this->id && $access) || ($BE_USER->user[\"admin\"] && !$this->id))\t{\n\n\t\t\t\t// Draw the header.\n\t\t\t$this->doc = t3lib_div::makeInstance(\"bigDoc\");\n\t\t\t$this->doc->backPath = $BACK_PATH;\n\t\t\t$this->doc->form='<form action=\"index.php?id='.$this->id.'\" method=\"POST\">';\n\n\t\t\t\t// JavaScript\n\t\t\t$this->doc->JScode = '\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t';\n\t\t\t$this->doc->postCode='\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t\t</script>\n\t\t\t';\n\n\t\t\t$headerSection = $this->doc->getHeader(\"pages\",$this->pageinfo,$this->pageinfo[\"_thePath\"]).\"<br />\".$LANG->sL(\"LLL:EXT:lang/locallang_core.xml:labels.path\").\": \".t3lib_div::fixed_lgd_pre($this->pageinfo[\"_thePath\"],50);\n\n\t\t\t$this->content.=$this->doc->startPage($LANG->getLL(\"title\"));\t\n\t\t\texec('hostname',$ret);\n\t\t\t$ret=implode(\"\",$ret);\n\t\t\t$this->content.=$this->doc->header($LANG->getLL(\"title\") .\" on: $ret\");\n\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t$this->content.=$this->doc->section(\"\",$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,\"SET[function]\",$this->MOD_SETTINGS[\"function\"],$this->MOD_MENU[\"function\"])));\n\t\t\t$this->content.=$this->doc->divider(5);\n\n\n\t\t\t// Render content:\n\t\t\t$this->moduleContent();\n\n\n\t\t\t// ShortCut\n\t\t\tif ($BE_USER->mayMakeShortcut())\t{\n\t\t\t\t$this->content.=$this->doc->spacer(20).$this->doc->section(\"\",$this->doc->makeShortcutIcon(\"id\",implode(\",\",array_keys($this->MOD_MENU)),$this->MCONF[\"name\"]));\n\t\t\t}\n\n\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t} else {\n\t\t\t\t// If no access or if ID == zero\n\n\t\t\t$this->doc = t3lib_div::makeInstance(\"mediumDoc\");\n\t\t\t$this->doc->backPath = $BACK_PATH;\n\n\t\t\t$this->content.=$this->doc->startPage($LANG->getLL(\"title\"));\n\t\t\t$this->content.=$this->doc->header($LANG->getLL(\"title\"));\n\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t}\n\t}", "public function prePageHeader();", "protected function content() {\r\n\t\t$oClassAtual = get_class($this);\r\n\r\n\t\t$oClassAtual = str_replace('app\\\\controller\\\\', '', $oClassAtual);\r\n\r\n\t\t$oClassAtual = strtolower(str_replace('Controller', '', $oClassAtual));\r\n\r\n\t\trequire_once \"app/view/\".$oClassAtual.\"/\".$this->oView->cPage.\".phtml\";\r\n\t}", "public function output()\r\n {\r\n $_SESSION[\"view\"]=$this;\r\n include $this->controller->index();\r\n }", "public function actionIndex()\n\t{\n\t\t// do stuff that's not the main content?\n\t}", "public function executeAction()\n {\n //Is the page cached?\n if ($this->isCached)\n {\n //Nothing to execute\n return;\n }\n parent::executeAction();\n }", "public function indexAction()\n {\n // disable rendering\n $this->_helper->viewRenderer->setNoRender();\n }", "public function render()\n {\n include_once __DIR__ . '/templates/back.php';\n }", "public function indexAction()\n {\n $this->_initAction()\n ->renderLayout();\n }", "public function render()\r\n\t{\r\n\t\t$this->site->page = $this;\r\n\t\t// if noone is subscribed, we want to output our own 404\r\n\t\tif(!$this->site->event->subscribers('404'))\r\n\t\t{\r\n\t\t\t$this->site->event->subscribe('404', array($this, '_404'));\r\n\t\t}\r\n\t\tif( $this->controller === null )\r\n\t\t{\r\n\t\t\t$this->site->event->publish('404');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(ob_get_length() > 0)\r\n\t\t\t{\r\n\t\t\t\tob_end_clean();\r\n\t\t\t}\r\n\t\t\theader(\"Connection: close\");\r\n\t\t\theader(\"X-Powered-By: \"); // Remove the header, don't need to advertise how out of date we are...\r\n\t\t\t//TODO: Figure out how to remove \"Server\" header also.. doesn't appear you can do this from inside php?\r\n\t\t\tob_start();\r\n\t\t\t$this->site->event->publish('Page::onRender');\r\n\t\t\tcall_user_func_array(array($this->controller, 'setup'), $this->controllerParams);\r\n\t\t\tcall_user_func_array(array($this->controller, $this->controllerMethod), $this->controllerParams);\r\n // are we doing a json response? if not, we assume html...\r\n if($this->site->response->json === false\r\n && $this->site->webCatalog->isRedirect === false) {\r\n $viewFile = $this->controller->viewFile;\r\n if ($viewFile === null) // if not defined, auto grab em... @todo - this fails miserably when you're using dynamic paths. For now just set it in your controller. But it should be fixed.\r\n {\r\n if ($this->requestedPath === '/' ||\r\n $this->requestedPath === ''\r\n ) {\r\n $path = 'index';\r\n } else {\r\n if (strpos($this->requestedPath, '.')) {\r\n $path = substr($this->requestedPath, 0, strpos($this->requestedPath, '.'));\r\n } else {\r\n $path = $this->requestedPath;\r\n }\r\n $path = trim($path, '/');\r\n }\r\n if ($ext = $this->site->config('template', 'extension')) {\r\n $viewFile = $path . '.' . $ext;\r\n } else {\r\n $viewFile = $path . '.tpl';\r\n }\r\n }\r\n if ($this->controller->autoRender === true) {\r\n // do we have a view file?\r\n if (is_string($this->site->config('site', 'viewPath'))) {\r\n $viewPaths = [$this->site->config('site', 'viewPath')];\r\n } else {\r\n $viewPaths = $this->site->config('site', 'viewPath');\r\n }\r\n $_404 = true; // check if a valid template\r\n foreach ($viewPaths as $i => $p) {\r\n $viewPaths[$i] = $this->site->appFolder . $p;\r\n if (is_file($viewPaths[$i] . DIRECTORY_SEPARATOR . $viewFile) === true) {\r\n $_404 = false;\r\n }\r\n }\r\n if ($_404) {\r\n $this->site->event->publish('404');\r\n } else {\r\n switch ($this->site->config('template', 'engine')) {\r\n case 'smarty':\r\n // Summon Smarty Template Engine\r\n $this->template = new Smarty();\r\n $this->template->muteExpectedErrors(); // something is conflicting with our error class. See smarty docs for this.\r\n // Absolute path to the root template dir\r\n if ($this->site->config('site', 'viewPath')) {\r\n $this->template->setTemplateDir(realpath($this->site->appFolder . $this->site->config('site', 'viewPath')));\r\n } else {\r\n $this->site->error->toss('[site] viewPath must be defined in your config!');\r\n }\r\n if ($this->site->config('smarty', 'configDir')) {\r\n $this->template->setConfigDir(realpath($this->site->appFolder . $this->site->config('smarty', 'configDir')));\r\n }\r\n // These directories need FULL WRITE ACCESS\r\n // and could be stored outside of the web root for security purposes:\r\n if ($this->site->config('smarty', 'compileDir')) {\r\n $this->template->setCompileDir(realpath($this->site->appFolder . $this->site->config('smarty', 'compileDir')));\r\n }\r\n if ($this->site->config('smarty', 'cacheDir')) {\r\n $this->template->setCacheDir(realpath($this->site->appFolder . $this->site->config('smarty', 'cacheDir')));\r\n }\r\n $this->site->event->publish('Page::SmartyPlugins');\r\n // Assign template variables from the controller\r\n if (isset($this->controller->view)) {\r\n foreach ($this->controller->view as $key => $value) {\r\n $this->template->assign($key, $value);\r\n }\r\n }\r\n // Finally, display the template...\r\n try {\r\n $this->template->display($viewFile);\r\n } catch (Exception $e) {\r\n $this->site->error->toss($e->getMessage(), E_USER_WARNING);\r\n }\r\n break;\r\n case 'twig':\r\n\r\n try {\r\n\r\n $env = $this->getTwigEnvironment();\r\n $this->site->event->publish(\"Twig::Twig_Environment\", $env);\r\n\r\n echo $this->renderTemplate($viewFile, $this->controller->view);\r\n } catch (Exception $e) {\r\n $this->site->error->toss($e->getMessage(), E_USER_WARNING);\r\n $this->site->event->publish('404');\r\n }\r\n break;\r\n default:\r\n $fname = $this->site->appFolder . $this->site->config('site', 'viewPath') . '/' . $viewFile;\r\n if ($file = realpath($fname)) {\r\n require($file);\r\n } else {\r\n $this->site->error->toss('Unable to auto render with view file: ' . $fname);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\t\t\theader(\"Content-Length: \".ob_get_length());\r\n\t\t\tob_end_flush();\r\n\t\t\tflush();\r\n\t\t\tcall_user_func_array(array($this->controller, 'shutdown'), $this->controllerParams);\r\n\t\t\t$this->site->event->publish('Page::afterRender');\r\n\t\t}\r\n\t}", "public function render()\n {\n $controller_name = \"App\\Controllers\\\\\" . $this->controller;\n // $controller_name = $this->controller;\n if (class_exists($controller_name )) {\n $controller_object = new $controller_name;\n\n if (method_exists($controller_object, $this->action)) {\n // call the method\n // // $action_name = $this->action;\n // // $controller_object->$action_name();\n\n call_user_func_array([$controller_object , $this->action] , $this->params);\n #OR WITH $CONTROLLER_NAME\n // call_user_func_array([$controller_name , $this->action] , $this->params);\n\n\n } else {\n // echo $this->action . 1 . '<br />'; \n die(\"$this->action action doesn't exist\");\n }\n } else {\n // echo $this->controller . 1 . '<br />';\n die(\"$this->controller controller doesn't exist\");\n }\n }", "public function indexAction()\n {\n $this->_initAction()->renderLayout();\n }", "function omfg_mobile_pro_header() {\n\tdo_action('omfg_mobile_pro_header');\n}", "protected function indexAction() {}", "abstract function render_page();", "function main()\t{\n\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t// Access check!\n\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);\n\t\t$access = is_array($this->pageinfo) ? 1 : 0;\n\n\t\tif (($this->id && $access) || ($BE_USER->user[\"admin\"] && !$this->id))\t{\n\n\t\t\t// Draw the header.\n\t\t\t$this->doc = t3lib_div::makeInstance(\"mediumDoc\");\n\t\t\t$this->doc->backPath = $BACK_PATH;\n\t\t\t$this->doc->form = '<form action=\"\" method=\"post\">';\n\n\t\t\t// JavaScript\n\t\t\t$this->doc->JScode = '\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\tfunction jumpToUrl(URL) {\n\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t';\n\t\t\t$this->doc->postCode='\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = ' . intval($this->id) . ';\n\t\t\t\t</script>\n\t\t\t';\n\n\t\t\t$headerSection = $this->doc->getHeader(\"pages\",$this->pageinfo,$this->pageinfo[\"_thePath\"]).\"<br>\".$LANG->sL(\"LLL:EXT:lang/locallang_core.php:labels.path\").\": \".t3lib_div::fixed_lgd_pre($this->pageinfo[\"_thePath\"],50);\n\n\t\t\t$this->content .= $this->doc->startPage($LANG->getLL(\"title\"));\n\t\t\t$this->content .= $this->doc->header($LANG->getLL(\"title\"));\n\t\t\t$this->content .= $this->doc->spacer(5);\n\t\t\t$this->content.=$this->doc->section(\"\",$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,\"SET[function]\",$this->MOD_SETTINGS[\"function\"],$this->MOD_MENU[\"function\"])));\n\t\t\t$this->content .= $this->doc->divider(5);\n\n\n\t\t\t// Render content:\n\t\t\t$this->moduleContent();\n\n\n\t\t\t// ShortCut\n\t\t\tif ($BE_USER->mayMakeShortcut())\t{\n\t\t\t\t$this->content .= $this->doc->spacer(20).$this->doc->section(\"\",$this->doc->makeShortcutIcon(\"id\",implode(\",\",array_keys($this->MOD_MENU)),$this->MCONF[\"name\"]));\n\t\t\t}\n\n\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t} else {\n\t\t\t// If no access or if ID == zero\n\n\t\t\t$this->doc = t3lib_div::makeInstance(\"mediumDoc\");\n\t\t\t$this->doc->backPath = $BACK_PATH;\n\n\t\t\t$this->content.=$this->doc->startPage($LANG->getLL(\"title\"));\n\t\t\t$this->content.=$this->doc->header($LANG->getLL(\"title\"));\n\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t}\n\t}", "public function front_action() {\n\n\t\t$this->set_front_view();\n\t\t$this->set_redirect_after_page();\n\n\t\tif ( $this->should_redirect_user() ) {\n\t\t\t$this->schedule_redirect();\n\t\t}\n\t\tCT_Ultimate_GDPR_Model_Front_View::instance()->set( 'policy_btn_styling', $this->get_option( 'policy_btn_styling' ) );\n\t}", "public function header()\n {\n }", "public function indexAction()\r\n {\r\n $this->_helper->viewRenderer->setNoRender();\r\n }", "function startup_view()\n\t{\n\t\t$data['error_msg'] = $this->error_msg;\n\t\t$response_body = $this->template_html($this->html_template_path,$data);\n\t\t$this->return_response($response_body);\n\t}", "function renderPage()\n{\n $calledFile = basename($_SERVER['PHP_SELF']);\n $privileges = getDataPrivileges($calledFile);\n if ($privileges['bolView'] !== true) {\n die(accessDenied($_SERVER['HTTP_REFERER']));\n }\n # Initialize all global variables.\n $globalVariables = [\n 'privileges' => $privileges,\n 'strConfirmStartCalculation' => getWords(\"do you want to start calculation?\"),\n 'strPageTitle' => getWords($privileges['menu_name']),\n 'pageIcon' => \"../images/icons/\" . $privileges['icon_file'],\n 'strPageDesc' => getWords(\"Service Charge management\"),\n 'pageHeader' => '',\n 'strTemplateFile' => getTemplate(str_replace(\".php\", \".html\", $calledFile)),\n 'formObject' => null,\n 'formInput' => '',\n 'gridContents' => null,\n 'gridList' => '',\n ];\n extractToGlobal($globalVariables);\n # Important to given access to our global variables.\n foreach (array_keys($GLOBALS) as $varName) {\n global $$varName;\n }\n $pageHeader = pageHeader($pageIcon, $strPageTitle, $strPageDesc);\n # Get form model contents.\n $formOptions = [\n 'column' => 1,\n 'caption' => strtoupper($strWordsINPUTDATA),\n 'references' => ['dataId']\n ];\n $formObject = getFormObject($formOptions);\n $formInput = $formObject->render();\n # Get grid list contents.\n $gridOptions = ['caption' => strtoupper($strWordsLISTOF . \" \" . getWords($privileges['menu_name']))];\n $gridContents = getGridListContents($gridOptions);\n $gridList = $gridContents->render();\n # Start to render using tiny but strong class.\n $tbsPage = new clsTinyButStrong;\n $tbsPage->LoadTemplate($strMainTemplate);\n $tbsPage->Show();\n}", "public function index() {\n require_once App::ConfigGet('header_display');\n $links = $this->manage_triggerable_data( $c['hd']['triggerable'] );\n\n $this->loader->entry->render('main/static/Header', [\n 'header_image' => $c['hd']['header_image'],\n 'site_logo_name' => $c['hd']['site_logo_name'],\n 'triggerable' => $links\n ]);\n }", "private function displayHeader()\n {\n\n $html = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">' . \"\\n\";\n $html .= '<html xmlns=\"http://www.w3.org/1999/xhtml\">';\n $html .= '<head>' . \"\\n\";\n\n //Meta tags\n $html .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />' . \"\\n\";\n $html .= '<meta name=\"description\" content=\"' . $this->pageInfo['pageDescription'] . '\" />' . \"\\n\";\n $html .= '<meta name=\"keywords\" content=\"jobs, freelance, work, design, freedom, choice, new zealand, quality\" />' . \"\\n\";\n $html .= '<link rel=\"icon\" type=\"image/png\" href=\"images/volition-icon.png\" />' . \"\\n\";\n\n //Stylesheets\n $html .= '<!-- Stylesheets -->' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles.css\" />' . \"\\n\";\n $html .= '<!--[if lt IE 9]>' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/ie.css\" />' . \"\\n\";\n $html .= '<![endif]-->' . \"\\n\";\n\n //Scripts\n //$html .= '<script type=\"text/javascript\" src=\"js/window.js\"></script>'.\"\\n\";\n\n //Page title\n $html .= '<title>Volition | ' . $this->pageInfo['pageTitle'] . '</title>' . \"\\n\";\n $html .= '</head>' . \"\\n\";\n $html .= '<body>' . \"\\n\";\n\n //Header\n $html .= '<div id=\"header\">' . \"\\n\";\n\n //Control buttons\n\n $html .= '<div id=\"headerImg\"><a href=\"index.php?page=home\"></a></div>' . \"\\n\";\n\n if ($this->model->userLoggedIn) {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=logout\">Logout</a></p>' . \"\\n\";\n $html .= '<p class=\"userControl\">You are logged in as ' . $_SESSION['userName'] . '</p>' . \"\\n\";\n } else {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=login\">Login</a></p>' . \"\\n\";\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=register\">Register</a></p>' . \"\\n\";\n }\n\n $html .= '<form id=\"searchForm\" method=\"post\" action=\"index.php?page=search\">';\n if ($_POST['searchInput']) {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"' . $_POST['searchInput'] . '\" />';\n } else {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"Search...\" />';\n }\n $html .= '<input type=\"submit\" class=\"submit\" name=\"searchSubmit\" id=\"searchSubmit\" value=\"Go\" />';\n $html .= '</form>';\n\n //Navbar\n $html .= $this->displayNav();\n\n $html .= '</div>' . \"\\n\";\n //Content tags\n $html .= '<div id=\"container\">' . \"\\n\";\n $html .= '<div id=\"content\" >' . \"\\n\";\n\n return $html;\n\n }", "public function indexAction()\n\t\t{\n//\t\t\techo 'first leg';\n\t\t\t//$this->view->layout =''\n\t\t}", "public function hookbackOfficeHeader()\n\t{\n\t\tif (isset(Context::getContext()->controller) && $this->context->controller != null)\n\t\t\t$this->context->controller->addJS($this->_path.'js/clickline_order.js');\n\n//Ponemos el css para el admin\n\t\tif ((int) strcmp((version_compare(_PS_VERSION_, '1.5', '>=') ? Tools::getValue('configure') : Tools::getValue('module_name')), $this->name) == 0)\n\t\t{\n\n\t\t\tif (isset(Context::getContext()->controller) && $this->context->controller != null)\n\t\t\t{\n\t\t\t\t$this->context->controller->addCSS(_MODULE_DIR_.$this->name.'/css/admin.css');\n\t\t\t\t$this->context->controller->addJS(_MODULE_DIR_.$this->name.'/js/admin.js');\n\t\t\t}\n\t\t}\n\t}", "function controller()\n\t\t{\t\n\t\t\t$this->admin_page_header();\n\t\t\t$this->admin_menu();\n\t\t}", "public function hookHeader()\n\t{\n\t\t$this->context->controller->addJS($this->_path.'/views/js/front.js');\n\t\t$this->context->controller->addCSS($this->_path.'/views/css/front.css');\n\t}", "public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }", "public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }", "public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }", "public function content()\n {\n $module = $this->moduleView != null ? $this->moduleView : $GLOBALS['registry']->router->getModule(); \n $logic = $this->controllerView != null ? $this->controllerView : $GLOBALS['registry']->router->getController();\n $action = $this->actionView != null ? $this->actionView : $GLOBALS['registry']->router->getAction();\n \n // $action will have Action at the end. We need to remove this to find it in the view location\n $action = substr($action, 0, -6);\n\n $viewLocation = ROOT_PATH.$this->themeLocation.\"Controllers/\".$module.\"/\".$logic.\"/\".$action.\".php\";\n\n if(!file_exists($viewLocation))\n throw new Display\\Exception(\"The view for module: '\".$module.\"', Controller: '\".$logic.\"', Action: '\".$action.\"' does not exist at \".$viewLocation);\n\n require_once($viewLocation);\n }", "public function hookHeader()\n\t{\n\t\t/* If 1.4 and no backward, then leave */\n\t\tif (!$this->backward)\n\t\t\treturn;\n\n\t\t/* Continue only if we are in the checkout process */\n\t\tif (Tools::getValue('controller') != 'order-opc' && (!($_SERVER['PHP_SELF'] == __PS_BASE_URI__.'order.php' || $_SERVER['PHP_SELF'] == __PS_BASE_URI__.'order-opc.php' || Tools::getValue('controller') == 'order' || Tools::getValue('controller') == 'orderopc' || Tools::getValue('step') == 3)))\n\t\t\treturn;\n\n\t\t/* Load JS and CSS files through CCC */\n\t\t$this->context->controller->addCSS($this->_path.'views/css/stripe-prestashop.css');\n\t\t\n\t\treturn '<script src=\"https://checkout.stripe.com/checkout.js\"></script>';\n\t}", "public function action_index()\n {\n $this->request->response = $this->render_layout($this->widget_privileges());\n }", "function actionbar_begin(){\n\techo '<div class=\"actionbar\">';\n\techo '<table class=\"actionbar\">';\n\techo '<thead>';\n\techo '<tr><td class=\"actionbar\">';\n}", "public function hookBackOfficeHeader()\n\t{\n\t\tif (Tools::getValue('module_name') == $this->name) {\n\t\t\t$this->context->controller->addJS($this->_path.'views/js/back.js');\n\t\t\t$this->context->controller->addCSS($this->_path.'views/css/back.css');\n\t\t}\n\t}", "public function main()\n {\n $lang = $this->getLanguageService();\n // Access check...\n // The page will show only if there is a valid page and if this page may be viewed by the user\n $access = is_array($this->pageinfo) ? 1 : 0;\n // Content\n $content = '';\n if ($this->id && $access) {\n // Initialize permission settings:\n $this->CALC_PERMS = $this->getBackendUser()->calcPerms($this->pageinfo);\n $this->EDIT_CONTENT = $this->contentIsNotLockedForEditors();\n\n $this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($this->pageinfo);\n\n // override the default jumpToUrl\n $this->moduleTemplate->addJavaScriptCode('jumpToUrl', '\n function jumpToUrl(URL,formEl) {\n if (document.editform && TBE_EDITOR.isFormChanged) { // Check if the function exists... (works in all browsers?)\n if (!TBE_EDITOR.isFormChanged()) {\n window.location.href = URL;\n } else if (formEl) {\n if (formEl.type==\"checkbox\") formEl.checked = formEl.checked ? 0 : 1;\n }\n } else {\n window.location.href = URL;\n }\n }\n ');\n $this->moduleTemplate->addJavaScriptCode('mainJsFunctions', '\n if (top.fsMod) {\n top.fsMod.recentIds[\"web\"] = ' . (int)$this->id . ';\n top.fsMod.navFrameHighlightedID[\"web\"] = \"pages' . (int)$this->id . '_\"+top.fsMod.currentBank; ' . (int)$this->id . ';\n }\n ' . ($this->popView ? BackendUtility::viewOnClick($this->id, '', BackendUtility::BEgetRootLine($this->id)) : '') . '\n function deleteRecord(table,id,url) { //\n window.location.href = ' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_db') . '&cmd[')\n . ' + table + \"][\" + id + \"][delete]=1&redirect=\" + encodeURIComponent(url) + \"&prErr=1&uPT=1\";\n return false;\n }\n ');\n\n // Find backend layout / columns\n $backendLayout = GeneralUtility::callUserFunction(BackendLayoutView::class . '->getSelectedBackendLayout', $this->id, $this);\n if (!empty($backendLayout['__colPosList'])) {\n $this->colPosList = implode(',', $backendLayout['__colPosList']);\n }\n // Removing duplicates, if any\n $this->colPosList = array_unique(GeneralUtility::intExplode(',', $this->colPosList));\n // Accessible columns\n if (isset($this->modSharedTSconfig['properties']['colPos_list']) && trim($this->modSharedTSconfig['properties']['colPos_list']) !== '') {\n $this->activeColPosList = array_unique(GeneralUtility::intExplode(',', trim($this->modSharedTSconfig['properties']['colPos_list'])));\n // Match with the list which is present in the colPosList for the current page\n if (!empty($this->colPosList) && !empty($this->activeColPosList)) {\n $this->activeColPosList = array_unique(array_intersect(\n $this->activeColPosList,\n $this->colPosList\n ));\n }\n } else {\n $this->activeColPosList = $this->colPosList;\n }\n $this->activeColPosList = implode(',', $this->activeColPosList);\n $this->colPosList = implode(',', $this->colPosList);\n\n $content .= $this->getHeaderFlashMessagesForCurrentPid();\n\n // Render the primary module content:\n if ($this->MOD_SETTINGS['function'] == 1 || $this->MOD_SETTINGS['function'] == 2) {\n $content .= '<form action=\"' . htmlspecialchars(BackendUtility::getModuleUrl($this->moduleName, ['id' => $this->id, 'imagemode' => $this->imagemode])) . '\" id=\"PageLayoutController\" method=\"post\">';\n // Page title\n $content .= '<h1 class=\"t3js-title-inlineedit\">' . htmlspecialchars($this->getLocalizedPageTitle()) . '</h1>';\n // All other listings\n $content .= $this->renderContent();\n }\n $content .= '</form>';\n $content .= $this->searchContent;\n // Setting up the buttons for the docheader\n $this->makeButtons();\n // @internal: This is an internal hook for compatibility7 only, this hook will be removed without further notice\n if ($this->MOD_SETTINGS['function'] != 1 && $this->MOD_SETTINGS['function'] != 2) {\n $renderActionHook = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::class]['renderActionHook'];\n if (is_array($renderActionHook)) {\n foreach ($renderActionHook as $hook) {\n $params = [\n 'deleteButton' => $this->deleteButton,\n ''\n ];\n $content .= GeneralUtility::callUserFunction($hook, $params, $this);\n }\n }\n }\n // Create LanguageMenu\n $this->makeLanguageMenu();\n } else {\n $this->moduleTemplate->addJavaScriptCode(\n 'mainJsFunctions',\n 'if (top.fsMod) top.fsMod.recentIds[\"web\"] = ' . (int)$this->id . ';'\n );\n $content .= '<h1>' . htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']) . '</h1>';\n $view = GeneralUtility::makeInstance(StandaloneView::class);\n $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Private/Templates/InfoBox.html'));\n $view->assignMultiple([\n 'title' => $lang->getLL('clickAPage_header'),\n 'message' => $lang->getLL('clickAPage_content'),\n 'state' => InfoboxViewHelper::STATE_INFO\n ]);\n $content .= $view->render();\n }\n // Set content\n $this->moduleTemplate->setContent($content);\n }", "public function getMainAction(){\n return $GLOBALS['TZR_SESSION_MANAGER']::complete_self().'moid='.$this->_moid.'&function=index&tplentry=mods&template=xmodstats/index.html';\n }", "public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\n }\n }", "public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\n }\n }", "protected function render() {}", "protected function render() {}", "protected function render() {}", "public function hookHeader()\n {\n // $this->context->controller->addJS('http://code.jquery.com/jquery-2.1.4.min.js');\n // $this->context->controller->addJS($this->_path.'views/js/bootstrap.min.js');\n $this->context->controller->addJS($this->_path.'views/js/front.js');\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\n\n $this->context->controller->addJS($this->_path.'views/js/responsiveslides.js');\n $this->context->controller->addCSS($this->_path.'views/css/responsiveslides.css');\n $this->context->controller->addCSS($this->_path.'views/css/themes.css');\n }", "function execute() {\n\t\tglobal $wgUser;\n\t\t$skin = $wgUser->getSkin();\n\n\t\t// Suppress warnings to prevent notices about missing indexes in $this->data\n\t\twfSuppressWarnings();\n\n?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"<?php $this->text('lang') ?>\" lang=\"<?php $this->text('lang') ?>\" dir=\"<?php $this->text('dir') ?>\">\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>\" />\n\t\t<?php $this->html('headlinks') ?>\n\t\t<title><?php $this->text('pagetitle') ?></title>\n <link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection\" href=\"<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css\" />\n <link rel=\"stylesheet\" type=\"text/css\" <?php if(empty($this->data['printable']) ) { ?>media=\"print\"<?php } ?> href=\"<?php $this->text('stylepath') ?>/common/commonPrint.css\" />\n <style type=\"text/css\">@media print { #head, #left, #right, #foot, .editsection { display: none; }}</style>\n\t\t<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>\n\t\t<script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('stylepath') ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>\"></script>\n <?php if($this->data['jsvarurl']) { ?><script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('jsvarurl') ?>\"></script><?php\t} ?>\n <?php\tif($this->data['pagecss']) { ?><style type=\"text/css\"><?php $this->html('pagecss') ?></style><?php } ?>\n\t\t<?php if($this->data['usercss']) { ?><style type=\"text/css\"><?php $this->html('usercss') ?></style><?php } ?>\n <?php if($this->data['userjs']) { ?><script type=\"<?php $this->text('jsmimetype') ?>\" src=\"<?php $this->text('userjs') ?>\"></script><?php\t} ?>\n <?php if($this->data['userjsprev']) { ?><script type=\"<?php $this->text('jsmimetype') ?>\"><?php $this->html('userjsprev') ?></script><?php } ?>\n\t\t<?php if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?><?php $this->html('headscripts') ?>\n </head>\n\t<body\n\t\t<?php if($this->data['body_ondblclick']) { ?>ondblclick=\"<?php $this->text('body_ondblclick') ?>\"<?php } ?>\n\t\t<?php if($this->data['body_onload']) { ?>onload=\"<?php $this->text('body_onload') ?>\"<?php } ?>\n\t\tclass=\"<?php $this->text('nsclass') ?>\"\n\t>\n <a name=\"top\" id=\"top\"></a>\n <div id=\"content\">\n <div id=\"head\">\n <?php if ($this->data['loggedin']) { ?>\n\t <h5><?php $this->msg('views') ?></h5>\n\t <ul>\n\t <?php foreach($this->data['content_actions'] as $key => $action) {\n\t ?><li id=\"ca-<?php echo htmlspecialchars($key) ?>\"\n\t <?php if($action['class']) { ?>class=\"<?php echo htmlspecialchars($action['class']) ?>\"<?php } ?>\n\t ><a href=\"<?php echo htmlspecialchars($action['href']) ?>\"><?php\n\t echo htmlspecialchars($action['text']) ?></a></li><?php\n\t } ?>\n\t </ul>\n <?php } ?>\n </div>\n <div id=\"left\" class=\"sidebar\">\n\t\t\t<?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>\n\t\t\t\t<h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5>\n\t\t\t\t<ul>\n <?php foreach($cont as $key => $val) { ?>\n <li id=\"<?php echo Sanitizer::escapeId($val['id']) ?>\"><a href=\"<?php echo htmlspecialchars($val['href']) ?>\"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li>\n <?php } ?>\n\t\t\t\t</ul>\n\t\t\t<?php } ?>\n\t\t\t<?php if($this->data['loggedin']) { ?>\n\t <h5><?php $this->msg('toolbox') ?></h5>\n\t\t\t <ul>\n\t <?php if($this->data['notspecialpage']) { ?>\n\t \t<li><a href=\"<?php echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href']) ?>\" <?php echo $skin->tooltipAndAccesskey('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></li>\n\t <?php if( $this->data['nav_urls']['recentchangeslinked'] ) { ?><li><a href=\"<?php\techo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href']) ?>\"<?php echo $skin->tooltipAndAccesskey('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked') ?></a></li><?php } ?>\n\t <?php\t} ?>\n\t <?php\tif(isset($this->data['nav_urls']['trackbacklink'])) { ?><li><a href=\"<?php echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])\t?>\"<?php echo $skin->tooltipAndAccesskey('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></li><?php } ?>\n\t <?php\tif($this->data['feeds']) { ?><li><?php foreach($this->data['feeds'] as $key => $feed) {\t?><a href=\"<?php echo htmlspecialchars($feed['href']) ?>\"<?php echo $skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a><?php } ?></li><?php } ?>\n\t <?php\tforeach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) { ?>\n\t \t <?php\tif($this->data['nav_urls'][$special]) {\t?><li><a href=\"<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) ?>\"<?php echo $skin->tooltipAndAccesskey('t-'.$special) ?>><?php $this->msg($special) ?></a></li><?php } ?>\n\t \t <?php\t} ?>\n\t \t <?php\tif(!empty($this->data['nav_urls']['permalink']['href'])) { ?><li><a href=\"<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href'])\t?>\"<?php echo $skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php\t} elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?><li><?php $this->msg('permalink') ?></li><?php\t} ?>\n\t \t <?php\twfRunHooks( 'NordlichtTemplateToolboxEnd', array( &$this ) ); ?>\n\t\t\t </ul>\n\t\t <?php } ?>\n </div>\n <div id=\"main\">\n \t\t<?php if($this->data['sitenotice']) { ?><?php $this->html('sitenotice') ?><?php } ?>\n\t\t <h1 class=\"firstHeading\"><?php $this->data['displaytitle']!=\"\"?$this->html('title'):$this->text('title') ?></h1>\n\t\t\t<h3 id=\"siteSub\"><?php $this->msg('tagline') ?></h3>\n\t\t\t<div id=\"contentSub\"><?php $this->html('subtitle') ?></div>\n\t\t\t<?php if($this->data['undelete']) { ?><div id=\"contentSub2\"><?php $this->html('undelete') ?></div><?php } ?>\n\t\t\t<?php if($this->data['newtalk'] ) { ?><div class=\"usermessage\"><?php $this->html('newtalk') ?></div><?php } ?>\n\t\t\t<!-- start content -->\n\t\t\t<?php $this->html('bodytext') ?>\n\t\t\t<?php if($this->data['catlinks']) { ?><?php $this->html('catlinks') ?><?php } ?>\n </div>\n <div id=\"right\" class=\"sidebar\">\n \t <h5><label for=\"searchInput\"><?php $this->msg('search') ?></label></h5>\n\t\t <form action=\"<?php $this->text('searchaction') ?>\" id=\"searchform\">\n\t\t \t<input id=\"searchInput\" name=\"search\" type=\"text\"<?php echo $skin->tooltipAndAccesskey('search');\tif( isset( $this->data['search'] ) ) { ?> value=\"<?php $this->text('search') ?>\"<?php } ?> />\n\t\t\t\t<input type='submit' name=\"go\" class=\"searchButton\" id=\"searchGoButton\"\tvalue=\"<?php $this->msg('searcharticle') ?>\" />&nbsp;\n\t\t\t\t<input type='submit' name=\"fulltext\" class=\"searchButton\" id=\"mw-searchButton\" value=\"<?php $this->msg('searchbutton') ?>\" />\n\t\t\t</form>\n \t\t<h5><?php $this->msg('personaltools') ?></h5>\n\t\t\t<ul>\n <?php\tforeach($this->data['personal_urls'] as $key => $item) { ?>\n\t\t\t\t<li><a href=\"<?php echo htmlspecialchars($item['href']) ?>\"<?php echo $skin->tooltipAndAccesskey('pt-'.$key) ?>><?php\techo htmlspecialchars($item['text']) ?></a></li><?php } ?>\n\t\t </ul>\n </div>\n <div id=\"foot\">\n\t\t\t<ul>\n\t\t\t <?php\t$footerlinks = array('lastmod', 'viewcount'); ?>\n\t\t\t <?php\tforeach( $footerlinks as $aLink ) {?>\n\t\t\t \t<?php\tif( isset( $this->data[$aLink] ) && $this->data[$aLink] ) { ?><li><?php $this->html($aLink) ?></li><?php } ?>\n\t\t\t <?php } ?>\n\t\t\t</ul>\n </div>\n </div>\n\t<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>\n <?php $this->html('reporttime') ?>\n <?php if ( $this->data['debug'] ): ?>\n <!-- Debug output:\n <?php $this->text( 'debug' ); ?>\n -->\n <?php endif; ?>\n </body>\n</html>\n<?php\n\twfRestoreWarnings();\n\t}", "protected abstract function beforeRendering(): void;", "function render()\t{\n\t\t$result = $this->doc->startPage($GLOBALS['LANG']->getLL('title'));\n\t\t$result .= $this->doc->header($GLOBALS['LANG']->getLL('title'));\n\n\t\tif ($this->hasAccess()) {\n\t\t\t$result .= $this->doc->section(\n\t\t\t\t'',\n\t\t\t\t$this->doc->spacer(10) . $this->createTab()\n\t\t\t);\n\n\t\t\tif (t3lib_div::_GP('action') == 'startImport') {\n\t\t\t\t$importer = t3lib_div::makeInstance('tx_realty_openImmoImport');\n\t\t\t\t$this->template->setMarker(\n\t\t\t\t\t'import_logs',\n\t\t\t\t\tnl2br(htmlspecialchars($importer->importFromZip()))\n\t\t\t\t);\n\n\t\t\t\t$result .= $this->template->getSubpart('IMPORT_RESULT');\n\t\t\t}\n\n\t\t\t$result .= $this->createImportButton();\n\t\t} else {\n\t\t\t$result .= $this->getErrorMessages();\n\t\t}\n\n\t\t$result .= $this->doc->endPage();\n\n\t\treturn $this->doc->insertStylesAndJS($result);\n\t}", "public function pre_action()\n\t{\n\t\tparent::pre_action();\n\t\t//\n\t\t$this->view->title = \"Codini\";\n\t}", "function admin_page_header()\n\t\t{\n\t\t\t$permissions = $this->permissions_check();\n\n\t\t\t$out = '';\n\t\t\t$out .= '<h1>WP Volunteer Manager</h1>';\n\n\t\t\t$out .= $this->render_messages();\n\t\t\t$out .= $this->admin_notices();\n\n\t\t\techo $out;\n\n\t\t\tif(!$permissions) { wp_die(); }\n\t\t}", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public static function show_header() {\n require_once Config::get('prefix') . '/templates/header.inc.php';\n }", "public function actionHome()\n {\n return $this->render('home');\n}", "function main()\t{\n\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t// Access check!\n\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);\n\n\t\n\t\t\t// Draw the header.\n\t\t$this->doc = t3lib_div::makeInstance('mediumDoc');\n\t\t$this->doc->backPath = $BACK_PATH;\n\t\t$this->doc->form='<form action=\"\" method=\"POST\">';\n\n\t\t\t// JavaScript\n\t\t$this->doc->JScode = '\n\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\tscript_ended = 0;\n\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\tdocument.location = URL;\n\t\t\t\t}\n\t\t\t</script>\n\t\t';\n\t\t$this->doc->postCode='\n\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\tscript_ended = 1;\n\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t</script>\n\t\t';\n\n\t\t$headerSection = $this->doc->getHeader('pages',$this->pageinfo,$this->pageinfo['_thePath']).'<br />'.$LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.path').': '.t3lib_div::fixed_lgd_pre($this->pageinfo['_thePath'],50);\n\n\t\t$this->content.=$this->doc->startPage($LANG->getLL('title'));\n\t\t$this->content.=$this->doc->header($LANG->getLL('title'));\n\t\t$this->content.=$this->doc->divider(5);\n\n\t\t// Render content:\n\t\t$this->moduleContent();\n\n\t\t// ShortCut\n\t\tif ($BE_USER->mayMakeShortcut())\t{\n\t\t\t$this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('id',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name']));\n\t\t}\n\n\t\t$this->content.=$this->doc->spacer(10);\n\n\t}", "public function on_page_view(){\n $this->runTemplateSubController();\n // lightbox enabled?\n if( (bool) $this->lightboxEnable ){\n $this->addHeaderItem( $this->getHelper('html')->css('flexry-lightbox.min.css', 'flexry') );\n if( (bool) $this->autoIncludeJsInFooter ){\n $this->addFooterItem( $this->getHelper('html')->javascript('flexry-lightbox.js', 'flexry') );\n }else{\n $this->addHeaderItem( $this->getHelper('html')->javascript('flexry-lightbox.js', 'flexry') );\n }\n }\n // output function to execute deferreds\n $this->addHeaderItem( $this->getHelper('html')->javascript('libs/modernizr.js', 'flexry') );\n $this->addFooterItem('<script type=\"text/javascript\">'.$this->getHelper('file')->getContents(DIR_PACKAGES . '/flexry/' . DIRNAME_BLOCKS . '/flexry_gallery/inline_script.js.txt').'</script>');\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "function indexAction()\n {\n parent::indexAction();\n $this->view->title = \"Data Importer\";\n }", "public function run() {\n$this->header('Content-Type: text/html');\n?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\t<title>Game servers</title>\n</head>\n<body>\n</body>\n</html><?php\n}", "function renderResponse() {\n // le header contient le début de la page jusqu'à la balise <body>\n // on redéclare title pour le header\n $header = new View('global.header', array('title' => $this->title));\n echo $header->getHtml();\n\n\n // le menu est composé de la balise <nav> et de ses items\n $menu = new View('global.menu');\n echo $menu->getHtml();\n\n /* début corps de page */\n\n // on affiche les messages éventuels\n $this->showMessages();\n\n // on affiche le contenu principal de la page\n\n echo $this->content;\n\n /* fin corps de page */\n\n // on affiche le footer et on ferme la page html\n $footer = new View('global.footer');\n echo $footer->getHtml();\n }" ]
[ "0.7089896", "0.6896134", "0.6848052", "0.67766976", "0.67609674", "0.6738362", "0.6735207", "0.66453856", "0.66411734", "0.6640937", "0.66382647", "0.6575603", "0.6572995", "0.65702295", "0.65596855", "0.65034074", "0.64761895", "0.6473424", "0.64718515", "0.64705294", "0.64435935", "0.64227563", "0.64196646", "0.64168257", "0.6416104", "0.64155143", "0.6391585", "0.63898194", "0.6388816", "0.63845307", "0.6384188", "0.63836634", "0.63709784", "0.63566065", "0.6355476", "0.63299644", "0.6328525", "0.6326785", "0.6322374", "0.63221", "0.63213855", "0.6311714", "0.6301078", "0.6299148", "0.6297864", "0.62974244", "0.62870365", "0.6271818", "0.62663484", "0.6266061", "0.6263409", "0.62605816", "0.6257244", "0.6246465", "0.6244279", "0.6240684", "0.62366056", "0.6236449", "0.6233699", "0.6222692", "0.62175775", "0.62089765", "0.62084615", "0.6207614", "0.62070155", "0.6200582", "0.6194981", "0.6192788", "0.6192659", "0.6192659", "0.6192659", "0.6186371", "0.6185764", "0.61796266", "0.61793643", "0.6178682", "0.61780095", "0.61774886", "0.6174673", "0.6174673", "0.61714274", "0.61714274", "0.61713505", "0.61709493", "0.61708313", "0.61685574", "0.6158565", "0.61583304", "0.61579794", "0.6154628", "0.61469877", "0.6144824", "0.61350477", "0.6131813", "0.6125897", "0.6125897", "0.6125897", "0.61258054", "0.6125792", "0.6120131", "0.6117631" ]
0.0
-1
Creates the archive navigation menu
function create_archive_nav_menu($arr) { // start the html $html = '<nav id="archmenuWP">'; $html .= '<ul class="archlev1 archmenu_list_years" id="archmenu">'; $years = array_keys($arr); foreach($years as $y) { $html .= '<li id="archmenu_li_y_' . $y . '">'; $html .= make_link($y . ' (' . $arr[$y]['count'] . ')', make_url($y.'/')); $html .= '<span class="archmenu_ty archToggleButton" id="archmenu_ty_' . $y . '">+</span>'; // handle clicks with JS $html .= '</li>'; unset($arr[$y]['count']); $months = array_keys($arr[$y]); $html .= '<ul class="archlev2 archmenu_list_months hidden" id="archmenu_y_' . $y . '">'; foreach($months as $m) { $html .= '<li id="archmenu_li_y_' . $y . '_m_' . $m . '">'; $html .= make_link(monthname($m) . ' (' . $arr[$y][$m]['count'] . ')', make_url($y.'/'.$m.'/')); $html .= '<span class="archmenu_tm archToggleButton" id="archmenu_ty_' . $y . '_tm_' . $m . '">+</span>'; // handle clicks with JS $html .= '</li>'; unset($arr[$y][$m]['count']); $entries = $arr[$y][$m]; $html .= '<ul class="archlev3 archmenu_list_titles hidden" id="archmenu_y_' . $y . '_m_' . $m . '">'; foreach($entries as $id => $entry) { $html .= '<li id="archmenu_li_id_' . str_replace('/','-',$id) . '">'; # replace slashes with hyphens for id $html .= make_link($entry['title'], make_url($id)); $html .= '</li>'; } $html .= '</ul>'; } $html .= '</ul>'; } $html .= '</ul></nav>'; return $html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createMenu()\n {\n $parent = $this->Menu()->findOneBy(['label' => 'Artikel']);\n\n $this->createMenuItem(\n [\n 'label' => 'Custom sort',\n 'controller' => 'CustomSort',\n 'action' => 'Index',\n 'active' => 0,\n 'class' => 'sprite-blue-document-text-image',\n 'parent' => $parent,\n 'position' => 6,\n ]\n );\n }", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function create_menu()\n\t{\n\t\t$obj = $this; // PHP 5.3 doesn't allow $this usage in closures\n\n\t\t// Add main menu page\n\t\tadd_menu_page(\n\t\t\t'Testimonials plugin', // page title\n\t\t\t'Testimonials', // menu title\n\t\t\t'manage_options', // minimal capability to see it\n\t\t\t'jststm_main_menu', // unique menu slug\n\t\t\tfunction() use ($obj){\n\t\t\t\t$obj->render('main_menu'); // render main menu page template\n\t\t\t},\n\t\t\tplugins_url('images/theater.png', dirname(__FILE__)), // dashboard menu icon\n\t\t\t'25.777' // position in the dahsboard menu (just after the Comments)\n\t\t);\n\t\t// Add help page\n\t\tadd_submenu_page(\n\t\t\t'jststm_main_menu', // parent page slug\n\t\t\t'Testimonials plugin help', // page title\n\t\t\t'What is this?', // menu title\n\t\t\t'manage_options', // capability\n\t\t\t'jststm_help', // slug\n\t\t\tfunction() use ($obj){\n\t\t\t\t$obj->render('help_page');\n\t\t\t}\n\t\t);\n\t}", "function index($isAjaxR=true) {\n if ($isAjaxR) $this->doNotRenderHeader = true;\n return $this->create_archive_nav_menu($this->create_archive_nav_array());\n }", "public function create_menu() {\n\t\tif ( get_network()->site_id !== get_current_blog_id() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t//create new top-level menu\n\t\tadd_management_page(\n\t\t\t__( 'Sync newsletter', 'elemarjr' ),\n\t\t\t__( 'Sync newsletter', 'elemarjr' ),\n\t\t\t'manage_options',\n\t\t\t'sync-newsletter',\n\t\t\tarray( $this, 'display_submenu_page' ),\n\t\t\t6\n\t\t);\n\t}", "public function makeMenu() {}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function addMenu()\n {\n $wpMenu = [\n [\n 'Bolsista',\n 'Bolsista',\n 'edit_pages',\n 'bolsista',\n $this,\n 'doAction',\n 'dashicons-format-aside',\n 2\n ]\n ];\n $wpSubMenu = [];\n $this->addMenuItem($wpMenu, $wpSubMenu);\n }", "function wpclean_add_metabox_menu_posttype_archive() {\n add_meta_box(\n 'wpclean-metabox-nav-menu-posttype',\n 'Custom Post Archives',\n 'wpclean_metabox_menu_posttype_archive',\n 'nav-menus',\n 'side',\n 'default'\n );\n}", "private function menu()\n {\n $data['links'] = ['create', 'read', 'update', 'delete'];\n\n return $this->view->render($data, 'home/menu');\n }", "public function buildNavigation()\r\n\t{\r\n\t\t$uri\t=\tDunUri :: getInstance( 'SERVER', true );\r\n\t\t$uri->delVars();\r\n\t\t$uri->setVar( 'module', 'intouch' );\r\n\t\t\r\n\t\t$data\t\t=\t'<ul class=\"nav nav-pills\">';\r\n\t\t$actions\t=\tarray( 'default', 'syscheck', 'groups', 'configure', 'updates', 'license' );\r\n\t\t\r\n\t\tforeach( $actions as $item ) {\r\n\t\t\tif ( $item == $this->action && in_array( $this->task, array( 'default', 'save' ) ) ) {\r\n\t\t\t\t$data .= '<li class=\"active\"><a href=\"#\">' . t( 'intouch.admin.navbar.' . $item ) . '</a></li>';\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$uri->setVar( 'action', $item );\r\n\t\t\t\t$data .= '<li><a href=\"' . $uri->toString() . '\">' . t( 'intouch.admin.navbar.' . $item ) . '</a></li>';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$data\t.= '</ul>';\r\n\t\treturn $data;\r\n\t}", "function template_navigation() {\n\t\t$_ENV['menu'] = array();\n\t\t$_ENV['menu']['Main'] = _URL_;\n\t\tModule::includes('menus');\n\t\t$_ENV['menu']['Preferences'] = '?module=prefs';\n\t\t$_ENV['menu']['Logout'] = '?logout=true';\n\n\t\t$buffer = '<ul><li><h2>';\n\t\t$buffer .= array_key_exists('Menu',$_ENV['imgs']['menu']) \n\t\t\t? '<img src=\"'.$_ENV['imgs']['menu']['Menu'].'\" border=\"0\" /> ' : ' ';\n\t\t$buffer .= ' Main Menu</h2><ul>';\n\t\tforeach ($_ENV['menu'] as $module => $items) {\n\t\t\tif (is_array($items)) {\n\t\t\t\t$buffer .= '<li><a href=\"#\">';\n\t\t\t\t$buffer .= array_key_exists($module,$_ENV['imgs']['menu'])\n\t\t\t\t\t? '<img src=\"'.$_ENV['imgs']['menu'][$module].'\" border=\"0\" /> ' : ' ';\n\t\t\t\t$buffer .= $module.'</a><ul>';\n\t\t\t\tforeach ($items as $label => $url) {\n\t\t\t\t\t$buffer .= '<li><a href=\"'.$url.'\">';\n\t\t\t\t\t$buffer .= array_key_exists($label,$_ENV['imgs']['menu'])\n\t\t\t\t\t\t? '<img src=\"'.$_ENV['imgs']['menu'][$label].'\" border=\"0\" /> ' : ' ';\n\t\t\t\t\t$buffer .= $label.'</a></li>';\n\t\t\t\t}\n\t\t\t\t$buffer .= '</ul></li>';\n\t\t\t} else {\n\t\t\t\t$buffer .= '<li><a href=\"'.$items.'\">';\n\t\t\t\t$buffer .= array_key_exists($module,$_ENV['imgs']['menu'])\n\t\t\t\t\t? '<img src=\"'.$_ENV['imgs']['menu'][$module].'\" border=\"0\" /> ' : ' ';\n\t\t\t\t$buffer .= $module.' </a></li>';\n\t\t\t}\t\n\t\t}\n\t\t$buffer .= '</ul></li></ul>';\n\t\treturn $buffer;\n\t}", "public function archive()\n\t{ \n\t\t$data['title'] = 'Arsip Surat';\n\t\t$this->load->view('admin/includes/_header', $data);\n\t\t$this->load->view('admin/tracemail/archive/index', $data);\n\t\t$this->load->view('admin/includes/_footer', $data);\n }", "public function appendNavigation(){\n\t\t\t$nav = $this->getNavigationArray();\n\n\t\t\t/**\n\t\t\t * Immediately before displaying the admin navigation. Provided with the\n\t\t\t * navigation array. Manipulating it will alter the navigation for all pages.\n\t\t\t *\n\t\t\t * @delegate NavigationPreRender\n\t\t\t * @param string $context\n\t\t\t * '/backend/'\n\t\t\t * @param array $nav\n\t\t\t * An associative array of the current navigation, passed by reference\n\t\t\t */\n\t\t\tSymphony::ExtensionManager()->notifyMembers('NavigationPreRender', '/backend/', array('navigation' => &$nav));\n\n\t\t\t$xNav = new XMLElement('ul');\n\t\t\t$xNav->setAttribute('id', 'nav');\n\n\t\t\tforeach($nav as $n){\n\t\t\t\tif($n['visible'] == 'no') continue;\n\n\t\t\t\t$can_access = false;\n\n\t\t\t\tif(!isset($n['limit']) || $n['limit'] == 'author')\n\t\t\t\t\t$can_access = true;\n\n\t\t\t\telseif($n['limit'] == 'developer' && Administration::instance()->Author->isDeveloper())\n\t\t\t\t\t$can_access = true;\n\n\t\t\t\telseif($n['limit'] == 'primary' && Administration::instance()->Author->isPrimaryAccount())\n\t\t\t\t\t$can_access = true;\n\n\t\t\t\tif($can_access) {\n\t\t\t\t\t$xGroup = new XMLElement('li', $n['name']);\n\t\t\t\t\tif(isset($n['class']) && trim($n['name']) != '') $xGroup->setAttribute('class', $n['class']);\n\n\t\t\t\t\t$hasChildren = false;\n\t\t\t\t\t$xChildren = new XMLElement('ul');\n\n\t\t\t\t\tif(is_array($n['children']) && !empty($n['children'])){\n\t\t\t\t\t\tforeach($n['children'] as $c){\n\t\t\t\t\t\t\tif($c['visible'] == 'no') continue;\n\n\t\t\t\t\t\t\t$can_access_child = false;\n\n\t\t\t\t\t\t\tif(!isset($c['limit']) || $c['limit'] == 'author')\n\t\t\t\t\t\t\t\t$can_access_child = true;\n\n\t\t\t\t\t\t\telseif($c['limit'] == 'developer' && Administration::instance()->Author->isDeveloper())\n\t\t\t\t\t\t\t\t$can_access_child = true;\n\n\t\t\t\t\t\t\telseif($c['limit'] == 'primary' && Administration::instance()->Author->isPrimaryAccount())\n\t\t\t\t\t\t\t\t$can_access_child = true;\n\n\t\t\t\t\t\t\tif($can_access_child) {\n\t\t\t\t\t\t\t\t$xChild = new XMLElement('li');\n\t\t\t\t\t\t\t\t$xChild->appendChild(\n\t\t\t\t\t\t\t\t\tWidget::Anchor($c['name'], SYMPHONY_URL . $c['link'])\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$xChildren->appendChild($xChild);\n\t\t\t\t\t\t\t\t$hasChildren = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($hasChildren){\n\t\t\t\t\t\t\t$xGroup->appendChild($xChildren);\n\t\t\t\t\t\t\t$xNav->appendChild($xGroup);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->Header->appendChild($xNav);\n\t\t\tAdministration::instance()->Profiler->sample('Navigation Built', PROFILE_LAP);\n\t\t}", "protected function makeActionMenu() {}", "function theme_menu() {\n global $theme;\n $content = new UN_Content();\n $cAll = $content->getMenuContent($theme->langid);\n if (is_array($cAll)) {\n $out = '<ul>';\n if ($theme->indexlink == 1) {\n $out .= '<li><a href=\"index.php'.theme_global_url(true).'\"><span>'._('Main Page').'</span></a></li>';\n }\n foreach($cAll as $c) {\n $link = ($c['pagelink']!=\"\") ? $c['pagelink'] : 'index.php?t=page&amp;id='.$c['pageid'];\n $title = ($c['pagelink']!=\"\") ? $c['pagedetail'] : $c['pagetitle'];\n $out .= '<li><a href=\"'.$link.theme_global_url().'\" title=\"'.strip_tags($title).'\"><span>'.$c['pagetitle'].'</span></a></li>';\n }\n $out .= '</ul>';\n }\n echo $out;\n}", "public function add_menu() {\n\t\t\tadd_menu_page(\n\t\t\t\t'Amazon Affiliate | Products',\n\t\t\t\t'Products',\n\t\t\t\t'manage_options',\n\t\t\t\t'amz-affiliate/pages/product.php',\n\t\t\t\tarray( &$this, 'load_product_page' ),\n\t\t\t\tplugins_url( 'amz-affiliate/img/icon.png' ),\n\t\t\t\t50\n\t\t\t);\n\t\t\tadd_submenu_page(\n\t\t\t\t'amz-affiliate/pages/product.php',\n\t\t\t\t'Amazon Affiliate | Tables',\n\t\t\t\t'Tables',\n\t\t\t\t'manage_options',\n\t\t\t\t'amz-affiliate/pages/table.php',\n\t\t\t\tarray( &$this, 'load_table_page' )\n\t\t\t);\n\t\t}", "public function menu( )\n {\n\n if( $this->view->isType( View::SUBWINDOW ) )\n {\n $view = $this->view->newWindow('WebfrapMainMenu', 'Default');\n }\n else if( $this->view->isType( View::MAINTAB ) )\n {\n $view = $this->view->newMaintab('WebfrapMainMenu', 'Default');\n $view->setLabel('Explorer');\n }\n else\n {\n $view = $this->view;\n }\n\n $view->setTitle('Webfrap Main Menu');\n\n $view->setTemplate( 'webfrap/menu/modmenu' );\n\n $modMenu = $view->newItem( 'modMenu', 'MenuFolder' );\n $modMenu->setData( DaoFoldermenu::get('webfrap/root',true) );\n\n }", "private function createMenu() {\n $menu = new Menu;\n $menu->name = $this->page['title'];\n if ($this->page['parent_id']) {\n $parent = ModelsPage::findOrFail($this->page['parent_id']);\n $menu->link = env('APP_URL') . '/' . $parent->slug . '/' . $this->page['slug'];\n } else {\n $menu->link = env('APP_URL') . '/' . $this->page['slug'];\n }\n $menu->parent_id = null;\n $order = Menu::select('order')->where('parent_id', null)->orderBy('order', 'desc')->first();\n $menu->order = (($order) ? $order->order : 0) + 1;\n $menu->target = '_self';\n $menu->status = true;\n $menu->save();\n }", "function makeNav($active,$AdminEdit,$userObj)\r\n{\r\n $navArray = array(\r\n \"Resume Archive\" => \"ResumeArchive.php\",\r\n \"Address\" => \"AddressEdit.php\",\r\n \"Phone\" => \"PhoneEdit.php\",\r\n \"Job\" => \"JobEdit.php\",\r\n \"Help/Info\" => \"help.html\",\r\n \"Admin\" => \"Admin.php\"\r\n \r\n );\r\n \r\n \r\n //if they are not an admin delete the admin link\r\n if(!$userObj->isAdmin)\r\n {\r\n unset( $navArray[\"Admin\"]);\r\n }\r\n \r\n //if they are a guest then remove the multiple resume capability and admin link\r\n if($userObj->isGuest)\r\n {\r\n unset($navArray[\"Admin\"]);\r\n unset($navArray[\"Resume Archive\"]);\r\n $navArray = array(\"Create Resume\" => \"ResumeEdit.php\") + $navArray;\r\n \r\n }\r\n \r\n //BUILDS THE MENU\r\n //sets the begining of the menu\r\n $result = \"\r\n <!--Menu-->\r\n <div id='cssmenu'>\r\n <ul>\";\r\n \r\n \r\n //iterates through the array and adds additional items\r\n foreach ($navArray as $key => $value) \r\n { \r\n \r\n $selection = ($active == $value) ? \" class='active'\" : \"\";\r\n $result = $result . \"<li $selection><a href='$value'><span>$key</span></a></li>\";\r\n }\r\n //add closing brace\r\n $result = $result . \" \r\n </ul>\r\n </div>\";\r\n \r\n return $result;//return the nave menu\r\n}", "protected function buildMenu() {\n// $structures = DataSource::factory(Structure::cls());\n// $structures->builder()\n// ->where(\"structure_id=0\")\n// ->order('priority');\n// /** @var Structure[] $aStructures */\n// $aStructures = $structures->findAll();\n// foreach ($aStructures as $oStructure) {\n// $menu->addLeftItem($oStructure->name, $oStructure->path);\n// $this->loadMenuItems($menu->findLeftItemByPath($oStructure->path), $oStructure);\n// }\n//\n// $view = new ViewMMenu();\n// $view->menu = $menu;\n// return $view;\n\n $ViewMainMenu = new ViewMainMenu($this->config['name']);\n $this->setMenuItems($ViewMainMenu->itemsList);\n $currentPath = explode('?', $this->Router->getRoute());\n $ViewMainMenu->currentPath = reset($currentPath);\n\n return $ViewMainMenu;\n }", "public function addMenu(){\n\t\tadd_menu_page(\n\t\t\t$this->plugin->name,\n\t\t\t$this->plugin->name,\n\t\t\t'publish_pages',\n\t\t\t$this->plugin->varName,\n\t\t\tarray($this, 'page'),\n\t\t\t$this->plugin->uri . 'assets/images/icn-menu.png'\n\t\t);\n\t}", "function build () {\n foreach ( $this->items as $item ) {\n if ( $item->id() == $this->current->id() ) {\n $this->menu[]=$item;\n $this->appendChildren();\n } else if ( $item->parent_id() == $this->current->parent_id() ) {\n $this->menu[]=$item;\n }\n }\n reset ( $this->menu );\n }", "public function add_menus()\n {\n }", "protected function buildMenuArray() {}", "function archive() {\n // Load posts model\n $this->load->model('Post');\n // Pull posts from database\n $array_posts = $this->Post->get_all_posts(\"home\");\n // Setup all the data to be shown on the webpage\n $data = array('page_content' => 'archive',\n 'page_title' => 'PORT8080.NET',\n 'page_title_sub' => 'A mish mash of crap from the days of my life...',\n 'array_posts' => $array_posts);\n // Open the page\n $this->load->view('page_header', $data);\n // Load the title block\n $this->load->view('page_body_header', $data);\n // Load the main page\n $this->load->view('home/page_body_archive', $data);\n // Load the menu sidebar\n $this->load->view('home/page_body_sidebar', $data);\n // Close the page\n $this->load->view('page_body_footer', $data);\n }", "public function add_menus() {\n add_action( 'admin_menu', array( 'Hotmembers3\\Admin_Pages_Creator', 'create_pages') );\n }", "public function fera_ai_create_menu() {\n add_menu_page('Fera ai Settings', 'Fera ai', 'administrator', 'fera-ai', array ($this, 'fera_ai_settings_page' ) , plugins_url('/images/fera_ai_icon.png', __FILE__), 30 );\n }", "public function createMenu()\n {\n\t\t$count = mysql_query(\"SELECT count(*) FROM view_orders \n\t\t\t\t\t\t\t WHERE status >= '\".Status::open.\"' AND status <= '\".Status::ready.\"' AND products_type_id = '1'\n\t\t\t\t\t\t\t GROUP BY bar_time\");\n\t\t\n\t\t$menu = \"<a href='?action=orders'><li>Bestellungen <div id='count_orders' class='count'>\".mysql_num_rows($count).\"</div></li></a> \\n\";\n\t\t$menu .= \"<a href='?action=articleManagement'><li>ProduktList</li></a> \\n\";\n\t\t$menu .= \"<a href='?action=callWaiter&seat_id=\". Backend::KITCHEN_SEAT .\"'><li>Kellner rufen</li></a> \\n\";\n\t\t$menu .= \"<a href='?action=orders'><li>Uhrzeit: \".date('H:i').\"</li></a> \\n\";\n\t\treturn parent::createMenu($menu);\n }", "private function gen_nav_links()\n\t{\n\t\t$this->template->assign_block_vars('navlinks', array(\n\t\t\t'S_IS_CAT'\t\t=> true,\n\t\t\t'S_IS_LINK'\t\t=> false,\n\t\t\t'S_IS_POST'\t\t=> false,\n\t\t\t'FORUM_NAME'\t=> $this->user->lang('BLOG_MAIN'),\n\t\t\t'FORUM_ID'\t\t=> -1,\n\t\t\t'U_VIEW_FORUM'\t=> append_sid('blog'),\n\t\t));\n\t}", "protected function _menu()\n\t{\n\t\tif (ee()->view->disabled('ee_menu'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tee()->view->cp_main_menu = ee()->menu->generate_menu();\n\t}", "public function main_navigation(){\r\n\r\n echo \"<ul>\";\r\n\r\n if(isset($this->navigationSettings)){\r\n\r\n foreach((array) $this->navigationSettings as $key => $value){\r\n echo \"<li>\";\r\n echo \"<a href='$value'>$key</a>\";\r\n echo \"</li>\";\r\n }\r\n\r\n }\r\n\r\n echo \"</ul>\";\r\n\r\n }", "function createMenuItems()\n{\n\t// Get new component id.\n\t$db \t= DBHelper::db();\n\n\t$cid = getEblogId();\n\n\tif( !$cid )\n\t{\n\t\treturn false;\n\t}\n\n\t//get the default 'HOME' menu item the menytype.\n\t$query\t= 'SELECT `menutype` FROM ' . $db->nameQuote( '#__menu' ) . ' '\n\t\t\t. 'WHERE ' . $db->nameQuote( 'home' ) . '=' . $db->Quote( '1' );\n\t$db->setQuery( $query );\n\n\t$menuType = $db->loadResult();\n\n\tif( empty( $menuType ) )\n\t{\n\t\treturn false;\n\t}\n\n\t$status = true;\n\tif( getJoomlaVersion() >= '1.6' ) {\n\t\trequire_once( JPATH_ROOT . DS . 'components' . DS . 'com_easyblog' . DS . 'helpers' . DS . 'helper.php' );\n\n\t\t$table \t= JTable::getInstance( 'Menu' , 'JTable' );\n\n\t\t$table->menutype\t\t= $menuType;\n\t\t$table->title \t\t\t= 'EasyBlog';\n\t\t$table->alias \t\t\t= 'easyblog';\n\t\t$table->path \t\t\t= 'easyblog';\n\t\t$table->link \t\t\t= 'index.php?option=com_easyblog&view=latest';\n\t\t$table->type \t\t\t= 'component';\n\t\t$table->published \t\t= '1';\n\t\t$table->parent_id \t\t= '1';\n\t\t$table->component_id\t= $cid;\n\t\t$table->client_id \t\t= '0';\n\t\t$table->language \t\t= '*';\n\n\t\t$table->setLocation('1', 'last-child');\n\n\t\tif(!$table->store()){\n\t\t\t$status = false;\n\t\t}\n\t} else {\n\n\t\t$query \t= 'SELECT ' . $db->nameQuote( 'ordering' ) . ' '\n\t\t\t\t. 'FROM ' . $db->nameQuote( '#__menu' ) . ' '\n\t\t\t\t. 'ORDER BY ' . $db->nameQuote( 'ordering' ) . ' DESC LIMIT 1';\n\t\t$db->setQuery( $query );\n\t\t$order \t= $db->loadResult() + 1;\n\n\t\t// Update the existing menu items.\n\t\t$query \t= 'INSERT INTO ' . $db->nameQuote( '#__menu' )\n\t\t\t. '('\n\t\t\t\t. $db->nameQuote( 'menutype' ) . ', '\n\t\t\t\t. $db->nameQuote( 'name' ) . ', '\n\t\t\t\t. $db->nameQuote( 'alias' ) . ', '\n\t\t\t\t. $db->nameQuote( 'link' ) . ', '\n\t\t\t\t. $db->nameQuote( 'type' ) . ', '\n\t\t\t\t. $db->nameQuote( 'published' ) . ', '\n\t\t\t\t. $db->nameQuote( 'parent' ) . ', '\n\t\t\t\t. $db->nameQuote( 'componentid' ) . ', '\n\t\t\t\t. $db->nameQuote( 'sublevel' ) . ', '\n\t\t\t\t. $db->nameQuote( 'ordering' ) . ' '\n\t\t\t. ') '\n\t\t\t. 'VALUES('\n\t\t\t\t. $db->quote( $menuType ) . ', '\n\t\t\t\t. $db->quote( 'EasyBlog' ) . ', '\n\t\t\t\t. $db->quote( 'easyblog' ) . ', '\n\t\t\t\t. $db->quote( 'index.php?option=com_easyblog&view=latest' ) . ', '\n\t\t\t\t. $db->quote( 'component' ) . ', '\n\t\t\t\t. $db->quote( '1' ) . ', '\n\t\t\t\t. $db->quote( '0' ) . ', '\n\t\t\t\t. $db->quote( $cid ) . ', '\n\t\t\t\t. $db->quote( '0' ) . ', '\n\t\t\t\t. $db->quote( $order ) . ' '\n\t\t\t. ') ';\n\n\t\t$db->setQuery( $query );\n\t\t$db->query();\n\n\t\tif($db->getErrorNum())\n\t\t{\n\t\t\t$status = false;\n\t\t}\n\t}\n\n\treturn $status;\n}", "function makeMenu($menu){\n $output='';\n $list = '<ul>'. PHP_EOL;\n $listClose = '</ul>'. PHP_EOL;\n foreach ($menu as $key => $items) {\n $output.='<li class=\"menu\"> <a href ='.$key.'>'.$items.'</a></li>'. PHP_EOL;\n }\n $finalMenu = $list . $output . $listClose;\n return $finalMenu;\n}", "public function buildMenu() {\n $content = array();\n\n $headers = array(\n t(\"Menu keuze\"),\n t(\"Functie\"), \n );\n $rows[] = array(\n t(\"<b>Tabel beheer</b>\"),\n t(\"\"),\n );\n $rows[]= array(\n t(\"<a href= ezac/leden/>Leden administratie</a>\"),\n t(\"Inzage en wijzigen leden informatie\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/leden/update>Lid toevoegen</a>\"),\n t(\"Invoeren gegevens nieuw lid\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/kisten/>Vloot administratie</a>\"),\n t(\"Inzage en wijzigen vloot informatie\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/kisten/update>Kist toevoegen</a>\"),\n t(\"Invoeren gegevens nieuw vliegtuig\"),\n );\n $rows[] = array(\n t(\"<b>Startadministratie</b>\"),\n t(\"\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/starts>Startadministratie</a>\"),\n t(\"Overzicht startadministratie\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/starts/create/>Start invoer</a>\"),\n t(\"Invoeren nieuwe start\"),\n );\n $rows[] = array(\n t(\"<b>Voortgang / Bevoegdheden administratie</b>\"),\n t(\"\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/vba>Overzicht</a>\"),\n t(\"Overzicht VBA gegevens\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/vba>Invoeren</a>\"),\n t(\"Invoeren verslagen en bevoegdheden\"),\n );\n\n $table = array(\n '#type' => 'table',\n '#caption' => t(\"EZAC administratie hoofdmenu\"),\n '#header' => $headers,\n '#rows' => $rows,\n '#empty' => t('Geen gegevens beschikbaar.'),\n '#sticky' => TRUE,\n '#prefix' => '<div id=\"menu-div\">',\n '#suffix' => '</div>',\n '#weight' => 2,\n );\n\n return $table;\n }", "public static function createMenu(){\n $perms = Security::getPermsFromConnectedUser() ?? [];\n\n $menuData = self::$_menuData;\n\n $actualUri = self::$_actualUri;\n $menuListBuilder = [];\n $html = '';\n foreach ($menuData as $link => $data) {\n if (!empty($data['menuData'])){\n //TODO : check the min-status\n if ($data['menuData']['visible'] \n && (\n array_key_exists(\"all_perms\", $perms) \n || array_key_exists($link, $perms)\n || $link === '/admin/dashboard'\n || $link === '/'\n )) {\n $subSectionSelected = false;\n\n //Create the sub-menu\n $htmlChildren = '';\n if (!empty($data['menuData']['children'])) {\n $htmlChildren = '<ul>';\n foreach ($data['menuData']['children'] as $id => $linkChild) {\n if (array_key_exists(\"all_perms\", $perms) \n || array_key_exists($linkChild, $perms)) {\n if ($actualUri === $linkChild) {\n $subSectionSelected = true;\n }\n $classChildren = $actualUri == $linkChild ? ' class=\"selected\"' : '';\n $htmlChildren .= '<li' . $classChildren . '><a href=\"' . $linkChild . '\">' . $menuData[$linkChild]['label'] . '</li>';\n }\n }\n $htmlChildren .= '</ul>';\n }\n\n $class = ' class=\"'\n . ($actualUri == $link ? 'selected ' : '')\n . ($subSectionSelected ? 'subChildrenSelected ' : '')\n . '\"';\n\n $html = '<li' . $class . '><a href=\"' . $link . '\">'\n . '<img src=\"' . Routing::getBaseUrl() . '/public/images/icons/' . $data['menuData']['icon'] . '.png\" alt=\"\" class=\"icon iconWhite\"><p>' . $data['label'] . '</p></a>'\n . '</a>';\n\n //Adding the sub-menu\n $html .= $htmlChildren;\n\n $html .= '</li>';\n if (array_key_exists($data['menuData']['listId'], $menuListBuilder)) {\n $menuListBuilder[$data['menuData']['listId']] .= $html;\n } else {\n $menuListBuilder[$data['menuData']['listId']] = $html;\n }\n }\n }\n }\n\n $html = '';\n foreach ($menuListBuilder as $listId => $htmlValue) {\n $html.= '<ul id=\"'.$listId.'\">'.$htmlValue.'</ul>';\n }\n\n $htmlMenu = '<nav id=\"back-mainPage-menu\" class=\"d-none d-lg-flex\">'\n . $html . '</nav>'\n . '<nav id=\"back-mainPage-menuResponsive\" class=\"d-block d-lg-none hidden\">'\n . $html . '</nav>';\n echo $htmlMenu;\n }", "private function build_navigation() {\n\t\t$content = \"<nav id='formlift-header' class='formlift-nav'>\";\n\t\tforeach ( $this->sections as $section ) {\n\t\t\t$content .= $section->get_header();\n\t\t}\n\n\t\treturn $content . \"<button type='submit' style='margin: 45px' class='button button-large'>SAVE CHANGES</button></nav>\";\n\t}", "function log_viewer_add_menu_item() {\n\techo '<li><a href=\"http://localhost/ds-plugins/log-viewer/page.php\">Log Viewer</a></li>';\n}", "protected function menus()\n {\n\n }", "function setup_menus() {\n\t$icon = '';\n\tadd_menu_page('Site Features', 'Site Features', 'publish_pages', 'pop_site_features', '', $icon, 36);\n\tadd_submenu_page('pop_site_features','','','publish_pages','pop_site_features','homepage_touts_page');\n\tadd_submenu_page('pop_site_features', 'Homepage Features', 'Homepage Features', 'publish_pages', 'pop_homepage_features', 'homepage_features_page');\n\tadd_submenu_page('pop_site_features', 'Homepage Ticker', 'Homepage Ticker', 'publish_pages', 'pop_homepage_ticker', 'homepage_ticker_page');\n\tadd_submenu_page('pop_site_features', 'Homepage Touts', 'Homepage Touts', 'publish_pages', 'pop_homepage_touts', 'homepage_touts_page');\n\tadd_submenu_page('pop_site_features', 'Movement Touts', 'Movement Touts', 'publish_pages', 'pop_movement_touts', 'movement_touts_page');\n\tadd_submenu_page('pop_site_features', 'PoP & Local Events', 'PoP & Local Events', 'publish_pages', 'pop_events', 'movement_events_page');\n\tadd_submenu_page('pop_site_features', 'Season of 1000', 'Season of 1000 Promises', 'publish_pages', 'season1000', 'season_1000_page');\n}", "public function addMenuItem() {\n add_menu_page(__('Visual Chat', 'WP_Visual_Chat'), 'Visual Chat', 'visual_chat', 'vcht-console', array($this, 'viewChatBackend'), 'dashicons-format-chat');\n }", "function daniels_archive_dropdown ( \n $sNavigationType = 'button', $sText = 'View Archive' ) {\n?>\n<form id=\"ddd_archive_form\" action=\"\">\n\t<script type=\"text/javascript\">\n\tfunction goArc() {\n\t\tvar selArc = document.getElementById('selArchive');\n\t\tif (selArc.selectedIndex > 0) {\n\t\t\twindow.location = selArc[selArc.selectedIndex].value;\n\t\t} \n\t}\n\t</script>\n\t<div style=\"text-align:center;\">\n\t\t<select <?php if ( $sNavigationType == 'auto' ) { ?>onchange=\"goArc();\"<?php } ?>\n\t\t\tid=\"selArchive\" style=\"margin-top:5px;\">\n\t\t\t<option value=\"\">&mdash; Select Month &mdash;</option>\n\t\t\t<?php get_archives ( '', '', 'option', '', '', 1 ); ?>\n\t\t</select>\n<?php\n\tif ( $sNavigationType != 'auto' ) { ?>\n\t\t<br />\n<?php\n\t\tif ( $sNavigationType == 'link' ) { ?>\n\t\t<a href=\"javascript:void();\" onclick=\"goArc();\"><?php echo $sText; ?></a>\n<?php\n\t\t}\n\t\telse { ?>\n\t\t<button type=\"button\" style=\"margin-top:5px;\"\n\t\t\tonclick=\"goArc();\"><?php echo $sText; ?></button>\n<?php\n\t\t}\n\t}\n?>\t</div>\n</form>\n<?php\n}", "function build () {\n foreach ( $this->items as $item ) {\n if ( $item->isRoot() ) {\n $this->menu[]=$item;\n $this->appendChildren($item);\n }\n }\n reset ( $this->menu );\n }", "function public_nav_main()\n{\n $view = get_view();\n $nav = new Omeka_Navigation;\n $nav->loadAsOption(Omeka_Navigation::PUBLIC_NAVIGATION_MAIN_OPTION_NAME);\n $nav->addPagesFromFilter(Omeka_Navigation::PUBLIC_NAVIGATION_MAIN_FILTER_NAME);\n return $view->navigation()->menu($nav);\n}", "public function create()\n\t{\n\t\treturn Theme::View('menus::menus.create', $this->menu_repo->create());\n\t}", "public static function GenerateNavbar($menu)\n\t\t{\n\t\t\t$default = array(\n\t\t\t\t'id' => null,\n\t\t\t\t'class' => null,\n\t\t\t\t'wrapper' => 'nav',\n\t\t\t\t'create_url' => function ($url) {\n\t\t\t\t\treturn $url;\n\t\t\t\t},\n\t\t\t);\n\t\t\t\n\t\t\t$menu = array_replace_recursive($default, $menu);\n\t\t\t\n\t\t\t// Function to create urls\n\t\t\t$createUrl = $menu['create_url'];\n\t\t\t\n\t\t\t// Create the ul li menu from the array, use an anonomous recursive function that returns an array of values.\n\t\t\t$createMenu = function ($items, $callback) use (&$createMenu, $createUrl) \n\t\t\t{\n\t\t\t\t$html = null;\n\t\t\t\t$hasItemIsSelected = false;\n\t\t\t\t\n\t\t\t\tforeach ($items as $item) \n\t\t\t\t{\n\t\t\t\t\t// has submenu, call recursivly and keep track on if the submenu has a selected item in it.\n\t\t\t\t\t$submenu = null;\n\t\t\t\t\t$selectedParent = null;\n\t\t\t\t\t$hasSubmenu \t= null; \n\t\t\t\t\t\n\t\t\t\t\tif (isset($item['submenu'])) \n\t\t\t\t\t{\n\t\t\t\t\t\t$hasSubmenu = \" &#9662;\";\n\t\t\t\t\t\tlist($submenu, $selectedParent) = $createMenu($item['submenu']['items'], $callback);\n\t\t\t\t\t\t$selectedParent = $selectedParent ? \"selected-parent \" : null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (isset($item['url']))\n\t\t\t\t\t\t// Check if the current menuitem is selected\n\t\t\t\t\t\t$selected = $callback($item['url']) ? \"selected \" : null;\n\t\t\t\t\telse\n\t\t\t\t\t\t$selected = NULL; \n\t\t\t\t\t\n\t\t\t\t\t// Is there a class set for this item, then use it\n\t\t\t\t\t$class = isset($item['class']) && ! is_null($item['class']) ? $item['class'] : null;\n\t\t\t\t\t\n\t\t\t\t\t// Prepare the class-attribute, if used\n\t\t\t\t\t$class = ($selected || $selectedParent || $class) ? \" class='{$selected}{$selectedParent}{$class}' \" : null;\n\t\t\t\t\t\n\t\t\t\t\t// Add the menu item\n\t\t\t\t\t$url = isset($item['url']) ? $createUrl($item['url']) : NULL;\n\t\t\t\t\tif (!isset($item['show']) || $item['show'] == TRUE)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($url)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$active = (basename($_SERVER['REQUEST_URI']) == $url || (strtok($url,'?') == basename($_SERVER['PHP_SELF']) && $hasSubmenu) ? '' : '');\n\t\t\t\t\t\t\tif ($active == '▸ ') \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif ($hasSubmenu)\n\t\t\t\t\t\t\t\t\tself::$parent = $item; \n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tself::$child = $item; \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$html .= \"\\n<li{$class}>$active<a href='{$url}' title='{$item['title']}'>{$item['text']}{$hasSubmenu}</a>{$submenu}</li>\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$html .= \"\\n<li{$class}>{$item['text']}{$hasSubmenu}{$submenu}</li>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// To remember there is selected children when going up the menu hierarchy\n\t\t\t\t\tif ($selected) {\n\t\t\t\t\t\t$hasItemIsSelected = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Return the menu\n\t\t\t\treturn array(\"\\n<ul>$html</ul>\\n\", $hasItemIsSelected);\n\t\t\t};\n\t\t\t\n\t\t\t// Call the anonomous function to create the menu, and submenues if any.\n\t\t\tlist($html, $ignore) = $createMenu($menu['items'], $menu['callback']);\n\t\t\t\n\t\t\t\n\t\t\t// Set the id & class element, only if it exists in the menu-array\n\t\t\t$id = isset($menu['id']) ? \" id='{$menu['id']}'\" : null;\n\t\t\t$class = isset($menu['class']) ? \" class='{$menu['class']}'\" : null;\n\t\t\t$wrapper = $menu['wrapper'];\n\t\t\t\n\t\t\treturn \"\\n<{$wrapper}{$id}{$class}>{$html}</{$wrapper}>\\n\";\n\t\t}", "public function crearMenu($apartado)\n {\n $menu = '';\n $tab = 1;\n $this->conectar();\n $sql = \"SELECT idsubcategoria, subcategoria FROM Menu as Men\n INNER JOIN Subcategorias as Sub\n ON Men.idsubcategoria = Sub.id WHERE Men.idapartado = '\".$apartado.\"'\";\n $result = $this->conn->query($sql);\n \n if ($result->num_rows > 0) {\n\t\t\t$menu .= '<ul class=\"nav nav-pills nav-stacked\">';\n while($row = $result->fetch_assoc())\n {\n\t\t\t\t\t$menu .= '<li class=\"li-bg\" id=\"'.$row['idsubcategoria'].'\"><a>'.$row['subcategoria'].' &raquo;</a></li>';\n }\n\t\t\t\t$menu .= '</ul>';\n }\n echo $menu;\n if($tab != 1)\n {\n echo $menu;\n }\n $this->conn->close();\n }", "function buildMenu($Environment)\n\t{\n\t\t// Return empty if there are no menu items\n\t\tif(!isset($Environment[\"menuItem\"]))\n\t\t\treturn \"\";\n\t\t\n\t\t// Insert the Menu\n\t\t$pageMenu = new pageTemplate(CMS_DIR_THEME . \"/menu.thtml\");\n\t\t$pageMenuItems = \"\";\n\n\t\tforeach($Environment[\"menuItem\"] as $menuNext)\n\t\t{\n\t\t\tif(is_array($menuNext))\n\t\t\t{\n\t\t\t\tforeach($menuNext as $arrayMenuItem)\n\t\t\t\t{\n\t\t\t\t\t$pageMenuItems .= $this -> makeMenuItem($arrayMenuItem[\"Name\"],$arrayMenuItem[\"URL\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pageMenuItems .= $this -> makeMenuItem($menuNext -> menuName,$menuNext -> pageURL);\n\t\t\t}\n\t\t}\n\n\t\t$pageMenu -> add(\"MENU_ITEMS\", $pageMenuItems);\n\t\t\n\t\treturn $pageMenu -> parse();\n\t}", "public function writeMenu() {}", "public function writeMenu() {}", "public function writeMenu() {}", "public function writeMenu() {}", "public function generate_menu() {\n\t\t\t$nav_menus = wp_get_nav_menus();\n\t\t\t$menu_count = count($nav_menus);\n\n\t\t\t// Allowed actions: add, update, delete\n\t\t\t$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'edit';\n\n\t\t\t$nav_menu_selected_id = isset($_REQUEST['menu']) ? (int) $_REQUEST['menu'] : 0;\n\n\t\t\t// Are we on the add new screen?\n\t\t\t$add_new_screen = ( isset( $_GET['menu'] ) && 0 == $_GET['menu'] ) ? true : false;\n\t // Get recently edited nav menu.\n\t $recently_edited = absint(get_user_option('nav_menu_recently_edited'));\n\t if (empty($recently_edited) && is_nav_menu($nav_menu_selected_id))\n\t $recently_edited = $nav_menu_selected_id;\n\n\t // Use $recently_edited if none are selected.\n\t if (empty($nav_menu_selected_id) && !isset($_GET['menu']) && is_nav_menu($recently_edited))\n\t $nav_menu_selected_id = $recently_edited;\n\n\t if (empty($nav_menu_selected_id) && !empty($nav_menus) && !$add_new_screen) {\n\t // if we have no selection yet, and we have menus, set to the first one in the list.\n\t $nav_menu_selected_id = $nav_menus[0]->term_id;\n\t }\n\n\t // Update the user's setting.\n\t if ($nav_menu_selected_id != $recently_edited && is_nav_menu($nav_menu_selected_id))\n\t update_user_meta(get_current_user_id(), 'nav_menu_recently_edited', $nav_menu_selected_id);\n\n\t //if menu hase change on dropdwon and save menu than recently menu option will update\n\t if (!empty($_POST['menu'])) {\n\t $nav_menu_selected_id = (int) $_POST['menu'];\n\t $user_id = get_current_user_id();\n\t update_user_meta($user_id, 'nav_menu_recently_edited', $nav_menu_selected_id);\n\t }\n\t $menu_locations = get_nav_menu_locations();\n\t $locations = get_registered_nav_menus();\n\n\t $users_data = array('udata' => $this->get_all_user_data());\n\n\t\t\t$nav_menus_l10n = array(\n\t\t\t\t'oneThemeLocationNoMenus' => '',\n\t\t\t\t'moveUp' => __( 'Move up one' ),\n\t\t\t\t'moveDown' => __( 'Move down one' ),\n\t\t\t\t'moveToTop' => __( 'Move to the top' ),\n\t\t\t\t/* translators: %s: previous item name */\n\t\t\t\t'moveUnder' => __( 'Move under %s' ),\n\t\t\t\t/* translators: %s: previous item name */\n\t\t\t\t'moveOutFrom' => __( 'Move out from under %s' ),\n\t\t\t\t/* translators: %s:s previous item name */\n\t\t\t\t'under' => __( 'Under %s' ),\n\t\t\t\t/* translators: %s: previous item name */\n\t\t\t\t'outFrom' => __( 'Out from under %s' ),\n\t\t\t\t/* translators: 1: item name, 2: item position, 3: total number of items */\n\t\t\t\t'menuFocus' => __( '%1$s. Menu item %2$d of %3$d.' ),\n\t\t\t\t/* translators: 1: item name, 2: item position, 3: parent item name */\n\t\t\t\t'subMenuFocus' => __( '%1$s. Sub item number %2$d under %3$s.' ),\n\t\t\t);\n\t\t\t \n\n\t //$messages = $this->processing_action_request($action, $nav_menu_selected_id);\n\t $messages = MMCP_Controllers::instance()->get_messages();\n\t wp_nav_menu_setup();\n\t wp_initial_nav_menu_meta_boxes();\n\t wp_enqueue_script('nav-menu');\n\t $all_register_widget_items = MMCP_Manager_Widget::instance()->get_all_items_register_widget();\n\t\t\tif ( wp_is_mobile() )\n\t\t\t\twp_enqueue_script( 'jquery-touch-punch' ); \n\t\t\twp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n );\n\t\t\twp_localize_script( 'nav-menu', 'mmcp_users', $users_data );\n\t //wp_nav_menu_post_type_meta_boxes();\n\t //wp_nav_menu_taxonomy_meta_boxes(); \n\t include_once(MMCPRO()->plugin_path().'/admin/views/menus/group_menu.php');\n\t include_once(MMCPRO()->plugin_path().'/admin/views/menus/items.php');\n\t //include_once(MMCPRO()::$plugin_path.'admin/views/menus/group_menu.php');\n\t\t}", "function jigoshop_admin_menu() {\n\tglobal $menu;\n\t\n\t$menu[] = array( '', 'read', 'separator-jigoshop', '', 'wp-menu-separator jigoshop' );\n\t\n add_menu_page(__('Jigoshop'), __('Jigoshop'), 'manage_options', 'jigoshop' , 'jigoshop_dashboard', jigoshop::plugin_url() . '/assets/images/icons/menu_icons.png', 55);\n add_submenu_page('jigoshop', __('Dashboard', 'jigoshop'), __('Dashboard', 'jigoshop'), 'manage_options', 'jigoshop', 'jigoshop_dashboard'); \n add_submenu_page('jigoshop', __('General Settings', 'jigoshop'), __('Settings', 'jigoshop') , 'manage_options', 'settings', 'jigoshop_settings');\n add_submenu_page('jigoshop', __('System Info','jigoshop'), __('System Info','jigoshop'), 'manage_options', 'sysinfo', 'jigoshop_system_info');\n add_submenu_page('edit.php?post_type=product', __('Attributes','jigoshop'), __('Attributes','jigoshop'), 'manage_options', 'attributes', 'jigoshop_attributes');\n}", "public function nav()\n\t{\n\t\t$nav['dashboard'] = array('name' => Blocks::t('Dashboard'));\n\t\t$nav['content'] = array('name' => Blocks::t('Content'));\n\t\t$nav['assets'] = array('name' => Blocks::t('Assets'));\n\n\t\tif (Blocks::hasPackage(BlocksPackage::Users) && blx()->userSession->checkPermission('editUsers'))\n\t\t{\n\t\t\t$nav['users'] = array('name' => Blocks::t('Users'));\n\t\t}\n\n\t\t// Add any Plugin nav items\n\t\t$plugins = blx()->plugins->getPlugins();\n\n\t\tforeach ($plugins as $plugin)\n\t\t{\n\t\t\tif ($plugin->hasCpSection())\n\t\t\t{\n\t\t\t\t$lcHandle = strtolower($plugin->getClassHandle());\n\t\t\t\t$nav[$lcHandle] = array('name' => $plugin->getName());\n\n\t\t\t\t// Does the plugin have an icon?\n\t\t\t\t$resourcesPath = blx()->path->getPluginsPath().$lcHandle.'/resources/';\n\n\t\t\t\tif (IOHelper::fileExists($resourcesPath.'icon-16x16.png'))\n\t\t\t\t{\n\t\t\t\t\t$nav[$lcHandle]['hasIcon'] = true;\n\n\t\t\t\t\t$url = UrlHelper::getResourceUrl($lcHandle.'/icon-16x16.png');\n\t\t\t\t\tblx()->templates->includeCss(\"#sidebar #nav-{$lcHandle} { background-image: url('{$url}'); }\");\n\n\t\t\t\t\t// Does it even have a hi-res version?\n\t\t\t\t\tif (IOHelper::fileExists($resourcesPath.'icon-32x32.png'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$url = UrlHelper::getResourceUrl($lcHandle.'/icon-32x32.png');\n\t\t\t\t\t\tblx()->templates->includeHiResCss(\"#sidebar #nav-{$lcHandle} { background-image: url('{$url}'); }\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (blx()->userSession->checkPermission('autoUpdateBlocks'))\n\t\t{\n\t\t\t$numberOfUpdates = blx()->updates->getTotalNumberOfAvailableUpdates();\n\n\t\t\tif ($numberOfUpdates > 0)\n\t\t\t{\n\t\t\t\t$nav['updates'] = array('name' => Blocks::t('Updates'), 'badge' => $numberOfUpdates);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$nav['updates'] = array('name' => Blocks::t('Updates'));\n\t\t\t}\n\t\t}\n\n\t\tif (blx()->userSession->isAdmin())\n\t\t{\n\t\t\t$nav['settings'] = array('name' => Blocks::t('Settings'));\n\t\t}\n\n\t\treturn $nav;\n\t}", "static function create_menu() {\n add_submenu_page('plugins.php', 'Luminous Settings', 'Luminous settings',\n 'administrator', 'luminous-handle', 'luminouswp::settings_view');\n }", "public function menuInside($action='') {\n $items = '';\n $action = ($action!='') ? $action : $this->action;\n switch ($action) {\n case 'listAdmin':\n if (Permission::canInsert($this->type)) {\n $items = '<div class=\"menuSimpleItem menuSimpleItemInsert\">\n <a href=\"'.url($this->type.'/insertView', true).'\">'.__('insertNew').'</a>\n </div>';\n }\n if ((string)$this->object->info->info->form->exportJson == 'true') {\n $items .= '<div class=\"menuSimpleItem menuSimpleItemExportJson\">\n <a href=\"'.url($this->type.'/export-json', true).'\" target=\"_blank\">'.__('exportJson').'</a>\n </div>';\n }\n if ((string)$this->object->info->info->form->exportCsv == 'true') {\n $items .= '<div class=\"menuSimpleItem menuSimpleItemExportCsv\">\n <a href=\"'.url($this->type.'/export-csv', true).'\" target=\"_blank\">'.__('exportCsv').'</a>\n </div>';\n }\n break;\n case 'insertView':\n case 'insert':\n case 'modifyView':\n case 'modifyViewCheck':\n $items = '<div class=\"menuSimpleItem menuSimpleItemList\">\n <a href=\"'.url($this->type.'/listAdmin', true).'\">'.__('viewList').'</a>\n </div>';\n break;\n case 'insertCheck':\n $items = '<div class=\"menuSimpleItem menuSimpleItemInsert\">\n <a href=\"'.url($this->type.'/insertView', true).'\">'.__('insertNew').'</a>\n </div>';\n if (Permission::canInsert($this->type)) {\n $items .= '<div class=\"menuSimpleItem menuSimpleItemList\">\n <a href=\"'.url($this->type.'/listAdmin', true).'\">'.__('viewList').'</a>\n </div>';\n }\n break;\n case 'listBack':\n $items = '<div class=\"menuSimpleItem menuSimpleItemList\">\n <a href=\"'.url($this->type.'/listAdmin', true).'\">'.__('viewList').'</a>\n </div>';\n break;\n\n }\n return ($items!='') ? '<nav class=\"menuSimple\">'.$items.'</nav>' : '';\n }", "function mkRegisterMenu() {\n \n register_nav_menu('primary', 'Main Menu');\n \n }", "public function register_menu() {\n $parent_slug = 'comparrot';\n $capability = 'manage_options';\n\n add_menu_page( 'Comparrot', 'Comparrot', $capability, $parent_slug, [$this, 'import_from_csv_page'], 'dashicons-admin-page', 2 );\n\n add_submenu_page( $parent_slug, __( 'Import from CSV', 'comparrot' ), __( 'Import from CSV', 'comparrot' ), $capability, $parent_slug, [$this, 'import_from_csv_page'] );\n add_submenu_page( $parent_slug, __( 'General settings', 'comparrot' ), __( 'General settings', 'comparrot' ), $capability, 'comparrot-general-settings', [$this, 'general_settings_page'] );\n }", "function\ncreateMenu(&$sitemap, $_pos = 1, $_level = 2 )\n{\n\t$timestamp = time();\n\techo '<ul id=\"'. ($_pos === 1 ? 'menu-stucture' : '') .'\">';\n\t$locrr = 0;\n\tfor($i = $_pos; $i < count($sitemap); $i++)\n\t{\n\t\tif($_level !== intval($sitemap[$i] -> level))\n\t\t{\n\t\t\tif(!CMS_BACKEND)\n\t\t\t\t$locrr = ($sitemap[$i-1] -> offspring ?? 1) - 1;\n\t\t\tbreak;\n\t\t}\n\n\t\tif(\n\t\t\t\t($sitemap[$i] -> hidden_state == 0)\n\t\t\t&&\t(empty($sitemap[$i] -> page_auth) || (!empty($sitemap[$i] -> page_auth) && CSession::instance() -> isAuthed($sitemap[$i] -> page_auth) === true))\n\t\t\t||\t(\t($sitemap[$i] -> hidden_state == 5 && $sitemap[$i] -> publish_from < $timestamp)\n\t\t\t\t&&\t($sitemap[$i] -> hidden_state == 5 && $sitemap[$i] -> publish_until > $timestamp && $sitemap[$i] -> publish_until != 0)\n\t\t\t\t)\n\t\t\t|| CMS_BACKEND\n\t\t ); else\n\t\t {\n\t\t\t$i = $i + $sitemap[$i] -> offspring;\n\t\t\tcontinue;\n\t\t }\n\n\t\tif(CMS_BACKEND)\n\t\t\techo '<li><a href=\"'. CMS_SERVER_URL_BACKEND .'pages/view/'. $sitemap[$i] -> page_language .'/'. $sitemap[$i] -> node_id .'\" title=\"'. $sitemap[$i] -> page_title .'\">'. $sitemap[$i] -> page_name .'</a>';\n\t\telse\n\t\t\techo '<li><a href=\"'. CMS_SERVER_URL . URL_LANG_PRREFIX . substr($sitemap[$i] -> page_path, 1) .'\" title=\"'. $sitemap[$i] -> page_title .'\" '. ($sitemap[$i] -> menu_follow == 0 ? 'rel=\"nofollow\"' : '') .'>'. $sitemap[$i] -> page_name .'</a>';\n\n\t\tif($sitemap[$i] -> offspring != 0)\n\t\t{\n\t\t\t$i = createMenu($sitemap, ($i + 1), ($_level + 1));\n\t\t}\n\n\t\techo '</li>';\n\t}\n\techo '</ul>';\n\n\treturn (!$locrr ? $i - 1 : $i + $locrr);\n}", "function albums_menu( $request ) {\r\n // so we have a menu item if we have both a user, and are in the first sub\r\n // once we decend in to albums, we don't show this button\r\n $user = \\Profile\\profileHandler::getProfileId( $request );\r\n\r\n if ($user) {\r\n $path = $request->getRequestVars();\r\n\r\n //print_r($path);\r\n // create home folder\r\n $mainurl = \"/albums/{$user->username}\";\r\n $urls['albums']['url'] = $mainurl;\r\n //if (end($path) == $user->username) {\r\n //$urls['albums']['selected'] = 1;\r\n //}\r\n\r\n // get album path to generate nav screen\r\n if ($request->getResource() == 'albums') {\r\n\r\n $album = new \\AlbumObject();\r\n $items = $album->initAlbumByPath( $path )->getPathItems();\r\n array_shift($items);\r\n \r\n // show remaining folders\r\n $mainurl = \"/albums/{$user->username}\";\r\n foreach ($items as $item) {\r\n $mainurl .= \"/\". urlencode($item->get('name'));\r\n $urls[$item->get('displayname')]['url'] = $mainurl;\r\n }\r\n }\r\n if (!empty($items)) {\r\n $urls[end($items)->get('displayname')]['selected'] = 1;\r\n }\r\n return $urls;\r\n \r\n } \r\n\r\n}", "public function archivesAction(){\n $this->view->archives = $this->_vacancies->getArchiveJobs($this->_getParam('page'));\n }", "function content_nav() {\n\t\t$current_individual_nav_items = 0;\n\t\t$max_individual_nav_items = 4;\n\t\t\n\t\tforeach($this->data['content_actions'] as $key => $item) :\n\t\t\tif ( $current_individual_nav_items == $max_individual_nav_items ) { ?>\n\t\t\t\t<?\n\t\t\t}\n\t\t\t\n\t\t\techo $this->makeListItem( $key, $item );\n\t\t\t$current_individual_nav_items++;\n\t\tendforeach;\n\t\t\n\t\t?></ul></li><?\n\t}", "function Outputmenu($page) {\n \n \n// the dummy container menu is used to have a fake menu behind the original one to keep every div floating in any direction in line and without overlapping\n echo' <div class=\"dummycontainermenu\">';\n echo' <div class=\"logo\">\n <a href=\"index.php\"><img src=\"\\Coursework1PaulLucianCosareanu\\Images\\Logo.png\" alt=\"Italian Trulli\"></a>\n \n </div>\n </div>'; \n\n// container menu is the container in which the actual menu and the logo is placed\n echo' <div class=\"containermenu\">';\n// logo is the container of the logo and the a href within the container is the actual logo populating the container\n echo' <div class=\"logo\">\n\n <a href=\"index.php\"><img src=\"\\Coursework1PaulLucianCosareanu\\Images\\Logo.png\" alt=\"Italian Trulli\"></a>\n \n </div>';\n\n// the class menu is a container in which the buttons/ links towards all the other pages are displayed\n echo' <div class=\"menu\">';\n\n $pathimagex=\"/Coursework1PaulLucianCosareanu/Images/\"; //the path of the images, problems with writing, php took certain symbols combined as commands\n $linkNames = array(\"Home\", \"Details\", \"Ranking\", \"Game\", \"Contact\", \"User\"); //array of Link names, the names which are displayed in the menu\n $linkAddresses = array(\"index.php\", \"DescriptionPage.php\", \"RankingPage.php\", \"GamePage.php\", \"ContactPage.php\");//array of the main pages\n $iconNames = array(\"Home\", \"Details\", \"Ranking\", \"Game\", \"Contact\"); // second part of the path of the images, these images are the icons within the menu\n\n //Output navigation\n for ($x = 0; $x < count($linkNames); $x++) {\n //algorith for output navigation short description\n if($linkNames[$x]!=\"User\"){ //for every x going from 0 to the number of link names, important x< link names total\n echo '<a '; //if the linknames are different than \"user\",starts printing the menu up to the user but not including the User. then if the link name is the same with the $page which is parsed\n if ($linkNames[$x] == $page) { //from anymainpage.php then it takes the class selected,meaning that if you press the home button for example\n echo 'class=\"selected\" '; //the color of the text will become black because you are situated on that page, it clears out after you visit another page,\n } //after everything is printed and the array[x] takes the user value, the user dropdown code is printed\n \n \n // output icons in specific menu buttons, the algorith checks if the name of the link is the same with the name of the icon, if yes then prints\n for($y=0; $y<count($iconNames); $y++){ \n if($linkNames[$x] == $iconNames[$y]){ \n echo 'href=\"'.$linkAddresses[$x].'\"><img class=\"test\" src=\"'.$pathimagex.$iconNames[$y].'.png\"> ' . $linkNames[$x] . '</a>';\n }\n }\n // end of output icons in specific menu buttons \n\n // if linkname is user then the dropdown html with it's according icon is printed\n }else if($linkNames[$x]==\"User\"){\n echo'<div class=\"dropdown\" >\n <button class=\"dropbtn\" id=\"dropdown1\" style=\"display:inline\"><img class=\"test\" src=\"\\Coursework1PaulLucianCosareanu\\Images\\User.png\">User</button>\n <div class=\"dropdown-content\">\n <a href=\"Login.php\">Log In</a>\n <a href=\"Register.php\">Register</a>\n </div>\n </div>';\n echo'<div class=\"dropdown\" >\n <button class=\"dropbtn\" id=\"dropdown2\" style=\"display:none;\"><img class=\"test\" src=\"\\Coursework1PaulLucianCosareanu\\Images\\User.png\" style=\"float:left\";><div id=\"username\" style=\"float:left\";>User</div></button>\n <div class=\"dropdown-content\">\n <a href=\"index.php\" onclick=\"logoutuser()\">Log Out</a>\n </div>\n </div>';\n\n } \n }\n echo'</div>';\n echo'</div>\n <script src=\"./Javascript/Loggedinout.js\" type=\"text/javascript\"></script>';\n}", "function makeMenu($what)\n{\n global $language;\n if($what==\"header\") {\n echo \"<a href=\\\"index.php?action=home\\\" target=\\\"main\\\"><div align=\\\"center\\\"><img border=\\\"0\\\" src=\\\"\".AdminMenuLogoLocation.\"\\\"></a></div>\\r\\n\";\n echo \"<table width=\\\"100%\\\" border=\\\"0\\\" cellpadding=\\\"0\\\" cellspacing=\\\"5\\\">\\r\\n\";\n }\n if($what==\"separator\") {\n echo \"<tr><td></td></tr>\\r\\n\";\n }\n if($what==\"footer\") {\n echo \"<tr><td><hr></td></tr>\\r\\n\";\n echo \"</table>\\r\\n\";\n }\n}", "public function makeMenu(){\n\n //Label & class definition\n $idDiv = \"sub-menu\";\n $classUl = \"menu\";\n $classLi = \"stdanimation1_2\";\n $classSpan = \"stdanimation1_2\";\n $classA = \"stdanimation1_4\";\n\n //array mit link, icon, label\n // mit i übersetzen\n $naviArray[] = array(\"link\" => \"index.php?view=home\", \"icon\" => \"icon_house_alt\", \"label\" => \"Home\" );\n $naviArray[] = array(\"link\" => \"index.php?view=profile\", \"icon\" => \"icon_profile\", \"label\" => \"Profile\" );\n $naviArray[] = array(\"link\" => \"index.php?view=categories\", \"icon\" => \"icon_tag\", \"label\" => \"Categories\" );\n $naviArray[] = array(\"link\" => \"index.php?view=shoppingcart\", \"icon\" => \"icon_cart\", \"label\" => \"Shopping Cart\" );\n $naviArray[] = array(\"link\" => \"index.php?view=wishlist\", \"icon\" => \"icon_gift\", \"label\" => \"Wishlist\" );\n $naviArray[] = array(\"link\" => \"index.php?view=hotlist\", \"icon\" => \"icon_grid-2x2\", \"label\" => \"Hotlist\" );\n\n\n $linkList = \"\";\n\n //create a list item for every array found\n foreach($naviArray as $navipoint){\n //do translation\n $navipoint[\"label\"] = i($navipoint[\"label\"]);\n\n $linkList .= '\n <li class=\"'.$classLi.'\">\n <span class=\"'.$classSpan.' '.$navipoint[\"icon\"].'\"></span>\n <a class=\"'.$classSpan.'\" href=\"'.$navipoint[\"link\"].'\">'.$navipoint[\"label\"].'</a>\n </li>\n ';\n }\n\n $html = \"\";\n $html = '<div id=\"'.$idDiv.'\">\n <ul class=\"'.$classUl.'\">\n '.$linkList.'\n </ul>\n </div>';\n\n return $html;\n\n\n\n /*\n return '<div id=\"sub-menu\">\n <ul class=\"menu\">\n <li class=\"stdanimation\">\n <span class=\"stdanimation1_2 icon_house_alt\"></span>\n <a class=\"stdanimation1_4\" href=\"index.php?view=home\">Home</a>\n </li>\n <li class=\"stdanimation\">\n <span class=\"stdanimation1_2 icon_profile\"></span>\n <a class=\"stdanimation1_4\" href=\"index.php?view=profile\">Profil</a>\n </li>\n <li class=\"stdanimation1_4\">\n <span class=\"stdanimation1_4 icon_tag\"></span>\n <a class=\"stdanimation1_4\" href=\"index.php?view=categorie\">Kategorien</a>\n </li>\n <li class=\"stdanimation\">\n <span class=\"stdanimation1_2 icon_cart\"></span>\n <a class=\"stdanimation1_4\" href=\"index.php?view=shoppingcart\" >Shopping Cart</a>\n </li>\n <li class=\"stdanimation1_4\">\n <span class=\"stdanimation1_4 icon_gift\"></span>\n <a class=\"stdanimation1_4\" href=\"index.php?view=shop\">Ipsum</a>\n </li>\n <li class=\"stdanimation1_4\">\n <span class=\"stdanimation1_4 icon_grid-2x2\"></span>\n <a class=\"stdanimation1_4\">Doloret</a>\n </li>\n </ul>\n </div>';\n*/\n}", "function h_add_menus(array $args) {\n if (!is_admin()) { return;}\n\n $menu = new H_Sidenav($args);\n $menu->add();\n}", "function make_menu($title) {;\t\n\t$menu = '<ul class=\"nav nav-pills\">';\n $menu .= get_menu_items($title);\n\t$menu .= '</ul>';\n\treturn $menu;\n}", "public function setUpMenuItems()\n {\n $Menu = new DModuleMenu();\n $Menu -> setIcon( '<i class=\"fa fa-money\"></i>' );\n $MenuItem = new DModuleMenuItem( \"show\" , \"Monedas\" );\n $MenuItem -> setIcon( '<i class=\"fa fa-money\"></i>' );\n $Menu -> addItemObject( $MenuItem );\n $this -> setMenu( $Menu );\n }", "public function onBuildMainMenu(BuildMenuEvent $event)\n {\n $main = $event\n ->getMenu()\n ->removeChild('Dashboard')\n ->removeChild('Stock')\n ->removeChild('Projects')\n ->removeChild('Email')\n ->removeChild('Scheduler')\n ->removeChild('Calls')\n ->removeChild('Support')\n ->removeChild('Jobs')\n ->removeChild('Purchase orders')\n ->removeChild('Suppliers')\n ->removeChild('Contacts')\n ->removeChild('Clients');\n\n if ($this->security->isGranted(array('ROLE_CLIENT_CONTACT'))) {\n $main->addChild('Orders', array('route' => 'mirsa_sales_order_list'))->setAttribute('icon', 'fa-pencil-square-o');\n $main->addChild('Appointments', array('route' => 'mirsa_appointments_list'))->setAttribute('icon', 'fa-calendar');\n }\n\n if ($this->security->isGranted(array('ROLE_CLIENT_CONTACT_INVENTORY'))) {\n $menu->removeChild('Orders');\n $menu->removeChild('Appointments');\n }\n \n if ($this->security->isGranted(array('ROLE_STAFF'))) {\n $main->addChild('Clients', array('route' => 'mirsa_clients_list'))->setAttribute('icon', 'fa-group');\n $main->addChild('Orders', array('route' => 'mirsa_sales_order_list'))->setAttribute('icon', 'fa-pencil-square-o');\n $main->addChild('Appointments', array('route' => 'mirsa_appointments_list'))->setAttribute('icon', 'fa-calendar');\n }\n\n /* Standard menu items for all users */\n $main->addChild('Work Orders', array('route' => 'mirsa_work_order_list'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Assembly Activity', array('route' => 'mirsa_activity_assembly_list'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Inspection Activity', array('route' => 'mirsa_activity_inspection_list'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Defect Cross Tab', array('route' => 'mirsa_work_order_defect_cross_tab_report_by_template'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Batch', array('route' => 'mirsa_stock_quantity_list'))->setAttribute('icon', 'fa-cubes');\n $main->addChild('Inventory', array('route' => 'mirsa_stock_list'))->setAttribute('icon', 'fa-cubes');\n $main->addChild('Order Line Items', array('route' => 'mirsa_sales_order_line_item_list'))->setAttribute('icon', 'fa-list-alt');\n }", "protected function generateModuleMenu() {}", "function login_menu() {\n $asf = CAsdf::Instance();\n if($asf->user['isAuthenticated']) {\n $items = \"<a href='\" . create_url('user/profile') . \"'><img class='gravatar' src='\" . get_gravatar(20) . \"' alt=''> \" . $asf->user['acronym'] . \"</a> \";\n if($asf->user['hasRoleAdministrator']) {\n $items .= \"<a href='\" . create_url('acp') . \"'>acp</a> \";\n }\n $items .= \"<a href='\" . create_url('user/logout') . \"'>logout</a> \";\n } else {\n $items = \"<a href='\" . create_url('user/login') . \"'>login</a> \";\n }\n return \"<nav id='login-menu'>$items</nav>\";\n}", "public function initMenu()\n {\n add_menu_page(\n 'Flickr Group Gallery',\n 'Flickr Group Gallery',\n 'administrator',\n 'flickr-group-gallery',\n array($this, 'render'),\n 'dashicons-admin-generic'\n );\n }", "public function exampleNavigation()\n {\n /*\n $config = array(\n array(\n 'label' => 'Home',\n 'module' => 'example',\n 'controller' => 'index',\n 'action' => 'index',\n ),\n\n array(\n 'label' => 'Coding Guidelines',\n 'module' => 'example',\n 'controller' => 'index',\n 'action' => 'guideslines',\n ),\n\n array(\n 'label' => 'Libraries',\n 'module' => 'example',\n 'controller' => 'index',\n 'action' => 'index',\n 'pages' => array(\n array(\n 'label' => 'Blueprint',\n 'module' => 'example',\n 'controller' => 'library',\n 'action' => 'blueprint',\n ),\n ),\n ),\n );\n\n $container = new Zend_Navigation($config);\n\t\t$this->setContainer($container);\n\n return $this;\n\n */\n $menus = array(\n\n '' => array(\n '/example' => 'Home',\n '/example/index/guideslines' => 'Coding Guidelines',\n ),\n\n 'Libraries' => array(\n //'/example/library/zend' => 'Zend Framework',\n '/example/library/blueprint' => 'Blueprint',\n '/example/library/mootools' => 'Mootools',\n ),\n\n 'Tools' => array(\n '/example/tools/debug' => 'Debug',\n '/example/tools/makefile' => 'MakeFile',\n ),\n\n 'CSS Elements' => array(\n '/example/css/menus' => 'Menus',\n '/example/css/buttons' => 'Fancy Buttons',\n '/example/css/box' => 'Round Box',\n ),\n\n 'JS Elements' => array(\n '/example/javascript/ajaxlink' => 'Ajax Link',\n '/example/javascript/ajaxform' => 'Ajax Form',\n '/example/javascript/lightbox' => 'LightBox',\n '/example/javascript/uwa' => 'UWA Widget',\n ),\n\n 'Form Elements' => array(\n '/example/form/index' => 'Showcases',\n '/example/form/fancyselect' => 'Fancy Select',\n '/example/form/dateselect' => 'Date Select',\n '/example/form/autocompleter' => 'Auto Completer',\n //'/example/form/rangeselect' => 'Range Select Element',\n //'/example/form/contactselect' => 'Contact List Element',\n ),\n\n 'View Helpers' => array(\n '/example/helper/geshi' => 'GeShi',\n '/example/helper/googleanalytics' => 'Google Analytics',\n ),\n\n 'Services' => array(\n '/example/service/xmlrpc' => 'Simple XMLRPC',\n ),\n\n 'Core Classes' => array(\n '/example/core/error' => 'Error Handler',\n '/example/core/controller' => 'Controller Abstract',\n '/example/core/archive' => 'Archive',\n '/example/core/template' => 'Template',\n '/example/core/notify' => 'Notify',\n '/example/core/stitem' => 'StItem/StCollection',\n '/example/core/dbitem' => 'DbItem/DbCollection',\n '/example/core/dbsearch' => 'DbSearch',\n ),\n );\n\n $xhtml = array();\n foreach ($menus as $menu => $links) {\n\n if (strlen($menu) > 0) {\n $xhtml[] = '<h4>' . $this->view->escape($menu) . '</h4>';\n }\n\n $xhtml[] = '<ul>';\n foreach ($links as $link => $label) {\n $xhtml[] = '<li><a href=\"' . $link . '\">' . $this->view->escape($label) . '</a></li>';\n }\n $xhtml[] = '</ul>';\n }\n\n return implode(\"\\n\", $xhtml);\n }", "function build_menubar() {\n // get the menu bar data from config\n $i = $this->config->item('menu_choices');\n $t = $i['menudata'];\n $this->data['menudata'] = $t;\n\n // check if anyone is logged in\n if ($this->session->userdata('username')) {\n // if so, display logout button\n $this->data['welcome_txt'] = 'Welcome, ' . $this->session->userdata('username');\n $this->data['login_submit_txt'] = 'Logout';\n $this->data['login_btn_appear'] = 'none';\n $this->data['login_action'] = 'logout';\n } else {\n // if no one is logged in, display the login box\n $this->data['welcome_text'] = '';\n $this->data['login_submit_txt'] = 'Login';\n $this->data['login_btn_appear'] = 'initial';\n $this->data['login_action'] = 'login';\n }\n\n // parse the menu bar\n $this->data['menubar'] = $this->parser->parse('_menubar', $this->data, true); //$this->config->item('menu_choices')\n }", "function post_media_add_menu() {\n\t\t\n\t\t//main menu\n add_menu_page(\t\t'Main Page',\n\t\t\t\t\t\t\t'Main Page', \n\t\t\t\t\t\t\t'manage_demo_post_media',\n\t\t\t\t\t\t\t'demo_post_media_dashboard', \n\t\t\t\t\t\t\tarray(__CLASS__,'pm_demo_dashboard'),\n\t\t\t\t\t\t\t\"dashicons-groups\",'2.2.4'\n\t\t\t\t\t\t);\n\t\t//create single sub menu\t\t\t\n add_submenu_page(\t'demo_post_media_dashboard',\n\t\t\t\t\t\t\t' Setting Page', \n\t\t\t\t\t\t\t' Setting Page', \n\t\t\t\t\t\t\t'manage_demo_post_media',\n\t\t\t\t\t\t\t'demo_post_media_dashboard', \n\t\t\t\t\t\t\tarray(__CLASS__,'pm_demo_dashboard')\n\t\t\t\t\t\t);\n\t\t//create multiple sub menu\t\t\t\t\t\n add_submenu_page( \t'demo_post_media_dashboard', \n\t\t\t\t\t\t\t' Create Multiple DSM Entry', \n\t\t\t\t\t\t\t' Create Multiple',\n\t\t\t\t\t\t\t 'manage_demo_post_media',\n\t\t\t\t\t\t\t 'demo_post_media_settings', \n\t\t\t\t\t\t\t array(__CLASS__,'pm_demo_setting')\n\t\t\t\t\t\t);\n }", "protected function createMenu(){\n $menu_name = static::MENU_NAME;\n $menu_tree = \\Drupal::menuTree();\n $parameters = $menu_tree->getCurrentRouteMenuTreeParameters($menu_name);\n \n // if tree is not empty, create the menu\n if ($tree = $menu_tree->load($menu_name, $parameters)){\n $manipulators = [ // Only show links that are accessible for the current user.\n ['callable' => 'menu.default_tree_manipulators:checkAccess'],\n // Use the default sorting of menu links.\n ['callable' => 'menu.default_tree_manipulators:generateIndexAndSort'],\n ];\n\n $tree = $menu_tree->transform($tree, $manipulators);\n return $menu_tree->build($tree);\n }\n\n // return false if tree is empty\n return false;\n }", "function createMenu($data, $htmlOptions = array()) {\r\n $this->htmlTree .= Html::beginTag('ul', $htmlOptions);\r\n foreach ($data as $item) {\r\n $this->htmlTree .= Html::beginTag('li') . Html::a($item['title'], $item['url']);\r\n if (isset($item['children']) AND !empty($item['children']))\r\n $this->createMenu($item['children']);\r\n $this->htmlTree .= Html::endTag('li');\r\n }\r\n $this->htmlTree .= Html::endTag('ul');\r\n return $this->htmlTree;\r\n }", "private function packMenus()\n {\n $menus = include_once __DIR__ . '/elements/menus.php';\n if (!is_array($menus)) {\n $this->modx->log(modX::LOG_LEVEL_ERROR, 'Cannot build menus');\n } else {\n foreach ($menus as $menu) {\n $this->builder->putVehicle($this->builder->createVehicle($menu, [\n xPDOTransport::PRESERVE_KEYS => true,\n xPDOTransport::UPDATE_OBJECT => true,\n xPDOTransport::UNIQUE_KEY => 'text',\n xPDOTransport::RELATED_OBJECTS => true,\n xPDOTransport::RELATED_OBJECT_ATTRIBUTES => [\n 'Action' => [\n xPDOTransport::PRESERVE_KEYS => false,\n xPDOTransport::UPDATE_OBJECT => true,\n xPDOTransport::UNIQUE_KEY => ['namespace', 'controller']\n ]\n ]\n ]));\n $this->modx->log(modX::LOG_LEVEL_INFO, 'Packaged in ' . count($menus) . ' menus.');\n }\n }\n }", "protected function setup_menu() {\n\t\t$nag = '';\n\n\t\tif ( $this->has_notices() ) {\n\t\t\t$nag = \" <span class='wp-shp-browser-info dashicons dashicons-info' style='line-height: 0.8em'></span>\";\n\t\t}\n\n\t\t$defaults = array(\n\t\t\t'menu_title' => __( 'Showcase', 'wp-shp-browser' ),\n\t\t\t'page_title' => $this->get_page_title(),\n\t\t\t'page_slug' => $this->page_slug,\n\t\t\t'action_link' => false,\n\t\t\t'admin_action_priority' => 99,\n\t\t);\n\t\t$this->args = wp_parse_args( $this->args, $defaults );\n\n\t\t$this->args['menu_title'] .= $nag;\n\t}", "function sic_page_menu_args( $args ) {\n\t$args['menu_class'] = 'nav';\n\t$args['container'] = FALSE;\n\n\n\treturn $args;\n}", "protected function _menu() {\n\t\t// Get count of ham comments\n\t\t$ham = Sprig::factory('blog_comment', array('state'=>'ham'))->load(NULL, FALSE)->count();\n\t\t$ham = ($ham > 0) ? ' ['.$ham.']' : '';\n\n\t\t// Get count of queued comments\n\t\t$queued = Sprig::factory('blog_comment', array('state'=>'queued'))->load(NULL,FALSE)->count();\n\t\t$queued = ($queued > 0) ? ' ['.$queued.']' : '';\n\n\t\t// Get count of spam comments\n\t\t$spam = Sprig::factory('blog_comment', array('state'=>'spam'))->load(NULL,FALSE)->count();\n\t\t$spam = ($spam > 0) ? ' ['.$spam.']' : '';\n\n\t\treturn View::factory('blog/admin/menu')\n\t\t\t->set('links', array(\n\t\t\t\t'Approved Comments'.$ham => $this->request->uri(array('action' => 'approved')),\n\t\t\t\t'Moderation Queue'.$queued => $this->request->uri(array('action' => 'queue')),\n\t\t\t\t'Spam Comments'.$spam => $this->request->uri(array('action' => 'spam')),\n\t\t\t));\n\t}", "function menuObj($OA) {\n global $curPid;\n if (!isset($OA['mode'])) $OA['mode'] = '';\n \n // menu 'wrap' begin\n echo \"\\n\";\n if (!isset($OA['wrapB'])) echo '<ul>';\n else echo $OA['wrapB'].\"\\n\";\n \n // make default menu\n if ($OA['mode'] == 'default') get_navigation(get_page_slug(false));\n \n // make breadcrumb\n elseif ($OA['mode'] == 'breadcrumb') makeBreadcrumb(return_page_slug(false),1,$OA);\n\n // make language manu\n elseif (isset($OA['language'])) makeLangNav(return_page_slug(false),$OA);\n \n // make hierachical menu\n else makeMenu(return_page_slug(false),$OA);\n\n // menu 'wrap' wrap\n if (!isset($OA['wrapA'])) echo '</ul>';\n else echo $OA['wrapA'].\"\\n\\n\";\n}", "private function __construct() {\t\t\t\r\n\t\t//Now check if all menu exist, if not create empty page\r\n\t\tforeach(self::$_menuItem as $item) {\r\n\t\t\t$filename = dirname(dirname(__FILE__)) . $item[\"page\"];\r\n\t\t\r\n\t\t\tif (!file_exists($filename)) {\r\n\t\t\t\t$fp = fopen($filename, 'w');\r\n\t\t\t\tfwrite($fp, '<?php' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . 'require_once(\\'../include/masterpage.php\\');' . \"\\r\\n\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . '$master = MasterPage::getInstance();' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . '$master->setTitle(\\'' . _($item[\"id\"]) . '\\');' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . '$master->setCurrentPage(\\'' . $item[\"id\"] . '\\');' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . '$master->setHead(\\'\\');' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . '$master->setContent(\"contenu1\", ' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\\t\" . '\\'<div id=\"content\">\\'' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\\t\\t\" . '. _(\"dummytext\") .' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\\t\" . '\\'</div>\\');' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, \"\\t\" . '$master->display();' . \"\\r\\n\");\r\n\t\t\t\tfwrite($fp, '?>' . \"\\r\\n\");\r\n\t\t\t\tfclose($fp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function createNavigation() {\n\t \n\t // 1. Gruppen auslesen\n\t\t$groups = array();\n\t\t$items = array();\n\t\n\t $items = $this->applicationHandler->getApplications(array(\n\t \t'groups' => true,\n\t \t'isVisible' => 1\n\t ));\n\n\t // 2. Elemente auslesen und parsen\n\t foreach ($items as $g) {\n\t \t\n\t \t$groupIsEmpty = true;\n\t \t$groupSelected = false;\n\n\t \tforeach ($g['cmtApplications'] as $r) {\n\t\n\t \t\t// Zugriffsrechte prüfen\n\t\t \tif (!$this->user->checkUserAccessRight($r['id'])) {\n\t\t \t\tcontinue;\t\n\t\t \t}\n\t\t \t\n\t\t\t\t// Da ist was drin in der Gruppe!\n\t\t\t\t$groupIsEmpty = false;\n\t\t\t\t$itemSelected = false;\n\t\t\t\t\t\t\n\t\t\t\t// Default-Einstellungen holen, sofern es welche gibt.\n\t\t\t\tif ($r['cmt_type'] == 'table') {\n\t\t\t\t\t$settingsPath = 'app_showtable/';\n\t\t\t\t} else {\n\t\t\t\t\t$a = explode('.', $r['cmt_include']);\n\t\t\t\t\t$settingsPath = $a[0].'/';\n\t\t\t\t\tunset ($a);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$itemSettings = $r['cmt_tablesettings'];\n\t\t\t\t\n\t\t\t\tif (!isset($itemSettings['icon'])) {\n\t\t\t\t\t$itemSettings['icon'] = 'default';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitch ($itemSettings['icon']) {\n\t\t\t\t\tcase 'otherIcon':\n\t\t\t\t \t$itemIcon = CMT_TEMPLATE.$itemSettings['iconPath'];\n\t\t\t\t \tbreak;\n\t\t\t\t\n\t\t\t\t\tcase 'none':\n\t\t\t\t\t\t$itemIcon = '';\n\t\t\t\t\t\tunset ($itemSettings['iconPath']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tif (isset($itemSettings['iconPath']) && is_file(CMT_TEMPLATE.$settingsPath.$itemSettings['iconPath'])) {\n\t\t\t\t\t\t\t$itemIcon = CMT_TEMPLATE.$settingsPath.$itemSettings['iconPath'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$itemIcon = CMT_TEMPLATE.'general/img/'.str_replace('table', $r['cmt_type'], 'cmt_defaulttableicon_16px.png');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$itemSettings['icon'] = 'default';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Das 16px große Icon anzeigen\n\t\t\t\tif (!strstr($itemIcon, 'cmt_default')) {\n\t\t\t\t\t$iconParts = explode('.', (basename($itemIcon)));\n\t\t\t\t\t$itemIcon = dirname($itemIcon).'/'.array_shift($iconParts).'_16px.'.implode('.', $iconParts);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!is_file($itemIcon)) {\n\t\t\t\t\t$itemIcon = CMT_TEMPLATE.'general/img/'.str_replace('table', $r['cmt_type'], 'cmt_defaulttableicon_16px.png');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($r['id'] == $this->selectedApplicationID) {\n\t\t\t\t\t$itemSelected = true;\n\t\t\t\t\t$groupSelected = true;\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t$itemSelected = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// generate query variables\n\t\t\t\t$queryVars = '';\n\t\t\t\tif ($r['cmt_queryvars']) {\n\t\t\t\t\t$queryVars = str_replace(array(\"\\n\", \"\\r\"), array('&amp;', ''), $r['cmt_queryvars']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$parserVars = array(\n\t\t\t\t\t'itemIcon' => $itemIcon,\n\t\t\t\t\t'itemName' => $r['cmt_showname'],\n\t\t\t\t\t'itemId' => $r['id'],\n\t\t\t\t\t'itemSelected' => $itemSelected,\n\t\t\t\t\t'groupSelected' => $groupSelected,\n\t\t\t\t\t'queryVars' => $queryVars\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->parser->setMultipleParserVars($parserVars);\n\t\t\t\t$groupHtml .= $this->parser->parse($this->itemTemplate);\n\t \t}\n\t \t\n\t \t// Falls was in der Gruppe drin ist, dann anzeigen\n\t \tif (!$groupIsEmpty) {\n\t \t\t\n\t \t\t$groupSettings = $g['cmt_groupsettings'];\n\t \t\t\n\t \t\tif (!is_array($groupSettings)) {\n\t \t\t\t$groupSettings = array();\n\t \t\t}\n\t \t\t\n\t\t\t\t// Icon suchen\n\t\t\t switch ($groupSettings['icon']) {\n\t\t\t \tcase 'otherIcon':\n\t\t\t \t\t$groupIcon = CMT_TEMPLATE.$groupSettings['iconPath'];\n\t\t\t \t\tbreak;\n\t\t\t \t\t\n\t\t\t \tcase 'none':\n\t\t\t \t\t$groupIcon = '';\n\t\t\t \t\tbreak;\n\t\t\t \t\t\n\t\t\t \tdefault:\n\t\t\t \t\tif ($groupSettings['iconPath']) {\n\t\t\t \t\t\t$groupIcon = CMT_TEMPLATE.$groupSettings['iconPath'];\n\t\t\t \t\t} else {\n\t\t\t \t\t\t$groupIcon = CMT_TEMPLATE.'general/img/cmt_defaultgroupicon_32px.png';\n\t\t\t \t\t}\n\t\t\t \t\t$groupSettings['icon'] = 'default';\n\t\t\t \t\tbreak;\n\t\t\t }\n\t\t\t \n\t\t\t // Das 32px große Icon auswählen\n\t\t\t if (!strstr($groupIcon, 'cmt_defaultgroupicon_32px.png') && $groupIcon != '') {\n\t\t\t \t$iconParts = explode('.', (basename($groupIcon)));\n\t\t\t \t$groupIcon = dirname($groupIcon).'/'.array_shift($iconParts).'_32px.'.implode('.', $iconParts);\n\t\t\t }\n\t\t\t \n\t\t\t if ($groupIcon != '' && !is_file($groupIcon)) {\n\t\t\t \t$groupIcon = CMT_TEMPLATE.'general/img/cmt_defaultgroupicon_32px.png';\n\t\t\t }\n\t\t\t \n\t\t\t // Gruppentemplate parsen\n\t\t\t $this->parserVars = array(\n\t\t \t\t'groupIcon' => $groupIcon,\n\t\t\t\t\t'groupName' => $g['cmt_groupname'],\n\t\t\t\t\t'groupId' => $g['id'],\n\t\t\t\t\t'groupHtml' => $groupHtml,\n\t\t \t\t'groupSelected' => $groupSelected\n\t\t\t \t);\n\t\t\t\t\t\t\n\t\t\t $this->parser->SetMultipleParserVars($this->parserVars);\n\t\t\t $navigation .= $this->parser->parse($this->groupTemplate);\n\t\t\t \n\t\t\t unset($groupHtml);\n\t \t}\n\t }\n\t $this->parser->setParserVar('cmtNavigationGroups', $navigation);\t \n\t return $this->parser->parseTemplate('administration/cmt_navigation.tpl');\n\t}", "function addMenu()\n{\n add_menu_page (\"Members and Email\", \"Members / Email\", 4, \"members-email-1\", \"MeMenu\" );\n add_submenu_page(\"members-email-1\", \"Email List\", \"Email\", 4, \"members-email-sub-1\", \"MeMenuSub1\");\n add_submenu_page(\"members-email-1\", \"Tracking\", \"Tracking Scripts\", 4, \"tracking-scripts-1\", \"MeMenuSub2\");\n\n\n}", "public function create($options=array('wrap'=>'<ul id=\"menu\">%s</ul>')) {\n\n\t\t$controller\t= str_replace('Admin_Controller_', '', Application_Base::getController());\n\t\t$action\t\t= Application_Base::getAction();\n\t\t$url\t\t= Application_Base::getBaseURL();\n\n\t\t$request\t= new Modules_Request_HTTP();\n\t\t$requestURL\t= $request->getRequestURL();\n\t\t$currentURL\t= str_replace(Application_Base::getRelativePath(), '', $request->getURLPart($requestURL, 'path'));\n\n\t\tif(empty($this->JSON)) {\n\t\t\t$this->gatherJSON();\n\t\t}\n\n\t\tusort($this->JSON, 'Admin_Application_View_MenuHelper::sort');\n\n\t\tif(is_array($this->JSON)) {\n\n\t\t\t$user_id = Modules_Session::getInstance()->getVar('userdata')->user_id;\n\n\t\t\t$menu = '';\n\n\t\t\tforeach($this->JSON AS $cnt => $main) {\n\n\t\t\t#\tif((isset($this->app) && $this->app->getGlobal('access')->check('Admin_Controller_' . $main['controller'])) || !isset($this->app)) {\n\n\t\t\t\t\t\n\n\t\t\t\t\t$active\t= $controller == $main['controller'] ? ' active ':'';\n\t\t\t\t\t$id\t\t= $main['id'] ? ' id=\"'. $main['id'] . '\"' : '';\n\t\t\t\t\t$class\t= $main['class'] ? ' ' . $main['class'] . ' ' : '';\n\t\t\t\t\t$open\t= $main['open'] == \"true\" || in_array($main['title'], $this->open) ? ' open ':'';\n\t\t\t\t\t$hasVisibleChildren = false;\n\n\t\t\t\t\t$mainmenu = '<li ' . $id . ' class=\"' . $active . $class . $open . '\"><a href=\"' . $url . $main['link'] . '\">' . __($main['title']) . '</a>';\n\t\t\t\t\tif(isset($main['sub']) && !empty($main['sub'])) {\n\n\t\t\t\t\t\t$subSection = false;\n\t\t\t\t\t\t$submenu = '<ul>';\n\n\t\t\t\t\t\tforeach($main['sub'] AS $sub) {\n\n\t\t\t\t\t\t\tif($this->access->hasLinkAccess($user_id, $sub['link'])) {\n\n\t\t\t\t\t\t\t\t$active\t= (strtolower($controller . '/' . $action) == strtolower($sub['link']) || strpos(ltrim($currentURL, '/'), ltrim($sub['link'])) === 0) ? 'active':'';\n\t\t\t\t\t\t\t\t$id\t\t= $sub['id'] ? ' id=\"'. $sub['id'] . '\"' : '';\n\t\t\t\t\t\t\t\t$submenu .= '<li ' . $id . ' class=\"' . $active . '\"><a href=\"' . $url . $sub['link'] . '\">' . __($sub['title']) . '</a></li>';\n\t\t\t\t\t\t\t\t$subSection = true;\n\t\t\t\t\t\t\t\t$hasVisibleChildren = true;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$submenu .= '</ul>';\n\n\t\t\t\t\t\tif($subSection == true) {\n\t\t\t\t\t\t\t$mainmenu .= $submenu;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\t$mainmenu .= '</li>';\n\n\n\t\t\t\t\tif($hasVisibleChildren == true || $this->access->hasLinkAccess($user_id, $main['link'])) {\n\t\t\t\t\t\t$menu .= $mainmenu;\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t#\t}\n\n\t\t\t}\n\n\t\t\tif(isset($options) && isset($options['wrap'])) {\n\t\t\t\t$menu = sprintf($options['wrap'], $menu);\n\t\t\t}\n\n\t\t}\n\t\treturn $menu;\n\t}", "static function addMenus()\n {\n add_menu_page(\n // string $page_title The text to be displayed in the title tags\n // of the page when the menu is selected\n __('Projecten plugin Admin', 'projecten-plugin'),\n // string $menu_title The text to be used for the menu\n __('Projecten plugin', 'projecten-plugin'),\n // string $capability The capability required for this menu to be displayed to the user.\n 'manage_options',\n // string $menu_slug The slug name to refer to this menu by (should be unique for this menu)\n 'projecten plugin',\n // callback $function The function to be called to output the content for this page.\n array('ProjectenPlugin_AdminController', 'adminMenuPage'),\n // string $icon_url The url to the icon to be used for this menu.\n // * Pass a base64-encoded SVG using a data URI, which will becolored to match the color scheme.\n // This should begin with 'data:image/svg+xml;base64,'.\n // * Pass the name of a Dashicons helper class to use a fonticon, e.g.\n 'dashicons-chart-pie' .\n // * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS.\n PROJECTEN_PLUGIN_INCLUDES_IMGS_DIR . '/icon.png'\n // int $position The position in the menu order this one should appear\n );\n add_submenu_page(\n // string $parent_slug The slug name for the parent menu \n // (or the file name of a standard WordPress admin page) \n 'my-event-organiser-admin',\n // string $page_title The text to be displayed in the title tags of the page when the menu is selected \n __('event_type', 'my-event-organiser'),\n // string $menu_title The text to be used for the menu \n __('Event Type', 'my-event-organiser'),\n // string $capability The capability required for this menu to be displayed to the user. \n 'manage_options',\n // string $menu_slug The slug name to refer to this menu by (should be unique for this menu) \n 'meo_admin_event_types',\n // callback $function The function to be called to output the content for this page. \n array('ProjectenPlugin_AdminController', 'adminSubMenuProjecten')\n\n\n );\n }", "protected function build_nav()\r\n {\r\n //$this->view = false;\r\n $this->load->model('privilege_model','nav');\r\n\r\n $roles = $this->user->get_roles($this->user_id);\r\n $nav_links = $this->nav->get($roles); \r\n\r\n $this->load->config('nav_icons');\r\n $nav_icons = $this->config->item('icons');\r\n $result = '<ul id=\"nav\">'; \r\n \r\n //loop over returned top level navs\r\n foreach($nav_links as $nav_link):\r\n\r\n if($nav_link->name == \"school-logo\"):\r\n\r\n if(!$this->user_details->is_parent): //parent can belong to multiple schools\r\n\r\n $result .= '<li class=\"'.$nav_link->name.'\">'.\r\n anchor('schools/profile/1', img(base_url('assets/imgs/xlogo.jpg')))\r\n .'</li>'; \r\n\r\n endif;// only add school logo if not a regular user\r\n else:\r\n \r\n //Preferential nav load\r\n $result .= '<li class=\"'.$nav_link->name.'\">'.\r\n anchor($nav_link->controller.'/'.$nav_link->method, ' ', array('class' => $nav_icons[$nav_link->name]))\r\n .''.\r\n anchor($nav_link->controller.'/'.$nav_link->method, ucfirst($nav_link->name))\r\n .'</li>'; \r\n //End preferential nav load \r\n\r\n endif;\r\n endforeach;\r\n\r\n $result .= '</ul>';\r\n return $result;\r\n }", "function anipics_add_main_menu(){\n register_nav_menu('main_menu', 'Menu principal');\n}", "function minicard_page_menu() {\n\tglobal $wp_query;\n\techo '<ul>';\n\t$exclude = str_replace(' ', '', trim(get_option('exclude_ids')));\n\tif ($exclude) $exclude = '&exclude='.$exclude.'';\n\t\n\t/* Show home unless un-needed */\n\t\t$show_home = true;\n\t\t$post_obj = $wp_query->get_queried_object();\n\t\t$post_ID = $post_obj->ID;\n\n\t\t$show_on_front = get_option( 'show_on_front'); // does the front page display the latest posts or a static page\n\t\t$page_on_front = get_option( 'page_on_front' ); // if it shows a page, what page\n\t\t$page_for_posts = get_option( 'page_for_posts' );\n\t\t\n\t\tif ($show_on_front == 'page' && $page_on_front > 0) $show_home = false;\n\t\t\n\t\tif ($show_home) {\n\t\t\n\t\t\techo '<li class=\"page_item ';\n\t\t\t\n\t\t\tif (is_home() && $post_ID!=$page_for_posts) echo 'current_page_item';\n\t\t\t\n\t\t\techo '\"><a href=\"'.get_bloginfo('url').'\" title=\"'.__('Home','minicard').'\">'.__('Home','minicard').'</a></li>';\n\t\t\t\n\t\t\tif ( ( is_home() || is_search() ) && $post_ID!=$page_for_posts) {\n\t\t\t\techo str_replace('current_page_parent','', wp_list_pages('sort_column=menu_order&title_li=&echo=0&link_before=&link_after=&depth=1'.$exclude));\n\t\t\t} else {\n\t\t\t\techo wp_list_pages('sort_column=menu_order&title_li=&echo=0&link_before=&link_after=&depth=1'.$exclude);\n\t\t\t}\n\t\t\n\t\t} else {\t\t\t\t\n\t\t\techo wp_list_pages('sort_column=menu_order&title_li=&echo=0&link_before=&link_after=&depth=1'.$exclude);\t\t\t\t\t\n\t\t}\n\t/* end */\n\techo minicard_menu_search_box();\n\techo '</ul>';\n}", "private function PH_PageMenu(){\n $site_menu = self::$xvi_api->GetSiteMenu();\n $page_menu = self::$xvi_api->GetPageMenu();\n \n $menu =\"\";\n foreach($site_menu as $menu_item=>$menu_path) {\n if (strcmp($menu_item,$page_menu[\"item\"])) { /*not selected menu item*/\n $menu .= \"<li><a href=\\\"\".$menu_path.\"\\\"<span></span>\".$menu_item.\"</a></li>\";\n } else { /* it is selected menu*/\n $menu .= \"<li><a class=\\\"sel\\\" href=\\\"\".$menu_path.\"\\\"<span></span>\".$menu_item.\"</a></li>\";\n }\n }\n return $menu;\n }", "private function _getNavigation()\r\n\t{\r\n\t\tglobal $action, $whmcs;\r\n\t\t\r\n\t\t$uri\t= DunUri :: getInstance('SERVER', true );\r\n\t\t$uri->delVar( 'task' );\r\n\t\t$uri->delVar( 'submit' );\r\n\t\t\r\n\t\t$html\t= '<ul class=\"nav nav-pills\">';\r\n\t\t\r\n\t\tforeach( array( 'themes', 'config', 'license' ) as $item ) {\r\n\t\t\t\r\n\t\t\tif ( $item == $action ) {\r\n\t\t\t\tif ( array_key_exists( 'task', $whmcs->input ) ) {\r\n\t\t\t\t\tif ( $whmcs->input['task'] != 'edittheme' ) {\r\n\t\t\t\t\t\t$html .= '<li class=\"active\"><a href=\"#\">' . t( 'themer.admin.module.navbar.' . $item ) . '</a></li>';\r\n\t\t\t\t\t\tcontinue;\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\t$html .= '<li class=\"active\"><a href=\"#\">' . t( 'themer.admin.module.navbar.' . $item ) . '</a></li>';\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$uri->setVar( 'action', $item );\r\n\t\t\t$html .= '<li><a href=\"' . $uri->toString() . '\">' . t( 'themer.admin.module.navbar.' . $item ) . '</a></li>';\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$html\t.= '</ul>';\r\n\t\treturn $html;\r\n\t}", "protected function prepareMenuItemsForRootlineMenu() {}", "private function left_menu()\n\t\t{\n\t\t\t $page_name = functions::get_page_name();\n\t\t\techo '\n\t\t\t\t<ul>\n\t\t\t\t\t';\n\t\t\t\t\t\n\t\t\t\t\t$content_module = array('manage_content.php', 'register_content.php', 'manage_page_content.php', 'register_page_content.php','manage_content_option.php', 'register_content_option.php'\n\t\t\t\t\t,'manage_category.php', 'register_category.php');\n\t\t\t\t\tif(in_array($page_name, $content_module))\n\t\t\t\t\t{\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t<img src=\"images/icon-content.png\" alt=\"Manage CMS\" title=\"Manage CMS\" width=\"24\" height=\"24\" />\n\t\t\t\t\t\t<a href=\"manage_content.php\">CMS</a>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"manage_page_content.php\">Page Content</a></li>\n\t\t\t\t\t\t<li><a href=\"manage_category.php\">Category</a></li>\n\t\t\t\t\t\t\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</li>';\n\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\techo '<li><img src=\"images/icon-content.png\" alt=\"Manage CMS\" title=\"Manage CMS\" width=\"24\" height=\"24\" /><a href=\"manage_content.php\" >CMS</a></li>';\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\techo '<li><img src=\"images/icon-member.png\" alt=\"Manage Member\" title=\"Manage Member\" width=\"24\" height=\"24\" /><a href=\"manage_member.php\" >Member</a></li>\n\t\t\t\t\t<!--<li><img src=\"images/icon-property.png\" alt=\"Manage Property Type\" title=\"Manage Property Type\" width=\"24\" height=\"24\" /><a href=\"manage_property_type.php\" >Property Type</a></li>-->\n\t\t\t\t\t\n\t\t\t\t\t<li><img src=\"images/icon-property.png\" alt=\"Manage Hotel\" title=\"Manage Hotel\" width=\"24\" height=\"24\" /><a href=\"manage_hotel.php\" >Hotel</a></li>\n\t\t\t\t\t<li><img src=\"images/icon-restaurant.jpg\" alt=\"Manage Restaurant\" title=\"Manage Restaurant\" width=\"24\" height=\"24\" /><a href=\"manage_restaurant.php\" >Restaurant</a></li>\n\t\t\t\t\t<li><img src=\"images/icon-venue.png\" alt=\"Manage Venue\" title=\"Manage Venue\" width=\"24\" height=\"24\" /><a href=\"manage_venue.php\" >Venue</a></li>\n\t\t\t\t\t';\n\t\t\t\t\t\t\n\t\techo '</ul>';\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t}" ]
[ "0.7171481", "0.6945307", "0.6945307", "0.6945307", "0.6945307", "0.6945307", "0.6945307", "0.6941667", "0.68168396", "0.6654495", "0.6566183", "0.64741063", "0.6412446", "0.63486564", "0.6347025", "0.6336897", "0.6327642", "0.6316865", "0.63029736", "0.6295385", "0.6288747", "0.62718564", "0.62628156", "0.62404364", "0.623628", "0.6234856", "0.6226689", "0.6222881", "0.6188968", "0.61811763", "0.61462814", "0.6137072", "0.61364913", "0.6133452", "0.6126374", "0.61229265", "0.6118891", "0.6110051", "0.6078023", "0.6059471", "0.6050774", "0.60500515", "0.60463166", "0.6041114", "0.6036486", "0.6030575", "0.6017212", "0.60168695", "0.60115945", "0.6010402", "0.59875673", "0.5983827", "0.59751993", "0.5972678", "0.5971099", "0.5971099", "0.5970674", "0.5962627", "0.59599864", "0.5953467", "0.59507257", "0.594439", "0.5944312", "0.59441537", "0.59429693", "0.59423417", "0.59400696", "0.5938865", "0.5937145", "0.59336853", "0.5924803", "0.5918149", "0.59062815", "0.59027755", "0.58963126", "0.5892029", "0.58916515", "0.58888626", "0.58885086", "0.58825433", "0.58818364", "0.58784676", "0.5877994", "0.58693147", "0.5861264", "0.5859722", "0.5850305", "0.5843639", "0.5843638", "0.5842278", "0.5841347", "0.5832284", "0.58269906", "0.5826722", "0.58261216", "0.5818302", "0.58169043", "0.5816289", "0.58162", "0.5811385" ]
0.74843824
0
returns a multidimensional array of year>count, year>months, month>count, month>titles, titles>id>title
function create_archive_nav_array() { $start_and_end_dates = blog_first_and_last_dates(); $start_date = $start_and_end_dates[0]; $end_date = $start_and_end_dates[1]; $start_year = strftime("%Y", strtotime($start_date)); $end_year = strftime("%Y", strtotime($end_date)); $titles_counts_array = array(); // for expand/collapse $now = my_time(); $now_year = date('Y', $now); $now_month= date('m', $now); // build the array for($y=$end_year;$y>=$start_year;$y--) { $num_rows_in_year = count(rtrv_titles($y)); if ($num_rows_in_year) { $titles_counts_array[$y] = array(); $titles_counts_array[$y]['count'] = $num_rows_in_year; for($m='12';$m>='1';$m--) { if ($m<='9') { $m = '0' . $m; } $ids_titles = rtrv_titles($y . '/' . $m); $num_rows_in_month = count($ids_titles); if ($num_rows_in_month) { $titles_counts_array[$y][$m] = array(); $titles_counts_array[$y][$m]['count'] = $num_rows_in_month; foreach($ids_titles as $id_title) { $id = $id_title[0]; $title = $id_title[1]; $titles_counts_array[$y][$m][$id] = array(); $titles_counts_array[$y][$m][$id]['title'] = $title; } } } } } return $titles_counts_array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getArchiveList()\n {\n $sql = \"SELECT LEFT(`published`, 7) AS `year_month`, COUNT(*) AS `count` FROM `blog_articles` WHERE `published` < NOW() GROUP BY `year_month` ASC\";\n $rows = $this->db->fetchAll($sql);\n\n $years = [];\n foreach ($rows as $row) {\n list($year, $month) = explode('-', $row->year_month);\n $time = strtotime($row->year_month.'-01 00:00:00');\n\n if (!isset($years[$year])) {\n $years[$year] = [ 'count' => 0, 'months' => [] ];\n }\n $years[$year]['count'] += (int)$row->count;\n $years[$year]['months'][$month] = [ 'count' => (int)$row->count, 'name' => strftime('%B', $time) ];\n }\n\n return $years;\n }", "function group_by_month($objects, $getter = 'getCreatedOn') {\n $months = array(\n 1 => lang('January'),\n 2 => lang('February'),\n 3 => lang('March'),\n 4 => lang('April'),\n 5 => lang('May'),\n 6 => lang('June'),\n 7 => lang('July'),\n 8 => lang('August'),\n 9 => lang('September'),\n 10 => lang('October'),\n 11 => lang('November'),\n 12 => lang('December')\n );\n\n $result = array();\n if(is_foreachable($objects)) {\n foreach($objects as $object) {\n $date = $object->$getter();\n\n $month_name = $months[$date->getMonth()];\n\n if(instance_of($date, 'DateValue')) {\n if(!isset($result[$date->getYear()])) {\n $result[$date->getYear()] = array();\n } // if\n\n if(!isset($result[$date->getYear()][$month_name])) {\n $result[$date->getYear()][$month_name] = array();\n } // if\n\n $result[$date->getYear()][$month_name][] = $object;\n } // if\n } // foreach\n } // if\n return $result;\n }", "public function FireStatisticalinYear($date){\n $month_array = array();\n $month = date('Y/m', strtotime($date));\n $month_array[0]['month'] = $month;\n $month_array[0]['count'] = $this->FireStatistical($month);\n for($i = 1; $i < 6; $i++){\n $month = date('Y/m', strtotime($date.' -'.$i.' month'));\n $month_array[$i]['month'] = $month;\n $month_array[$i]['count'] = $this->FireStatistical($month);\n }\n return $month_array;\n }", "public function OrderMonth_Year()\n {\n\t $arrMonth=array();\n\t $year=$this->OrderYear();\n\t foreach($year as $a)\n\t {\n\t\t $arr=array();\n\t\t $select= \"SELECT DISTINCT(month(orderDate)) As orderMonth FROM orders \n\t\t \t\t\twhere year(orderDate)=\".$a->getorderYear(). \" order by orderDate\";\n\t\t $result=$this->executeSelect($select);\n\t\t while($row=mysqli_fetch_array($result))\n\t\t {\n\t\t\t $month=new ordersDto();\n\t\t\t $month->setorderMonth($row['orderMonth']);\n\t\t\t $arr[]=$month;\n\t\t }\n\t\t $this->DisConnectDB();\n\t\t $arrMonth[]=$arr;\n\t }\n/*\t\tfor( $i=0; $i<count($arrMonth); $i++)\n\t\t for($j=0; $j<count($arrMonth[$i]); $j++)\n\t\t\t echo $arrMonth[$i][$j]->getorderMonth();\n\t Thử kiểm tra xem có lấy đc các tháng trong các năm hay k -->>Lấy được\n*/\t\t\n\treturn $arrMonth;\n }", "function _getNbByMonth($year, $sql, $format=0)\r\n\t{\r\n\t\tglobal $langs;\r\n\r\n\t\t$result=array();\r\n\t\t$res=array();\r\n\r\n\t\tdol_syslog(get_class($this).'::'.__FUNCTION__.\"\", LOG_DEBUG);\r\n\t\t$resql=$this->db->query($sql);\r\n\t\tif ($resql)\r\n\t\t{\r\n\t\t\t$num = $this->db->num_rows($resql);\r\n\t\t\t$i = 0; $j = 0;\r\n\t\t\twhile ($i < $num)\r\n\t\t\t{\r\n\t\t\t\t$row = $this->db->fetch_row($resql);\r\n\t\t\t\t$j = $row[0] * 1;\r\n\t\t\t\t$result[$j] = $row[1];\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\t$this->db->free($resql);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdol_print_error($this->db);\r\n\t\t}\r\n\r\n\t\tfor ($i = 1 ; $i < 13 ; $i++)\r\n\t\t{\r\n\t\t\t$res[$i] = (isset($result[$i])?$result[$i]:0);\r\n\t\t}\r\n\r\n\t\t$data = array();\r\n\r\n\t\tfor ($i = 1 ; $i < 13 ; $i++)\r\n\t\t{\r\n\t\t\t$month='unknown';\r\n\t\t\tif ($format == 0) $month=$langs->transnoentitiesnoconv('MonthShort'.sprintf(\"%02d\", $i));\r\n\t\t\telseif ($format == 1) $month=$i;\r\n\t\t\telseif ($format == 2) $month=$langs->transnoentitiesnoconv('MonthVeryShort'.sprintf(\"%02d\", $i));\r\n\t\t\t//$month=dol_print_date(dol_mktime(12,0,0,$i,1,$year),($format?\"%m\":\"%b\"));\r\n\t\t\t//$month=dol_substr($month,0,3);\r\n\t\t\t$data[$i-1] = array($month, $res[$i]);\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "public static function archives()\n {\n return static::selectRaw(\"to_char(created_at, 'Month') as month, extract(year from created_at) as year, extract(month from created_at) as sort, count(*) as published\")\n ->groupBy('year', 'month', 'sort')\n ->orderBy('year', 'desc')\n ->orderBy('sort', 'desc')\n ->get()\n ->toArray();\n }", "public function getYears() {\r\n\t\t$year = array();\r\n\t\t$current_year = strftime(\"%Y\");\r\n\t\tfor($i = 2000; $i <= $current_year+1 && $y = strftime(\"%Y\", mktime(0,0,0,0,0,$i)); ++$i) {\r\n\t\t\t$year[$i] = array('id' => $i, 'name' => $y+1);\r\n\t\t}\r\n\t\treturn $year; //array\r\n\t}", "public function getYearValues() {\n\t return array (\n\t array (2012),\n\t array (900),\n\t array (2050),\n\t array ('2050'),\n\t array ('year')\n\t );\n }", "public static function archives()\n {\n return static::selectRaw('year(created_at) year, monthname(created_at) month, \n day(created_at) day, count(*) Published')\n ->groupBy('year','month','day')\n ->orderByRaw('min(created_at) desc')\n ->get()\n ->toArray();\n\n }", "public function getTotalMPerYear(){\n // FROM [dbo].[MDeviceProfile]\n // GROUP BY YEAR([CreatedAt])\n $result = [];\n $this->db->select(\"YEAR([CreatedAt]) as year, count(DeviceId) as count\");\n $this->db->from($this->TBL_MDEVICEPROFILE);\n $this->db->group_by('YEAR([CreatedAt])');\n $q = $this->db->get();\n return $q->result_array();\n }", "public function getMonths() {\r\n\t\t$month = array();\r\n\r\n\t\t$month[1] = array('id' => 1, 'name' => 'January');\r\n\t\t$month[2] = array('id' => 2, 'name' => 'February');\r\n\t\t$month[3] = array('id' => 3, 'name' => 'March');\r\n\t\t$month[4] = array('id' => 4, 'name' => 'April');\r\n\t\t$month[5] = array('id' => 5, 'name' => 'May');\r\n\t\t$month[6] = array('id' => 6, 'name' => 'June');\r\n\t\t$month[7] = array('id' => 7, 'name' => 'July');\r\n\t\t$month[8] = array('id' => 8, 'name' => 'August');\r\n\t\t$month[9] = array('id' => 9, 'name' => 'September');\r\n\t\t$month[10] = array('id' => 10, 'name' => 'October');\r\n\t\t$month[11] = array('id' => 11, 'name' => 'November');\r\n\t\t$month[12] = array('id' => 12, 'name' => 'December');\r\n\r\n\t\treturn $month; //array\r\n\t}", "public function gettotalStoriesPerMonth() {\n $googleVis = new Googlevis();\n $columns = $googleVis->createColumns(\n array('Year/Month' => 'string', 'No. of Stories' => 'number')\n );\n\n $estimate_data = $this->getEstimateDataByMonth(\n $this->easybacklogClient->getStoriesFromTheme()\n );\n\n $row = $rows = $row_data = $row_label = array();\n\n foreach($estimate_data AS $year => $month) {\n foreach($month AS $month_no => $stories) {\n foreach($stories AS $story) {\n $counter = (!isset($counter) ? 0 : $counter);\n $counter += $story;\n }\n $rows[] = $googleVis->createDataRow(\n $year .\"/\". $month_no,\n $counter\n );\n $counter = 0;\n }\n }\n return array('cols' => $columns, 'rows' => $rows);\n }", "protected function getMonthsArray()\n\t{\n\t\t$ma = array_pad([], 13, null);\n\t\tunset($ma[0]);\n\t\tforeach ($this->_attr[self::MONTH_OF_YEAR] as $m) {\n\t\t\tif (is_numeric($m['moy'])) {\n\t\t\t\tfor ($i = $m['moy']; $i <= $m['end'] && $i <= 12; $i += $m['period']) {\n\t\t\t\t\t$ma[$i] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $ma;\n\t}", "public function getArchives()\n {\n \n $qb = $this->createQueryBuilder('p')\n ->select('p.published_at as publishedat, YEAR(p.published_at) as year, MONTH(p.published_at) as month, COUNT(p.published_at) as post')\n ->groupBy('year')\n ->groupBy('month')\n ->orderBy('p.published_at', 'DESC');\n \n $query = $qb->getQuery();\n \n return $query->getResult();\n }", "public function monthly_sales_report()\n\t{\n\t\t$query1 = $this->db->query(\"\n\t\t\tSELECT \n\t\t\t\tdate,\n\t\t\t\tEXTRACT(MONTH FROM date) as month, \n\t\t\t\tCOUNT(invoice_id) as total\n\t\t\tFROM \n\t\t\t\tinvoice\n\t\t\tWHERE \n\t\t\t\tEXTRACT(YEAR FROM date) >= EXTRACT(YEAR FROM NOW())\n\t\t\tGROUP BY \n\t\t\t\tEXTRACT(YEAR_MONTH FROM date)\n\t\t\tORDER BY\n\t\t\t\tmonth ASC\n\t\t\")->result();\n\n\t\t$query2 = $this->db->query(\"\n\t\t\tSELECT \n\t\t\t\tpurchase_date,\n\t\t\t\tEXTRACT(MONTH FROM purchase_date) as month, \n\t\t\t\tCOUNT(purchase_id) as total_month\n\t\t\tFROM \n\t\t\t\tproduct_purchase\n\t\t\tWHERE \n\t\t\t\tEXTRACT(YEAR FROM purchase_date) >= EXTRACT(YEAR FROM NOW())\n\t\t\tGROUP BY \n\t\t\t\tEXTRACT(YEAR_MONTH FROM purchase_date)\n\t\t\tORDER BY\n\t\t\t\tmonth ASC\n\t\t\")->result();\n\n\t\treturn [$query1,$query2];\n\t}", "function sortReportByMonth($data) {\n\t\t$sortedLabels = array();\n\t\t$sortedValues = array();\n\t\t$sortedLinks = array();\n\t\t$years = array();\n\t\t$mOrder = array(\"January\" => 0,\"February\" => 1,\"March\" => 2, \"April\" => 3, \"May\" => 4, \"June\" => 5,\"July\" => 6,\"August\" => 7,\"September\" => 8,\"October\" => 9,\"November\" => 10,\"December\" => 11);\n\t\tforeach($data['labels'] as $key=>$label) {\n\t\t\tlist($month, $year) = explode(' ', $label);\n\t\t\tif(!empty($year)) {\n\t\t\t\t$indexes = $years[$year];\n\t\t\t\tif(empty($indexes)) {\n\t\t\t\t\t$indexes = array();\n\t\t\t\t\t$indexes[$mOrder[$month]] = $key;\n\t\t\t\t\t$years[$year] = $indexes; \n\t\t\t\t} else {\n\t\t\t\t\t$indexes[$mOrder[$month]] = $key;\n\t\t\t\t\t$years[$year] = $indexes;\n\t\t\t\t}\n\t\t\t} else if ($label == '--'){\n\t\t\t\t$indexes = $years['unknown'];\n\t\t\t\tif(empty($indexes)) {\n\t\t\t\t\t$indexes = array();\n\t\t\t\t\t$indexes[] = $key;\n\t\t\t\t\t$years['unknown'] = $indexes; \n\t\t\t\t} else {\n\t\t\t\t\tdie;\n\t\t\t\t\t$indexes[] = $key;\n\t\t\t\t\t$years['unknown'] = $indexes;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($years)) {\n\t\t\tksort($years);\n\t\t\tforeach ($years as $indexes) {\n\t\t\t\tksort($indexes); // to sort according to the index\n\t\t\t\tforeach($indexes as $index) {\n\t\t\t\t\t$sortedLabels[] = $data['labels'][$index];\n\t\t\t\t\t$sortedValues[] = $data['values'][$index];\n\t\t\t\t\t$sortedLinks[] = $data['links'][$index];\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t$indexes = array();\n\t\t\tforeach ($data['labels'] as $key=>$label) {\n\t\t\t\tif(isset($mOrder[$label])) {\n\t\t\t\t\t$indexes[$mOrder[$label]] = $key;\n\t\t\t\t} else {\n\t\t\t\t\t$indexes['unknown'] = $key;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tksort($indexes);\n\t\t\tforeach ($indexes as $index) {\n\t\t\t\t$sortedLabels[] = $data['labels'][$index];\n\t\t\t\t$sortedValues[] = $data['values'][$index];\n\t\t\t\t$sortedLinks[] = $data['links'][$index];\n\t\t\t}\n\t\t}\n\n\t\t$data['labels'] = $sortedLabels;\n\t\t$data['values'] = $sortedValues;\n\t\t$data['links'] = $sortedLinks;\n\n\t\treturn $data;\n\t}", "protected function getMesesArray(){\n\n $dt = new \\DateTime();\n $dt->modify('-13 months');\n for ($i = 0 ; $i < 12 ; $i ++){\n \t\t$dt->modify('+1 month');\n $meses[$i] = strftime(\"%b %Y\" , $dt->getTimeStamp());\n }\n return json_encode($meses);\n }", "function getMonthArray()\n{\n\t$arrMonths = array();\n\n\tfor ($i=1; $i<13; $i++)\n\t{\n\t\t$arrMonths[$i] = date('M', mktime(0, 0, 1, $i, 1));\n\t}\n\t\n\treturn $arrMonths;\n}", "public function getTotalSPerYear(){\n // FROM [mon].[ProjectDetail]\n // GROUP BY YEAR([CreatedAt])\n $result = [];\n $this->db->select(\"YEAR([CreatedAt]) as year, count(ApiKey) as count\");\n $this->db->from($this->TBL_SDEVICEPROFILE);\n $this->db->group_by('YEAR([CreatedAt])');\n $q = $this->db->get();\n return $q->result_array();\n }", "function _getAverageByMonth($year, $sql, $format=0)\r\n\t{\r\n\t\tglobal $langs;\r\n\r\n\t\t$result=array();\r\n\t\t$res=array();\r\n\r\n\t\tdol_syslog(get_class($this).'::'.__FUNCTION__.\"\", LOG_DEBUG);\r\n\t\t$resql=$this->db->query($sql);\r\n\t\tif ($resql)\r\n\t\t{\r\n\t\t\t$num = $this->db->num_rows($resql);\r\n\t\t\t$i = 0; $j = 0;\r\n\t\t\twhile ($i < $num)\r\n\t\t\t{\r\n\t\t \t\t$row = $this->db->fetch_row($resql);\r\n\t\t \t\t$j = $row[0] * 1;\r\n\t\t \t\t$result[$j] = $row[1];\r\n\t\t \t\t$i++;\r\n\t\t \t}\r\n\t\t \t$this->db->free($resql);\r\n\t\t}\r\n else dol_print_error($this->db);\r\n\r\n\t\tfor ($i = 1 ; $i < 13 ; $i++)\r\n\t\t{\r\n\t\t\t$res[$i] = (isset($result[$i])?$result[$i]:0);\r\n\t\t}\r\n\r\n\t\t$data = array();\r\n\r\n\t\tfor ($i = 1 ; $i < 13 ; $i++)\r\n\t\t{\r\n\t\t\t$month='unknown';\r\n\t\t\tif ($format == 0) $month=$langs->transnoentitiesnoconv('MonthShort'.sprintf(\"%02d\", $i));\r\n\t\t\telseif ($format == 1) $month=$i;\r\n\t\t\telseif ($format == 2) $month=$langs->transnoentitiesnoconv('MonthVeryShort'.sprintf(\"%02d\", $i));\r\n\t\t\t//$month=dol_print_date(dol_mktime(12,0,0,$i,1,$year),($format?\"%m\":\"%b\"));\r\n\t\t\t//$month=dol_substr($month,0,3);\r\n\t\t\t$data[$i-1] = array($month, $res[$i]);\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "public function getEstimateDataByMonth($stories) {\n\n $aggEstimates = array();\n foreach($stories AS $story) {\n\n // Grab the date of the story and put it into a \n // [year][month][estimate] = counter\n list($year, $month, $dayTime) = explode(\"-\", $story['created_at']);\n\n // Does the year exist?\n if (!isset($aggEstimates[$year])) \n $aggEstimates[$year] = null;\n\n // Does the month exist?\n if (!isset($aggEstimates[$year][$month])) \n $aggEstimates[$year][$month] = null;\n\n // Does the estimate exist?\n $est = round($story['score_50']);\n if (!isset($aggEstimates[$year][$month][$est])) \n $aggEstimates[$year][$month][$est] = 0;\n \n $aggEstimates[$year][$month][$est]++;\n \n }\n\n $new = $aggEstimates;\n $aggEstimates = array();\n foreach($new AS $year => $month) {\n ksort($month);\n foreach($month AS $monthNo => $estimates) {\n ksort($estimates);\n $aggEstimates[$year][$monthNo] = $estimates;\n }\n }\n ksort($aggEstimates);\n return $aggEstimates;\n }", "public function getMonths()\r\n\t{\r\n \t$months = array();\r\n\t\t\r\n\t\tfor($i = 1; $i <= 12; $i++)\r\n\t\t{\r\n\t\t\t$label = ($i < 10) ? (\"0\" . $i) : $i;\r\n\t\t\t\r\n\t\t\t$months[] = array(\"num\" => $i, \"label\" => $this->htmlEscape($label));\r\n\t\t}\r\n\t\t\r\n\t\treturn $months;\r\n\t}", "private function grab_data(){\n\t\t$y=0;\n\t\tfor($i=$this->startingmonth;$i>=0;$i--){\n\t\t\t$this->searchmonth = date(\"n\")-$i;\n\t\t\t$this->searchyear = date(\"Y\");\n\t\t\tif(0 >= $this->searchmonth){\n\t\t\t\twhile(0 >= $this->searchmonth){\n\t\t\t\t\t$this->searchmonth += 12;\n\t\t\t\t\t$this->searchyear--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->count_chrono_records();\n\t\t\t$this->monthlyrecordvolume[$i] = intval($this->volume_of_records_in_timerange);\n\t\t\tif(0==$this->max_month_value or $this->monthlyrecordvolume[$i] > $this->max_month_value){\n\t\t\t\t$this->max_month_value = $this->monthlyrecordvolume[$i];\n\t\t\t}\n\t\t\t$this->monthaggregator += $this->monthlyrecordvolume[$i];\n\t\t\t\n\t\t\t$this->count_months_recorded_this_year++;\n\t\t\tif(12 == $this->searchmonth or 0 == $i ){\n\t\t\t\t$this->ave_this_year[$y]['volume'] = intval($this->monthaggregator / $this->count_months_recorded_this_year);\n\t\t\t\t$this->ave_this_year[$y]['month'] = $i;\n\t\t\t\t$this->ave_this_year[$y]['year'] = $this->searchyear;\n\t\t\t\t$this->monthaggregator = 0;\n\t\t\t\t$this->count_months_recorded_this_year = 0;\n\t\t\t\t$y++;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "function _getAmountByMonth($year, $sql, $format=0)\r\n\t{\r\n\t\tglobal $langs;\r\n\r\n\t\t$result=array();\r\n\t\t$res=array();\r\n\r\n\t\tdol_syslog(get_class($this).'::'.__FUNCTION__.\"\", LOG_DEBUG);\r\n\r\n\t\t$resql=$this->db->query($sql);\r\n\t\tif ($resql)\r\n\t\t{\r\n\t\t\t$num = $this->db->num_rows($resql);\r\n\t\t\t$i = 0;\r\n\t\t\twhile ($i < $num)\r\n\t\t \t{\r\n\t\t \t\t$row = $this->db->fetch_row($resql);\r\n\t\t \t\t$j = $row[0] * 1;\r\n\t\t \t\t$result[$j] = $row[1];\r\n\t\t \t\t$i++;\r\n\t\t \t}\r\n\t\t \t$this->db->free($resql);\r\n\t\t}\r\n else dol_print_error($this->db);\r\n\r\n\t\tfor ($i = 1 ; $i < 13 ; $i++)\r\n\t\t{\r\n\t\t\t$res[$i] = (int) round((isset($result[$i])?$result[$i]:0));\r\n\t\t}\r\n\r\n\t\t$data = array();\r\n\r\n\t\tfor ($i = 1 ; $i < 13 ; $i++)\r\n\t\t{\r\n\t\t\t$month='unknown';\r\n\t\t\tif ($format == 0) $month=$langs->transnoentitiesnoconv('MonthShort'.sprintf(\"%02d\", $i));\r\n\t\t\telseif ($format == 1) $month=$i;\r\n\t\t\telseif ($format == 2) $month=$langs->transnoentitiesnoconv('MonthVeryShort'.sprintf(\"%02d\", $i));\r\n\t\t\t//$month=dol_print_date(dol_mktime(12,0,0,$i,1,$year),($format?\"%m\":\"%b\"));\r\n\t\t\t//$month=dol_substr($month,0,3);\r\n\t\t\t$data[$i-1] = array($month, $res[$i]);\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "public function categories()\n {\n $catsArray = [];\n $countCat = [];\n $lastMonCounts = [];\n $currentMonCounts = [];\n $countCatNew = [];\n $currentMonth = date('F');\n $lastMonth = Date(\"F\", strtotime(\"first day of last month\"));\n // die(Date(\"F\", strtotime(\"first day of next month\")));\n $categories = $this->notesModel->getCategories();\n\n foreach ($categories as $key) {\n array_push($catsArray, $key->category);\n $lastMonResult = json_decode(json_encode($this->notesModel->getMonthlyCounts($key->category, $lastMonth)), true);\n $curMonResult = json_decode(json_encode($this->notesModel->getMonthlyCounts($key->category, $currentMonth)), true);\n array_push($countCat, $this->notesModel->getCategoryCount($key->category));\n array_push($lastMonCounts, $lastMonResult['monthly_counts']);\n array_push($currentMonCounts, $curMonResult['monthly_counts']);\n };\n foreach ($countCat as $key) {\n array_push($countCatNew, $key->no_of_notes);\n }\n function strToNum($value)\n {\n return empty($value) ? 0 : intval($value);\n }\n $lastCountsNew = array_map('strToNum', $lastMonCounts);\n $curCountsNew = array_map('strToNum', $currentMonCounts);\n\n $data = [\n 'categories' => $catsArray,\n 'countCat' => $countCatNew,\n 'lastMonCounts' => $lastCountsNew,\n 'currentMonCounts' => $curCountsNew,\n ];\n // die(print_r($data['categories'][0]->category));\n echo json_encode($data);\n }", "function getreportYearfn($year)\n\t{\n\t\t$customerid=\"SELECT count(customer_id) as cou,month from customer_general_detail where year = '$year' GROUP BY month\";\n\t\t$customeriddata = $this->get_results($customerid);\n\t\treturn $customeriddata;\n\t}", "function get_years_to_search() {\n global $DB;\n $sql = \"SELECT date AS fecha FROM {report_user_statistics};\";\n $dates = $DB->get_records_sql($sql);\n $result = array();\n foreach ($dates as $date) {\n $fecha = new DateTime(\"@$date->fecha\");\n $result[$fecha->format('Y')] = $fecha->format('Y');\n }\n return $result;\n}", "public function getMonthlyViewsCount(?int $year = null) : array {\n\n $binds = [];\n $sql = 'SELECT \n p.profile_id,\n p.profile_name, \n YEAR(v.date) AS year, \n MONTH(v.date) AS month, \n SUM(v.views) AS sum_views\n FROM \n profiles p\n LEFT JOIN \n views v ON v.profile_id = p.profile_id';\n\n if ($year != null) {\n $sql .= ' WHERE YEAR(v.date) = :year';\n $binds['year'] = $year;\n }\n\n $sql .= '\n GROUP BY \n p.profile_id, p.profile_name, year, month\n ORDER BY \n p.profile_name, year, month';\n\n $stmt = $this->db->prepare($sql);\n $stmt->execute($binds);\n return $stmt->fetchAll();\n\n }", "function get_month_to_search() {\n global $DB;\n $sql = \"SELECT date AS fecha FROM {report_user_statistics};\";\n $dates = $DB->get_records_sql($sql);\n $result = array();\n foreach ($dates as $date) {\n $fecha = new DateTime(\"@$date->fecha\");\n $result[$fecha->format('m')] = month_converter($fecha->format('m'));\n }\n return $result;\n}", "public function getYears()\r\n\t{\r\n \t$years = array();\r\n\t\t\r\n\t\t$initYear = (int) date(\"Y\");\r\n\t\t\r\n\t\tfor($i = $initYear; $i <= $initYear + 10; $i++)\r\n\t\t{\r\n\t\t\t$years[] = array(\"num\" => $i, \"label\" => $i);\r\n\t\t}\r\n\t\t\r\n\t\treturn $years;\r\n\t}", "function getMonthLabels() {\n\t\treturn array('count_jan', 'count_feb', 'count_mar', 'count_apr', 'count_may', 'count_jun', 'count_jul', 'count_aug', 'count_sep', 'count_oct', 'count_nov', 'count_dec');\n\t}", "public static function getMonths($from, $to){\n\t\t$today = \"'\".date(\"Y-m-d\").\"'\";\n\t\t$year = date('Y');\n\t\t$tests = Test::select('time_created')->distinct();\n\n\t\tif(strtotime($from)===strtotime($today)){\n\t\t\t$tests = $tests->where('time_created', 'LIKE', $year.'%');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$toPlusOne = date_add(new DateTime($to), date_interval_create_from_date_string('1 day'));\n\t\t\t$tests = $tests->whereBetween('time_created', array($from, $toPlusOne));\n\t\t}\n\n\t\t$allDates = $tests->lists('time_created');\n\t\tasort($allDates);\n\t\t$yearMonth = function($value){return strtotime(substr($value, 0, 7));};\n\t\t$allDates = array_map($yearMonth, $allDates);\n\t\t$allMonths = array_unique($allDates);\n\t\t$dates = array();\n\n\t\tforeach ($allMonths as $date) {\n\t\t\t$dateInfo = getdate($date);\n\t\t\t$dates[] = array('months' => $dateInfo['mon'], 'label' => substr($dateInfo['month'], 0, 3),\n\t\t\t\t'annum' => $dateInfo['year']);\n\t\t}\n\n\t\treturn json_encode($dates);\n\t}", "public function Months() {\r\n// $months = array(1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');\r\n $months = array(1 => 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');\r\n return $months;\r\n }", "public function monthlyViews()\n {\n // Group and map views to a collection of totals\n return $this->views\n ->groupBy(function($view) {\n return $view->created_at->format('m/y');\n })\n ->map(function ($views) {\n $view = $views->first();\n\n return collect([\n 'id' => $view->created_at->format('m-y-').\n $view->episode_uuid,\n 'episode_uuid' => $view->episode_uuid,\n 'total' => $views->count(),\n 'label' => $view->created_at->format('m/y'),\n ]);\n });\n }", "private function setMonthNames()\n\t{\n\t\t$range = range(1,12);\n\t\t$return = array();\n\t\tforeach($range AS $key => $monthNum)\n\t\t{\n\t\t $fmt = datefmt_create ($this->locale, null, null, null, IntlDateFormatter::GREGORIAN, 'MMMM');\n\t\t\t$return[$monthNum] = datefmt_format( $fmt , mktime(12,0,0,$monthNum,1,date('Y')));\n\t\t}\n\n\t\treturn $return;\n\t}", "public function getMonthlyHits() {\n\t\t$sql = 'SELECT *, ROUND((counter / (SELECT sum(counter) FROM analytics WHERE insertdate BETWEEN DATE_SUB(NOW(),INTERVAL 1 MONTH) AND NOW() ORDER BY counter DESC LIMIT 10)*100),2) as hits FROM analytics WHERE insertdate BETWEEN DATE_SUB(NOW(),INTERVAL 1 MONTH) AND NOW() GROUP BY pagename ORDER BY counter DESC LIMIT 10';\n\t\n\t\t//execute the query\n\t\t$rows = $this->db->clean($sql);\n\t\t\n\t\t$maxwidth = 173;\n\t\t$max = $rows[0]['hits'];\n\t\t\n\t\tforeach($rows as $key => $row) {\n\t\t\n\t\t\t$rows[$key]['maxwidth'] = round($maxwidth * ($row['hits']/$max));\n\t\t}\n\t\t\n\t\t//return the results\n\t\treturn array('month' => $rows);\n\t}", "function getMonthPixels( &$data ) {\n\t\t$month_total_edits = array();\n\t\tforeach( $data as $year => $tmp ) {\n\t\t\tforeach( $tmp['months'] as $month => $newdata ) {\n\t\t\t\t$month_total_edits[ $month.'/'.$year ] = $newdata['all'];\n\t\t\t}\n\t\t}\n\t\n\t\t$max_width = max( $month_total_edits );\n\t\t\n\t\t$pixels = array();\n\t\tforeach( $data as $year => $tmp ) {\n\t\t\tforeach( $tmp['months'] as $month => $newdata ) {\n\t\t\t\tif( $tmp['all'] == 0 ) $pixels[$year][$month] = array();\n\t\t\t\t\n\t\t\t\t$processarray = array( 'all' => $newdata['all'], 'anon' => $newdata['anon'], 'minor' => $newdata['minor'] );\n\t\t\t\t\n\t\t\t\tasort( $processarray );\n\t\t\t\t\n\t\t\t\tforeach( $processarray as $type => $count ) {\n\t\t\t\t\t$newtmp = ceil( ( 500 * ( $count ) / $max_width ) );\n\t\t\t\t\t$pixels[$year][$month][$type] = $newtmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $pixels;\n\t}", "function get_work_comment_month_count($from=null, $to=null)\r\n {\r\n if($to ==null) $to =date('Y-m-d');\r\n if($from==null) $from=date('Y-m-01', strtotime(\"-3 month\", strtotime($to)));\r\n \r\n // \"SELECT date, comment_count, work_count FROM (SELECT DATE_FORMAT(regdate, '%Y-%m') as date, count(id) as comment_count FROM work_comments group by date) comments left join (SELECT DATE_FORMAT(regdate, '%Y-%m') as work_date, count(id) as work_count FROM works group by work_date) works on comments.date=works.work_date;\"\r\n //total works comment count by month\r\n $sql = \"SELECT date, comment_count, work_count \r\n FROM (SELECT DATE_FORMAT(regdate, '%Y년 %m월') as date, count(id) as comment_count \r\n FROM work_comments WHERE regdate between ? and ? group by date) comments \r\n left join (SELECT DATE_FORMAT(regdate, '%Y년 %m월') as work_date, count(work_id) as work_count \r\n FROM works WHERE regdate between ? and ? group by work_date) works on comments.date=works.work_date;\"; \r\n $query = $this->db->query($sql, array($from, $to, $from, $to));\r\n \r\n $output = array(array('날짜' , '총 댓글수', '평균 댓글수', '월간 업로드'));\r\n $i=1;\r\n foreach ($query->result() as $row)\r\n {\r\n $output[$i] = array($row->date, round($row->comment_count,0), round($row->comment_count/$row->work_count,2), round($row->work_count,0));\r\n $i++;\r\n }\r\n\r\n return $output;\r\n /*\r\n //---- dummy data\r\n $monthNum = floor((strtotime($to)-strtotime($from))/86400/30)+1;\r\n $output = array(array('날짜' , '총 댓글수', '평균 댓글수'));\r\n if($monthNum>0){\r\n for($i=1;$i<=$monthNum;$i++){\r\n $date = date(\"Y년 m월\",strtotime(($i-$monthNum).\" month\", strtotime($to)));\r\n $num1 = rand(2000, 7000);\r\n $num2 = $num1/rand(1, $num1);\r\n $output[$i] = array($date, $num1, $num2);\r\n }\r\n }\r\n return $output;*/\r\n }", "function getYearPixels( &$data ) {\n\t\t$month_total_edits = array();\n\t\tforeach( $data as $year => $tmp ) {\n\t\t\t$month_total_edits[$year] = $tmp['all'];\n\t\t}\n\t\t\n\t\t$max_width = max( $month_total_edits );\n\t\t\n\t\t$pixels = array();\n\t\tforeach( $data as $year => $tmp ) {\n\t\t\tif( $tmp['all'] == 0 ) $pixels[$year] = array();\n\t\t\t\n\t\t\t$processarray = array( 'all' => $tmp['all'], 'anon' => $tmp['anon'], 'minor' => $tmp['minor'] );\n\t\t\t\n\t\t\tasort( $processarray );\n\t\t\t\n\t\t\tforeach( $processarray as $type => $count ) {\n\t\t\t\t$newtmp = ceil( 500 * ( $count ) / $max_width );\n\t\t\t\t$pixels[$year][$type] = $newtmp;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $pixels;\n\t}", "function get_work_view_month_count($from=null, $to=null)\r\n {\r\n if($to ==null) $to =date('Y-m-d');\r\n if($from==null) $from=date('Y-m-01', strtotime(\"-3 month\", strtotime($to)));\r\n \r\n //total works note count by month\r\n $sql = \"SELECT date, view_count, work_count \r\n FROM (SELECT DATE_FORMAT(regdate, '%Y년 %m월') as date, count(id) as view_count \r\n FROM log_work_view WHERE regdate between ? and ? group by date) views \r\n left join (SELECT DATE_FORMAT(regdate, '%Y년 %m월') as work_date, count(work_id) as work_count \r\n FROM works WHERE regdate between ? and ? group by work_date) works on views.date=works.work_date;\"; \r\n $query = $this->db->query($sql, array($from, $to, $from, $to));\r\n \r\n $output = array(array('날짜' , '총 조회수', '평균 조회수', '월간 업로드'));\r\n $i=1;\r\n foreach ($query->result() as $row)\r\n {\r\n $output[$i] = array($row->date, round($row->view_count/100,3), round($row->view_count/$row->work_count,2), round($row->work_count,0));\r\n $i++;\r\n }\r\n\r\n return $output;\r\n /*\r\n //---- dummy data\r\n $monthNum = floor((strtotime($to)-strtotime($from))/86400/30)+1;\r\n $output = array(array('날짜' , '총 조회수', '평균 조회수'));\r\n if($monthNum>0){\r\n for($i=1;$i<=$monthNum;$i++){\r\n $date = date(\"Y년 m월\",strtotime(($i-$monthNum).\" month\", strtotime($to)));\r\n $num1 = rand(2000, 7000);\r\n $num2 = $num1/rand(1, $num1);\r\n $output[$i] = array($date, $num1, $num2);\r\n }\r\n }\r\n return $output;*/\r\n }", "public static function getLatestYearMonths()\n\t{\n\t\t$i = 0;\n\t\twhile ( $i <= 12 )\n\t\t{\n\t\t\t$dates[] = date( 'Y-m-d', strtotime( ' '. date( 'F Y', strtotime( '-' . $i . ' month' ) ) ) );\n\t\t\t$i++;\n\t\t}\n\n\t\treturn $dates;\n\t}", "function faculty_get_publications( $metaArray ) {\n $publicationArray = [];\n\n if ( isset( $metaArray['publications'] ) && $metaArray['publications'][0] > 0 ) {\n for ( $i=0; $i < $metaArray['publications'][0]; $i++ ) { \n $publication = [\n 'citation' => $metaArray['publications_'.$i.'_citation'][0],\n 'year' => $metaArray['publications_'.$i.'_year'][0],\n 'link' => $metaArray['publications_'.$i.'_link'][0],\n ];\n\n array_push( $publicationArray, $publication);\n }\n }\n\n return $publicationArray;\n}", "public function get_months($months) {\n $cnt = count($months);\n $month_data = array();\n for ($a12 = 0; $a12 < $cnt; $a12++) {\n $month = $months[$a12];\n $month_data[] = $months[$a12];\n $a12 = ($a12 * 1 + 3);\n }\n return $month_data;\n }", "public function findYearsByFilter($filter) {\n $filter2 = clone $filter;\n $filter2->year = null;\n $articles = $this->findByFilter($filter2);\n $yearArray = array();\n foreach($articles as $article) {\n $date = $article->getArticleDate();\n $year = $date->format('Y');\n if(!isset($yearArray[$year])) {\n $yearArray[$year] = array('count' => 0);\n }\n if(!isset($yearArray[$year]['value'])) {\n $yearFilter = clone $filter2;\n $yearFilter->year = $year;\n $yearArray[$year]['value'] = intval($year);\n $yearArray[$year]['searchFilter'] = $yearFilter;\n }\n $yearArray[$year]['count']++;\n }\n return $yearArray;\n }", "public static function getMonthYear() {\n $monthYear = [];\n $allMonth = config('content_month_mapping.website_map');\n $currDate = date('Y-m-d');\n $aCurrDate = explode(\"-\", $currDate);\n $monthYear['future'][$aCurrDate[0].'|'.$aCurrDate[1]] = $allMonth[$aCurrDate[1]];\n for ($i = 1; $i < config('content_month_mapping.future_months'); $i++) {\n $futureDate = date(\"Y-m-d\", strtotime(date('Y-m-01') . \" +$i months\"));\n $date = explode(\"-\", $futureDate);\n $monthYear['future'][$date[0].'|'.$date[1]] = $allMonth[$date[1]];\n }\n for ($i = 1; $i <= config('content_month_mapping.past_months'); $i++) {\n $pastdate = date(\"Y-m-d\", strtotime(date('Y-m-d') . \" -$i months\"));\n $date = explode(\"-\", $pastdate);\n $monthYear['past'][$date[0].'|'.$date[1]] = $allMonth[$date[1]];\n }\n return $monthYear;\n }", "public function fetchTitlesByYear($year)\n\t{\n\t\treturn $this->dibi->fetchAll(\"\n\t\t\tSELECT\n\t\t\t\tid, title, volume, year \n\t\t\tFROM\n\t\t\t\tjournal\t\n\t\t\tWHERE\n\t\t\t\tyear = %i\n\t\t\tORDER BY\n\t\t\t\tyear DESC, volume DESC\t\n\t\t\", $year);\t\n\t}", "function get_imc($dataSet) {\n $index_imc = 2;\n $column_imc = $dataSet[0][$index_imc];\n $imc = array();\n for ($i = 1; $i < count($dataSet); $i++){\n $daily_imc = $dataSet[$i][$column_imc];\n $imc[] = array(\"date\" => $dataSet[$i][\"date\"],\n $dataSet[0][$index_imc] => $daily_imc);\n }\n return $imc;\n}", "public function findPoids(){\n // $year=2013;\n $qb = $this->createQueryBuilder('p');\n //$qb->select('COUNT(p)')\n // $qb->select('p.id,p.publicationDateStart');\n // ->where('YEAR(p.publicationDateStart) = :year');\n // $qb->setParameter('year', $year);\n $arr=array();\n // ->getSingleScalarResult();\n//print_r($qb->getQuery()->getResult());\n // $arr[\"$year\"]=0;\n \nforeach ($qb->getQuery()->getResult() as $d){\n \n // echo $d['publicationDateStart']->format('Y-m-d H:i:s') . \"<br>\";\n // echo $d['publicationDateStart']->format('Y') . \"<br>\";\n $year=$d['publicationDateStart']->format('Y');\n if (!(isset($arr[\"$year\"]))) $arr[\"$year\"]=0;\n $arr[\"$year\"]=$arr[\"$year\"]+1;\n \n}\n//print_r($arr);\n//exit(1);\nreturn ($arr);\n// return $query->getResult();\n\n }", "private function stringConversionMois($array_result)\n {\n $arr = array();\n foreach ($array_result as $key => $subArray) {\n $year = substr($subArray['mois'], 0, 4); // l'année etant les 4 premiers caractères de la chaîne\n $month = substr($subArray['mois'], 4, 6); // Le mois etant les 2 derniers\n $arr[$subArray['mois']] = $month . '/' . $year;\n }\n return $arr;\n }", "public static function getMonthDates()\n {\n $current_year = date('Y-01-01 00:00:00');\n $month_names = self::getMonthNames();\n $months = array();\n for ($i=0; $i<12; $i++) {\n $months[$i] = array( 'name'=>$month_names[$i],'date'=>date('Y-m-d 00:00:00',strtotime(\"$current_year + $i months\")));\n }\n\n return $months;\n }", "public static function getTitles( )\n {\n // get array with data. Through DAO this will be a bit of quicker.\n $query = 'SELECT id, title FROM ' . static::tableName();\n $records = Yii::app()\n ->db\n ->createCommand( $query )\n ->queryAll();\n\n // prepare result array\n $data = array();\n foreach( $records as $record ) {\n $data[ $record[ 'id' ] ] = $record[ 'title' ];\n }\n\n return $data;\n }", "public function getMonths();", "public function get_mining_month_nums(string $year, ?string $status = null): array {\r\n\t\t$yes_months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];\r\n\t\t$month_exp = \"FROM_UNIXTIME(`add_time`, '%m')\";\r\n\t\t$year_exp = \"FROM_UNIXTIME(`add_time`, '%Y')\";\r\n\t\tif(is_null($status)) $mining_datas = $this->field(['num'=>['COUNT(*)'], 'month'=>[$month_exp]])->table(['messages'])->where([$year_exp=>$year])->group(['month'])->order(['month'=>'asc'])->line('num', 'month');\r\n\t\telseif(self::IS_READ == $status) $mining_datas = $this->field(['num'=>['COUNT(*)'], 'month'=>[$month_exp]])->table(['messages'])->where([$year_exp=>$year, 'status'=>$status], ['eq', 'eq'])->group(['month'])->order(['month'=>'asc'])->line('num', 'month');\r\n\t\tforeach($yes_months as $month){\r\n\t\t\t$ends[$month] = $mining_datas[$month] ?? 0;\r\n\t\t}\r\n\t\treturn $ends;\r\n\t}", "protected function getYearsArray()\n\t{\n\t\t$ya = [];\n\t\tfor ($i = self::YEAR_MIN - 1; $i <= self::YEAR_MAX; $i++) {\n\t\t\t$ya['' . $i] = 0;\n\t\t}\n\t\tforeach ($this->_attr[self::YEAR] as $m) {\n\t\t\tif (is_numeric($m['year'])) {\n\t\t\t\tfor ($i = $m['year']; $i <= $m['end']; $i += $m['period']) {\n\t\t\t\t\t$ya[$i] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $ya;\n\t}", "function Monthly_Requests_Assignment($year) {\r\n $query2 = $this->db->query(\"SELECT DISTINCT(labref), MONTHNAME(date_issued) as month, YEAR(date_issued) as year,DATE_FORMAT(date_issued, '%m') as m,\r\n COUNT(id) as 'total'\r\n FROM sample_details\r\n WHERE DATE_FORMAT(date_issued, '%Y') = '$year' \r\n AND activity='Analysis'\r\n GROUP BY MONTHNAME(date_issued)\r\n ORDER BY MONTH(date_issued) ASC\");\r\n\r\n return $result = $query2->result();\r\n }", "function getYears() {\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT DISTINCT year FROM counter_monthly_log'\n\t\t);\n\t\t$years = array();\n\t\twhile (!$result->EOF) {\n\t\t\t$row = $result->GetRowAssoc(false);\n\t\t\t$years[] = $row['year'];\n\t\t\t$result->MoveNext();\n\t\t}\n\t\t$result->Close();\n\t\treturn $years;\n\t}", "public function transaksi()\n {\n $data = [];\n $date = Akad::selectRaw(\"DATE_FORMAT(tanggal_akad, '%Y-%m') as month\")->orderBy('tanggal_akad', 'desc')->distinct()->get();\n\n foreach ($date as $item) {\n $years = Carbon::parse($item->month)->format('Y');\n $months = Carbon::parse($item->month)->format('m');\n $count = $this->akad->whereYear('tanggal_akad', $years)->whereMonth('tanggal_akad', $months)->count();\n $data[$item->month] = $count;\n }\n\n return $data;\n }", "function Monthly_Requests($year) {\r\n $query2 = $this->db->query(\"SELECT MONTHNAME(designation_date) as month, YEAR(designation_date) as year, DATE_FORMAT(designation_date, '%m') as m,\r\n COUNT(id) as 'total'\r\n FROM request\r\n WHERE DATE_FORMAT(designation_date, '%Y') = '$year'\r\n GROUP BY MONTHNAME(designation_date)\r\n ORDER BY MONTH(designation_date) ASC\");\r\n\r\n return $result = $query2->result();\r\n }", "public static function getContentDateArray($model)\n {\n $contentDateArray = [];\n if ($model instanceof ContentModelInterface) {\n $publishedFrom = $model->getPublicatedFrom();\n if ($publishedFrom) {\n $data = \\Yii::$app->getFormatter()->asDate($publishedFrom, 'long');\n $arrayData = explode(' ', $data);\n $contentDateArray['day'] = $arrayData[0];\n $contentDateArray['month'] = $arrayData[1];\n $contentDateArray['year'] = $arrayData[2];\n }\n }\n return $contentDateArray;\n }", "public function getAllSortByDate()\n\t{\n\t\t$table = \"\";\n\t\t$table = $this->getTableName();\n\t\t$db_connection = get_db_connection();\n\t\t$dataArray = array();\n\t\t\n\t\t$query = \"select * from $table order by year_posted, month_posted\";\t\t\n\t\t$result = mysqli_query($db_connection, $query);\n\t\t$dataArray = $this->getData($result, $db_connection);\n\t\tmysqli_close($db_connection);\n\t\t\n\t\treturn $dataArray;\n\t}", "function get_work_note_month_count($from=null, $to=null)\r\n {\r\n if($to ==null) $to =date('Y-m-d');\r\n if($from==null) $from=date('Y-m-01', strtotime(\"-3 month\", strtotime($to)));\r\n \r\n //total works note count by month\r\n $sql = \"SELECT date, note_count, work_count \r\n FROM (SELECT DATE_FORMAT(regdate, '%Y년 %m월') as date, count(id) as note_count \r\n FROM log_work_note WHERE regdate between ? and ? group by date) notes \r\n left join (SELECT DATE_FORMAT(regdate, '%Y년 %m월') as work_date, count(work_id) as work_count \r\n FROM works WHERE regdate between ? and ? group by work_date) works on notes.date=works.work_date;\"; \r\n $query = $this->db->query($sql, array($from, $to, $from, $to));\r\n \r\n $output = array(array('날짜' , '총 추천수', '평균 추천수', '월간 업로드'));\r\n $i=1;\r\n foreach ($query->result() as $row)\r\n {\r\n $output[$i] = array($row->date, round($row->note_count,0), round($row->note_count/$row->work_count,2), round($row->work_count,0));\r\n $i++;\r\n }\r\n\r\n return $output;\r\n /*\r\n //---- dummy data\r\n $monthNum = floor((strtotime($to)-strtotime($from))/86400/30)+1;\r\n $output = array(array('날짜' , '총 추천수', '평균 추천수'));\r\n if($monthNum>0){\r\n for($i=1;$i<=$monthNum;$i++){\r\n $date = date(\"Y년 m월\",strtotime(($i-$monthNum).\" month\", strtotime($to)));\r\n $num1 = rand(2000, 7000);\r\n $num2 = $num1/rand(1, $num1);\r\n $output[$i] = array($date, $num1, $num2);\r\n }\r\n }\r\n return $output;*/\r\n }", "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 }", "function charts($data1) {\n\t $startDate = Carbon::now()->subDay(365);\n\t $endDate = Carbon::now();\n\t\n\t\t//THIS RETURNS THE 4 BOXES\n\t\t$month = $data->filter(function($data1){ return $data1->created_at->format('m-y') == date('m-y'); });\n\t\t$lastmonth = $data->filter(function($data1){ return $data1->created_at->format('m-y') == Carbon::now()->firstOfMonth()->subMonth()->format('m-y'); });\n\t\t$year = $data->filter(function($data1){ return $data1->created_at->format('y') == date('y'); });\n\t\t$lastyear = $data->filter(function($data1){ return $data1->created_at->format('y') == Carbon::now()->subYear()->format('y'); });\n\t\n\t}", "private function _split_month_data($start_time, $end_time) {\n\t\t$months = array();\n\t\t$date = $start_time;\n\t\twhile ($date < $end_time) {\n\t\t\t$end = strtotime('+1 month', $date);\n\t\t\t$months[$date] = array('start' => $date, 'end' => $end);\n\t\t\t$date = $end;\n\t\t}\n\t\treturn $months;\n\t}", "protected function getMonthValues()\r\n {\r\n\t $month = array();\r\n\t $month[1] = 'January';\r\n\t $month[2] = 'February';\r\n\t $month[3] = 'March';\r\n\t $month[4] = 'April';\r\n\t $month[5] = 'May';\r\n\t $month[6] = 'June';\r\n\t $month[7] = 'July';\r\n\t $month[8] = 'August';\r\n\t $month[9] = 'September';\r\n\t $month[10] = 'October';\r\n\t $month[11] = 'November';\r\n\t $month[12] = 'December';\t \r\n\t \r\n\t return $month;\r\n }", "public function fetchYears()\n\t{\n\t\treturn $this->dibi->fetchAll('\n\t\t\tSELECT\n\t\t\t\tyear\n\t\t\tFROM\n\t\t\t\tjournal\n\t\t\tGROUP BY\n\t\t\t\tyear\n\t\t\tORDER BY\n\t\t\t\tyear\t\t\n\t\t');\n\t\t\t\n\t}", "function get_flat_entries_records_for_year($entries, $year, $bundle)\n{\n\n $dates = get_year_dates($year);\n // Setting the start date is the first day of the selected year.\n $start_date = $dates['start_date'];\n // Setting the end date is the last day of the selected year.\n $end_date = $dates['end_date'];\n\n if (!empty($entries)) {\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'entry_month_record')\n ->entityCondition('bundle', $bundle)\n ->fieldCondition('field_entry', 'target_id', $entries, 'IN')\n ->fieldCondition('field_entry_date', 'value', $start_date, '>=')\n ->fieldCondition('field_entry_date', 'value', $end_date, '<=')\n ->fieldOrderBy('field_entry_date', 'value')\n ->addMetaData('account', user_load(1));\n $records = $query->execute();\n if (!empty($records)) {\n $records_ids = array_keys($records['entry_month_record']);\n // Adding each records for an entry in the array of entry id.\n }\n } else {\n return [];\n }\n\n return $records_ids;\n}", "function reload_all_counts(){\n\t$month = 9;\n\t$year = 2004;\n\n\t$endmonth = date('n');\n\t$endyear = date('Y');\n\n\twhile (($month < $endmonth and $year <= $endyear) or $year < $endyear){\n\t\treload_counts($month,$year);\n\t\t$month++;\n\t\tif ($month > 12){\n\t\t\t$month = 1;\n\t\t\t$year++;\n\t\t}\n\t}\n}", "function getDays_ym($month, $year){\n // Start of Month\n $start = new DateTime(\"{$year}-{$month}-01\");\n $month = $start->format('F');\n\n // Prepare results array\n $results = array();\n\n // While same month\n while($start->format('F') == $month){\n // Add to array\n $day = $start->format('D');\n $sort_date = $start->format('j');\n $date = $start->format('Y-m-d');\n $results[$date] = ['day' => $day,'sort_date' => $sort_date,'date' => $date];\n\n // Next Day\n $start->add(new DateInterval(\"P1D\"));\n }\n // Return results\n return $results;\n}", "public static function generate()\n {\n $data = array();\n foreach (College::all() as $college) {\n # $current = The current year\n # $should = How many actieve assessors there is needed at the end of the year\n # $count = Count of all the active assessors\n $data[$college->id] = array(\n 'current' => date('Y'),\n 'should' => 1 + round(Assessors::where('fk_college', $college->id)->where('status', 1)->count() / 100 * 110),\n 'count' => Assessors::where('fk_college', $college->id)->where('status', 1)->count()\n );\n }\n return $data;\n }", "function _getAllByYear($sql)\r\n\t{\r\n\t\t$result = array();\r\n\r\n\t\tdol_syslog(get_class($this).'::'.__FUNCTION__.\"\", LOG_DEBUG);\r\n\t\t$resql=$this->db->query($sql);\r\n\t\tif ($resql)\r\n\t\t{\r\n\t\t\t$num = $this->db->num_rows($resql);\r\n\t\t\t$i = 0;\r\n\t\t\twhile ($i < $num)\r\n\t\t\t{\r\n\t\t\t\t$row = $this->db->fetch_object($resql);\r\n\t\t\t\t$result[$i]['year'] = $row->year;\r\n\t\t\t\t$result[$i]['nb'] = $row->nb;\r\n\t\t\t\tif($i>0 && $row->nb>0) $result[$i-1]['nb_diff'] = ($result[$i-1]['nb'] - $row->nb) / $row->nb * 100;\r\n\t\t\t\t$result[$i]['total'] = $row->total;\r\n\t\t\t\tif($i>0 && $row->total>0) $result[$i-1]['total_diff'] = ($result[$i-1]['total'] - $row->total) / $row->total * 100;\r\n\t\t\t\t$result[$i]['avg'] = $row->avg;\r\n\t\t\t\tif($i>0 && $row->avg>0) $result[$i-1]['avg_diff'] = ($result[$i-1]['avg'] - $row->avg) / $row->avg * 100;\r\n\t\t\t\t// For some $sql only\r\n\t\t\t\tif (isset($row->weighted))\r\n\t\t\t\t{\r\n\t\t\t\t $result[$i]['weighted'] = $row->weighted;\r\n\t\t\t\t if($i>0 && $row->weighted>0) $result[$i-1]['avg_weighted'] = ($result[$i-1]['weighted'] - $row->weighted) / $row->weighted * 100;\r\n\t\t\t\t}\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\t$this->db->free($resql);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdol_print_error($this->db);\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "protected function getFormatMeses($meses){\n\n foreach ($meses as $mes) {\n $dt = \\DateTime::createFromFormat('Ym' , $mes);\n $array_meses[] = strftime(\"%b %Y\" , $dt->getTimeStamp()); \n }\n \n return $array_meses; \n }", "public function titleArray($names);", "public static function getArchiveYears($year) {\n $allMonth = config('content_month_mapping.website_map');\n $currDate = date('Y-m-d');\n $aCurrDate = explode(\"-\", $currDate);\n $currentMonth = $aCurrDate[1];\n $currentYear = $aCurrDate[0];\n if ($currentYear == $year) {\n $aLastMonth = array();\n foreach ($allMonth as $monthId => $monthName) {\n if ($currentMonth >= $monthId) {\n $aLastMonth[$monthId] = $monthName;\n }\n }\n } else {\n $aLastMonth = $allMonth;\n }\n\n return $aLastMonth;\n }", "function create_calendar_array($used_dates){\n\n\t//create array of dates for October with false attributes\n\t$october = array();\n\tfor($day=1;$day<=31;$day++){\n\t\t$october[$day]=FALSE;\n\t}\n\t\n\t//compare used dates to whole month\n\tforeach\t($used_dates as $post_id=>$date){\n\t\t$october[intval($date['day'])][]=$post_id;\n\t}\n\t\t\n\t\n\treturn $october;\n}", "public function findAllTimesArray()\n {\n\n $times = $this->entityManager\n ->createQueryBuilder()\n ->select('t, d.date')\n ->from('SiowebDummyBundle:Test', 'd')\n ->leftJoin('SiowebDummyBundle:Time', 't', 'WITH', 'd.id = t.dateid')\n ->where('d.id LIKE t.dateid')\n ->andWhere('t.count != 0')\n ->orderBy('t.time', 'ASC')\n ->getQuery()\n ->getResult();\n\n\n $avaibledates = array();\n\n $i = 0;\n foreach ($times as $time ) {\n $avaibledates[$i]['date'] = $time['date']->format('d.m.Y');\n $avaibledates[$i]['time'] = $time[0]->getTime();\n $avaibledates[$i]['id'] = $time[0]->getId();\n $avaibledates[$i]['description'] = $time[0]->getDescription();\n $i++;\n }\n\n #return $avaibledates;\n\n return $avaibledates;\n }", "function list_tahun()\n {\n $this->db->select('MONTH( created_date ) AS bulan,YEAR ( created_date ) AS tahun');\n $this->db->from('sektoral_nakes');\n $this->db->group_by(array('MONTH(created_date),YEAR(created_date)'));\n return $this->db->get()->result();\n }", "public function index()\n {\n\n \n $nbrecesariat = Accouchement::where('type','cesariat')->get() ->groupBy(function($date) {\n return Carbon::parse($date->created_at)->format('m'); // grouping by months\n });;\n $cesCount = [];\n $dataCesariat = [];\n\n foreach ($nbrecesariat as $key => $value) {\n $cesCount[(int)$key] = count($value);\n }\n\n for($i = 1; $i <= 12; $i++){\n if(!empty($cesCount[$i])){\n $dataCesariat[$i] = $cesCount[$i];\n }else{\n $dataCesariat[$i] = 0;\n }\n }\n\n\n $patients = Patient::select('created_at')\n ->get()\n ->groupBy(function($date) {\n return Carbon::parse($date->created_at)->format('m'); // grouping by months\n });\n $usermcount = [];\n $data3 = [];\n\n foreach ($patients as $key => $value) {\n $usermcount[(int)$key] = count($value);\n }\n\n for($i = 1; $i <= 12; $i++){\n if(!empty($usermcount[$i])){\n $data3[$i] = $usermcount[$i];\n }else{\n $data3[$i] = 0;\n }\n }\n\n\n $nouveauNee = NouveauNee::select('created_at')\n ->get()\n ->groupBy(function($date) {\n return Carbon::parse($date->created_at)->format('m'); // grouping by months\n });\n $nouveauNeeCount = [];\n $data1 = [];\n\n foreach ($nouveauNee as $key => $value) {\n $nouveauNeeCount[(int)$key] = count($value);\n }\n\n for($i = 1; $i <= 12; $i++){\n if(!empty($nouveauNeeCount[$i])){\n $data1[$i] = $nouveauNeeCount[$i];\n }else{\n $data1[$i] = 0;\n }\n }\n $pat = Patient::select('created_at')\n ->get()\n ->groupBy(function($date) {\n return Carbon::parse($date->created_at)->format('m'); // grouping by months\n });\n $patCount = [];\n $data4 = [];\n\n foreach ($pat as $key => $value) {\n $patCount[(int)$key] = count($value);\n }\n\n for($i = 1; $i <= 12; $i++){\n if(!empty($patCount[$i])){\n $data4[$i] = $patCount[$i];\n }else{\n $data4[$i] = 0;\n }\n }\n // 2\n $Accouchement = Accouchement::select('created_at')\n ->get()\n ->groupBy(function($date) {\n return Carbon::parse($date->created_at)->format('m'); // grouping by months\n });\n $nouveauAccouchementCount = [];\n $data2 = [];\n\n foreach ($Accouchement as $key => $value) {\n $AccouchementCount[(int)$key] = count($value);\n }\n\n for($i = 1; $i <= 12; $i++){\n if(!empty($AccouchementCount[$i])){\n $data2[$i] = $AccouchementCount[$i];\n }else{\n $data2[$i] = 0;\n }\n }\n\n\n\n if (request()->ajax())\n return response()->json([\n 'data4'=>$data4,\n 'data3'=>$data3,\n 'data1'=>$data1,\n 'data2'=>$data2,\n 'dataCesariat'=>$dataCesariat\n ]);\n\n return view('pages.dashboard',['willaya'=>Wilaya::paginate(4)]);\n // return view('pages.dashboard');\n }", "function getCategories() {\r\n\t\t$categories = $this->find('all');\r\n\t\t$result = array();\r\n\t\tforeach ($categories as $category) {\r\n\t\t\t$result[$category['NbCategory']['id']] = array(\r\n\t\t\t\t'probability' => $category['NbCategory']['probability'],\r\n\t\t\t\t'word_count' => $category['NbCategory']['word_count']\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "public function buysOfThisYear() {\n $query = \"SELECT COUNT(*) AS 'BUYS', MONTH(`BUYDATE`) AS 'MONTH' FROM `BUY` WHERE YEAR(BUYDATE) = \" .\n \"YEAR(NOW()) GROUP BY MONTH(`BUYDATE`)\";\n\n $result = parent::query($query);\n\n $toReturn = array();\n\n while ($row = $result->fetch_assoc()) {\n $toReturn[] = array(\n 'month' => $row['MONTH'],\n 'buys' => $row['BUYS']\n );\n }\n\n return $toReturn;\n }", "public function getCcMonths() {\n $data = Mage::app()->getLocale()->getTranslationList('month');\n foreach ($data as $key => $value) {\n $monthNum = ($key < 10) ? '0' . $key : $key;\n $data[$key] = $monthNum . ' - ' . $value;\n }\n\n $months = $this->getData('cc_months');\n if (is_null($months)) {\n $months[0] = $this->__('Month');\n $months = array_merge($months, $data);\n $this->setData('cc_months', $months);\n }\n\n\n return $months;\n }", "public function get_monthly_registrations($month, $year)\r\n {\r\n $this->db->select('COUNT(child_id) AS child_count'); \r\n \r\n $this->db->from($this->table);\r\n\r\n $date_from = $year . '-' . $month . '-01';\r\n $date_to = $year . '-' . $month . '-31';\r\n\r\n $this->db->where('date_registered >=', $date_from);\r\n $this->db->where('date_registered <=', $date_to);\r\n $this->db->where('removed', '0');\r\n \r\n $query = $this->db->get();\r\n\r\n $data['child_count'] = $query->row()->child_count;\r\n\r\n return $data;\r\n }", "function semanasMes($year,$month){\n \n # Obtenemos el ultimo dia del mes\n $ultimoDiaMes=date(\"t\",mktime(0,0,0,$month,1,$year)); \n # Obtenemos la semana del primer dia del mes\n $primeraSemana=date(\"W\",mktime(0,0,0,$month,1,$year)); \n # Obtenemos la semana del ultimo dia del mes\n $ultimaSemana=date(\"W\",mktime(0,0,0,$month,$ultimoDiaMes,$year)); \n # Devolvemos en un array los dos valores\n return array($primeraSemana,$ultimaSemana);\n \n}", "public function provideData()\n {\n if ($this->computedData !== false) {\n return $this->computedData;\n }\n\n $data = array();\n\n foreach ($this->dataProvider->provideData() as $post) {\n $date = \\DateTime::createFromFormat('U', 0);\n if ($post->date() !== \"\") {\n $date = \\DateTime::createFromFormat('U', $post->date());\n }\n\n $year = $date->format('Y');\n $month = $date->format('m');\n $keyDate = \\DateTime::createFromFormat('Y-m',$year.'-'.$month);\n\n if (!isset($data[$year])) {\n $data[$year] = array(\n 'posts' => array(),\n 'months' => array(),\n 'date' => $keyDate\n );\n }\n\n if (!isset($data[$year]['months'])) {\n $data[$year]['months'] = array('posts' => array(), 'date' => $keyDate);\n }\n\n $data[$year]['posts'][] = $post;\n $data[$year]['months'][$month]['posts'][] = $post;\n }\n\n $this->computedData = $data;\n\n return $data;\n }", "function _getCalendarData( $year, $month, $day){\t\t\t\t\n\t\t$rows = $this->_listIcalEventsByMonth( $year, $month);\n \t\t\n\t\t$rowcount = count( $rows );\t\t\n\t\t$data = array();\n\t\t$data['year'] = $year;\n\t\t$data['month'] = $month;\n\t\t$month = intval($month);\n\t\tif( $month <= '9' ) {\n\t\t\t$month = '0' . $month;\n\t\t}\n\t\t$data['startday'] = $startday = (int) EventBookingHelper::getConfigValue('calendar_start_date');\t\t\n\t\t// get days in week\n\t\t$data[\"daynames\"] = array();\n\t\tfor( $i = 0; $i < 7; $i++ ) {\n\t\t\t$data[\"daynames\"][$i] = $this->_getDayName(($i+$startday)%7, true );\n\t\t}\t\t\n\t\t$data[\"dates\"]=array();\t\t\n\t\t//Start days\n\t\t$start = (( date( 'w', mktime( 0, 0, 0, $month, 1, $year )) - $startday + 7 ) % 7 );\t\t\n\t\t// previous month\n\t\t$priorMonth = $month-1;\n\t\t$priorYear = $year;\t\t\n\t\tif ($priorMonth <= 0) {\n\t\t\t$priorMonth += 12;\n\t\t\t$priorYear -= 1;\n\t\t}\t\t\t\n\t\t$dayCount=0;\n\t\tfor( $a = $start; $a > 0; $a-- ){\n\t\t\t$data[\"dates\"][$dayCount] = array();\n\t\t\t$data[\"dates\"][$dayCount][\"monthType\"] = \"prior\";\n\t\t\t$data[\"dates\"][$dayCount][\"month\"] = $priorMonth;\n\t\t\t$data[\"dates\"][$dayCount][\"year\"] = $priorYear;\n\t\t\t$data[\"dates\"][$dayCount]['countDisplay'] = 0;\n\t\t\t$dayCount++;\n\t\t}\n\t\tsort($data[\"dates\"]);\n\t\t//Current month\n\t\t$end = date( 't', mktime( 0, 0, 0,( $month + 1 ), 0, $year ));\n\t\tfor( $d = 1; $d <= $end; $d++ ){\n\t\t\t$data[\"dates\"][$dayCount]=array();\n\t\t\t// utility field used to keep track of events displayed in a day!\n\t\t\t$data[\"dates\"][$dayCount]['countDisplay']=0;\n\t\t\t$data[\"dates\"][$dayCount][\"monthType\"]=\"current\";\n\t\t\t$data[\"dates\"][$dayCount][\"month\"]=$month;\n\t\t\t$data[\"dates\"][$dayCount][\"year\"]=$year;\t\t\n\t\t\t\t\t\t\n\t\t\t$t_datenow = $this->_getNow();\n\t\t\t$now_adjusted = $t_datenow->toUnix(true);\n\t\t\tif( $month == strftime( '%m', $now_adjusted)\n\t\t\t&& $year == strftime( '%Y', $now_adjusted)\n\t\t\t&& $d == strftime( '%d', $now_adjusted)) {\n\t\t\t\t$data[\"dates\"][$dayCount][\"today\"]=true;\n\t\t\t}else{\n\t\t\t\t$data[\"dates\"][$dayCount][\"today\"]=false;\n\t\t\t}\n\t\t\t$data[\"dates\"][$dayCount]['d']=$d;\t\t\t\t\t\t\n\t\t\t$data[\"dates\"][$dayCount]['events'] = array();\n\t\t\tif( $rowcount > 0 ){\n\t\t\t\tforeach ($rows as $row) {\n\t\t\t\t\t\t$date_of_event = explode('-',$row->event_date);\n\t\t\t\t\t\t$date_of_event = (int)$date_of_event[2];\t\t\t\t\t\t\n\t\t\t\t\t\tif ($d == $date_of_event ){\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$i=count($data[\"dates\"][$dayCount]['events']);\n\t\t\t\t\t\t\t$data[\"dates\"][$dayCount]['events'][$i] = $row;\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t$dayCount++;\n\t\t}\t\n \t\n\t\t// followmonth\n\t\t$days \t= ( 7 - date( 'w', mktime( 0, 0, 0, $month + 1, 1, $year )) + $startday ) %7;\n\t\t$d\t\t= 1;\n\t\t$followMonth = $month+1;\n\t\t$followYear = $year;\n\t\tif ($followMonth>12) {\n\t\t\t$followMonth-=12;\n\t\t\t$followYear+=1;\n\t\t}\n\t\t$data[\"followingMonth\"]=array();\n\t\tfor( $d = 1; $d <= $days; $d++ ) {\n\t\t\t$data[\"dates\"][$dayCount]=array();\n\t\t\t$data[\"dates\"][$dayCount][\"monthType\"]=\"following\";\n\t\t\t$data[\"dates\"][$dayCount][\"month\"]=$followMonth;\n\t\t\t$data[\"dates\"][$dayCount][\"year\"]=$followYear;\n\t\t\t$data[\"dates\"][$dayCount]['countDisplay']=0;\n\t\t\t$dayCount++;\n\t\t}\n\t\treturn $data;\t\t\n\t}", "protected function _getMonthArrayByLanguage(string $language = null) : array\n\t{\n\t\t$monthArray = [];\n\t\t$dater = new Dater();\n\t\t$articles = Db::forTablePrefix('articles')\n\t\t\t->whereLanguageIs($language)\n\t\t\t->whereNull('access')\n\t\t\t->where('status', 1)\n\t\t\t->orderByDesc('date')\n\t\t\t->findMany();\n\n\t\t/* process article */\n\n\t\tforeach ($articles as $value)\n\t\t{\n\t\t\t$dater->init($value->date);\n\t\t\t$dateKey = $dater->getDateTime()->format('Y-m');\n\t\t\t$monthArray[$dateKey][] = $value;\n\t\t}\n\t\treturn $monthArray;\n\t}", "public function run()\n {\n //\n $movies = [\n ['mov_id'=>901,'mov_title'=>'Vertigo','mov_year'=>1958,'mov_time'=>128,'mov_lang'=>'English','mov_dt_rel'=>'1958-08-24','mov_rel_country'=>'UK'],\n ['mov_id'=>902,'mov_title'=>'The Innocents','mov_year'=>1961,'mov_time'=>100,'mov_lang'=>'English','mov_dt_rel'=>'1962-02-19','mov_rel_country'=>'SW'],\n ['mov_id'=>903,'mov_title'=>'Lawrence of Arabia','mov_year'=>1962,'mov_time'=>216,'mov_lang'=>'English','mov_dt_rel'=>'1962-12-11','mov_rel_country'=>'UK'],\n ['mov_id'=>904,'mov_title'=>'The Deer Hunter','mov_year'=>1978,'mov_time'=>183,'mov_lang'=>'English','mov_dt_rel'=>'1979-03-08','mov_rel_country'=>'UK'],\n ['mov_id'=>905,'mov_title'=>'Amadeus','mov_year'=>1984,'mov_time'=>160,'mov_lang'=>'English','mov_dt_rel'=>'1985-01-07','mov_rel_country'=>'UK'],\n ['mov_id'=>906,'mov_title'=>'Blade Runner','mov_year'=>1982,'mov_time'=>117,'mov_lang'=>'English','mov_dt_rel'=>'1982-09-09','mov_rel_country'=>'UK'],\n ['mov_id'=>907,'mov_title'=>'Eyes Wide Shut','mov_year'=>1999,'mov_time'=>159,'mov_lang'=>'English','mov_dt_rel'=>null,'mov_rel_country'=>'UK'],\n ['mov_id'=>908,'mov_title'=>'The Usual Suspects','mov_year'=>1995,'mov_time'=>106,'mov_lang'=>'English','mov_dt_rel'=>'1995-08-25','mov_rel_country'=>'UK'],\n ['mov_id'=>909,'mov_title'=>'Chinatown','mov_year'=>1974,'mov_time'=>130,'mov_lang'=>'English','mov_dt_rel'=>'1974-08-09','mov_rel_country'=>'UK'],\n ['mov_id'=>910,'mov_title'=>'Boogie Nights','mov_year'=>1997,'mov_time'=>155,'mov_lang'=>'English','mov_dt_rel'=>'1998-02-16','mov_rel_country'=>'UK'],\n ['mov_id'=>911,'mov_title'=>'Annie Hall','mov_year'=>1977,'mov_time'=>93,'mov_lang'=>'English','mov_dt_rel'=>'1977-04-20','mov_rel_country'=>'USA'],\n ['mov_id'=>912,'mov_title'=>'Princess Mononoke','mov_year'=>1997,'mov_time'=>134,'mov_lang'=>'Japanese','mov_dt_rel'=>'2001-10-19','mov_rel_country'=>'UK'],\n ['mov_id'=>913,'mov_title'=>'The Shawshank Redemption','mov_year'=>1994,'mov_time'=>142,'mov_lang'=>'English','mov_dt_rel'=>'1995-02-17','mov_rel_country'=>'UK'],\n ['mov_id'=>914,'mov_title'=>'American Beauty','mov_year'=>1999,'mov_time'=>122,'mov_lang'=>'English','mov_dt_rel'=>null,'mov_rel_country'=>'UK'],\n ['mov_id'=>915,'mov_title'=>'Titanic','mov_year'=>1997,'mov_time'=>194,'mov_lang'=>'English','mov_dt_rel'=>'1998-01-23','mov_rel_country'=>'UK'],\n ['mov_id'=>916,'mov_title'=>'Good Will Hunting','mov_year'=>1997,'mov_time'=>126,'mov_lang'=>'English','mov_dt_rel'=>'1998-06-03','mov_rel_country'=>'UK'],\n ['mov_id'=>917,'mov_title'=>'Deliverance','mov_year'=>1972,'mov_time'=>109,'mov_lang'=>'English','mov_dt_rel'=>'1982-10-05','mov_rel_country'=>'UK'],\n ['mov_id'=>918,'mov_title'=>'Trainspotting','mov_year'=>1996,'mov_time'=>94,'mov_lang'=>'English','mov_dt_rel'=>'1996-02-23','mov_rel_country'=>'UK'],\n ['mov_id'=>919,'mov_title'=>'The Prestige','mov_year'=>2006,'mov_time'=>130,'mov_lang'=>'English','mov_dt_rel'=>'2006-11-10','mov_rel_country'=>'UK'],\n ['mov_id'=>920,'mov_title'=>'Donnie Darko','mov_year'=>2001,'mov_time'=>113,'mov_lang'=>'English','mov_dt_rel'=>null,'mov_rel_country'=>'UK'],\n ['mov_id'=>921,'mov_title'=>'Slumdog Millionaire','mov_year'=>2008,'mov_time'=>120,'mov_lang'=>'English','mov_dt_rel'=>'2009-01-09','mov_rel_country'=>'UK'],\n ['mov_id'=>922,'mov_title'=>'Aliens','mov_year'=>1986,'mov_time'=>137,'mov_lang'=>'English','mov_dt_rel'=>'1986-08-29','mov_rel_country'=>'UK'],\n ['mov_id'=>923,'mov_title'=>'Beyond the Sea','mov_year'=>2004,'mov_time'=>118,'mov_lang'=>'English','mov_dt_rel'=>'2004-11-26','mov_rel_country'=>'UK'],\n ['mov_id'=>924,'mov_title'=>'Avatar','mov_year'=>2009,'mov_time'=>162,'mov_lang'=>'English','mov_dt_rel'=>'2009-12-17','mov_rel_country'=>'UK'],\n ['mov_id'=>926,'mov_title'=>'Seven Samurai','mov_year'=>1954,'mov_time'=>207,'mov_lang'=>'Japanese','mov_dt_rel'=>'1954-04-26','mov_rel_country'=>'JP'],\n ['mov_id'=>927,'mov_title'=>'Spirited Away','mov_year'=>2001,'mov_time'=>125,'mov_lang'=>'Japanese','mov_dt_rel'=>'2003-09-12','mov_rel_country'=>'UK'],\n ['mov_id'=>928,'mov_title'=>'Back to the Future','mov_year'=>1985,'mov_time'=>116,'mov_lang'=>'English','mov_dt_rel'=>'1985-12-04','mov_rel_country'=>'UK'],\n ['mov_id'=>925,'mov_title'=>'Braveheart','mov_year'=>1995,'mov_time'=>178,'mov_lang'=>'English','mov_dt_rel'=>'1995-09-08','mov_rel_country'=>'UK'],\n ];\n\n DB::table('movie')->insert($movies);\n\n }", "protected function get_month_names() {\n\t\tglobal $wp_locale;\n\n\t\t$month_names = [];\n\n\t\tfor ( $i = 1; $i < 13; $i = $i + 1 ) {\n\t\t\t$month_num = zeroise( $i, 2 );\n\t\t\t$month_text = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );\n\t\t\t$month_names[] = array(\n\t\t\t\t'value' => $month_num,\n\t\t\t\t'text' => $month_text,\n\t\t\t\t'label' => sprintf( _x( '%1$s-%2$s', 'month number-name', 'unpublish' ), $month_num, $month_text ),\n\t\t\t);\n\t\t}\n\n\t\treturn $month_names;\n\t}", "function buildMonthlyTotalLog($year) {\n\t\t$sql =\t'SELECT\t';\n\t\t$months = $this->getMonthLabels();\n\t\tfor ($i=0; $i<12; $i++) {\n\t\t\t$sql .= \"SUM($months[$i]) AS $months[$i], \";\n\t\t}\n\t\t$sql .= '\tSUM(count_ytd_total) AS count_ytd_total,\n\t\t\t\tSUM(count_ytd_html) AS count_ytd_html,\n\t\t\t\tSUM(count_ytd_pdf) AS count_ytd_pdf\n\t\t\tFROM\tcounter_monthly_log\n\t\t\tWHERE\tyear = ?';\n\n\t\t$result =& $this->retrieve(\n\t\t\t$sql,\n\t\t\tarray((int) $year)\n\t\t);\n\n\t\tif ($result->RecordCount() != 0) {\n\t\t\t$returner = $result->GetRowAssoc(false);\n\t\t} else {\n\t\t\t$returner = array();\n\t\t\tfor ($i=0; $i<12; $i++) $returner[$months[$i]] = 0;\n\t\t\t$returner['count_ytd_total'] = 0;\n\t\t\t$returner['count_ytd_html'] = 0;\n\t\t\t$returner['count_ytd_pdf'] = 0;\n\t\t}\n\n\t\t$result->Close();\n\t\tunset($result);\n\n\t\treturn $returner;\n\t}", "function calculateDurationInMonthsAndYears($months) {\n $duration = [];\n $years = floor($months/12);\n $months = $months%12;\n $duration[\"month\"] = $months;\n $duration[\"years\"] = $years;\n return $duration;\n }", "function get_month_media($date, $labels) {\n global $DB;\n\n $fechainicio = new DateTime(\"1-\".$date->month.\"-\".$date->year);\n $maxday = cal_days_in_month(CAL_GREGORIAN, $date->month, $date->year);\n $fechafin = new DateTime($maxday.\"-\".$date->month.\"-\".$date->year);\n $fechafin->setTime(23, 59, 59);\n $result = array();\n foreach ($labels as $label) {\n $result[] = 0;\n }\n\n $sql = \"SELECT id, connectedusers, date FROM {report_user_statistics} WHERE date >= ? AND date <= ? ORDER BY date;\";\n $todaslasconexiones = $DB->get_records_sql($sql, [$fechainicio->getTimestamp(), $fechafin->getTimestamp()]);\n $day = 0;\n $temp = array();\n $i = 1;\n foreach ($todaslasconexiones as $conexiones) {\n $fecha = new DateTime(\"@$conexiones->date\");\n if (($fecha->format('m') == $date->month) && ($fecha->format('Y') == $date->year)) {\n if ($day == 0) {\n $day = $fecha->format('d');\n $temp[] = $conexiones->connectedusers;\n } else if ($day == $fecha->format('d')) {\n $temp[] = $conexiones->connectedusers;\n } else if ($day < $fecha->format('d')) {\n $key = array_search($day, $labels);\n $result[$key] = array_sum($temp) / count($temp);\n $temp = array();\n $day = $fecha->format('d');\n $temp[] = $conexiones->connectedusers;\n }\n if (count($todaslasconexiones) == $i) {\n $key = array_search($day, $labels);\n $result[$key] = array_sum($temp) / count($temp);\n } else if (count($temp) > 1) {\n $key = array_search($day, $labels);\n $result[$key] = array_sum($temp) / count($temp);\n }\n $i++;\n }\n }\n return $result;\n}", "public function getSalesByMonth()\n {\n\n $dataPoints = DB::select('SELECT date_format(created_at, \\'%Y\\') as year, date_format(created_at, \\'%m\\') as month, count(id) as pocount, sum(total) as monthtotal from purchase_orders group by date_format(created_at, \\'%Y-%m\\')');\n\n\n return response()->json($dataPoints);\n\n }", "public static function getExpensesStatisticForYear($year)\n {\n $expensesByMonth = Expense::find_by_sql(\"SELECT \n SUBSTR(`date`, 1, 7) as `date_month`,\n SUM(`value`) AS summary\n FROM \n `expenses` \n WHERE \n `date` BETWEEN '$year-01-01' AND '$year-12-31' \n Group BY \n SUBSTR(`date`, 1, 7)\n \");\n\n return $expensesByMonth;\n }", "public function titleQuery() {\n $titles = [];\n\n $groupContent = $this->groupContentStorage->loadMultiple($this->value);\n foreach ($groupContent as $content) {\n $titles[] = $content->label();\n }\n return $titles;\n }", "function get_year_dates($year = null, $start_month = 12, $end_month = 11)\n{\n if (!isset($year)) {\n $year = date('Y');\n }\n $start_date = $year - 1 . '-' . $start_month . '-01';\n $end_date = $year . '-' . $end_month . '-30';\n return [\n 'start_date' => $start_date,\n 'end_date' => $end_date\n ];\n}", "function getTitle(array $articles): array {\n $title = [];\n foreach ($articles as $article) {\n $title[] = $article['title'];\n\n }\n return $title;\n}", "function select_counts($month,$year){\n\tif (date(\"m-Y\") == str_pad($month,2,'0',STR_PAD_LEFT).\"-\".str_pad($year,4,'20',STR_PAD_LEFT))\n\t\treturn \"counts\";\n\telse\n\t\treturn \"dlog_archive.dbo.counts_\".str_pad($year,4,'20',STR_PAD_LEFT).\"_\".str_pad($month,2,'0',STR_PAD_LEFT);\t\n}", "public function getYearClassifcation(){\n try{\n $object=array();\n if($stmt=$this->DataBaseCon->prepare(\"SELECT YEAR(STR_TO_DATE(ImgDate, '%Y')) from ImageDataSet GROUP BY YEAR(STR_TO_DATE(ImgDate, '%Y'))\")){\n $stmt->execute();\n $stmt->bind_result($year);\n while ($stmt->fetch())\n {\n array_push($object,$year);\n }\n $stmt -> close();\n if(count($object)>0){\n return $object;\n }\n else{\n return false;\n }\n }\n else{\n return false;\n }\n\n }catch(Expection $e){\n return false;\n }\n }", "public function getCalendarData($uid,$year, $month){\n $query = $this->db->select('date, data')->from('calendar')->where('uid',$uid)->like('date', \"$year-$month\", 'after')->get();\n $calendarData = array();\n foreach ($query->result() as $row){\n // important: convert date string to integer can solve the problem that\n // \"no events showing for the first 9 days of the month\"\n $calendarData[intval(substr($row->date,8,2))] = $row->data;\n }\n return $calendarData;\n }", "public function statisticItineraryBy($field) {\n $q = \"SELECT DATE_FORMAT(created_at,'%Y-%m') as month, COUNT(DATE_FORMAT(created_at,'%Y-%m')) as number \n FROM itinerary GROUP BY DATE_FORMAT(created_at,'%Y-%m')\";\n \n $stmt = $this->conn->prepare($q);\n //$stmt->bind_param(\"i\",$customer_id);\n $stmt->execute();\n $results = $stmt->get_result();\n\n $stats = array();\n // looping through result and preparing tasks array\n while ($stat = $results->fetch_assoc()) {\n $tmp = array();\n\n $tmp[\"month\"] = $stat[\"month\"];\n $tmp[\"number\"] = $stat[\"number\"];\n\n array_push($stats, $tmp);\n }\n\n $stmt->close();\n return $stats;\n }" ]
[ "0.6927135", "0.64077973", "0.6244798", "0.61899984", "0.61556554", "0.6109561", "0.6095441", "0.60229987", "0.6020714", "0.5993763", "0.58583415", "0.5840325", "0.5838804", "0.5833816", "0.5798698", "0.57857996", "0.57696384", "0.57665646", "0.5762026", "0.571803", "0.57113147", "0.56904703", "0.5685835", "0.56712115", "0.5668757", "0.5658509", "0.565039", "0.5642645", "0.5628421", "0.55663896", "0.55473566", "0.55466604", "0.5533606", "0.55302984", "0.5516942", "0.55001485", "0.5496921", "0.54599583", "0.54350215", "0.543501", "0.5397009", "0.53952205", "0.53951824", "0.53923607", "0.5380181", "0.53657997", "0.53645957", "0.53592885", "0.5351532", "0.5345198", "0.53379846", "0.5333044", "0.5331694", "0.53315425", "0.53133285", "0.53101116", "0.52992034", "0.52963394", "0.5295281", "0.5281246", "0.52764773", "0.52391243", "0.52390397", "0.5232503", "0.52231777", "0.5217237", "0.5210282", "0.520843", "0.51880044", "0.5185243", "0.51819426", "0.5170232", "0.51590776", "0.5154791", "0.51528096", "0.51423097", "0.5140754", "0.5140544", "0.5139481", "0.51386446", "0.51306313", "0.5124595", "0.5122836", "0.5121482", "0.5117037", "0.51116705", "0.51116455", "0.51055783", "0.51053786", "0.5088106", "0.50873005", "0.50871444", "0.50807834", "0.5074406", "0.5071995", "0.5055593", "0.5055171", "0.50511605", "0.5048476", "0.50455564" ]
0.7354749
0
Check the status of the system, and throw an exception (that is safe to show to the public) if any serious error conditions are found. Log any problems, even if recoverable.
public function reportStatus() { if ( ! $this->isRequiredConfigPresent()) { $this->reportError('Config problem', 1485984755); } if ( ! $this->isDatabaseOkay()) { $this->reportError('Database problem', 1485284407); } echo 'OK'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkEnvironmentOrDie() {}", "protected function check_errors()\n {\n if (true === $this->error_flag) {\n throw new \\Exception($this->get_error( true ));\n }\n }", "protected function checkEnvironmentOrDie(): void\n {\n if (PHP_SAPI !== 'cli') {\n die('Not called from a command line interface (e.g. a shell or scheduler).' . LF);\n }\n }", "protected function _checkStatus() {\n if ($this->analyticsEnabled === null) {\n $this->analyticsEnabled = Zend_Registry::get('config')->analytics->enabled; \n } \n if ($this->analyticsEnabled != 1) { \n throw new Exception(\"We're sorry, Analytics is disabled at the moment\");\n }\n }", "public function checkShutdown()\n {\n if (!$error = error_get_last()) {\n return;\n }\n if (!in_array($error[\"type\"], [E_COMPILE_ERROR, E_CORE_ERROR, E_ERROR, E_PARSE])) {\n return;\n }\n $this->handle(new ErrorException(\n $error['message'], 0, $error['type'], $error['file'], $error['line']\n ));\n }", "function check(){\r\n\t\tglobal $PDBCExceptionException;\r\n\t\tif($PDBCExceptionException)\r\n\t\t\tPDBCException::raise($PDBCExceptionException);\r\n\t}", "private function checkError() : void\n {\n $this->isNotPost();\n $this->notExist();\n $this->notAdmin();\n }", "public function check()\n {\n if (!file_exists($this->websitesDir)) {\n throw new \\RuntimeException(sprintf('Websites directory \"%s\" is not available', $this->websitesDir));\n }\n\n if (!is_writable($this->websitesDir)) {\n throw new \\RuntimeException(sprintf('Websites directory \"%s\" is not writable', $this->websitesDir));\n }\n }", "public function checkOperationality()\n {\n $this->checkOperationalityExecTrait();\n\n if (!$this->isInstalled()) {\n throw new SystemRequirementsNotMetException('gmagick is not installed');\n }\n if (!$this->isWebPDelegateInstalled()) {\n throw new SystemRequirementsNotMetException('webp delegate missing');\n }\n }", "protected function runInternal(): Checklist\\CheckResult\n {\n $url = WP_CONTENT_URL . '/debug.log';\n\n // Report status.\n $status = Checklist\\Helper::isAccessToUrlForbidden($url);\n\n if (is_bool($status)) {\n return $status\n ? new Checklist\\CheckResult(true, esc_html__('It seems that error log is not publicly accessible.', 'bc-security'))\n : new Checklist\\CheckResult(false, esc_html__('It seems that error log is publicly accessible!', 'bc-security'))\n ;\n } else {\n return new Checklist\\CheckResult(null, esc_html__('BC Security has failed to determine whether error log is publicly accessible.', 'bc-security'));\n }\n }", "private function site_status_check() {\n\t\t$this->level = 4;\n\t\tEE::log( 'Checking and verifying site-up status. This may take some time.' );\n\t\t$httpcode = '000';\n\t\t$ch = curl_init( $this->site_name );\n\t\tcurl_setopt( $ch, CURLOPT_HEADER, true );\n\t\tcurl_setopt( $ch, CURLOPT_NOBODY, true );\n\t\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\tcurl_setopt( $ch, CURLOPT_TIMEOUT, 10 );\n\n\t\t$i = 0;\n\t\ttry {\n\t\t\twhile ( 200 !== $httpcode && 302 !== $httpcode ) {\n\t\t\t\tcurl_exec( $ch );\n\t\t\t\t$httpcode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n\t\t\t\techo '.';\n\t\t\t\tsleep( 2 );\n\t\t\t\tif ( $i ++ > 60 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( 200 !== $httpcode && 302 !== $httpcode ) {\n\t\t\t\tthrow new Exception( 'Problem connecting to site!' );\n\t\t\t}\n\t\t}\n\t\tcatch ( Exception $e ) {\n\t\t\t$this->catch_clean( $e );\n\t\t}\n\n\t}", "private function checkForModuleOrFunctionException():void\n {\n // check for module and function error\n if ($this->hasError()) {\n //check for bad module\n $this->moduleExceptionChecker();\n\n //check for bad function\n $this->functionExceptionChecker();\n }\n }", "public function isOperational();", "protected abstract function doHealthcheck();", "private function check()\n {\n $valid = true;\n\n // @todo Use manifest ?\n // - Check mains layout exists (home + page?)\n\n if (! $valid) {\n // @todo Create an explained Exception\n throw new \\Exception(sprintf('%s named \"%s\" is not valid', __CLASS__, $this->getName()));\n }\n }", "protected function error()\n\t{\t\t\n\t\tif(self::$arrDbConf[$this -> databaseName] !== 1)\n\t\tthrow new SystemException('Không tồn tại con trỏ database!');\n\t\telseif($this -> tableName ==='')\n\t\tthrow new SystemException('Không tồn tại tên bảng!');\n\t\telse\n\t\treturn true;\n\t}", "public function performCheck()\n {\n try {\n if (!$this->getClient()->ping()) {\n throw ElasticsearchPingCheckException::pingFailed(\n $this->getClient()->transport->lastConnection->getHost()\n );\n }\n } catch (Exception $e) {\n if (!$e instanceof ElasticsearchException) {\n throw $e;\n }\n throw ElasticsearchPingCheckException::internalGetProblem($e);\n }\n }", "protected function checkStatus()\n {\n $status = $this->autoTestController->checkStatus(Tools::getValue('queueItemId', 0));\n\n if ($status['finished']) {\n $this->autoTestController->stop(\n function () {\n return LoggerService::getInstance();\n }\n );\n }\n\n PacklinkPrestaShopUtility::dieJson($status);\n }", "public function check(): void\n {\n if($this->isChecked() === false)\n {\n // Java command must not return an error\n try\n {\n $this->exec(($this->java ?: 'java') . ' -version');\n }\n catch(Exception $exception)\n {\n throw new Exception('Java command not found');\n }\n\n // JAR path must exists\n if(file_exists($this->path) === false)\n {\n throw new Exception('Apache Tika app JAR not found');\n }\n\n $this->setChecked(true);\n }\n }", "protected function __checkEnvironment(){\n\t\tif (ini_get('register_globals'))\n\t\t\tthrow new Fruit(\"Automatically shut down due to the ability to insert data directly into the global namespace.<br>\\n\\t\\tDisable <code>register_globals</code> to proceed. <strong>This is a serious security precaution.</strong>\", 500);\n\n\t\tif (isset($_GET['rw']) !== true)\n\t\t\tthrow new Fruit('Proper rewrite could not be performed on this server. Enabled <code>mod_rewrite</code> and htaccess file support is required.', 500);\n\n\t\t$this->__checkExts();\n\t\tself::$arr = array(\n\t\t\t'directory' => array(),\n\t\t\t'file' => array(),\n\t\t\t'non' => array()\n\t\t);\n\t\t$this->__checkPerms();\n\t\t$this->__buildPermsMsg();\n\n\t\t# try to prevent from remote file inclusion (allow_url_include\n\t\t# requires allow_url_fopen; fopen check covers both);\n\t\t# info about why this is not 100 % secure:\n\t\t# http://blog.php-security.org/archives/45-PHP-5.2.0-and-allow_url_include.html\n\t\tif (ini_get('allow_url_fopen'))\n\t\t\tthrow new Fruit(\"Automatically shut down due to allowed remote file inclusion. If this should be intended, ignore it.<br>\\n\\t\\t<strong>But note that you better make sure you use <a href=http://www.hardened-php.net/suhosin/>Suhosin</a> in this case.</strong><br>\\n\\t\\tThe debug mode may now be turned off.\", 500);\n\t}", "public function checkOperationality()\n {\n $this->checkOperationalityExecTrait();\n\n if (!$this->isInstalled()) {\n throw new SystemRequirementsNotMetException(\n 'imagemagick is not installed (cannot execute: \"' . $this->getPath() . '\")'\n );\n }\n if (!$this->isWebPDelegateInstalled()) {\n throw new SystemRequirementsNotMetException('webp delegate missing');\n }\n }", "public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}", "public static function checkForFatalErrors()\n {\n if (function_exists('error_get_last')\n && ($error = error_get_last())\n && array_key_exists('type', $error))\n {\n if (($error['type'] & E_ERROR)\n || in_array($error['type'], static::$fatalErrorTypes)\n || $error['type'] === 0) //HHVM unhandled exception\n {\n static::handlePHPError($error['type'], $error['message'], $error['file'],\n $error['line']);\n }\n }\n }", "public function checkOperationality()\n {\n if (!extension_loaded('vips')) {\n throw new SystemRequirementsNotMetException('Required Vips extension is not available.');\n }\n\n if (!function_exists('vips_image_new_from_file')) {\n throw new SystemRequirementsNotMetException(\n 'Vips extension seems to be installed, however something is not right: ' .\n 'the function \"vips_image_new_from_file\" is not available.'\n );\n }\n\n // TODO: Should we also test if webp is available? (It seems not to be neccessary - it seems\n // that webp be well intergrated part of vips)\n }", "private function checkReadable() {\n\t\tif ( !$this->isReadable() ) {\n\t\t\tthrow new Exception(\n\t\t\t\t\"Current user doesn't have permissions to view this pathway\"\n\t\t\t);\n\t\t}\n\t}", "static function checkPermissions() {\n\t\tif ( !@file_exists(self::getConfig()->getPathLogs()) || !@is_writable(self::getConfig()->getPathLogs()) ) {\n\t\t\texit(\"The LOGS folder cannot be written to by the current process: \".self::getConfig()->getPathLogs());\n\t\t}\n\t\tif ( !@file_exists(self::getConfig()->getPathTemp()) || !@is_writable(self::getConfig()->getPathTemp()) ) {\n\t\t\texit(\"The TEMP folder cannot be written to by the current process: \".self::getConfig()->getPathTemp());\n\t\t}\n\t}", "function check_for_fatal()\n{\n $error = error_get_last();\n if ($error[\"type\"] == E_ERROR) {\n log_error($error[\"type\"], $error[\"message\"], $error[\"file\"], $error[\"line\"]);\n }\n}", "public function checkConnection()\n {\n $this->last_error = '';\n if (!isset($this->database)) \n $this->connect();\n }", "private function checkFailure() : void\n {\n $failure = (int) $this->session->get('failure', 0);\n $time = (int) $this->session->get('failure_time', time());\n if ($failure >= static::FAILURE) {\n if ($time >= time()) {\n throw new \\DomainException($this->i18n->t(\n 'setrun/user',\n 'Form is blocked for {min} minutes',\n ['min' => static::FAILURE_TIME / 60])\n );\n }\n $this->removeFailure();\n }\n }", "public function checkOperationality()\n {\n }", "function internalError() {\n\t\t$this->status = $this->STATUS_INTERNAL_ERROR;\n\t\t$this->noCache();\n\t}", "function health_check()\n {\n $zombies = $this->scheduled_task_model->get_zombies();\n\n if ( $zombies )\n {\n foreach ( $zombies as $zombie )\n {\n $data = array(\n 'type' => config( 'emergency_types' )->scheduled_task,\n 'info' => \"Task: \". $zombie->name,\n 'message' => \"Scheduled task has been running for too long. Check the server \".\n \"and cron log for any errors. It's been moved to active for now.\" );\n\n log_message(\n 'error',\n \"Health Check Failed: \". print_r( $data, TRUE ) );\n\n $data = array(\n 'state' => 'active' );\n\n $this->scheduled_task_model->save( $data, $zombie->id );\n }\n }\n\n return TRUE;\n }", "private function assert_not_running(): void\n\t{\n\t\tif ($this->status >= self::STATUS_RUNNING)\n\t\t{\n\t\t\tthrow new ApplicationAlreadyRunning;\n\t\t}\n\t}", "public function testGoodRegisteredControllerStatus()\n {\n $this->assertEquals(false, $this->getAndCheckForError('/dev/x1'));\n $this->assertEquals(false, $this->getAndCheckForError('/dev/x1/y1'));\n\n // Check response code is 500/ some sort of error\n $this->assertEquals(true, $this->getAndCheckForError('/dev/x2'));\n }", "private function checkStatus()\n {\n $res = $this->parseBoolean(\n json_encode($this->getStatus()[\"timed_out\"])\n );\n\n if ($this->getStatus() == null)\n $this->setOnline(false);\n else if ($res)\n $this->setOnline(false);\n else\n $this->setOnline(true);\n }", "public function checkOperationality()\n {\n if (!extension_loaded('gd')) {\n throw new SystemRequirementsNotMetException('Required Gd extension is not available.');\n }\n\n if (!function_exists('imagewebp')) {\n throw new SystemRequirementsNotMetException(\n 'Gd has been compiled without webp support.'\n );\n }\n }", "protected function checkOperationality()\n {\n if (!function_exists('exec')) {\n throw new SystemRequirementsNotMetException('exec() is not enabled.');\n }\n }", "public function errorOccured();", "function module_builder_handle_sanity_exception($e) {\n $failed_sanity_level = $e->getFailedSanityLevel();\n switch ($failed_sanity_level) {\n case 'data_directory_exists':\n $message = \"The component data directory could not be created or is not writable.\";\n break;\n case 'component_data_processed':\n $message = \"No component data was found. Run 'drush mb-download' to process component data from documentation files.\";\n break;\n }\n drush_set_error(DRUSH_APPLICATION_ERROR, $message);\n}", "public function checkConnection()\n {\n try {\n $this->execute('', [], true);\n } catch (\\Exception $e) {\n if ($e->hasResponse()) {\n switch ($e->getResponse()->getStatusCode()) {\n case 403:\n return [\n 'status' => 0,\n 'error' => 'auth_error',\n 'verbose' => 'Check Username and Password/Access Key.'\n ];\n default:\n return [\n 'status' => 0,\n 'error' => 'unknown',\n 'verbose' => 'An unknown error has occurred. Server replied with: ' . $e->getResponse()->getStatusCode()\n ];\n }\n } else {\n return [\n 'status' => 0,\n 'error' => 'conn_error',\n 'verbose' => 'Check CSF or hostname/port.'\n ];\n }\n return false;\n }\n\n return [\n 'status' => 1,\n 'error' => false,\n 'verbose' => 'Everything is working.'\n ];\n }", "protected function checkStarted()\r\n {\r\n if (!$this->resource) {\r\n throw new Exception('Renderer is not started!');\r\n }\r\n }", "protected function checkStartConditions(): void\n {\n if (!$this->exists) {\n throw new WorkerException('Worker must be properly created before start.');\n }\n\n if ($this->getAttribute('pid') !== null) {\n throw new WorkerException('Worker is running already.');\n }\n }", "public function checkConfiguration()\n\t{\n\t\tglobal $langs;\n\n\t\t$errors = array();\n\n\t\t$filename = $this->getFilename();\n\n\t\tif (file_exists($filename) && is_writable($filename))\n\t\t{\n\t\t\tdol_syslog('admin/syslog: file '.$filename);\n\t\t}\n\t\telse $errors[] = $langs->trans(\"ErrorFailedToOpenFile\", $filename);\n\n\t\treturn $errors;\n\t}", "private function validateEnv(): void\n {\n $this->getAuthJsonContent();\n\n if (!$this->isWritableDir($this->env->getProjectsRootDir())) {\n throw new FilesystemException(\n \"Directory does not exist or is not writeable: {$this->env->getProjectsRootDir()}\"\n );\n }\n\n if (!$this->isWritableDir($this->env->getSslCertificatesDir())) {\n throw new FilesystemException(\n \"Directory does not exist or is not writeable: {$this->env->getSslCertificatesDir()}\"\n );\n }\n\n $this->getDirPath(self::DIR_PHP_DOCKERFILES);\n $this->getDirPath(self::DIR_PROJECT_TEMPLATE);\n\n if (!$this->isWritableFile($this->getTraefikRulesFile())) {\n throw new FilesystemException(\n \"Missing Traefik SSL configuration file: {$this->getTraefikRulesFile()}\\n\" .\n 'Maybe the infrastructure has not been set up yet.'\n );\n }\n }", "public function checkAccountAccess()\n\t{\n\t\tif (!$this->isActive())\n\t\t\tthrow new Exception(Yii::t('user', 'account_no_longer_active'));\n\n\t\tif ($this->tooManyFailedLogins())\n\t\t\tthrow new Exception(Yii::t('user', 'account_locked_failed_logins'));\n\t}", "private function _checkEnable() {\r\n if ($this->_isEnabled === true) {\r\n throw new Exception('Profiler is still enabled.');\r\n }\r\n }", "public function health(): bool {\n $_status = $this->fetch([\n 'fetch' => 'Status',\n 'route' => \"/health\",\n ]);\n switch($_status['http_code']) {\n case '200':\n return true;\n case '503':\n return false;\n default:\n throw new \\Exception(\"/health Unexpected response code '{$_status['http_code']}'\");\n }\n }", "private function checkException() {\n return in_array(strtolower($this->program_name), $this->exceptions);\n }", "public function check(): bool\n {\n if (!property_exists($this, 'current')) {\n throw new \\Exception('Property current does not exist');\n }\n\n // if $on_error is set to E_CONTINUE returns true\n if (in_array($this->on_error, [Errors::E_EXCEPTION, Errors::E_CONTINUE])) {\n return true;\n }\n\n // If any connection has an error with mode E_STOP_ALL\n if (self::$_has_error_all && ($this->on_error === Errors::E_STOP_ALL)) {\n return false;\n }\n\n // If this connection has an error with mode E_STOP or E_STOP_ALL\n if ($this->_has_error && in_array($this->on_error, [Errors::E_STOP, $this->on_error === Errors::E_STOP_ALL])) {\n return false;\n }\n\n return true;\n }", "public function check_admin_notices()\n {\n if (! \\wpSPIO()->env()->is_screen_to_use)\n return; // suppress all when not our screen.\n\n $this->doFilePermNotice();\n $this->doAPINotices();\n $this->doCompatNotices();\n $this->doUnlistedNotices();\n $this->doQuotaNotices();\n\n $this->doIntegrationNotices();\n\n $this->doHelpOptInNotices();\n }", "public function check()\n {\n $context = Context::getInstance();\n// $context->setInitialized(true);\n// $context->setDeviceId('asdasd');\n// $context->setUserId('112');\n if (!$context->isInitialized()) {\n throw new ContextNotInitializedException();\n }\n\n if ($this->type === ContextCheck::TYPE_AUTH) {\n if (!$context->isAuth()){\n throw new ContextNotAuthorizedException();\n }\n }\n }", "function havp_check_system() {\n\tglobal $havp_config;\n\n\t/* Check/create user/group accounts */\n\t$grp = exec('/usr/sbin/pw group show ' . HVDEF_GROUP);\n\tif (strpos($grp, HVDEF_GROUP) !== 0) {\n\t\texec('/usr/sbin/pw group add ' . HVDEF_GROUP);\n\t\tlog_error(\"Antivirus: Group '\" . HVDEF_GROUP . \"' was added.\");\n\t}\n\t$usr = exec('/usr/sbin/pw usershow -n ' . HVDEF_USER);\n\tif (strpos($usr, HVDEF_USER) !== 0) {\n\t\texec('/usr/sbin/pw useradd ' . HVDEF_USER . ' -g ' . HVDEF_GROUP . ' -h - -s \"/sbin/nologin\" -d \"/nonexistent\" -c \"havp daemon\"');\n\t\tlog_error(\"Antivirus: User '\" . HVDEF_USER . \"' was added.\");\n\t}\n\n\t/* Workdir permissions */\n\thavp_set_file_access(HVDEF_WORK_DIR, HVDEF_USER, '');\n\n\t/* HAVP tempdir */\n\tif (!file_exists(HVDEF_HAVPTEMP_DIR)) {\n\t\tmwexec(\"/bin/mkdir -p \" . HVDEF_HAVPTEMP_DIR);\n\t}\n\thavp_set_file_access(HVDEF_HAVPTEMP_DIR, HVDEF_USER, '');\n\n\t/* ClamAV dbdir */\n\tif (!file_exists(HVDEF_CLAM_DBDIR)) {\n\t\tmwexec(\"/bin/mkdir -p \" . HVDEF_CLAM_DBDIR);\n\t}\n\thavp_set_file_access(HVDEF_CLAM_DBDIR, HVDEF_AVUSER, '');\n\n\t/* RAM tempdir */\n\tif (!file_exists(HVDEF_RAMTEMP_DIR)) {\n\t\tmwexec(\"/bin/mkdir -p \" . HVDEF_RAMTEMP_DIR);\n\t}\n\thavp_set_file_access(HVDEF_RAMTEMP_DIR, HVDEF_USER, '');\n\n\t/* Template directory and permissions */\n\tif (!file_exists(HVDEF_TEMPLATES_EX)) {\n\t\tmwexec(\"/bin/mkdir -p \" . HVDEF_TEMPLATES_EX);\n\t}\n\thavp_set_file_access(HVDEF_TEMPLATES, HVDEF_USER, '');\n\thavp_set_file_access(HVDEF_TEMPLATES_EX, HVDEF_USER, '');\n\n\t/* HAVP log dir */\n\tif (!file_exists(HVDEF_LOG_DIR)) {\n\t\tmwexec(\"/bin/mkdir -p \" . HVDEF_LOG_DIR);\n\t}\n\thavp_set_file_access(HVDEF_LOG_DIR, HVDEF_USER, '');\n\t/* Create log files if needed */\n\tif (!file_exists(HVDEF_HAVP_ACCESSLOG)) {\n\t\tfile_put_contents(HVDEF_HAVP_ACCESSLOG, '');\n\t}\n\tif (!file_exists(HVDEF_HAVP_ERRORLOG)) {\n\t\tfile_put_contents(HVDEF_HAVP_ERRORLOG, '');\n\t}\n\t/* Log dir permissions */\n\thavp_set_file_access(HVDEF_LOG_DIR, HVDEF_USER, '0764');\n\n\t/* PID file */\n\tif (!file_exists(HVDEF_PID_FILE)) {\n\t\tfile_put_contents(HVDEF_PID_FILE, '');\n\t}\n\thavp_set_file_access(HVDEF_PID_FILE, HVDEF_USER, '0664');\n\n\t/* freshclam config permissions */\n\tif (!file_exists(HVDEF_FRESHCLAM_CONF)) {\n\t\tfile_put_contents(HVDEF_FRESHCLAM_CONF, '');\n\t}\n\thavp_set_file_access(HVDEF_FRESHCLAM_CONF, HVDEF_AVUSER, '0664');\n\n\t/* AV log dir */\n\tif (!file_exists(HVDEF_AVLOG_DIR)) {\n\t\tmwexec(\"mkdir -p \" . HVDEF_AVLOG_DIR);\n\t}\n\thavp_set_file_access(HVDEF_AVLOG_DIR, HVDEF_USER, '');\n\n\t/* Create AV log files if needed */\n\tif (!file_exists(HVDEF_CLAM_LOG)) {\n\t\tfile_put_contents(HVDEF_CLAM_LOG, '');\n\t}\n\tif (!file_exists(HVDEF_FRESHCLAM_LOG)) {\n\t\tfile_put_contents(HVDEF_FRESHCLAM_LOG, '');\n\t}\n\t/* Log dir permissions */\n\thavp_set_file_access(HVDEF_AVLOG_DIR, HVDEF_USER, '0777');\n\n\t/* ClamAV */\n\t/* Directory for pid and socket files */\n\tif (!file_exists(HVDEF_CLAM_RUNDIR)) {\n\t\tmwexec(\"mkdir -p \" . HVDEF_CLAM_RUNDIR);\n\t}\n\thavp_set_file_access(HVDEF_CLAM_RUNDIR, HVDEF_USER, '0774');\n\n\t/* AV update script */\n\tfile_put_contents(HVDEF_AVUPD_SCRIPT, havp_AVupdate_script());\n\thavp_set_file_access(HVDEF_AVUPD_SCRIPT, HVDEF_AVUSER, '0755');\n\n\t/* AV update notification script */\n\t// file_put_contents(HVDEF_ON_AVUPD_SCRIPT, havp_on_avupd_script());\n\t// havp_set_file_access(HVDEF_ON_AVUPD_SCRIPT, HVDEF_AVUSER, '0755');\n\n\t/* Startup scripts (HAVP and clamd) */\n\thavp_startup_script();\n\thv_clamd_startup_script();\n\n\t/* mount RAMDisk */\n\tmountRAMdisk(true);\n}", "protected function getLastError() {}", "private function checkResult($result) {\n if ($result === false) {\n throw new Exception(\n 'Socket operation failed: ' . $this->getLastError()\n );\n }\n }", "protected function validateOrThrow() {}", "private function assert_not_booted(): void\n\t{\n\t\tif ($this->status >= self::STATUS_BOOTING)\n\t\t{\n\t\t\tthrow new ApplicationAlreadyBooted;\n\t\t}\n\t}", "abstract protected function safetyCheck() : self;", "public function check(): bool\n {\n return pcntl_signal_dispatch();\n }", "public function checkPermissions() {\n if ($this->checkIp()) {\n \\BDSCore\\Errors\\Errors::returnError(403);\n }\n }", "private function manageStatus()\n {\n $this->updateStatus();\n $this->checkStatus();\n }", "public function checkOperationality()\n {\n\n $apiKey = $this->getKey();\n\n if ($apiKey === false) {\n if (isset($this->options['key'])) {\n throw new InvalidApiKeyException(\n 'The \"key\" option has been renamed to \"api-key\" in webp-convert 2.0. ' .\n 'You must change the configuration accordingly.'\n );\n }\n\n throw new InvalidApiKeyException('Missing API key.');\n }\n\n if (strlen($apiKey) < 20) {\n throw new InvalidApiKeyException(\n 'Api key is invalid. Api keys are supposed to be 32 characters long - ' .\n 'the provided api key is much shorter'\n );\n }\n\n // Check for curl requirements\n $this->checkOperationalityForCurlTrait();\n\n $keyStatus = self::getKeyStatus($apiKey);\n switch ($keyStatus) {\n case 'great':\n break;\n case 'exceeded':\n throw new ConverterNotOperationalException('Quota has exceeded');\n break;\n case 'invalid':\n throw new InvalidApiKeyException('Api key is invalid');\n break;\n }\n }", "abstract public function handleFatalError($e);", "public function check() {}", "public function checkisOnCurrentHostInvalidHosts() {}", "abstract public function getLastError();", "abstract public function getLastError();", "public function failed();", "public static function checkConnection() {\r\n\t\t\tif ( !empty( self::$connection ) ) {\r\n\t\t\t\t// connection established, exit function\r\n\t\t\t} else {\r\n\t\t\t\t// no, we have to connect Mysql-server\r\n\t\t\t\t$data = Configure::read( 'DB' );\r\n\t\t\t\tself::$connection = new \\mysqli( $data[ 'host' ],\r\n\t\t\t\t\t\t\t\t\t\t\t\t $data[ 'user' ],\r\n\t\t\t\t\t\t\t\t\t\t\t\t $data[ 'password' ],\r\n\t\t\t\t\t\t\t\t\t\t\t\t $data[ 'database' ],\r\n\t\t\t\t\t\t\t\t\t\t\t\t isset( $data[ 'socket' ] ) ? $data[ 'socket' ] : null );\r\n\t\t\t\tif ( self::$connection->connect_error ) {\r\n\t\t\t\t\t$msg = sprintf( 'DB failed to connect mysql server. Mysql respone - %s',\r\n\t\t\t\t\t\t\t\t\tself::$connection->connect_error );\r\n\t\t\t\t\tthrow new \\Exception( $msg );\r\n\t\t\t\t}\r\n\t\t\t\tself::$connection->set_charset( 'utf8' );\r\n\t\t\t}\r\n\t\t}", "function statusCheck()\n {\n\n // define all the global variables\n global $user, $settings, $message, $translator;\n\n // check if the site is disabled\n if ($settings->siteDisabled()) {\n // check if the user is an admin then do and exception\n if ($user->isAdmin()) {\n return LoginStatus::GoodToGo;\n }\n $message->customKill($translator->translateText(\"siteDisabled\"), $translator->translateText(\"siteDisabledMSG\"), $settings->get(Settings::SITE_THEME));\n return false;\n }\n\n // check if the user has already logged in\n if (!$this->logged_in()) {\n return LoginStatus::NeedToLogin;\n }\n\n // check if the current user's device is verified\n if (!$user->devices()->canAccess()) {\n return LoginStatus::VerifyDevice;\n }\n\n // check if session is authenticated\n if ($this->authenticationNeeded() && $user->twoFactorEnabled()) {\n return LoginStatus::AuthenticationNeeded;\n }\n\n return LoginStatus::GoodToGo;\n }", "private static function error($ch){\n\t\t\txlog('FTPWRP: Checking connection status: '.(curl_errno($ch)==0?'no errors':' Error: ('.curl_errno($ch).') '.curl_error($ch)));\n\t\t}", "public function check();", "public function check();", "public function check();", "public function check();", "public function check();", "function broken() { return TRUE; }", "public function loginCheckAction()\n {\n throw new \\Exception('This should never be reached!');\n }", "public function perform() {\n $config = $this->config('system.logging');\n $display = $config->get('error_level');\n\n if ($display != 'hide') {\n return $this->fail(NULL, [\n 'issues' => [\n 'errors_display' => [\n '@issue_title' => 'Errors are displayed!',\n ],\n ],\n ]);\n }\n\n return $this->success();\n }", "public function serverError()\n {\n return $this->status() >= 500;\n }", "function status() { return $this->err->status;}", "public function checkConnection(){\r\n\t\treturn false;\r\n\t}", "protected function runInternal(): Checklist\\CheckResult\n {\n $name = \\sprintf('bc-security-checklist-test-error-display-%s.php', \\md5((string) \\rand()));\n\n // The file is going to be created in wp-content directory.\n $path = WP_CONTENT_DIR . '/' . $name;\n $url = WP_CONTENT_URL . '/' . $name;\n\n // Note: we rely on the fact that empty('0') is true here.\n $php_snippet = \"<?php echo empty(ini_get('display_errors')) ? 'OK' : 'KO';\";\n\n $status = new Checklist\\CheckResult(null, esc_html__('BC Security has failed to determine whether display of errors is turned off by default.', 'bc-security'));\n\n // Write temporary file...\n if (\\file_put_contents($path, $php_snippet) === false) {\n // ...bail on failure.\n return $status;\n }\n\n // Attempt to fetch the temporary PHP file and retrieve the body.\n switch (wp_remote_retrieve_body(wp_remote_get($url))) {\n case 'OK':\n $status = new Checklist\\CheckResult(true, esc_html__('It seems that display of errors is turned off by default.', 'bc-security'));\n break;\n case 'KO':\n $status = new Checklist\\CheckResult(false, esc_html__('It seems that display of errors is turned on by default!', 'bc-security'));\n break;\n }\n\n // Remove temporary PHP file.\n \\unlink($path);\n\n // Report on status.\n return $status;\n }", "public function fail()\n {\n return ErrorHandler::has();\n }", "public function checkSecurity() {\n }", "public function checkForErrors()\n {\n if ($this->getDebtor() == '' && $this->getDebtorCode() == '') {\n throw new \\InvalidArgumentException(\n sprintf('Debtor or DebtorCode must be defined')\n );\n }\n\n if ($this->getDomain() == '') {\n throw new \\InvalidArgumentException(\n sprintf('Domain must be defined')\n );\n }\n\n if ($this->getTld() == '') {\n throw new \\InvalidArgumentException(\n sprintf('Tld must be defined')\n );\n }\n }", "public static function tryError()\n\t{\n\t\tset_error_handler(array(__CLASS__, '_errorHandler'), E_ALL);\n\t\tself::$errorMsg = NULL;\n\t}", "public function tryUserLevelCheck(){\n if( $this->checkSessionSet() ){\n if($this->userLevelCheck()){\n\n }\n else{\n //TODO: log the user_id and activity\n redirect_invalid_user();\n }\n }\n else{\n //TODO: log the user IP information\n\n redirect_invalid_user();\n }\n }", "public static function check();", "private function check_conf() {\n ConfigChecker::check();\n }", "public function execute(): int\n {\n if (! Events::trigger(UpdateEvents::PREFLIGHT, $this)) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', [UpdateEvents::PREFLIGHT]), 'error');\n }\n\n $this->checkPreflightConditions();\n\n if (! Events::trigger(UpdateEvents::PREUPGRADE, $this)) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', [UpdateEvents::PREUPGRADE]), 'error');\n }\n\n if (EXIT_ERROR === $this->updateInternals()) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', ['Application::updateInternals']), 'error');\n }\n\n $this->analyzeModifications();\n\n if (! Events::trigger(UpdateEvents::POSTUPGRADE, $this)) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', [UpdateEvents::POSTUPGRADE]), 'error');\n }\n\n if (! Events::trigger(UpdateEvents::PRECONSOLIDATE, $this)) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', [UpdateEvents::PRECONSOLIDATE]), 'error');\n }\n\n if (EXIT_ERROR === $this->consolidate()) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', ['Application::consolidate']), 'error');\n }\n\n $this->analyzeMergesAndConflicts();\n\n if (! Events::trigger(UpdateEvents::POSTCONSOLIDATE, $this)) {\n return $this->terminate(lang('Revision.terminateExecutionFailure', [UpdateEvents::POSTCONSOLIDATE]), 'error');\n }\n\n return $this->terminate();\n }", "public function report()\n {\n Log::debug('Exotel Sms Exception');\n }", "public function getLastError()\n {\n return 0;\n }", "function graceful_fail($message)\n {\n }", "public function isFailed()\r\n {\r\n return $this->status < 0;\r\n }", "private function _environmentCheck()\n {\n if ( php_sapi_name() != \"cli\" )\n {\n die(\"ArrowWorker hint : only run in command line mode\".PHP_EOL);\n }\n\n if ( !function_exists('pcntl_signal_dispatch') )\n {\n declare(ticks = 10);\n }\n\n if ( !function_exists('pcntl_signal') )\n {\n die('ArrowWorker hint : php environment do not support pcntl_signal'.PHP_EOL);\n }\n\n if ( function_exists('gc_enable') )\n {\n gc_enable();\n }\n\n }", "public function checkStatus() {\n\t\t// Check connection\n\t\tif (!$this->db->isConnected()) {\n\t\t\t$this->out(sprintf('Error: Database connection for %s failed!', $this->install['database']));\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check the users tables\n\t\t$tables = $this->db->listSources();\n\n\t\tif (!in_array($this->install['table'], $tables)) {\n\t\t\t$this->out(sprintf('Error: No %s table was found in %s.', $this->install['table'], $this->install['database']));\n\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->out('Installation status good, proceeding...');\n\n\t\treturn true;\n\t}", "private function checkValid()\n\t{\n\t\tif(!$this->isValid()) {\n\t\t\tthrow new \\RuntimeException(\"TypeStruct Error: '\".get_called_class().\"' not validated to perform further operations\");\t\n\t\t}\n\t}", "public function check()\n {\n if ($this->getResponse()->status == 'error') {\n return true;\n }\n\n return false;\n }", "function fatal_check($c,$pname) {\n\tif($c->error){\n\t\techo \"Error: \".$c->error;\n\t\tdie();\n\t}\n}", "public function status() {\n\t\t// Setup\n\t\t$options = array(\n\t\t\t'appName' => 'cakedaemon',\n\t\t\t'logLocation' => TMP . \"logs\" . DS . 'cakedaemon.log'\n\t\t);\n\t\tSystem_Daemon::setOptions($options);\n\n\t\tif (System_Daemon::isRunning() == true) {\n\t\t\t$this->out('Daemon is running');\n\t\t\texit(0);\n\t\t} else {\n\t\t\t$this->out('Daemon is not running');\n\t\t\texit(1);\n\t\t}\n\t}" ]
[ "0.668251", "0.65883684", "0.6401738", "0.6375471", "0.6284792", "0.628433", "0.6205277", "0.6127014", "0.6013487", "0.6010897", "0.59667724", "0.5927379", "0.5914112", "0.57861376", "0.578246", "0.5780608", "0.5738382", "0.5717164", "0.5708682", "0.56892407", "0.56632936", "0.5606548", "0.5572686", "0.55718315", "0.5570991", "0.5565783", "0.5528103", "0.5509009", "0.55027", "0.54969394", "0.54846424", "0.54585683", "0.5457668", "0.54512864", "0.54335994", "0.54236424", "0.5406861", "0.53976095", "0.53967905", "0.5388345", "0.538555", "0.53760993", "0.5370245", "0.5368841", "0.53425187", "0.5334472", "0.5332092", "0.52990377", "0.5297365", "0.52916175", "0.52905047", "0.5289833", "0.52820873", "0.5277927", "0.5272618", "0.5262806", "0.5261335", "0.5240119", "0.52395654", "0.5234121", "0.52276146", "0.52266395", "0.5208797", "0.51934016", "0.5192656", "0.5192656", "0.518645", "0.5180423", "0.51778287", "0.5176051", "0.5173578", "0.5173578", "0.5173578", "0.5173578", "0.5173578", "0.5162994", "0.5157153", "0.5156618", "0.51558745", "0.5153723", "0.51486266", "0.5132878", "0.51208466", "0.5120534", "0.5117782", "0.51177627", "0.5104258", "0.5103525", "0.50984395", "0.50973755", "0.50918776", "0.50907475", "0.5088047", "0.5087965", "0.50847715", "0.50774014", "0.5073986", "0.5058322", "0.5055224", "0.5049992" ]
0.6499122
2
Add an entry to our log about this error.
protected function logError($message) { $this->logger->error($message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addToErrorLog($error) {\n $add = $error['DETAILS'];\n unset($add['ErrorCode']);\n unset($add['ErrorMessage']);\n $add['Action'] = $error['APIACTION'];\n\n MagnaDB::gi()->insert(TABLE_MAGNA_COMPAT_ERRORLOG, array(\n 'mpID' => $this->mpID,\n 'errormessage' => $error['ERRORMESSAGE'],\n 'dateadded' => date('Y-m-d H:i:s'),\n 'additionaldata' => serialize($add),\n ));\n }", "public function add($entry)\n {\n $this->log[] = $entry;\n while (\\count($this->log) > $this->size) {\n array_shift($this->log);\n }\n }", "public function add_log_entry($message, $config = [])\n {\n }", "protected function LogEntry($entry) {\n\t\tif ($this->_vars['log'] == 'echo') {\n\t\t\tflush();\n\t\t\techo $entry;\n\t\t} elseif($this->_vars['log'] == 'errors') {\n\t\t\ttrigger_error($entry);\n\t\t}\n\t\t$this->_log .= $entry;\n\t}", "protected function log_error($message)\n {\n $this->log['error'][] = $message;\n }", "public function logError() {}", "function add_error(&$log, $message){\n if(!is_array($log)) return;\n\n $log[] = array(\n \"type\" => \"error\",\n \"message\" => $message\n );\n}", "public function addLog($data);", "function logError(){\r\n\r\n\t\t$message = $_SERVER[\"REQUEST_URI\"].\"\\n\";\r\n\t\t$message .= $this->number;\r\n\r\n\t\tif($this->title)\r\n\t\t\t$message.=\": \".$this->title;\r\n\r\n\t\tif($this->details)\r\n\t\t\t$message.=\"\\n\\n\".$this->details;\r\n\r\n\t\t$log = new phpbmsLog($message,\"ERROR\");\r\n\r\n\t}", "public function logError(){\n AbstractLoggedException::$dbMessage .= \"Invalid URI requestd; \";\n parent::log();\n }", "private function add_log($log) {\n $this->log .= \" \" . $log;\n }", "public function AddError($err){\n\t\t$this->Add($err->getMessage());\n\t}", "public function withLog($entry);", "function add_log_entry(log_op_move $entry) {\n array_unshift($this->log_op_list, $entry);\n }", "private function _logError()\n {\n if(!$this->_error) return;\n\n $error_file = APPLICATION_DATA . '/logs/log_apps.log';\n // set content of error file\n $content = 'Date: ' . date('Y-m-d H:i:s') . PHP_EOL;\n $content .= 'Message: ' . $this->_error->exception->getMessage() . PHP_EOL;\n $content .= 'File: ' . $this->_error->exception->getFile() . PHP_EOL;\n $content .= 'Line: ' . $this->_error->exception->getLine() . PHP_EOL;\n $content .= 'Request Uri: ' . $this->_error->request->getRequestUri() . PHP_EOL;\n $content .= 'Request Method: ' . $this->_error->request->getMethod() . PHP_EOL;\n $content .= 'Request Params: ' . json_encode($this->_error->request->getParams()) . PHP_EOL;\n $content .= 'Id User: ' . Base_Auth::getUser('id_user') . PHP_EOL;\n $content .= '-----------------------------------' . PHP_EOL;\n\n // write content to file\n if(file_exists($error_file)){\n $content.= file_get_contents($error_file, false, null, null, 1024*1024); // last 1Mb of log;\n }\n\n $handle = fopen( $error_file, 'w' );\n fwrite($handle, $content);\n fclose($handle);\n }", "private function logException()\n {\n switch ($this->classShortName) {\n case 'IndexException':\n case 'CreateException':\n case 'ReadException':\n case 'UpdateException':\n case 'DeleteException':\n Log::error($this->message);\n Log::error(print_r($this->getExceptionData(), true));\n break;\n default:\n Log::error($this->message);\n }\n }", "public function addEntry(\\Yana\\Db\\Ddl\\Logs\\AbstractLog $log)\n {\n array_unshift($this->changes, $log);\n }", "public function AddError($err){\n\t\t$this->Add($err);\n\t}", "public function log (string $msg) : void {\n\t\t$this->logs [] = $msg;\n\t}", "public function Error($err){\n\t\t$this->Add($err->getMessage());\n\t}", "public function Error($err){\n\t\t$this->Add($err->getMessage());\n\t}", "public function logInsert($e)\n {\n $this->logger->info(__METHOD__ . ':' . $e->getParam('insert')->getSqlString($this->platform));\n }", "public function saveLog() {\n\n\t\t# Get log file path\n\t\tif(isset(Sky::$config) && isset(Sky::$config[\"locations\"][\"logs\"]))\n\t\t\t$filePath = Sky::$config[\"locations\"][\"logs\"] . \"errorLog_\" . @date(\"d.m\") . \".txt\";\n\n\t\t# If we need to show\n\t\tif(!empty(Sky::$config['development']['traceExceptions']) && Sky::$config['development']['traceExceptions'] == \"screen\")\n\t\t\techo Sky::getType() == Sky::INIT_TYPE_CONSOLE ? \"$this\\n\" : \"<pre>$this</pre>\";\n\n\t\t# Check key\n\t\tif(!empty(Sky::$config['development']['noLog']))\n\t\t\treturn;\n\n\t\t# Try to create file if not exists\n\t\tif(!isset($filePath) || (!file_exists($filePath) && !touch($filePath)) || !is_writable($filePath))\n\t\t\treturn;\n\n\t\t# Log\n\t\terror_log($this->__toString(), 3, $filePath);\n\n\t}", "protected function addLog() {\n\t\t$oLog = PHP_Beautifier_Common::getLog();\n\t\t$oLogConsole = Log::factory('console', '', 'php_beautifier', array(\n\t\t\t\t'stream' => STDERR,\n\t\t\t), PEAR_LOG_DEBUG);\n\t\t$oLog->addChild($oLogConsole);\n\t}", "private function log_error($error) {\r\n\t\t$CRLF = \"\\r\\n\";\r\n\t\t\r\n\t\t$time = time ();\r\n\t\t\r\n\t\t// eg: 2009_01_13_GMT_08_dberr.log\r\n\t\t$filename = date ( \"Y_m_d\", $time ) . '_GMT_' . $this->gmt_timezone () . '_dberr.log';\r\n\t\t$h = @fopen ( $this->LOGS_PATH . '/' . $filename, \"a\" );\r\n\t\tif (! $h) {\r\n\t\t\t// Cannot create/open file, or permission denied.\r\n\t\t\tprint '<span style=\"color: red; font-weight: bold; font-size: 15px;\">Database error. Log cannot be written.</span>';\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfwrite ( $h, date ( 'H:i:s', $time ) . \" GMT \" . $this->gmt_timezone () . CRLF );\r\n\t\tfwrite ( $h, $error . CRLF );\r\n\t\tfwrite ( $h, $this->last_query . CRLF );\r\n\t\tfwrite ( $h, CRLF . CRLF );\r\n\t\t\r\n\t\tfclose ( $h );\r\n\t}", "protected function _write($event)\n {\n $this->logs[] = $event;\n }", "public static function logError($info) {\n\t\ttry {\n\t\t\t$db = new OneArchyDB(F2T_DB_HOST, F2T_DB_NAME, F2T_DB_USER, F2T_DB_PASS);\n $db->connect();\n\t\t\t$db->logError($info['errorMessage'], $info['content']);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow new Exception('Even error logging failed? Wow! ' . $e->getMessage());\n\t\t}\n\t}", "public function addError($error){\n $this->_errors[] = $error;\n }", "public function printErrorLog() {}", "function add_error($msg) {\n\t\t$this->errors[] = $msg;\n\t}", "protected function logException(Exception $ex) { $this->_traiat_errorLogger->logException($ex, TRUE); }", "public function save_entry_to_log(Omnilog_entry $entry)\n {\n /**\n * This method could conceivably be called when the module is\n * not installed, but the Omnilogger class is present.\n */\n\n if ( ! $this->EE->db->table_exists('omnilog_entries'))\n {\n throw new Exception(\n $this->EE->lang->line('exception__save_entry__not_installed'));\n }\n\n if ( ! $entry->is_populated())\n {\n throw new Exception(\n $this->EE->lang->line('exception__save_entry__missing_data'));\n }\n\n $insert_data = array_merge(\n $entry->to_array(),\n array(\n 'notify_admin' => ($entry->get_notify_admin() === TRUE) ? 'y' : 'n',\n 'site_id' => $this->get_site_id()\n )\n );\n\n $insert_data['admin_emails'] = implode($insert_data['admin_emails'], '|');\n\n $this->EE->db->insert('omnilog_entries', $insert_data);\n\n if ( ! $insert_id = $this->EE->db->insert_id())\n {\n throw new Exception(\n $this->EE->lang->line('exception__save_entry__not_saved'));\n }\n\n $entry->set_log_entry_id($insert_id);\n return $entry;\n }", "public function add_entry($entry)\n {\n }", "public function appendLog($message);", "private function addError(string $file, int $line, string $error): void\n {\n $this->errors[] = \"error in file '\".$file.\":\".$line.\"' \".$error;\n }", "function add($error) {\n\t\t$this->errors[] = $error;\n\t}", "protected function add_error($error){\n\t\t$this->errors[] = $error;\n\t}", "public function add($error)\n\t{\n\t\t$this->error[] = $error;\n\t}", "public function error()\n {\n $this->appendLog(\n 'error',\n \\func_get_args(),\n $this->internal->getErrorCaller()\n );\n }", "private function addError($error){\n $this->_errors[] = $error; \n }", "function add_error_to_log($log_data = array( )) {\n\t\t\tglobal $wpdb;\n\t\t\t$types = \"\"; \n\t\t\t$values = \"\";\n\t\t\t$magic_quotes = ini_get('magic_quotes_gpc');\n\t\t\tforeach ($log_data as $log_type => $log_value) { //parse log data from the array to be inserted\n\t\t\t\tif( !in_array( $log_type, $this->keys ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif( $magic_quotes ) {\n\t\t\t\t\t$values = stripslashes( $log_value );\n\t\t\t\t}\n\t\t\t\t$log_value = mysql_real_escape_string( $log_value );\n\t\t\t\t$types = $log_type.\",\".$types;\n\t\t\t\t$values = \"'\".$log_value.\"',\".$values;\n\t\t\t}\n\t\t\t// remove trailing commas from the SQL statement\n\t\t\t$types = rtrim( $types, ',' );\n\t\t\t$values = rtrim( $values, ',' );\n\t\t\t$sql = \"INSERT INTO \".$this->table_name.\"(\".$types.\") VALUES (\".$values.\")\";\n\t\t\t$this->rotate_log_table();\n\t\t\t$this->calls++;\n\t\t\treturn $wpdb->query($sql);\n\t\t}", "public function add_error($error)\n {\n\n $this->erorr = true;\n $this->errors[] = $error;\n\n $this->set_errors();\n\n }", "private static function addLog($msg) {\n\t\tself::$log[] = '\"'.formatTimestamp(time()).' - '.$msg.'\"';\n\t}", "public function addEntry($log_message) {\n //Check if the message is empty, if so return false\n if (!isset($log_message) || trim($log_message) !== '') {\n //Open a handle for the file\n $file_handle = fopen($this->filename, 'a');\n\n //Prepend the date to the log message and add a line break\n $log_message = \"[\" . date('Y-m-d H:i:s') . \"] \" . trim($log_message) . \"\\n\";\n\n if (fwrite($file_handle, $log_message) == false) {\n throw new exception(\"Cannot write to file $this->filename\");\n } else {\n fclose($file_handle);\n return true;\n }\n } else {\n throw new exception(\"Log message cannot be empty\");\n }\n }", "private function addError($error) {\n $this->_errors[] = $error;\n }", "public function logerrorAction()\r\n {\r\n $this->_helper->viewRenderer->setNoRender();\r\n $this->_helper->layout->disableLayout();\r\n \r\n $tipo = $this->_getParam('tipo');\r\n $origen = $this->_getParam('origen');\r\n $error = $this->_getParam('error');\r\n \r\n \r\n echo $error;\r\n \r\n $log = new Application_Plugin_LogError();\r\n $log->setLog($tipo, 3, array( 'type' => \"Application error\", 'exception' => $error, 'controller'=>null, 'action'=>null, 'parametros'=>$origen, 'referer'=>((isset($_SERVER['HTTP_REFERER']))?$_SERVER['HTTP_REFERER']:NULL),'user_id'=>((isset($this->view->user->ID))?$this->view->user->ID:NULL), 'username'=>((isset($this->view->user->username))?$this->view->user->username:NULL)));\r\n \r\n }", "function add2log($filename,$entry,$debug=true){\n $TimeStamp = date(\"Y-m-dTH:i:s+0000\");\n $entry .= \"\\n\";\n $FileHandle=fopen($filename, \"a\");\n\n if($FileHandle){\n fwrite($FileHandle, \"[ $TimeStamp ] \".$entry);\n fclose($FileHandle);\n\n //~ If debug is enable we also print some infos to the console\n if($debug){ echo($entry); }\n }\n}", "public function addError($field, $error) {\n $this->errors[$field] = $error;\n }", "public function add_error($where, $msg){\r\n\r\n\t\t$this->log_error($where, $msg);\r\n\r\n\t\t$this->errors[] = $msg;\r\n\r\n\t\t$msg_array = array(\r\n\t\t\t\t'type' => 'error',\r\n\t\t\t\t'class' => $this::ERR_MSG_CLASS,\r\n\t\t\t\t'text' => $msg\r\n\t\t);\r\n\r\n\t\t$this->all_messages[] = $msg_array;\r\n\t}", "protected function addError($data, $event)\n {\n $firstTrace = end($event['trace']);\n reset($event['trace']);\n\n $this->errors[] = [\n 'message' => $data['message'],\n 'severity' => $data['severity'],\n 'file' => str_replace($this->buildPath, '', $firstTrace['file']),\n 'line' => $firstTrace['line'],\n ];\n }", "function set_error($err) {\n # Set Current Error Message\n $this->error_message = $err;\n\n # Add to Error Log\n $this->error_log[] = $err;\n\n # Increment Error Counter\n $this->error_count++;\n }", "public function add_log($message) {\n\t\t$log_option_name = $this->get_logger_option_name();\n\t\t$log_limit = $this->get_logger_limit();\n\t\t$log = $this->get_log();\n\t\t$log[] = $message;\n\t\twhile (count($log) > 0 && count($log) > $log_limit) {\n\t\t\tarray_shift($log);\n\t\t}\n\t\tupdate_option($log_option_name, $log);\n\t}", "private function logError($file, $line)\n {\n $this->errors[md5($file.$line)] = time();\n $fh = fopen($this->logdir.\"hermes.log\", \"w\");\n if($fh == FALSE)\n return;\n if(flock($fh, LOCK_EX)) //lock file to be safe. may be atomic sometimes. idk \n {\n flock($fh, LOCK_EX);\n fseek($fh, 0 ,SEEK_END);\n foreach($this->errors as $key => $val)\n {\n fputs($fh, $key.' '.$val.\"\\n\");\n }\n flock($fh, LOCK_UN);\n }\n fclose($fh);\n }", "public function addError($msg)\n\t{\n\t\t// Add to error array\n\t\t$this->errors[] = $msg;\n\t}", "public function toLogEntry();", "public function setLogError( $message ) {\n WC_Midtrans_Logger::log( $message, 'midtrans-error', $this->id, current_time( 'timestamp' ) );\n }", "function system_log( $msg, $level = 'INFO' ){\n $ip = $_SERVER['REMOTE_ADDR'];\n $datetime = date('g:i a n/j/y');\n $script = $_SERVER['PHP_SELF'];\n $query = $_SERVER['QUERY_STRING'];\n \n $log_msg = \"\\n\\n=========================================\\n\"\n . $level . \" at \" . $datetime . \"\\n\"\n . \"Script: \" . $script . \"\\n\"\n . \"Query: \" . $query . \"\\n\"\n . \"Message: \" . $msg;\n \n file_put_contents( self::SYSTEM_FILE_PATH . \"/error.log\", $log_msg, FILE_APPEND );\n \n // Notify Jeff by email\n if( $level == 'ERROR' ){\n self::sendMail( 1, 'YANS Error Report', $log_msg );\n }\n }", "abstract protected function logException(\\Exception $ex);", "public function errorsLog($message = '', $file = '', $line = '')\n {\n error_log(\"[\" . date('Y-m-d h:i:s') . \"] text of error: {$message} | File: {$file} | String: {$line}\\n============ next ->\\n\", 3, TEMP_DIR . 'errors.log');\n }", "public function error($string)\n {\n $this->celcatWebAPI->logs[] = ['string' => $string, 'type' => 'error'];\n }", "public function error($error) {\n // que vai fazer alguma coisa (mandar um email,\n // gravar log, etc )\n $this->log($error);\n }", "public static function append($message = '', Exception $e=NULL ) {\n\t\tif (defined ( 'LOG_ENABLED' ) && LOG_ENABLED) {\n\t\t\t$mode = \"ERROR\";\n\t\t\tif($message!='' && $e!==NULL){\n\t\t\t\t$message = $message ? $message .= \"\\n\" . $e->getMessage () : $e->getMessage ();\n\n\t\t\t\t$message .= \"'\\nFrom file \" . $e->getFile () . \": \" . $e->getLine () . \"\\nStack trace:\\n\" . $e->getTraceAsString ();\n\t\t\t}elseif($message!=''){\n\t\t\t\t$message = $message ? $message .= \"\\n\" . $e->getMessage () : $e->getMessage ();\n\t\t\t}elseif($e!==NULL){\n\t\t\t\t$message = $e->getMessage ();\n\t\t\t\t$message .= \"'\\nFrom file \" . $e->getFile () . \": \" . $e->getLine () . \"\\nStack trace:\\n\" . $e->getTraceAsString ();\n\t\t\t}\n\n\n\t\t\tfile_put_contents ( LOGGER_FILE, date ( \"d.m.Y H:i:s\" ) . \" \\t$mode \\t$message\\n\", FILE_APPEND );\n\t\t}\n\t}", "private function saveToLog()\n {\n // Get the error string\n $errorString = $this->getErrorString(false);\n $errorString .= '------------------------------------------' . PHP_EOL; // log seperator\n\n // Save the error to the log\n error_log($errorString, 3, $this->errorLogPath);\n }", "public function addError($field, $error)\n {\n $this->errors[$field][] = $error;\n }", "function log(Error $error)\n {\n Logger::log($error);\n }", "private function addError(string $type, string $error)\n {\n $this->errorBucket[$type][] = $error;\n }", "function logrec($aid,$e,$msg,$src='') {\n\t// into the new record array[errors]\n\tglobal $logfile;\n\n\n\t$ts = date('H:i');\n\n\techo \"<p class='red'>$aid: $msg</p>\";\n\tfile_put_contents($logfile,\n\t\tsprintf(\"%6s %4s %1s %s\\n\",$ts,$aid,$e,$msg),FILE_APPEND);\n\tif (!empty($src)) {\n\t\tfile_put_contents($logfile,\n\t\tsprintf(\"%12s %s\\n\",'',$src),FILE_APPEND);\n\t}\n\treturn \"($e) $msg \". NL;\n}", "private function addToLog($txt){\n\n $this->db->insert('master_log',\n array(\n 'log_txt' => trim($txt),\n 'added' => 'NOW()'\n ));\n \n }", "public static function addEntry($EVENT_TYPE, $message = \"\") {\n\t\ttry {\n\t\t\n\t\t\tif (!is_numeric($EVENT_TYPE)) {\n\t\t\t\tthrow new Exception('Use EVENT_TYPE defined in VCDLog::EVENT_TYPES');\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t$entry = new VCDLogEntry($EVENT_TYPE, $message, VCDUtils::getUserID(), date(time()), $_SERVER['REMOTE_ADDR']);\n\t\t\t$logSQL = VCDClassFactory::getInstance('logSQL');\n\t\t\t$logSQL->addEntry($entry);\n\t\t\t\t\t\t\n\t\t\n\t\t} catch (Exception $ex) {\n\t\t\tthrow $ex;\n\t\t}\t\t\n\t}", "protected function assertErrorLogEntries() {}", "public function add_entry($entry);", "function logError($msg){\n $txt = $msg . \" at \" . date('l jS \\of F Y h:i:s A') . \"\\n ------------------------------------- \\n\";\n $myfile = file_put_contents('errorlogs.txt', $txt.PHP_EOL , FILE_APPEND | LOCK_EX);\n }", "function ws_error_log ($ex) {\n\tglobal $CFG;\n\tif (is_object($ex)){\n\t\t$info=$ex->getMessage() . '\\n' . $ex->getTraceAsString();\n\t}else $info=$ex;\n\terror_log ($info,3,$CFG->dataroot.'/wspp_db_errors.log' );\n}", "function log($type, $log) {\n try {\n $fh = fopen($this->logFilePath, 'a');\n fwrite($fh, date($this->dateFormat) . \" - {$type} -> {$log}\" . PHP_EOL);\n fclose($fh);\n } catch(Exception $e) {\n $this->error($e->getMessage());\n }\n }", "protected function log()\n {\n\n $this->worker\n ->setInstance($this->instance);\n // If instance can be called\n if($this->worker->ping()) {\n $infos = $this->worker->getInfos();\n $createdAt = new \\DateTime();\n\n $log = $this->logManager->createNew();\n $log->setMemory($infos['Memory']['used_memory']);\n $log->setCpu($infos['CPU']['used_cpu_sys']);\n $log->setNbClients(sizeof($this->worker->getClients()));\n $log->setCreatedAt($createdAt);\n // Add log\n $this->instance->addLog($log);\n }\n }", "function humcore_write_error_log( $error_type = '', $info = null ) {\n\n\tini_set( 'log_errors_max_len', '0' );\n\tif ( empty( $info ) ) {\n\t\terror_log( '[' . date( 'd-M-Y H:i:s T' ) . ']****************** ' . $error_type . '.' . \"\\n\\r\", 3, CORE_ERROR_LOG );\n\t} else {\n\t\terror_log( '[' . date( 'd-M-Y H:i:s T' ) . ']****************** ' . $error_type . ': ' . var_export( $info, true ) . \"\\n\\r\", 3, CORE_ERROR_LOG );\n\t}\n\n}", "public static function log()\n {\n dmContext::getInstance()->getLogger()->err(self::formatAsString(func_get_args()));\n }", "public function addLog($log_data)\n {\n // open the file\n $log_file = $this->openFile();\n\n // get current (last) line\n $log_file->seek($this->file_line);\n $this->file_line = $log_file->key() + 1;\n \n // write the log\n $time_of_day = gettimeofday(); \n $timestamp = date('Y-m-d H:i:s.',$time_of_day['sec']) . $time_of_day['usec'];\n \n $log_string = \"\\n\".$timestamp.'|'.implode('|', $log_data);\n $log_file->fwrite($log_string);\n \n // close the file\n $this->closeFile($log_file);\n }", "private function logRequest() {\n\t\t//Uncomment or set 'error_log = syslog' to log to system default syslog location\n\t\topenlog(basename(__FILE__), LOG_NDELAY, LOG_LOCAL5);\n\t\tsyslog(LOG_NOTICE, get_class($this).\" \".$_SERVER['REMOTE_ADDR'].\" did $this->_method with request: \".$this->_request['rquest'].\"\\n\");\n\t\tcloselog;\n\t}", "function error($error, $file, $line) {\n\t$this->ERRORS[] = $error;\n\tif ($this->REPORTS['print_errors'] == URL_DO_PRINT_ERRORS) {\n\t\tprintf(\"<b>%s Error:</b> %s in <b>%s:%d</b><br>\",\n\t\t\tstrToUpper(get_class($this)),\n\t\t\thtmlSpecialChars($error),\n\t\t\t$file,\n\t\t\t$line);\n\t\t}\n\t}", "public function addLogFile(string $name, string $link) : void\n {\n $this->logFiles[$name] = $link;\n }", "public static function addTagToLog($name){\n\t\tself::$tag_log[] = $name;\n\t}", "public function log($entries) {\n\n date_default_timezone_set('Europe/Madrid');\n\n if(is_string($entries)) {\n fwrite($this->handle, \"Error: [\" . date($this->dateFormat) . \"] \" . $entries);\n $this->addIpClient();\n\n return;\n }\n\n if(is_array($entries)) {\n $firstLine = true;\n foreach($entries as $value) {\n if($firstLine) {\n fwrite($this->handle, \"Error: [\" . date($this->dateFormat) . \"] \" . $value);\n $firstLine = false;\n continue;\n }\n fwrite($this->handle, $value);\n }\n\n $this->addIpClient();\n }\n }", "public function addError($key, $value)\n {\n //@TODO add error flash messaging\n $this->set('errors', [$key => $value]);\n }", "function _error_log( $data ) {\n\t\tIMFORZA_Utils::error_log( $data );\n\t}", "public function addError($message)\n {\n $this->_errors[] = $message;\n }", "private function logError($file, $started_at, $error)\n {\n ImportLog::create([\n 'file_name' => $file,\n 'started_at' => $started_at,\n 'error_at' => Carbon::now(),\n 'error' => $error,\n ]);\n }", "private function addError($key, $err_message){\n $this->errors[$key] = $err_message;\n }", "protected function errorAdd($error){\r\n //array_merge($this->errors,array('error'=>$error));\r\n $this->_errors['error']=$error;\r\n $this->_errorcnt++;\r\n }", "function lerror_log($message)\n\t{\n\t\treturn lfile_append(\"data/error_log.txt\", date('j.n.y. - G:i') . \" * \" . $message . \"\\r\\n\");\n\t}", "public function error (string $error) : void {\n\t\t$this->errors [] = $error;\n\t}", "public function log(SihnonFramework_LogEntry $entry) {\n $fields = $entry->fields();\n $types = $entry->types();\n $values = $entry->values();\n \n $bindings = array();\n for ($i = 0, $l = count($fields); $i < $l; ++$i) {\n $type = '';\n switch ($types[$i]) {\n case 'int':\n $type = PDO::PARAM_INT;\n break;\n case 'bool':\n $type = PDO::PARAM_BOOL;\n break;\n default:\n $type = PDO::PARAM_STR;\n break;\n }\n \n $bindings[] = array(\n 'name' => $fields[$i],\n 'value' => $values[$i],\n 'type' => $type, \n );\n }\n \n $field_list = join(', ', $fields);\n $bindings_list = join(', ', array_map(function($value) { return \":{$value}\"; }, $fields));\n \n $this->database->insert(\"INSERT INTO {$this->table} ({$field_list}) VALUES({$bindings_list})\", $bindings);\n }", "public function log($message): void\n\t{\n\t\t$defaults = [\n\t\t\t'SEVERITY' => 'INFO',\n\t\t\t'AUDIT_TYPE_ID' => $this->auditTypeId,\n\t\t\t'ITEM_ID' => $this->itemId ?: '',\n\t\t];\n\n\t\t$message = $this->logMessToArray($message);\n\n\t\tCEventLog::Add(array_merge($defaults, $message, ['MODULE_ID' => $this->moduleId]));\n\t}", "public function log($info, $file =\"\", $line = \"\")\n {\n if($this->loggingEnabled)\n {\n try \n {\n $dirpath = $this->logDir.\"/\".date(\"M_Y\");\n $filepath = $dirpath.\"/\".date(\"d_M_Y\").\".log\";\n $header = \"[\".date(\"H:i\");// .\"]: \";\n $header = $file == \"\" && $line == \"\" ? $header.\"]: \" : $header.\" in $file at $line]: \";\n if(!is_dir($dirpath))\n mkdir($dirpath);\n $fh = fopen($filepath,\"a\");\t\n fwrite($fh,$header.$info.\"\\n\");\n }\n catch(exception $ex) {} //check perms\n }\n }", "public function addError($attribute, $error) {\n if (!array_key_exists($attribute, $this->_data))\n $this->_data[$attribute] = null;\n \n parent::addError($attribute, $error);\n FErrorHandler::logError($error);\n }", "public function log($msg) {\n $msg = sprintf(\"{%s} - %s\", get_class($this), $msg);\n $this->logger->log($msg);\n }", "public function logAppError($err): void\n {\n $err .= \"\\r\\n\";\n // set path and name of log file (optional)\n $this->errorStatus = static::getLevelName(self::ERROR);\n $file_name = $this->getLogRoot() . 'appLogs_' . date('Ymd') . '.log';\n $this->logError($err, $file_name);\n }", "private function log($method, $string, $args){\n $strings = array(\n \"error-comment-uid\" => \"The comment UID is invalid or does not exist [%s]\",\n \"error-page-uuid\" => \"The page uuid is invalid or does not exist [%s]\",\n \"error-create-dir\" => \"The comment directory could not be created [%s]\",\n \"error-create-file\" => \"The comment file could not be created [%s]\",\n \"error-comment-file\" => \"The comment file does not exist [%s]\",\n \"error-comment-update\" => \"The comment file could not be updated [%s]\",\n \"error-comment-remove\" => \"The comment file could not be deleted [%s]\",\n \"error-update-db\" => \"The comment database could not be updated\"\n );\n if(array_key_exists($string, $strings)){\n $string = $strings[$string];\n }\n Log::set($method . LOG_SEP . vsprintf(\"Error occured: {$string}\", $args), LOG_TYPE_ERROR);\n }", "public function addLog ( $keys, $received, $sent, $base_string, $notes, $user_id = null ) { }", "public function add(Exception $exception, $source = NULL) {\n $this->_errors[] = array(\n 'exception' => $exception,\n 'source' => $source,\n );\n }", "public function addMessage(string $message): void\n {\n $this->errorMessages[] = $message;\n }" ]
[ "0.6566599", "0.6511239", "0.638109", "0.6309847", "0.6227581", "0.6165268", "0.61464125", "0.61134076", "0.6095169", "0.6069783", "0.6055439", "0.6028282", "0.59812117", "0.5956607", "0.59237784", "0.5887861", "0.5885852", "0.58576334", "0.58566093", "0.58048207", "0.58048207", "0.5803861", "0.5799482", "0.5790312", "0.57868516", "0.5744662", "0.5741649", "0.5730865", "0.5715884", "0.5697567", "0.5697551", "0.56937164", "0.56921864", "0.56885123", "0.5667639", "0.56655425", "0.5647045", "0.56456643", "0.5631159", "0.56268054", "0.5622213", "0.56174624", "0.56147563", "0.5587779", "0.55766857", "0.5563119", "0.5560878", "0.55581784", "0.5552657", "0.5548038", "0.5542942", "0.5540132", "0.5536803", "0.5531057", "0.5521974", "0.5520107", "0.55089146", "0.5503606", "0.5483746", "0.54620004", "0.543674", "0.54117906", "0.54063463", "0.5401327", "0.5394715", "0.53924805", "0.53894174", "0.5384019", "0.5374322", "0.53673154", "0.5355634", "0.534541", "0.5344166", "0.53404117", "0.5336565", "0.5329679", "0.5328168", "0.5320087", "0.53193384", "0.53126913", "0.53110677", "0.5307668", "0.53006184", "0.52939045", "0.52854216", "0.5284378", "0.52762425", "0.52698135", "0.5259138", "0.52568877", "0.52542573", "0.5251494", "0.52500176", "0.5247977", "0.5247807", "0.5245168", "0.5244714", "0.5243844", "0.5243499", "0.52425206", "0.524068" ]
0.0
-1
Log this error and throw an exception (with an error message) for the calling code to handle.
protected function reportError($message, $code) { $this->logError($message); throw new \Exception($message, $code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function logException()\n {\n switch ($this->classShortName) {\n case 'IndexException':\n case 'CreateException':\n case 'ReadException':\n case 'UpdateException':\n case 'DeleteException':\n Log::error($this->message);\n Log::error(print_r($this->getExceptionData(), true));\n break;\n default:\n Log::error($this->message);\n }\n }", "public function error()\n {\n throw new Exception('Something went wrong!');\n }", "public function logError() {}", "public function error()\n {\n $this->appendLog(\n 'error',\n \\func_get_args(),\n $this->internal->getErrorCaller()\n );\n }", "abstract protected function logException(\\Exception $ex);", "public function logError(){\n AbstractLoggedException::$dbMessage .= \"Invalid URI requestd; \";\n parent::log();\n }", "protected function error($msg) {\n \t parent::error($msg); //log in error msg\n throw new Exception ($msg); // <-- TESTS php4\n }", "private function _logError()\n {\n if(!$this->_error) return;\n\n $error_file = APPLICATION_DATA . '/logs/log_apps.log';\n // set content of error file\n $content = 'Date: ' . date('Y-m-d H:i:s') . PHP_EOL;\n $content .= 'Message: ' . $this->_error->exception->getMessage() . PHP_EOL;\n $content .= 'File: ' . $this->_error->exception->getFile() . PHP_EOL;\n $content .= 'Line: ' . $this->_error->exception->getLine() . PHP_EOL;\n $content .= 'Request Uri: ' . $this->_error->request->getRequestUri() . PHP_EOL;\n $content .= 'Request Method: ' . $this->_error->request->getMethod() . PHP_EOL;\n $content .= 'Request Params: ' . json_encode($this->_error->request->getParams()) . PHP_EOL;\n $content .= 'Id User: ' . Base_Auth::getUser('id_user') . PHP_EOL;\n $content .= '-----------------------------------' . PHP_EOL;\n\n // write content to file\n if(file_exists($error_file)){\n $content.= file_get_contents($error_file, false, null, null, 1024*1024); // last 1Mb of log;\n }\n\n $handle = fopen( $error_file, 'w' );\n fwrite($handle, $content);\n fclose($handle);\n }", "protected function manageError( string $message )\n {\n $this->logger->error($message);\n throw new \\Exception($message);\n }", "public function failed()\n {\n $msg = self::class;\n $msg .= ' - Código: '.$this->$code;\n\n app('LogExtract')->error($msg);\n }", "function logError(){\r\n\r\n\t\t$message = $_SERVER[\"REQUEST_URI\"].\"\\n\";\r\n\t\t$message .= $this->number;\r\n\r\n\t\tif($this->title)\r\n\t\t\t$message.=\": \".$this->title;\r\n\r\n\t\tif($this->details)\r\n\t\t\t$message.=\"\\n\\n\".$this->details;\r\n\r\n\t\t$log = new phpbmsLog($message,\"ERROR\");\r\n\r\n\t}", "protected function logException(Exception $ex) { $this->_traiat_errorLogger->logException($ex, TRUE); }", "abstract protected function handleError(\\Exception $e);", "public function throwError();", "public function raise() {\n throw $this;\n }", "protected function logException($e)\n {\n if ($e instanceof ApiException) {\n $message = $e->getMessage();\n $this->getLogger()->error(\"Api Error: \" . $message);\n $respBody = $e->getResponseBody();\n\n if ($respBody) {\n $detail = json_encode($respBody);\n $this->getLogger()->error($detail);\n }\n }\n }", "private function throwException()\n {\n throw new CacheException(\\odbc_errormsg(), (int) \\odbc_error());\n }", "public function catchException()\n {\n // get the current exception\n $e = $this->getException();\n\n // throw a copy, with the original as the previous exception so that\n // we can see a full trace.\n $class = get_class($e);\n throw new $class($e->getMessage(), $e->getCode(), $e);\n }", "public function logError(Exception $e)\n {\n NostoHelperLogger::error($e);\n }", "function act() {\n throw $this->exception;\n }", "public function throwException() {\n throw new FPCAuthentication_Exception(\"Invalid login and/or password\", $this->_login);\n }", "public function handle() {\n throw new Exception(\"This is a test exception.\");\n }", "public function UnhandeldException(){\n\t\t$this -> message = \"An unhandeld exception was thrown. Please infrom...\";\n\t}", "public function report(Exception $e)\n {\n Log::error($e);\n\n parent::report($e);\n }", "public static function raiseError(\\Exception $e)\r\n\t{\r\n\t\tif(self::$debug)\r\n\t\t\tself::$debugData .= \"Exception at \" . basename($e->getFile()) . \":\"\r\n\t\t\t\t. $e->getLine() . \": \" . self::makePrintable($e->getMessage())\r\n\t\t\t\t. \"\\n\";\r\n\t}", "protected function error()\n {\n $this->response = $this->response->withStatus(500);\n $this->jsonBody([\n 'input' => $this->payload->getInput(),\n 'error' => $this->payload->getOutput(),\n ]);\n }", "function log_exception(Throwable $e) // for php => 7.0\n{\n $message = \"Line {$e->getLine()} in \" . basename($e->getFile()) . \", {$e->getMessage()} (\" . get_class($e) . \")\";\n append_message($message);\n exit();\n}", "public function InvalidOperationException()\n {\n $this->Base();\n }", "public function logerrorAction()\r\n {\r\n $this->_helper->viewRenderer->setNoRender();\r\n $this->_helper->layout->disableLayout();\r\n \r\n $tipo = $this->_getParam('tipo');\r\n $origen = $this->_getParam('origen');\r\n $error = $this->_getParam('error');\r\n \r\n \r\n echo $error;\r\n \r\n $log = new Application_Plugin_LogError();\r\n $log->setLog($tipo, 3, array( 'type' => \"Application error\", 'exception' => $error, 'controller'=>null, 'action'=>null, 'parametros'=>$origen, 'referer'=>((isset($_SERVER['HTTP_REFERER']))?$_SERVER['HTTP_REFERER']:NULL),'user_id'=>((isset($this->view->user->ID))?$this->view->user->ID:NULL), 'username'=>((isset($this->view->user->username))?$this->view->user->username:NULL)));\r\n \r\n }", "public static function err() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add message to log:\n\t\treturn self::add(LOG_ERR, $args);\n\t}", "public static function log($message, $code = 1) {\n\t\t$e = new BaseException($message, $code);\n\t\t$e->saveLog();\n\t}", "public function getException();", "public function handle_error() {\n $last_operation = $this->add_last_operation;\n $data = array(\n 'function_name' => is_array($last_operation[0]) ? $last_operation[0][1] : $last_operation[0],\n 'function_name_complete' => is_array($last_operation[0]) ? (is_string($last_operation[0][0]) ? $last_operation[0][0].':' : get_class($last_operation[0][0]).'->').$last_operation[0][1] : $last_operation[0],\n 'args' => $last_operation[1]\n );\n\n switch (strtolower($data['function_name'])) {\n case 'autoexecute':\n $data['table'] = $data['args'][0];\n $data['fields'] = $data['args'][1];\n $data['operation'] = $data['args'][2];\n break;\n }\n\n $data['debug'] = $last_operation;\n if (class_exists('e_database'))\n throw new e_database($this->adodb->ErrorMsg(),$data,$this->adodb->ErrorNo());\n else\n throw new Exception($this->adodb->ErrorMsg(),$this->adodb->ErrorNo());\n }", "function raise($message) {\n\t\t\t$error_message = \"Model Class: \".$this->get_class_name().\"<br />\";\n\t\t\t$error_message .= \"Error Message: \".$message;\n\t\t\tthrow new ActiveRecordException($error_message, \"500\");\n\t\t}", "public static function logError($info) {\n\t\ttry {\n\t\t\t$db = new OneArchyDB(F2T_DB_HOST, F2T_DB_NAME, F2T_DB_USER, F2T_DB_PASS);\n $db->connect();\n\t\t\t$db->logError($info['errorMessage'], $info['content']);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow new Exception('Even error logging failed? Wow! ' . $e->getMessage());\n\t\t}\n\t}", "public function logException($e = NULL) {\n if (empty($e)) {\n $e = new Exception('Dummy exception');\n }\n $this->logManager->log($e, 'Exception');\n }", "public function handle(\\Exception $error);", "public function error($message) {\n\t\t\t$this->log('error', $message);\n\t\t}", "public function throwErrorAction() {\n $message = $this->getRequestParam(\"message\", null);\n if (($error_code = $this->getRequestParam(\"error_code\")) && !empty($error_code)) {\n if (!empty($message))\n $this->respondWithValidationError($error_code, $message);\n else\n $this->respondWithError($error_code);\n }\n\n return;\n }", "private function logError(Request $request, ClientException $exception)\n {\n $this->logger()->error(\\Spiral\\interpolate(static::LOG_FORMAT, [\n 'scheme' => $request->getUri()->getScheme(),\n 'host' => $request->getUri()->getHost(),\n 'path' => $request->getUri()->getPath(),\n 'code' => $exception->getCode(),\n 'message' => $exception->getMessage() ?: '-not specified-',\n 'remote' => $this->findIp($request)\n ]));\n }", "protected function throwErrorWhileSavingResponseException()\n {\n throw new InvalidScreenForNewSessionException('An error occured while saving data.');\n }", "function logException ($ex) {\n\t\techo \"Should log: \".$ex->getMessage();\n\t}", "public function logException($event)\n {\n $exception = $event->getResult()->exception;\n if ($exception) {\n $sm = $event->getApplication()->getServiceManager();\n $service = $sm->get('Logger');\n $service->err($exception);\n }\n }", "public function error($message): void\n {\n $this->log(__FUNCTION__, $message);\n }", "function log_error($num, $str, $file, $line, $context = null)\n{\n log_exception(new ErrorException($str, 0, $num, $file, $line));\n}", "private function error(\\Exception $e)\n {\n if (!$this->optionMuteAllErrors) {\n if ($this->errorHandler) {\n $errorHandler = $this->errorHandler;\n $errorHandler($e);\n } else {\n throw $e;\n }\n }\n }", "protected function logError($message)\n {\n $this->logger->error($message);\n }", "abstract public function logException(string $log_level, \\Exception $exception);", "abstract public function error();", "public static function exception($value)\n {\n self::$logs .= '[' . date('Y-m-d H:i:s', time()) . '] Exception ' . $value . \"\\n\";\n }", "public function error($message, $method = 'no context given', array $logData = [], $justLog = false);", "public function logThrowable(\\Throwable $throwable, array $additionalData = []);", "public function logError($message) {\n $this->log($message, 'error');\n }", "public function error($message)\n {\n if ($this->_logLevel>=1) {\n self::log($message, Zend_Log::ERR);\n }\n }", "public function logError($message)\n\t{\n\t\t$this->log($message, self::ERROR);\n\t}", "private function error()\n {\n // Throw an exception, as the query failed\n throw new QueryExecutionException('Mysqli error '.$this->client->errno.': '.$this->client->error);\n }", "public function report(Exception $e)\n\t{\n \\Log::error($e);\n\n\t\treturn parent::report($e);\n\t}", "public function report(Exception $e)\n\t{\n \\Log::error($e);\n\n\t\treturn parent::report($e);\n\t}", "public function error()\n\t{\n\t}", "public static function error($inMessage) {\n\t\tself::getInstance()->log($inMessage, systemLogLevel::ERROR);\n\t}", "public function throw_error($msg = null)\n {\n if (empty($msg)) {\n $msg = 'An error occurred while interacting with a database ' .\n \"using <strong>{$this->to_string()}</strong> adapter.\";\n }\n CREO('application_error_code', 500);\n CREO('application_error', $msg);\n }", "function ws_error_log ($ex) {\n\tglobal $CFG;\n\tif (is_object($ex)){\n\t\t$info=$ex->getMessage() . '\\n' . $ex->getTraceAsString();\n\t}else $info=$ex;\n\terror_log ($info,3,$CFG->dataroot.'/wspp_db_errors.log' );\n}", "function error_handler($errno, $string, $file, $line, $context) {\n throw new Trails_Exception(500, $string);\n }", "public function stacktrace() {\n\n if ( true === WP_DEBUG ) {\n\n $e = new \\Exception;\n $this->log( $e->getTraceAsString() );\n }\n }", "function error(Throwable $error);", "public function err($message)\r\n {\r\n $this->log($message, SF_LOG_ERR);\r\n }", "function handleException( $exception ) {\n echo \"Sorry, a problem occurred. Please try later.\";\n error_log( $exception->getMessage() );\n}", "function atkerror($txt)\n{\n\tglobal $g_error_msg;\n\t$g_error_msg[]=\"[\".elapsed().\"] \".$txt;\n\n\tatkdebug($txt, DEBUG_ERROR);\n\n\tif (function_exists('debug_backtrace'))\n\tatkdebug(\"Trace:\".atk_get_trace(), DEBUG_ERROR);\n\n\tif (atkconfig('throw_exception_on_error'))\n\t{\n\t\tthrow new Exception($txt);\n\t}\n}", "public static function error($log_text, $throw = true) {\n\t\tif(self::$log_current_level < 3) {\n\t\t\tself::$log_current_level = 3;\n\t\t}\n\t\tif(DEBUG) {\n\t\t\techo \"<pre style='text-align: left;'>\";\n\t\t\techo $log_text;\n\t\t\techo \"</pre>\";\n\t\t}\n\t\tself::$log[] = self::buildLogLine(\"error\", debug_backtrace(), $log_text);\n\n\t\t// If this is an unrecoverable error, we need to stop execution.\n\t\tif($throw) {\n\t\t\tthrow new Exception(\"A fatal error occured. A report has been filed with the administrator.\");\n\t\t}\n\t}", "protected function onHandleError($exception)\n {\n $message = $exception->getMessage();\n Yii::log($message, CLogger::LEVEL_ERROR);\n throw $exception;\n }", "public static function log()\n {\n dmContext::getInstance()->getLogger()->err(self::formatAsString(func_get_args()));\n }", "public function error($error) {\n // que vai fazer alguma coisa (mandar um email,\n // gravar log, etc )\n $this->log($error);\n }", "public function printErrorLog() {}", "public function makeException()\n {\n $this->thrownException = ResponseException::create($this);\n }", "function texc($x)\r\n{\r\n\tthrow new \\Exception('Debug: ' . $x);\r\n}", "abstract public function handleFatalError($e);", "public static function setError($message) {\n self::$_class = \"Example\\\\Excel\\\\Controllers\\\\Error\";\n throw new \\Exception($message);\n }", "public function saveErrorLog()\n {\n $attributes = Json::encode($this->attributes);\n Yii::error('Failed to save ' . static::class . ' model. Attributes: ' . $attributes);\n }", "public function error($string)\r\n {\r\n $this->getLogger()->log($string, self::ERROR);\r\n }", "function error_handler ($errno, $error, $file, $line)\r\n{\r\n\tthrow new Error ($error . sprintf (' (%s %u)', $file, $line));\r\n}", "public function error() {\n // The tests cover errors, so there will be plenty to sift through\n // $msg = func_get_arg(0);\n // $err = 'API ERROR: ' . $msg . PHP_EOL;\n\n // $objs = func_get_args();\n // array_splice($objs, 0, 1);\n\n // ob_start();\n // foreach($objs as $obj) {\n // var_dump($obj);\n // }\n // $strings = ob_get_clean();\n\n // file_put_contents('tests.log', [$err, $strings], FILE_APPEND);\n }", "protected function error(Exception $err)\r\n {\r\n $type = get_class($err);\r\n $msg = $err->getMessage();\r\n\r\n if (!$this->error_callbacks->isEmpty()) {\r\n foreach ($this->error_callbacks as $callback) {\r\n if (is_callable($callback)) {\r\n if (is_string($callback)) {\r\n $callback($this, $msg, $type, $err);\r\n\r\n return;\r\n } else {\r\n call_user_func($callback, $this, $msg, $type, $err);\r\n\r\n return;\r\n }\r\n } else {\r\n if (null !== $this->service && null !== $this->response) {\r\n $this->service->flash($err);\r\n $this->response->redirect($callback);\r\n }\r\n }\r\n }\r\n } else {\r\n $this->response->code(500);\r\n throw new UnhandledException($msg, $err->getCode(), $err);\r\n }\r\n\r\n // Lock our response, since we probably don't want\r\n // anything else messing with our error code/body\r\n $this->response->lock();\r\n }", "function raiseError($message = '') {\n throw new DbQueryException($message . '. ' . mysql_error($this->connectionId), __FILE__, __LINE__);\n }", "protected function _error( $e )\n\t{\n\t\t$backtrace = debug_backtrace();\n\t\tarray_shift($backtrace);\n\t\t$functions_backtrace = array();\n\t\tforeach ( $backtrace as $call )\n\t\t\t$functions_backtrace[] = $call['function'];\n\t\t$this->errors[] = array('backtrace' => $functions_backtrace, 'error' => $e);\n\t}", "public function error();", "public function err($message)\n {\n $this->log($message, self::ERR);\n }", "public function error(string $msg = '', int $status = HttpStatusCode::INTERNAL_SERVER_ERROR) {\n $this->content = $msg;\n $this->status = $status;\n throw new \\Exception($msg, $status);\n }", "public function logError($message)\n\t\t{\n\t\t\t$this->logMessage(\"ERROR\", $message);\n\t\t}", "public function report(Exception $e) {\n Log::critical(\"The application could not process a request due to an error with the internal configuration\");\n Log::critical($e);\n }", "function log_error( $msg ){\n self::system_log( $msg, 'ERROR' );\n }", "private function error($response) {\n\t\tif(property_exists($response, \"error\") AND $response->code != 200) {\n\t\t\tthrow new MystoreAPI_exception(\"Error \".$response->code.\"<br />\".$response->error->message);\n\t\t}\n\t}", "public function log($level, $message, array $context = array()) {\n throw new Exception('Please call specific logging message');\n }", "private static function log(Exception $e)\r\n {\r\n $userAgent = (isset($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] : '';\r\n $referrer = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';\r\n $request = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : '';\r\n\r\n $message = vsprintf(\"\\n[%s] [%s %s] %s\\n\\nREFERRER: %s\\n\\nREQUEST: %s\\n\\n%s\", array(\r\n @gmdate('D M d H:i:s Y'),\r\n $_SERVER['REMOTE_ADDR'],\r\n $userAgent,\r\n $e->getMessage(),\r\n $referrer,\r\n $request,\r\n $e->getTraceAsString(),\r\n ));\r\n\r\n return @error_log($message, 3, SLIRConfig::$pathToErrorLog);\r\n }", "protected function getLastError() {}", "public function setLogError( $message ) {\n WC_Midtrans_Logger::log( $message, 'midtrans-error', $this->id, current_time( 'timestamp' ) );\n }", "private function processException(\\Throwable $e): void\n {\n LoggerHelper::logRawException($this->logger, $e);\n }", "public function logException(Throwable $exception): void\n {\n $message = 'Uncaught exception #' . $exception->getCode() . ': ' . $exception->getMessage();\n $this->error($message, ['exception' => $exception]);\n }", "public function __clone() {\r\n throw new Exception('Cannot clone the logger object.');\r\n }", "function do_exception($line, $code = -1) {\n\tthrow new Exception(\"Error at line: {$line}\", $code);\n}", "function uncaught_exception($o){\n $o['message'] = Trace::exceptionToText($o['exception']);\n $o['trace'] = Trace::exFullTrace($o['exception']);\n unexpected_failure($o);\n }", "private function handleException($e)\n {\n // TODO: test coverage\n if ($e instanceof ClientException) {\n // will catch all 4xx errors\n if ($e->getResponse()->getStatusCode() == 403) {\n throw new AuthenticationException(\n $this->apiKey,\n $this->apiSecret,\n null,\n $e\n );\n } else {\n throw new DomainException(\n 'The OpenTok API request failed: ' . json_decode($e->getResponse()->getBody(true))->message,\n null,\n $e\n );\n }\n } else if ($e instanceof ServerException) {\n // will catch all 5xx errors\n throw new UnexpectedValueException(\n 'The OpenTok API server responded with an error: ' . json_decode($e->getResponse()->getBody(true))->message,\n null,\n $e\n );\n } else {\n // TODO: check if this works because Exception is an interface not a class\n throw new Exception('An unexpected error occurred');\n }\n }" ]
[ "0.7280302", "0.70919263", "0.70340806", "0.69893104", "0.69068074", "0.6841747", "0.64797425", "0.6456689", "0.638433", "0.63667655", "0.62850773", "0.6209135", "0.61870736", "0.61545515", "0.61362314", "0.6105248", "0.60717905", "0.60542595", "0.6043762", "0.60002434", "0.59714645", "0.59707296", "0.5949167", "0.5934483", "0.59167606", "0.58937514", "0.58533657", "0.58447856", "0.5838023", "0.5823726", "0.58197844", "0.58175725", "0.5805186", "0.58041877", "0.580393", "0.5785514", "0.57840335", "0.57829726", "0.5780034", "0.577454", "0.5773912", "0.5772786", "0.57701015", "0.57540023", "0.5747543", "0.5745507", "0.5739585", "0.5731647", "0.5721497", "0.570259", "0.56850696", "0.5667516", "0.5666908", "0.56559896", "0.56539434", "0.5644865", "0.5642486", "0.5642486", "0.56158197", "0.5605657", "0.5600817", "0.5600654", "0.5596281", "0.5579052", "0.55762786", "0.556445", "0.5545404", "0.55443686", "0.55295014", "0.5521856", "0.5521768", "0.552036", "0.55177754", "0.551736", "0.5512272", "0.55091465", "0.54998314", "0.5498816", "0.54930407", "0.5490092", "0.54864436", "0.548482", "0.5484572", "0.5480002", "0.5479797", "0.54685515", "0.5461448", "0.54585826", "0.54536253", "0.5453106", "0.54500693", "0.54480994", "0.5441412", "0.54339266", "0.5433383", "0.54326624", "0.54295766", "0.54214334", "0.5420707", "0.5419953", "0.54166406" ]
0.0
-1
Display a listing of the resource.
public function index() { return response()->json([ [ 'id' => 1 , 'title' => 'Title' , 'content' => 'hello world!'] , [ 'id' => 2 , 'title' => 'Title 1' , 'content' => 'hello world! 1'] , [ 'id' => 3 , 'title' => 'Title 2' , 'content' => 'hello world! 2'] , [ 'id' => 4 , 'title' => 'Title 3' , 'content' => 'hello world! 3'] , [ 'id' => 5 , 'title' => 'Title 4' , 'content' => 'hello world! 4'] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Run the database seeds.
public function run() { $superAdmin = \App\Models\Role::create([ 'name'=> 'supper_admin', 'display_name'=> 'supper admin', 'description'=> 'can do any thing' ]); $user = \App\Models\Role::create([ 'name' => 'user', 'display_name' => 'user', 'description' => 'can do tasks ' ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return request()->user() != null;\n }", "public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }", "public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }", "public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }", "public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }", "public function isAuthorized() {}", "public function authorize()\n {\n return request()->loggedin_role === 1;\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') && $this->model->id != user()->id) {\n return false;\n }\n }\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }", "public function authorize()\n {\n switch (true) {\n case $this->wantsToList():\n case $this->wantsToShow():\n if ($this->hasRoles(['owner', 'administrator'])) {\n return true;\n }\n break;\n case $this->wantsToStore():\n case $this->wantsToUpdate():\n case $this->wantsToDestroy():\n if ($this->hasRoles(['owner'])) {\n return true;\n }\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }", "public function authorize()\n {\n $user = auth('web')->user();\n if ($user && $user->active) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function isAuthorized() {\n\t\treturn true;\n\t}", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin'])) {\n return true;\n } else {\n return false;\n }\n }", "public function isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}", "public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }", "public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }", "public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "public function hasAuthorized() {\n return $this->_has(1);\n }", "public function authorize()\n {\n $resource = Resource::find($this->route('id'));\n\n if (!$resource) {\n return true;\n }\n\n return $resource && $this->user()->can('access', $resource);\n }", "public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }", "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n return \\Auth::check() ? true : false;\n }", "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return !empty(Auth::user());\n }", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function isAuthorized() {\n\t\t\n\t}", "public function authorize()\n {\n if(Auth::check())\n {\n return (Auth::user()->has_world_admin_access);\n }\n return false;\n }", "public function authorize()\n {\n if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }", "public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }", "public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n return $this->auth->check();\n }", "public function authorize() {\n\t\t$user = \\Auth::user();\n\n\t\tif ( $user->isAdmin() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function authorize()\n {\n if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "function isAuthorized($request) {\n return true;\n }", "public function authorize()\n {\n return Auth::guest() || isMember();\n }", "public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }", "public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }", "public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }", "public function authorize()\n {\n return TRUE;\n }", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }", "public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\n }", "public function authorize()\n {\n $project = \\App\\Project::find($this->request->get('project'));\n return $project && $project->isManager($this->user()->name);\n }", "public function isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "public function authorize()\n {\n $organizationId = (string) $this->route('id');\n\n $this->organization = Organization::findByUuidOrFail($organizationId);\n\n return $this->user()->can('show', [Organization::class, $this->organization]);\n }", "public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n $current_user = auth()->user();\n $convention = Convention::find($this->route('convention_id'));\n\n // Use ClientPolicy here to authorize before checking the fields\n return $current_user->can('store', Convention::class)\n || $current_user->can('update', $convention);\n }", "public function authorize()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }" ]
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.7891453", "0.7890965", "0.7862504", "0.78414804", "0.78414804", "0.7837965", "0.78248763", "0.7812292", "0.7809632", "0.77928597", "0.7788316", "0.7781619", "0.77815884", "0.7763308", "0.7754035", "0.7717961", "0.7717961", "0.77171147", "0.77138597", "0.7705001", "0.7693082", "0.7692783", "0.76915383", "0.76909506", "0.76733255", "0.7667128", "0.7665592", "0.7656238", "0.7650853", "0.764326", "0.76431626", "0.76431614", "0.7635147", "0.76311624", "0.76294273", "0.7627076", "0.76207024", "0.76207024", "0.76139116", "0.76036394", "0.76035625", "0.76035625", "0.76032084", "0.7602515", "0.76007926", "0.75971127", "0.7588128", "0.7586303", "0.7581912", "0.7563037", "0.7554785", "0.75526226", "0.755171", "0.75436753", "0.75432944", "0.7540682", "0.7538806", "0.75280696", "0.751548", "0.75149626", "0.7501161", "0.74959517", "0.74956346", "0.74911124", "0.7489147", "0.74858016", "0.748033", "0.7478443", "0.7472642", "0.7472576", "0.7465409", "0.7464371", "0.74630046", "0.7462218", "0.7461453", "0.7449168", "0.74399257", "0.74358094", "0.7433247", "0.7432659", "0.74248093" ]
0.0
-1
Get the validation rules that apply to the request.
public function rules() { $pstns = ''; if (is_array($this->input('PstnNumbers'))) $pstns = implode(',', $this->input('PstnNumbers')); return $rules = [ 'label' => 'required|max:30', 'maxChannels' => 'required|in:2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,40,50,60', 'areaCode' => 'required|insee_code', 'PstnNumbers' => 'filled|array', 'PstnNumbers.*' => 'filled|e164_number|fixed_number_fr|unique_pstn', 'defaultPstn' => 'e164_number|phone:AUTO,FR|in:' . $pstns, 'unreachable' => 'e164_number|phone:AUTO,FR', 'callBarrings' => 'filled|array', 'callBarrings.*' => 'filled|call_barring', 'allowedPublicIPAddress' => 'present|public_ipv4', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "public function rules()\n {\n return $this->validationRules;\n }", "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "public function getRules()\n {\n return $this->validation_rules;\n }", "public function getValidationRules()\n {\n return [];\n }", "public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }", "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }", "public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }", "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }", "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }", "public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }", "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "protected function getValidRules()\n {\n return $this->validRules;\n }", "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n { \n return $this->rules;\n }", "public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }", "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "public function validationRules()\n {\n return [];\n }", "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n return static::$rules;\n }", "function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }", "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }", "public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }", "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "abstract protected function getValidationRules();", "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }", "public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }", "public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }", "public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }", "public function getValidationRules() : array;", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}", "public function rules()\n {\n $rules = array();\n return $rules;\n }", "public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }", "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "protected function get_validation_rules()\n {\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "public function defineValidationRules()\n {\n return [];\n }", "public function rules(Request $request)\n {\n return Qc::$rules;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }", "public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }" ]
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7675849", "0.76724476", "0.76665044", "0.7657698", "0.7641827", "0.7630892", "0.76293766", "0.7617708", "0.76102096", "0.7607475", "0.7602442", "0.7598732", "0.7597544", "0.75924", "0.75915384", "0.7588146", "0.7581354", "0.7555758", "0.755526", "0.7551423", "0.7546329", "0.7541439", "0.75366044", "0.75363225", "0.7530296", "0.7517988", "0.75155175", "0.7508439", "0.75069886", "0.7505724", "0.749979", "0.7495976", "0.74949056", "0.7492888", "0.7491117", "0.74901396", "0.7489651", "0.7486808", "0.7486108", "0.7479687", "0.7478561", "0.7469412", "0.74635684", "0.74619836", "0.7461325", "0.74591017", "0.7455279", "0.745352", "0.7453257", "0.7449877", "0.74486", "0.7441391", "0.7440429", "0.7435489", "0.7435326", "0.74341524", "0.7430354", "0.7429103", "0.7423808", "0.741936", "0.74152505", "0.7414828", "0.741382", "0.74126065", "0.74105227", "0.740555", "0.7404385", "0.74040926", "0.74015605", "0.73905706", "0.73837525", "0.73732615", "0.7371123", "0.7369176", "0.73619753", "0.73554605", "0.73448825", "0.7344659", "0.73427117", "0.73357755" ]
0.0
-1
Create a new download engine instance.
public function __construct(File $file) { $this->file = $file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function engine(): Factory\n {\n if (!(self::$engine instanceof Factory)) {\n $loader = new FileLoader(new Filesystem(), self::$translationFolderPath);\n $translator = new Translator($loader, self::$lang);\n self::$engine = new Factory($translator, new Container());\n }\n\n return self::$engine;\n }", "public static function create() :DownloadLog\n {\n return new DownloadLog();\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function engine()\n\t{\n\t\tstatic $instance;\n\t\treturn $instance ?: $instance = new Engine();\n\t}", "public function create()\n {\n $downloads = Redis::get(\"themes/download/{id}\");\n Redis::incr(\"themes/download/{id}\");\n\n //mu downloads for individual reference\n return Storage::download('mu-individual-ref.docx');\n\n }", "public static abstract function createInstance();", "function __construct($engine, $params)\n {\n }", "public function createLatteEngine()\n {\n $latte = new Latte\\Engine();\n $tmpDir = $this->config->value('tmpDir', 'tmp');\n if ($tmpDir[0] !== '/') {\n $tmpDir = __DIR__ . '/../' . $tmpDir . '/latte';\n }\n $latte->setTempDirectory($tmpDir);\n return $latte;\n }", "protected function makeConnector()\n\t{\n\t\t$config = Factory::getConfiguration();\n\n\t\t$access_token = trim($config->get('engine.postproc.' . $this->settingsKey . '.access_token', ''));\n\t\t$refresh_token = trim($config->get('engine.postproc.' . $this->settingsKey . '.refresh_token', ''));\n\n\t\t$this->directory = $config->get('volatile.postproc.directory', null);\n\n\t\tif (empty($this->directory))\n\t\t{\n\t\t\t$this->directory = $config->get('engine.postproc.' . $this->settingsKey . '.directory', '');\n\t\t}\n\n\t\t// Sanity checks\n\t\tif (empty($refresh_token))\n\t\t{\n\t\t\tthrow new BadConfiguration('You have not linked Akeeba Backup with your Box account');\n\t\t}\n\n\t\tif (!function_exists('curl_init'))\n\t\t{\n\t\t\tthrow new BadConfiguration('cURL is not enabled, please enable it in order to post-process your archives');\n\t\t}\n\n\t\t// Fix the directory name, if required\n\t\t$this->directory = empty($this->directory) ? '' : $this->directory;\n\t\t$this->directory = trim($this->directory);\n\t\t$this->directory = ltrim(Factory::getFilesystemTools()->TranslateWinPath($this->directory), '/');\n\t\t$this->directory = Factory::getFilesystemTools()->replace_archive_name_variables($this->directory);\n\t\t$config->set('volatile.postproc.directory', $this->directory);\n\n\t\t// Get Download ID\n\t\t$dlid = Platform::getInstance()->get_platform_configuration_option('update_dlid', '');\n\n\t\tif (empty($dlid))\n\t\t{\n\t\t\tthrow new BadConfiguration('You must enter your Download ID in the application configuration before using the “Upload to Box.com” feature.');\n\t\t}\n\n\t\t$connector = new ConnectorBox($access_token, $refresh_token, $dlid);\n\n\t\t// Validate the tokens\n\t\tFactory::getLog()->debug(sprintf(\"%s - Validating the Box tokens\", __METHOD__));\n\t\t$pingResult = $connector->ping();\n\n\t\t// Save new configuration if there was a refresh\n\t\tif ($pingResult['needs_refresh'])\n\t\t{\n\t\t\tFactory::getLog()->debug(sprintf(\"%s - Box tokens were refreshed\", __METHOD__));\n\n\t\t\t$config->set('engine.postproc.' . $this->settingsKey . '.access_token', $pingResult['access_token'], false);\n\t\t\t$config->set('engine.postproc.' . $this->settingsKey . '.refresh_token', $pingResult['refresh_token'], false);\n\n\t\t\t$profile_id = Platform::getInstance()->get_active_profile();\n\n\t\t\tPlatform::getInstance()->save_configuration($profile_id);\n\t\t}\n\n\t\treturn $connector;\n\t}", "public function newInstance($uri);", "public function __construct(private CombustionEngine $engine) {}", "public function create() {}", "public static function factory($config = array())\n\t{\n\t\t$config = Kohana::config('furi');\n\n\t\t// Check for 'auto' driver and adjust configuration\n\t\tif ( strtolower($config->driver == 'auto') )\n\t\t{\n\t\t\tif ( function_exists('curl_init') )\n\t\t\t{\n\t\t\t\t$config->driver = 'cURL';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$config->driver = 'Stream';\n\t\t\t}\n\t\t}\n\t\t$driver = 'Furi_Driver_' . $config->driver;\n\n\t\t$fury = new $driver($config->as_array());\n\t\t\n\t\treturn $fury;\n\t}", "public static function getInstance($adapterName=null)\n {\n\t\t//hack until we delete locale\n $engineName = core_framework_config::getConfig()->workflow->engine;\n\t\tif (is_null($engineName))\n\t\t{\n\t\t\t$engineName = core_framework_config::getConfig()->workflow->engine;\n\t\t}\n\t\t\n\t\techo \"Se utilizara el siguiente engine: \". $engineName;\n return new $engineName($adapterName);\n }", "function getEngineInstance($options)\n{\n if (!isset($options[\"engine\"])) {\n $options[\"engine\"] = \"magmi_productimportengine:Magmi_ProductImportEngine\";\n }\n $enginst = getClassInstance($options[\"engine\"], dirname(dirname(__FILE__)) . \"/engines\");\n return $enginst;\n}", "public function create()\n {\n throw new Exception('Not yet implemented');\n }", "public static function getEngine() {\n\t\tif(self::$engine == NULL)\n\t\t\tself::$engine = new self();\n\t\treturn self::$engine;\n\t}", "public static function instance($config = array())\n\t{\n\t\t$config = Kohana::config('furi');\n\n\t\t// Check for 'auto' driver and adjust configuration\n\t\tif ( strtolower($config->driver == 'auto') )\n\t\t{\n\t\t\tif ( function_exists('curl_init') )\n\t\t\t{\n\t\t\t\t$config->driver = 'cURL';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$config->driver = 'Stream';\n\t\t\t}\n\t\t}\n\n\t\t$driver = 'Furi_Driver_' . $config->driver;\n\n\t\tif( ! is_object(self::$instance))\n\t\t{\n\t\t\tif ( ! Kohana::auto_load($driver) )\n\t\t\t{\n\t\t\t\tthrow new Kohana_Exception('core.driver_not_found', $config['driver'], get_class($this));\n\t\t\t}\n\t\t\t\n\t\t\tself::$instance = new $driver($config->as_array());\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public function newInstance();", "public function newInstance();", "public static function create(): CrawlerInterface;", "function engine() {\n\n if ( $this->_engine ) {\n return $this->_engine;\n } elseif ( ($template = Liber::conf('TEMPLATE_ENGINE')) ) {\n // instancing of Template Engine\n Liber::loadClass($template, 'APP');\n $this->_engine = new $template;\n } else {\n $this->_engine = &$this;\n }\n\n return $this->_engine;\n }", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "protected static function newFactory(): Factory\n {\n return ProductDownloadableLinkTranslationFactory::new();\n }", "public function create() {\n\t \n }", "public abstract function createInstance($parameters);", "public function getEngine();", "public function getEngine();", "public function getEngine();", "public static function create(): self\n\t{\n\t\treturn (new static(...func_get_args()))->open();\n\t}", "public function create(){}", "function __construct($engine, $host, $database, $user, $password, $port = \"\") {\n\n $this->conn = $this->connect($engine, $host, $database, $user, $password, $port);\n\n $this->engine = $engine;\n $this->host = $host;\n $this->port = $port;\n $this->database = $database;\n $this->user = $user;\n $this->password = $password;\n\n }", "public function run()\n { \n factory(Deputy::class, 25)->create();\n }", "static function create(): self;", "public static function &getInstance() {\n if (!self::$engine)\n self::setInstance(\\pingback2hook\\core\\SubsystemFactory::factory('nosqlstorage'));\n\n return self::$engine;\n }", "protected function createConnector()\n {\n // Load credentials:\n $iid = isset($this->libGuidesConfig->General->iid)\n ? $this->libGuidesConfig->General->iid : null;\n // Pick version:\n $ver = isset($this->libGuidesConfig->General->version)\n ? $this->libGuidesConfig->General->version : 1;\n // Build HTTP client:\n $client = $this->serviceLocator->get('VuFind\\Http')->createClient();\n $timeout = isset($this->libGuidesConfig->General->timeout)\n ? $this->libGuidesConfig->General->timeout : 30;\n $client->setOptions(array('timeout' => $timeout));\n $connector = new Connector($iid, $client, $ver);\n $connector->setLogger($this->logger);\n return $connector;\n }", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\n\t\t\n\t}", "public function create() {\n\t\t\t//\n\t\t}", "public function create()\n {}", "public function getEngine(): Engine;", "public static function createNew()\n\t{\n\t\tif (func_num_args() == 1) {\n\t\t\t$type = self::TYPE_PUBLIC;\n\t\t\t$module = self::MODULE_TICKETS;\n\t\t\tlist($title) = func_get_args();\n\t\t} elseif (func_num_args() == 2) {\n\t\t\t$module = self::MODULE_TICKETS;\n\t\t\tlist($title, $type) = func_get_args();\n\t\t} else {\n\t\t\tlist($title, $type, $module) = func_get_args();\n\t\t}\n\t\t\n\t\t$new_department = new kyDepartment();\n\t\t$new_department->setTitle($title);\n\t\t$new_department->setType($type);\n\t\t$new_department->setModule($module);\n\t\treturn $new_department;\n\t}", "public function run() {\n factory(Document::class, 10)->create();\n }", "public function getEngine()\n\t\t{\n\t\t\t$f = new ECash_CFE_RulesetFactory($this->db);\n\n\t\t\t//temporary hack to insure we have a model and context\n\t\t\t$this->getModel();\n\t\t\t$engine = ECash_CFE_Engine::getInstance($this->context);\n\t\t\t$engine->setRuleset($f->fetchRuleset($this->model->cfe_rule_set_id));\n\n\t\t\treturn $engine;\n\t\t}", "public function __construct(Engine $engine, $name)\n {\n $this->engine = $engine;\n $this->name = new Name($engine, $name);\n\n $this->data($this->engine->getData($name));\n }", "public function create()\n\t {\n\t //\n\t }", "public function create($model, $entityUrl, $accessKey = null)\n {\n if ('event' == $model) {\n return new EventClient($accessKey, $entityUrl);\n } elseif ('engine' == $model) {\n return new EngineClient($entityUrl);\n }\n\n return null;\n }", "public function run()\n {\n \tfactory(Docente::class, 15)->create();\n }", "protected function create() {\n\t}", "function _create_resource()\n{\n $classname = sfConfig::get('app_sfPropelVersionableBehaviorPlugin_test_class', 'Article');\n \n if (!class_exists($classname))\n {\n throw new Exception(sprintf('Unknown class \"%s\"', $classname));\n }\n \n $node = new $classname();\n\n return new $node;\n}", "static public function factory( $config )\n\t{\n\t\t$config = self::_parseConfig( $config );\n\t\t$config = array_merge( array(\n\t\t\t'stream' => null,\n\t\t\t'mode' => null ), $config );\n\n\t\t$streamOrUrl = isset( $config[ 'url' ] ) ? $config[ 'url' ] : $config[ 'stream' ];\n\n\t\treturn new self( $streamOrUrl, $config[ 'mode' ] );\n\t}", "public function create()\n {\n //TODO\n }", "public function create(string $uri): Adapter {\n return EmbedLib::create($uri);\n }", "public function engine($engine)\n {\n $this->engine = $engine;\n return $this;\n }", "abstract function create();", "public function create()\n {\n // handled by client\n }", "public function createClient(){\n\t\t$client = new Client(array(\n\t\t\t'servers' => array(\n\t\t\t\tarray('host' => HOST_ES_001, 'port' => PORT_ES_001),\n\t\t\t\tarray('host' => HOST_ES_002, 'port' => PORT_ES_002)\n\t\t\t)\n\t\t));\n\t\treturn $client;\n\t}", "public function run()\n {\n factory(Hosting::class, 3)->create();\n }", "static public function factory($config)\n\t{\n\t\t$config = self::_parseConfig($config);\n\t\t$config = array_merge(array(\n 'stream' => null,\n 'mode' => null,\n 'timestamp' => 'Y-m-d',\n\t\t), $config);\n\n\t\tif(is_string($config['stream'])) {\n\t\t\t$config['stream'] = str_replace('%timestamp%', date($config['timestamp']), $config['stream']);\n\t\t}\n\t\t$streamOrUrl = isset($config['url']) ? $config['url'] : $config['stream'];\n\n\t\treturn new self(\n\t\t$streamOrUrl,\n\t\t$config['mode']\n\t\t);\n\t}", "public function create() {\n //not implemented\n }", "public function init() {\n\n\t\t// Check if EDD is active\n\t\tinclude_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\t\tif ( ! is_plugin_active( 'easy-digital-downloads/easy-digital-downloads.php' ) && ! function_exists( 'EDD' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-eddeet-data.php';\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/helper-functions.php';\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/Implementations/Implementation.php';\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/Implementations/gtagjs.php';\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/Implementations/measurement-protocol.php';\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/Implementations/analyticsjs.php';\n\n\t\t$this->track_data = new EDDEET_Data();\n\n\t\t$tracking_method = edd_get_option( 'eddeet_implementation_method', 'measurement-protocol' );\n\t\tif ( $tracking_method == 'gtagjs' ) {\n\t\t\t$this->implementation = new gtagjs( $this->track_data );\n\t\t} elseif ( $tracking_method == 'analyticsjs' ) {\n\t\t\t$this->implementation = new analyticsjs( $this->track_data );\n\t\t} elseif ( $tracking_method == 'measurement-protocol' ) {\n\t\t\t$this->implementation = new Measurement_Protocol( $this->track_data );\n\t\t}\n\n\t\tif ( is_admin() ) {\n\t\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/admin/class-eddeet-admin.php';\n\t\t\t$this->admin = new EDDEET_Admin();\n\t\t}\n\n\t\t// Compatibility class.\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-eddeet-compatibility.php';\n\t\t$this->compatibility = new EDDEET_Compatibility();\n\n\t\t// BC for code snippets/customizations for adding notices\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'includes/deprecated.php';\n\t\t$this->front_end = new EDDEET_Front_End();\n\t\t$this->triggers = new EDDEET_Triggers();\n\t\t$this->measurement_protocol = new EDDEET_Measurement_Protocol();\n\n\t\t// Load textdomain\n\t\t$this->load_textdomain();\n\t}", "public function engine(string $engine): self\n {\n $this->engine = $engine;\n return $this;\n }", "public function create()\r\n\t{\r\n\t\t//\r\n\t}", "public function run()\n {\n factory(\\Modules\\WarehouseReceivingVN\\Models\\WarehouseReceivingVN::class, 25)->create();\n }", "public function create(): void {\r\n if (array_key_exists('SERVER_NAME', $_SERVER)) {\r\n $url = $_SERVER['SERVER_NAME'];\r\n } else {\r\n $url = self::UNKNOWN_SERVER_NAME;\r\n }\r\n $found = $this->loadByUrl($url);\r\n if (! $found) {\r\n $this->url = $url;\r\n $this->name = $url;\r\n $this->save();\r\n }\r\n }", "public function create() {\n\t\t$implementationClassName = 'Imagine\\\\' . $this->settings['driver'] . '\\Imagine';\n\t\treturn new $implementationClassName();\n\t}", "public function create() {\n \n }", "public function create() {\n \n }", "public function __construct() {\n\n $this->datastore = new Model\\PluginDatastore();\n try {\n $id = $this->datastore->getType() . '-' . $this->getName();\n $this->datastore->fetchById($id);\n } catch (\\phpillowResponseNotFoundErrorException $e) {\n\n $this->datastore->name = $this->getName();\n $this->datastore->created = date('r');\n\n $this->datastore->save();\n }\n }", "private function initH2o() {\n\t\tif($this->engine)\n\t\t\treturn;\n\n\t\t// Configure H20 cache folder\n\t\t$storage = LOTUS_STORAGE;\n\n\t\tif(!file_exists($storage))\n\t\t\tthrow new \\Exception(\"Storage folder on {$storage} does not exist\");\n\n\t\tif(!is_writable($storage))\n\t\t{\n\t\t\tif(!chmod($storage,0777))\n\t\t\t\tthrow new \\Exception(\"Storage folder on $storage is not writable\");\n\t\t}\n\n\t\t// Create ready to use H20 Engine\n\t\t$this->engine = new \\H2o(null, array(\n\t\t 'cache_dir' => $storage,\n\t\t 'searchpath' => $this->path\n\t\t));\n\n\n\t}", "public function new()\n\t{\n\t\t//\n\t}", "public function new()\n\t{\n\t\t//\n\t}", "public function create($name = '', $params = array())\n {\n if (!isset($this->_instances[$name])) {\n if (!empty($params['driver'])) {\n $driver = $params['driver'];\n unset($params['driver']);\n } else {\n $driver = $GLOBALS['conf']['storage']['driver'];\n $params = Horde::getDriverConfig('storage', $driver);\n }\n $class = 'Pastie_Driver_' . ucfirst(basename($driver));\n\n if (!class_exists($class)) {\n throw new Pastie_Exception(sprintf('Unable to load the definition of %s.', $class));\n }\n\n switch ($class) {\n case 'Pastie_Driver_Rdo':\n if (empty($params['db'])) {\n $params['db'] = $this->_injector->getInstance('Horde_Core_Factory_Db')->create('pastie', $params);\n }\n break;\n }\n $this->_instances[$name] = new $class($params);\n }\n\n return $this->_instances[$name];\n }", "public function setEngine(Engine $engine);", "abstract protected function createEntityInstance();", "public function create($name) {\n if ($this->connection === null) {\n if (!is_callable($this->provider)) {\n throw new \\Exception(\"Unable to instantiate provider.\");\n }\n\n $this->connection = call_user_func($this->provider);\n }\n\n return new $name($this->connection);\n }", "public function create() {\r\n }", "public function createEcbDriver()\n {\n return \\App::make('ECBProvider');\n }" ]
[ "0.555031", "0.5439439", "0.539071", "0.539071", "0.539071", "0.5348432", "0.53295356", "0.5291303", "0.52869576", "0.5209495", "0.51926225", "0.5172167", "0.5145986", "0.5103759", "0.5082742", "0.5078742", "0.5015748", "0.501552", "0.4998215", "0.49878648", "0.4984907", "0.4984907", "0.4965369", "0.496442", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49636787", "0.49368593", "0.49305528", "0.49254173", "0.49167746", "0.49167746", "0.49167746", "0.489893", "0.48937282", "0.48886806", "0.48851767", "0.4867969", "0.48500708", "0.48441112", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.4842765", "0.48389062", "0.48334736", "0.48275134", "0.4827136", "0.48236904", "0.48167056", "0.48154217", "0.48101947", "0.48095086", "0.4805715", "0.47974285", "0.47944203", "0.4786687", "0.47830307", "0.47715822", "0.47677296", "0.47581437", "0.47571027", "0.47566274", "0.47548452", "0.47547737", "0.47504786", "0.47482297", "0.47445562", "0.47424823", "0.47392008", "0.47364926", "0.4732709", "0.47325477", "0.47321156", "0.47321156", "0.47238007", "0.47225448", "0.47191155", "0.47191155", "0.47158733", "0.471139", "0.47098622", "0.47098255", "0.47081456", "0.4696042" ]
0.0
-1
Create a new download response instance.
public function of($path, $name = null, $headers = array()) { if (is_null($name)) $name = basename($path); $headers = array_merge(array( 'Content-Description' => 'File Transfer', 'Content-Type' => $this->mime($this->file->extension($path)), 'Content-Disposition' => 'attachment; filename="'.$name.'"', 'Content-Transfer-Encoding' => 'binary', 'Expires' => 0, 'Cache-Control' => 'must-revalidate, post-check=0, pre-check=0', 'Pragma' => 'public', 'Content-Length' => $this->file-size($path), ), $headers); $response = parent::__construct($this->file->get($path), 200, $headers); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newDownloadResponse() {\n // getDownloadURI() always returns a fully qualified URI with a complete\n // domain.\n return id(new AphrontRedirectResponse())\n ->setIsExternal(true)\n ->setCloseDialogBeforeRedirect(true)\n ->setURI($this->getDownloadURI());\n }", "public static function create() :DownloadLog\n {\n return new DownloadLog();\n }", "public function createResponse()\n {\n return new Response;\n }", "function response() {\n return new Response;\n }", "protected function createHttpResponse()\n {\n return new Response();\n }", "protected function _getResponse() {\n\t\treturn new Response;\n\t}", "public function createResponse()\n {\n return new GuzzleResponse();\n }", "protected function getResponse(): Response\n {\n return new Response(fopen('data://text/plain,', 'rb'), 200);\n }", "public static function response(): Response\n {\n return new Response;\n }", "public function __construct()\n {\n $this->response = new Response();\n }", "public function download(string $filename, string $name = null, array $headers = []): ResponseInterface;", "private function fileDownload()\n {\n /**\n * Defined variables\n */\n $configHelper = $this->dataHelper;\n $request = $this->getRequest();\n $ds = DIRECTORY_SEPARATOR;\n $baseDir = DirectoryList::VAR_DIR;\n $fileFactory = $this->fileFactory;\n $contentType = 'application/octet-stream';\n $paramNameRequest = $request->getParam('m');\n $packagePathDir = $configHelper->getConfigAbsoluteDir();\n\n $lastItem = $this->packageFilter();\n $versionPackageData = $lastItem;\n $file = $versionPackageData->getData('file');\n\n $packageName = str_replace('_', '/', $paramNameRequest);\n $correctPathFile = $packagePathDir . $ds . $packageName . $ds . $file;\n\n $fileName = $file;\n $content = file_get_contents($correctPathFile, true);\n $fileDownload = $fileFactory->create($fileName, $content, $baseDir, $contentType);\n\n return $fileDownload;\n }", "public static function make(Response $response)\n {\n return new static($response->response, $response->attributes);\n }", "public function downloadAction()\n\t{\n\t\t$settings = $this->getProgressParameters();\n\n\t\tif (!empty($settings['downloadParams']['filePath']) && !empty($settings['downloadParams']['fileName']))\n\t\t{\n\t\t\t$file = new Main\\IO\\File($settings['downloadParams']['filePath']);\n\t\t\tif ($file->isExists())\n\t\t\t{\n\t\t\t\t$response = new Main\\Engine\\Response\\File(\n\t\t\t\t\t$file->getPath(),\n\t\t\t\t\t$settings['downloadParams']['fileName'],\n\t\t\t\t\t$settings['downloadParams']['fileType']\n\t\t\t\t);\n\n\t\t\t\treturn $response;\n\t\t\t}\n\t\t}\n\n\t\t$this->addError(new Error('File not found'));\n\t}", "public function create(): ResponseInterface\n\t{\n\t\t$this->content = [];\n\t}", "public function __construct(HttpResponse $response)\n {\n $this->response = $response;\n }", "public function createResponse(): IResponse;", "abstract protected function createResponse(GuzzleResponse $response);", "public function downloadZip()\n {\n static $instance;\n if (!isset($instance)) {\n $className = $this->parameters['download.class'];\n $instance = new $className\n (\n $this->getUrlOfZip(),\n $this->parameters['download.path'],\n $this->parameters['download.file']\n );\n }\n\n return $instance;\n }", "public function download() {\t\t}", "public function download() {\n $file_name = get('name');\n// return \\Response::download(temp_path($file_name));\n return \\Response::download(storage_path('app') . '/' . $file_name);\n }", "public function createResponse(): ResponseInterface\n\t\t{\n\t\t\treturn $this->responseFactory->createResponse()->withHeader('Content-Type', 'text/html; charset=utf-8');\n\t\t}", "public function toResponse($request)\n {\n return response()->download($this->getPath(), $this->file_name);\n }", "protected function response()\n {\n return new Response('php://memory');\n }", "public function response($response)\n {\n\n return new Response($response);\n\n }", "public function download(string $file, string $name = ''): PsrResponseInterface;", "private function response() {\n if ($this->responseStatus !== 200) {\n $this->request['format'] = self::DEFAULT_RESPONSE_FORMAT;\n }\n $method = $this->request['format'] . 'Response';\n $this->response = array('status' => $this->responseStatus, 'body' => $this->$method());\n return $this;\n }", "public function downloadAction()\n {\n $pdf = $this->manager->get();\n\n // Generate response\n $response = new Response();\n\n // Set headers\n $response->headers->set('Cache-Control', 'private');\n $response->headers->set('Content-type', 'application/pdf');\n $response->headers->set('Content-Disposition', 'attachment; filename=\"'.basename($pdf).'\";');\n $response->headers->set('Content-length', filesize($pdf));\n\n // Send headers before outputting anything\n $response->sendHeaders();\n\n $response->setContent(file_get_contents($pdf));\n\n return $response;\n }", "public static function fromResponse(Response $response, $partNumber = 1)\n {\n $responseUri = Url::factory($response->getEffectiveUrl());\n\n $object = new self();\n\n $object->setPartNumber($partNumber)\n ->setContentLength($response->getHeader(Header::CONTENT_LENGTH))\n ->setETag($response->getHeader(Header::ETAG))\n ->setPath($responseUri->getPath());\n\n return $object;\n }", "public function createResponse($data)\n {\n return $this->response = new GetManualJournalResponse($this, $data);\n }", "public function __invoke() : ResponseInterface {\n $response = new Response();\n\n $response->setStatusCode(404)\n ->setContent(static::$NOTFOUND_BODY)\n ->setContentType(static::$CONTENT_TYPE);\n\n return $response;\n }", "public function create()\n {\n parent::create();\n\n $this->response->setCookie($this->cookieName, $this->id, 0, $this->cookiePath, $this->cookieDomain);\n }", "function __construct(ResponseFactory $response)\n {\n $this->response = $response;\n }", "public function __construct($response)\n {\n $this->response = $response;\n }", "public function __construct($response)\n {\n $this->response = $response;\n }", "public function __construct($response)\n {\n $this->response = $response;\n }", "public function __construct($response)\n {\n $this->response = $response;\n }", "abstract public function createResponse(AbstractRequestClient $request);", "public function __construct($response) {\n\t\t$this->response = $response;\n\t\t$this->csv = $response->getBody();\n\t}", "public function __construct(Response $response)\n {\n $this->response = $response;\n }", "public function createResponse(): ResponseInterface {\n return $this->responseFactory->createResponse()->withHeader('Content-Type', 'application/json');\n }", "public function __construct($response)\n {\n $this->address = $response['address'];\n $this->url = $response['url'];\n $this->id = $response['id'];\n }", "public static function create()\n {\n return new static('Multiple OCSP responses received');\n }", "public function as_response() {\n return Net_HTTP::Response($this);\n }", "static function createDownload($url)\n {\n $curl = new CUrl($url);\n $curl->setOptions(array(\n CURLOPT_HEADER => FALSE,\n CURLOPT_RETURNTRANSFER => TRUE,\n CURLOPT_SSL_VERIFYPEER => FALSE,\n CURLOPT_SSL_VERIFYHOST => FALSE)\n );\n return $curl;\n }", "public function create() : Response\n {\n if (!$this->request->hasFiles()) {\n /**\n * @todo handle file hash to avoid uploading same files again\n */\n }\n\n return $this->response($this->processFiles());\n }", "public function __construct(ResponseFactory $response)\n {\n $this->response = $response;\n }", "public function _response($response) {\n\t\treturn $this->_instance($this->_classes['response'], array(\n\t\t\t'body' => $response\n\t\t));\n\t}", "public function importFormatDownload()\n {\n // figure out the importable fields.\n $importFields = $this->getImportableFields();\n\n $headers = array(\n \"Content-type\" => \"text/csv\",\n \"Content-Disposition\" => \"attachment; filename=\" . $this->importSampleFilename(),\n \"Pragma\" => \"no-cache\",\n \"Cache-Control\" => \"must-revalidate, post-check=0, pre-check=0\",\n \"Expires\" => \"0\"\n );\n\n $columns = [];\n foreach ($importFields as $idx_1 => $importField) {\n $columns[] = $importField['label'];\n }\n\n $callback = function () use ($columns) {\n $file = fopen('php://output', 'w');\n fputcsv($file, $columns);\n\n fclose($file);\n };\n return response()->stream($callback, 200, $headers);\n }", "public function download() {\n $this->autoRender = false;\n $filename = $this->request->params['pass'][3];\n $orgfilename = $this->request->params['pass'][4];\n// pr($this->request->params); exit;\n $this->response->file(\n 'webroot/uploads/post/files/' . $filename, array(\n 'download' => true,\n 'name' => $orgfilename\n )\n );\n// return $this->response;\n }", "public function __construct($template = null)\n {\n $this->tpl = new Core\\Template($template);\n if (isset($_SESSION['__DOWNLOAD__'])) \n {\n $data = $_SESSION['__DOWNLOAD__'];\n unset($_SESSION['__DOWNLOAD__']);\n Net\\Response::getInstance()->download($data['file'], $data['filename'], $data['contentType'], $data['deleteAfterDownload']);\n }\n }", "public function __construct(Response $response)\n {\n $decoded = json_decode($response->getBody());\n\n //If things did not go well.\n if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 600) {\n $this->success = false;\n\n if (isset($decoded->error)) {\n $this->errors = $decoded->error;\n }\n\n if (!$this->errors) {\n // API calls don't always provide an error :(\n $this->errors[] = 'An error occurred, however, no error message was given. Use the response body, HTTP status code and URL to help troubleshoot the issue.';\n }\n\n //If things went well.\n } else {\n $this->body = $decoded;\n }\n\n $this->statusCode = $response->getStatusCode();\n\n //DME's request limit meta data.\n if (isset($response->getHeaders()['x-dnsme-requestId'])) {\n $this->requestId = $response->getHeaders()['x-dnsme-requestId'];\n }\n\n if (isset($response->getHeaders()['x-dnsme-requestsRemaining'])) {\n $this->requestsRemaining = $response->getHeaders()['x-dnsme-requestsRemaining'];\n }\n\n if (isset($response->getHeaders()['x-dnsme-requestLimit'])) {\n $this->requestLimit = $response->getHeaders()['x-dnsme-requestLimit'];\n }\n\n if(!$this->success){\n \tthrow new ResultErrorException($this);\n }\n }", "function create_response() {\n return File::saveLocalFile(get_response_prefix(), \"A response.\");\n}", "public static function fromResponse(ResponseInterface $response)\n {\n return new static((string)$response->getBody());\n }", "public function getResponse()\n\t{\n\t\t$outGoingResponse = $this->response;\n\t\t$request = $this->request;\n\n\t\t$headers = $outGoingResponse->getHeaders();\n\t\t$status_code = (isset($headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS])) ? $headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS] : 200;\n\t\tunset($headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS]);\n\n\t\t$response = new Response(trim($outGoingResponse->getStream()), $status_code, array_filter($headers));\n\t\t$response->prepare($request->getRequest());\n\n\t\treturn $response;\n\t}", "public function __construct($response)\n {\n // Headers regex\n $pattern = '#HTTP/(\\d\\.\\d|\\d).*?$.*?#ims';\n\n // Extract headers from response\n preg_match_all($pattern, $response, $matches);\n\n list($headers, $body) = explode(\"\\r\\n\\r\\n\", $response, 2);\n\n $headers_string = trim(preg_replace($pattern, '', $headers));\n $parsedHeaders = $this->parseHeaders($headers_string);\n\n // Remove headers from the response body\n\n $this->body = trim(str_replace($headers, '', $response));\n // Convert headers into an associative array\n $this->headers = $parsedHeaders;\n\n // Extract the version and status from the first header\n preg_match('#HTTP/(\\d\\.\\d|\\d)\\s(\\d\\d\\d)\\s(.*)#', $response, $matches);\n\n if($matches && count($matches) >= 3){\n $this->headers['httpVersion'] = $matches[1];\n $this->headers['statusCode'] = $matches[2];\n $this->headers['status'] = $matches[2].' '.$matches[3];\n }\n\n }", "public function __construct()\n {\n return response([],400);\n }", "protected function getResponseFactory()\n {\n }", "public function http($data)\n {\n $this->http = $data;\n return self::$downloadObj;\n }", "protected function construct_response()\n {\n $this->feedback['ok'] = $this->ok;\n $this->feedback['code'] = $this->code;\n $this->feedback['resource'] = $this->resource;\n }", "public function createFromResponse(): Article\n {\n return new Article((array) $this);\n }", "public function fetch() {\r\n if (empty($this->id)) {\r\n throw new Exception(\"Cannot fetch download object - no download ID given\"); \r\n }\r\n \r\n $query = \"SELECT d.*, UNIX_TIMESTAMP(d.date) AS date_unix FROM download_items AS d WHERE d.id = ?\";\r\n \r\n $row = $this->db->fetchRow($query, $this->id);\r\n \r\n if (!is_array($row) || count($row) === 0) {\r\n throw new Exception(\"Requested download not found\");\r\n }\r\n \r\n // Populate the vars\r\n $this->name = $row['title']; \r\n $this->desc = $row['description']; \r\n $this->url_file = $row['url']; \r\n $this->filename = empty($row['filename']) ? basename($row['url']) : $row['filename']; \r\n $this->Date = new DateTime($row['date'], new DateTimeZone(\"Australia/Melbourne\"));\r\n $this->hits = $row['hits'];\r\n $this->filesize = isset($row['filesize']) && $row['filesize'] > 0 ? formatBytes($row['filesize']) : \"Unknown\";\r\n $this->user_id = $row['user_id'];\r\n $this->filepath = $row['filepath'];\r\n \r\n $this->object_id = $row['object_id'];\r\n $this->approved = $row['approved'];\r\n $this->active = $row['active'];\r\n $this->extra_data = $row['extra_data'];\r\n $this->mime = $row['mime'];\r\n \r\n if (empty($this->filepath) && !empty($this->url_file)) {\r\n $pathinfo = parse_url($this->url_file); \r\n $this->filepath = str_replace(\"/uploads/\", \"\", $pathinfo['path']);\r\n \r\n try {\r\n $this->commit(); \r\n } catch (Exception $e) {\r\n // Do nothing\r\n }\r\n }\r\n \r\n if (!preg_match(\"@^(http|https)://@\", $this->url_file)) {\r\n $this->url_file = parent::DOWNLOAD_HOST . parent::DOWNLOAD_DIR . $this->url_file; \r\n }\r\n \r\n if ($row['date'] == \"0000-00-00 00:00:00\") {\r\n $this->Date = new DateTime(\"now\", new DateTimeZone(\"Australia/Melbourne\")); \r\n $this->commit();\r\n }\r\n \r\n if (empty($this->user_id) && !empty($row['submitter'])) {\r\n $this->submitter = $row['submitter'];\r\n }\r\n \r\n /**\r\n * Load the category this download belongs to\r\n */\r\n \r\n $this->Category = new Category($row['category_id']); \r\n \r\n /**\r\n * Load the author\r\n */\r\n \r\n $this->Author = UserFactory::CreateUser($this->user_id);\r\n \r\n if (empty($this->mime) && file_exists(RP_DOWNLOAD_DIR . $this->filepath)) {\r\n $finfo = finfo_open(FILEINFO_MIME_TYPE); \r\n $this->mime = finfo_file($finfo, RP_DOWNLOAD_DIR . $this->filepath);\r\n $this->commit(); \r\n }\r\n \r\n $this->url = Utility\\DownloadUtility::buildUrls($this); \r\n \r\n }", "public function __construct($response)\n {\n @list($this->rawHeaders, $this->body) = explode(\"\\r\\n\\r\\n\", $response, 2);\n\n $this->buildHeaders($this->rawHeaders);\n }", "public function __construct($response){\n \n $this->_helper = new Helper();\n \n $this->_response = $response;\n \n }", "public function __construct($response)\n {\n $this->init($response);\n\n }", "public function __construct(Download $download)\n {\n $this->uid = $download->uid;\n $this->value = $download->total_sales;\n $this->count = $download->sales_count;\n\n }", "public function get_response_object()\n {\n }", "public function createResponse(array $data)\n {\n // Read data from request object\n return $purchaseResponseObj = new CompleteResponse($this, $data);\n }", "public function downloadFile();", "public function download(array $data = [])\n {\n $filename = $this->reference . '.pdf';\n\n return new Response($this->pdf($data), 200, [\n 'Content-Description' => 'File Transfer',\n 'Content-Disposition' => 'attachment; filename=\"'.$filename.'\"',\n 'Content-Transfer-Encoding' => 'binary',\n 'Content-Type' => 'application/pdf',\n ]);\n }", "public static function new(Request $request, Response $response): self\n {\n $instance = self::getInstance();\n\n $instance->request = $request;\n $instance->response = $response;\n\n return $instance;\n }", "private function createResponse(){\r\n #scraping metatag to get IMAGE TITLE and FULL PATH INC FILE NAME \r\n $metaTag = get_meta_tags($this->url);\r\n\r\n \r\n $this->setImageTitle($metaTag[\"sailthru_title\"]); #setting up title\r\n $this->setFileName($metaTag[\"sailthru_image_full\"]); #setting up full file name\r\n $this->setDimensions(); #setting up image dimensions\r\n \r\n $this->setFileSize(); #setting up file size in kB\r\n \r\n #create response array based on properties\r\n $array = array('title' => $this->imageTitle,\r\n 'dimensions' => $this->imageDimensions,\r\n 'filename' => $this->getPlainFileName(),\r\n 'file size in kB' => $this->fileSize\r\n );\r\n \r\n return $array;\r\n }", "public function InitiateDownload()\n\t{\n\t\t//Register the download\n\t\t$pdo = new Database();\n\t\t$statement = $pdo->prepare('INSERT INTO download_log SET DownloadID=?');\n\t\t$statement->bindParam(1, $this->ID);\n\t\t$statement->execute();\n\n\t\tif (preg_match('/http(s{0,1}):\\/\\/(.*)/', $this->Link))\n\t\t{\n\t\t\theader('location: ' . $this->Link);\n\t\t}\n\t\telse if (substr($this->Link, 0, 1) == '?')\n\t\t{\n\t\t\t//Get a name to call the file.\n\t\t\t$filePath = dirname(__FILE__) . '/../downloads/' . substr($this->Link, 1);\n\t\t\t$pathInfo = pathinfo($filePath);\n\t\t\t$downloadName = empty($pathInfo['extension']) ?\n\t\t\t\t$this->Name : sprintf('%s.%s', $this->Name, $pathInfo['extension']);\n\n\t\t\t//Transfer the file.\n\t\t\t$stream = fopen($filePath, 'rb');\n\t\t\tDownload::TransferDownload($stream, $downloadName);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('Unknown download link');\n\t\t}\n\t}", "public static function init(): self\n {\n return new self(new GetTerminalCheckoutResponse());\n }", "protected function getCreateResponse()\n\t{\n\t\treturn new Api\\Response\\Create();\t\n\t}", "public static function createEmpty(): ResponseItem\n {\n return new static(new \\stdClass());\n }", "public function init()\n {\n // init default response properties\n $this->headers = array();\n $this->params = array();\n $this->uri = null;\n $this->method = null;\n $this->version = null;\n $this->cookies = array();\n $this->parts = array();\n\n // Query string is always present, even if it is empty\n $this->queryString = '';\n $this->body = '';\n\n return $this;\n }", "protected static function fromResponse(ResponseInterface $response, $message = null)\n {\n return new static($message, $response->getStatusCode(), (string) $response->getBody());\n }", "public function factory_provider(): Response_Factory {\n\t\treturn new Response_Factory( new HTTP() );\n\t}", "public function makeResponse(): ResponseInterface;", "public function download()\n {\n\n $hashes = explode(',', $this->request->get('hashes'));\n $ids = array_map(function($hash) {\n return $this->fileEntry->decodeHash($hash);\n }, $hashes);\n\n $entries = $this->fileEntry->whereIn('id', $ids)->get();\n\n // TODO: refactor file entry policy to accent multiple IDs\n $entries->each(function($entry) {\n $this->authorize('show', [FileEntry::class, $entry]);\n });\n\n if ($entries->count() === 1 && $entries->first()->type !== 'folder') {\n $entry = $entries->first();\n\n $disk = $entry->getDisk();\n $stream = $disk->readStream($entry->getStoragePath());\n\n return response()->stream(function() use($stream) {\n fpassthru($stream);\n }, 200, [\n \"Content-Type\" => $entry->mime,\n \"Content-Length\" => $disk->size($entry->getStoragePath()),\n \"Content-disposition\" => \"attachment; filename=\\\"\" . $entry->name . \"\\\"\",\n ]);\n } else {\n $path = $this->createZip($entries);\n $timestamp = Carbon::now()->getTimestamp();\n return response()->download($path, \"download-$timestamp.zip\");\n }\n }", "function __construct($response, $request)\n\t{\n\t\tparent::__construct($response, $request);\n\t}", "public function Download(){\n\t\t\n\t\t\n\t}", "public function downloadLog() {\n return response()->download($this->logFile, $this->log_download_name);\n }", "public function create()\n {\n return response(null, 404);\n }", "protected function factory()\n {\n $this->request = $this->request();\n $this->response = $this->response();\n $this->route = $this->route();\n\n return $this;\n }", "function response($newResponse=null) {\n static $response;\n if (!isset($response) || isset($newResponse))\n $response = $newResponse ?: new Response();\n return $response;\n}", "public static function prepare($response)\n {\n if (! $response instanceof Response) {\n $response = new static($response);\n }\n\n return $response;\n }", "public function downloadFile(FileInterface $file) {\n\n $real_path = \\Drupal::service('file_system')->realpath($file->getFileUri());\n $fileContent = file_get_contents($real_path);\n\n $response = new Response($fileContent);\n\n $disposition = $response->headers->makeDisposition(\n ResponseHeaderBag::DISPOSITION_ATTACHMENT, $file->getFilename()\n );\n\n $response->headers->set('Content-Disposition', $disposition);\n\n return $response;\n }", "public static function newInstance($class)\r\n {\r\n // the class exists\r\n $object = new $class();\r\n\r\n if (!($object instanceof sfResponse))\r\n {\r\n // the class name is of the wrong type\r\n $error = 'Class \"%s\" is not of the type sfResponse';\r\n $error = sprintf($error, $class);\r\n\r\n throw new sfFactoryException($error);\r\n }\r\n\r\n return $object;\r\n }", "public function create()\n {\n return view('download.create');\n }", "protected function _download()\n {\n $url = @parse_url($this->_params['location']);\n if (!isset($url['scheme'])) {\n throw new Horde_Timezone_Exception('\"location\" parameter is missing an URL scheme.');\n }\n if (!in_array($url['scheme'], array('http', 'ftp', 'file'))) {\n throw new Horde_Timezone_Exception(sprintf('Unsupported URL scheme \"%s\"', $url['scheme']));\n }\n if ($url['scheme'] == 'http') {\n if (isset($this->_params['client'])) {\n $client = $this->_params['client'];\n } else {\n $client = new Horde_Http_Client();\n }\n $response = $client->get($this->_params['location']);\n $this->_tmpfile = Horde_Util::getTempFile(\n '', true,\n isset($this->_params['temp']) ? $this->_params['temp'] : '');\n stream_copy_to_stream($response->getStream(), fopen($this->_tmpfile, 'w'));\n return;\n }\n try { \n if ($url['scheme'] == 'ftp') {\n $vfs = new Horde_Vfs_Ftp(array('hostspec' => $url['host'],\n 'username' => 'anonymous',\n 'password' => 'anonymous'));\n } else {\n $vfs = new Horde_Vfs_File();\n }\n $this->_tmpfile = $vfs->readFile(dirname($url['path']),\n basename($url['path']));\n } catch (Horde_Vfs_Exception $e) {\n throw new Horde_Timezone_Exception($e);\n }\n }", "public function __construct( array $response = array() ) {\n\t\t$this->response = $response;\n\t}", "protected function generateDownloadResponse($renderedContent): ResponseInterface\n {\n $response = $this->responseFactory->createResponse();\n\n foreach($this->getRequestHeaders() as $header) {\n $response = $response->withHeader(\"$header[0]\", \"$header[1]\");\n }\n\n $response = $response->withBody($this->streamFactory->createStream($renderedContent));\n\n return $response;\n }", "public function __construct ($response)\r\n\t{\r\n\t\t$this->transactionId = $response ['transactionId'];\r\n\t\t$this->date = $response ['date'];\r\n\t\t$this->comment = $response ['comment'];\r\n\t\t$this->purchasePrice = $response ['purchasePrice'];\r\n\t\t$this->purchaseDate = $response ['purchaseDate'];\r\n\t\t$this->propertySize = $response ['propertySize'];\r\n\t\tif (isset ($response ['multipleOwners']))//individual\r\n\t\t\t$this->multipleOwners = $response ['multipleOwners'];\r\n\t\telse if (isset ($response ['multiple']))//business\r\n\t\t\t$this->multipleOwners = $response ['multiple'];\r\n\t\t$this->share = $response ['share'];\r\n\t\t$this->dateOfBirthOrIDNumber = $response ['dateOfBirthOrIDNumber'];\r\n\t\t$this->erf = $response ['erf'];\r\n\t\t$this->propertyType = $response ['propertyType'];\r\n\t\t$this->farm = $response ['farm'];\r\n\t\tif (isset ($response ['propertyName']))//individual\r\n\t\t\t$this->propertyName = $response ['propertyName'];\r\n\t\telse if (isset ($response ['buyerName']))//business\r\n\t\t\t$this->propertyName = $response ['buyerName'];\r\n\t\t$this->schemeName = $response ['schemeName'];\r\n\t\t$this->schemeNumber = $response ['schemeNumber'];\r\n\t\t$this->portion = $response ['portion'];\r\n\t\t$this->title = $response ['title'];\r\n\t\t$this->township = $response ['township'];\r\n\t\t$this->deedsOffice = $response ['deedsOffice'];\r\n\t\t$this->street = $response ['street'];\r\n\t\t$this->province = $response ['province'];\r\n\t\t$this->streetNumber = $response ['streetNumber'];\r\n\t}", "protected function buildResponse(): self\n {\n $verb = $this->apiCall['verb'] ?? 'get';\n $this->response = $this->client->$verb(\"{$this->apiCall['endpoint']}?{$this->getQuery()}\");\n\n return $this;\n }", "public function download()\n {\n $encrypt = $this->services['encrypt'];\n $file_name = $encrypt->decode($this->getPost('id'));\n $type = $this->getPost('type');\n $storage = $this->services['backup']->setStoragePath($this->settings['working_directory']);\n if($type == 'files')\n {\n $file = $storage->getStorage()->getFileBackupNamePath($file_name);\n }\n else\n {\n $file = $storage->getStorage()->getDbBackupNamePath($file_name);\n }\n \n \n $backup_info = $this->services['backups']->setLocations($this->settings['storage_details'])->getBackupData($file);\n $download_file_path = false;\n if( !empty($backup_info['storage_locations']) && is_array($backup_info['storage_locations']) )\n {\n foreach($backup_info['storage_locations'] AS $storage_location)\n {\n if( $storage_location['obj']->canDownload() )\n {\n $download_file_path = $storage_location['obj']->getFilePath($backup_info['file_name'], $backup_info['backup_type']); //next, get file path\n break;\n }\n }\n }\n \n if($download_file_path && file_exists($download_file_path))\n {\n $this->services['files']->fileDownload($download_file_path);\n exit;\n }\n }", "public function downloadPath(string $downloadPath): self\n {\n $new = clone $this;\n $new->downloadPath = rtrim($downloadPath, '\\/');\n\n return $new;\n }", "public function __invoke(): Response\n {\n return new Response('', Response::HTTP_NO_CONTENT);\n }", "public function __construct(private Fetch $fetch, private string $outputFileName)\n {\n //\n }" ]
[ "0.66857684", "0.6599612", "0.6456343", "0.6398157", "0.6332785", "0.6303344", "0.62663597", "0.62180424", "0.6192265", "0.5953008", "0.5941078", "0.57927436", "0.5789897", "0.57881194", "0.5730997", "0.5724391", "0.5714687", "0.5706932", "0.5699115", "0.5695818", "0.5674405", "0.5655259", "0.5649855", "0.5646463", "0.5646347", "0.56332207", "0.5607595", "0.5596909", "0.55867076", "0.5586661", "0.5578637", "0.555182", "0.553701", "0.5536681", "0.5536681", "0.5536681", "0.5536681", "0.5524686", "0.55148524", "0.5498645", "0.5494125", "0.5491548", "0.548375", "0.54794997", "0.5475911", "0.54647493", "0.5416684", "0.54162157", "0.5415944", "0.54076403", "0.5406584", "0.5391606", "0.5388246", "0.5351787", "0.5327409", "0.53241086", "0.5318702", "0.5318528", "0.5315219", "0.5313988", "0.5309775", "0.5308515", "0.5295805", "0.52954954", "0.5286609", "0.5283608", "0.5270584", "0.5259159", "0.5256336", "0.5252817", "0.5244679", "0.524458", "0.52391607", "0.5225655", "0.5213567", "0.52045804", "0.5199506", "0.5193597", "0.5193088", "0.5187275", "0.5180737", "0.5163415", "0.5158271", "0.5156813", "0.515316", "0.5153042", "0.5143618", "0.51380485", "0.51318413", "0.5127897", "0.5127804", "0.51196516", "0.5119153", "0.51081437", "0.5090683", "0.50884855", "0.5078205", "0.5076462", "0.5072433", "0.50667524" ]
0.52640134
67
Return one page of order entries
public function getOnePageOfOrderEntries($params, $where = null) { $pageNumber = isset($params['page']) ? $params['page'] : 1; if (empty($pageNumber)) {$pageNumber = 1;} $limit = isset($params['limit']) ? $params['limit'] : null; if (empty($limit)) {$limit = null;} if (!isset($params['sort'])) { $sort = 'id'; } else { $sort = $params['sort'] . ' ' . $params['dir']; } $query = $this->select(); if ($where) { $query->where($where); } $query->order($sort); $paginator = new Zend_Paginator( new Zend_Paginator_Adapter_DbTableSelect($query) ); $paginator->setItemCountPerPage($limit); $paginator->setCurrentPageNumber($pageNumber); $rows = []; foreach ($paginator as $record) { $rows[] = $record->toArray(); } $page = ['rows' => $rows, 'total' => $paginator->getTotalItemCount()]; return $page; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findAllOrdersDescPaginated();", "public function index()\n {\n return Order::paginate(5);\n }", "function getOrderings() ;", "function geneshop_my_orders_page($account) {\n drupal_set_title(t(\"@name's Order History\", array('@name' => format_username($account))), PASS_THROUGH);\n $build = array();\n $query = db_select('node', 'n')->extend('PagerDefault');\n $nids = $query->fields('n', array('nid', 'sticky', 'created'))->condition('type', geneshop_ORDER_NODETYPE)->condition('uid', $account->uid)->condition('status', 1)->orderBy('created', 'DESC')->limit(variable_get('default_nodes_main', 10))->addTag('node_access')->execute()->fetchCol();\n if (!empty($nids)) {\n $nodes = node_load_multiple($nids);\n $build += node_view_multiple($nodes);\n $build['pager'] = array(\n '#theme' => 'pager',\n '#weight' => 5,\n );\n }\n else {\n drupal_set_message(t('You have no orders for this account.'));\n }\n return $build;\n}", "public function getPaginated();", "public function index()\n {\n return OrderCollection::collection(Order::paginate(10));\n }", "public function getMainPageList()\r\n {\r\n $q = $this->createQuery('c')\r\n ->orderBy('ordered');\r\n return $q->execute();\r\n }", "function select_all_orders($pageNum) {\n global $db;\n\n $query = \"SELECT * FROM orders ORDER BY order_date LIMIT \".($pageNum-1).\",1\";\n $statement = $db->prepare($query);\n try {\n $statement->execute();\n } catch (Exception $ex) {\n //********************************************\n }\n $orders = $statement->fetchAll();\n $statement->closeCursor();\n return $orders;\n}", "function getOrder();", "public function index()\n {\n //\n return OrderResource::collection(Order::paginate());\n }", "public function getFirstPage();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "function getPageData($startRow, $orderBys = null)\n{\n global $dbh;\n\n $SQL = $this->getListSQL();\n $SQL .= $this->getOrderBySQL($orderBys);\n $SQL .= \" LIMIT $startRow, {$this->rowsPerPage}\";\n\n $result = $dbh->getAll($SQL, DB_FETCHMODE_ASSOC);\n dbErrorCheck($result);\n\n if( $this->useListSequence ){\n $this->saveListSequence($result, $startRow);\n }\n\n return $result;\n}", "public function getOrderings() {}", "public function getOrderings();", "abstract public function getPaginate($premiereEntree, $messageTotal, $where);", "public function writeRecords_pages_order() {}", "public function listAction($order)\n {\n $page = $this->get('request')->get('page', 1);\n $perPage = 10;\n\n $entities = $this->repo->getPaginatedList($order, $page, $perPage);\n\n return array(\n 'paginator' => $entities,\n );\n }", "function get_order()\n{\n\n}", "public function do_paging()\n {\n }", "function page_handler() {\n\t\tprint '<div class=\"wrap\">\n\t\t\t<ul>';\n\t\t\n\t\t$first_query = new WP_Query();\n\t\t\n\t\t// Query all orders\n\t\t$first_query->query(array(\n\t\t\t'post_type' => 'shop_order',\n\t\t\t'posts_per_page' => '-1'\n\t\t\t)\n\t\t);\n\t\t\n\t\t$not_alive = array();\n\t\t\n\t\twhile ($first_query->have_posts()) : $first_query->the_post();\n\t\t\t\n\t\t\t// Finds all orders lacking signs of life\n\t\t\tif ( !is_object_in_term( get_the_ID(), 'shop_order_status' ) ) :\n\t\t\t\t$not_alive[] = get_the_ID();\n\t\t\tendif;\n\t\t\n\t\tendwhile;\n\t\t\n\t\t$second_query = new WP_Query();\n\t\t\n\t\t// Query all orders BUT those contained in the $not_alive array\n\t\t$second_query->query(array(\n\t\t\t'post_type' => 'shop_order',\n\t\t\t'post__in' => $not_alive,\n\t\t\t'posts_per_page' => '-1'\n\t\t\t)\n\t\t);\n\t\t\n\t\twhile ($second_query->have_posts()) : $second_query->the_post();\n\t\t\t\n\t\t\tglobal $wpdb;\n\n\t\t\t$offset = '0';\n\t\t\n\t\t\tdo {\n\t\t\t\tif ( $offset != '0' ) {\n\t\t\t\t\t$db_offset = \" OFFSET \" . $offset;\n\t\t\t\t} else {\n\t\t\t\t\t$db_offset = '';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check comments until a solid match is found\n\t\t\t\t// The Query\n\t\t\t\t$comments = $wpdb->get_results (\"SELECT *\n\t\t\t\t\tFROM $wpdb->comments\n\t\t\t\t\tWHERE comment_approved = '1' AND comment_type = 'order_note' AND comment_post_ID=\".get_the_ID().\"\n\t\t\t\t\tORDER BY comment_date_gmt DESC\n\t\t\t\t\tLIMIT 1\" . $db_offset);\n\n\t\t\t\t// Looping through comments to find last true indication of life\n\t\t\t\tif ( $comments ) {\n\t\t\t\t\tforeach ( $comments as $comment ) {\n\n\t\t\t\t\t\t$vital_check = preg_match(\"/.*Order status changed from .* to (.*)./\", $comment->comment_content);\n\t\t\t\t\t\t$vital_status = preg_replace(\"/.*Order status changed from .* to (.*)./\", \"$1\", $comment->comment_content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check if comment is a match to Woo template\n\t\t\t\t\t\tif ( $vital_check == '1' ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Extract $vital_status\n\t\t\t\t\t\t\t$order = new WC_Order(get_the_ID());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Update order status with extracted $vital_status\n\t\t\t\t\t\t\t$order->update_status($vital_status, 'Revitalized!');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\techo '<li>Order #'.get_the_ID().' has been revitalized, due to its previously logged state of \"'.$vital_status.'\"!';\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$offset++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\twhile ($vital_check === '0');\n\t\t\n\t\tendwhile;\n\t\t\n\t\tprint '</ul>\n\t\t</div>';\n\t}", "function page($num = 1)\n {\n // retrieve all data from history table per sorting\n $source = $this->factory->sortAll($this->sort);\n $records = array(); // start with an empty extract\n\n // use a foreach loop, because the record indices may not be sequential\n $index = 0; // where are we in the tasks list\n $count = 0; // how many items have we added to the extract\n $start = ($num - 1) * $this->itemsPerPage;\n \n foreach($source as $record) {\n if ($index++ >= $start) {\n $records[] = $record;\n $count++;\n }\n if ($count >= $this->itemsPerPage) break;\n }\n \n $this->data['pagination'] = $this->pagenav($num);\n $this->showPage($records);\n }", "function getOrder()\n {\n return 20;\n }", "function getOrder()\n {\n return 20;\n }", "public function getByPage($pageNo) {}", "public function getPage();", "public function get_result_page(){\n\n global $wp_query;\n\n $pagination = new wm_pagination();\n\n $html = $pagination->get_top();\n\n foreach( $wp_query->posts as $post ){\n\n setup_postdata( $post );\n\n $html .= $this->prep_result_html( $post );\n }\n\n $html .= $pagination->get_bottom();\n\n return $html;\n }", "public function getPageNumbers();", "public function getPages();", "public function get_pagenum()\n {\n }", "public function getAllEntries($orderby, $start, $where, $num){\n\t\tif(!isset($start)){\n\t\t\t$start = 0;\n\t\t}\n\t\tif(!isset($num))$num = Constants::NUMENTRIES;\n\t\t$user = $this->getUser();\n\t\tif($orderby == \"rating\"){\n\t\t\t$entries = $this->getAllEntriesByRating($start, $where);\n\t\t}else{\n\t\t\t$query = Queries::getallentries($start, $num, $orderby, $where);\n\t\t\t$entries = $this->query($query);\n\t\t}\n\t\t$entries = $this->addExtras($entries, $user[\"id\"]);\n\t\treturn $entries;\n\t}", "function getOrder()\n {\n return 10;\n }", "public function getPages() {}", "public function getPageNumber() {}", "public function getPageNumber() {}", "function show_article_short($order_id) {\n global $articles;\n foreach($articles as $article) {\n if ($article['order'] == $order_id) {\n echo render_article_short($article);\n break;\n }\n }\n}", "public function getNextPage();", "public function index()\n {\n return Bien::paginate(3);\n }", "public function getPageItems()\n {\n }", "public function reoderPages($order) {\r\n\t$newOrder = array();\r\n\tforeach ($order as $value) {\r\n\t $newOrder[$value] = $this->pages[$value];\r\n\t}\r\n\t$this->pages = $newOrder;\r\n\treturn $this->save();\r\n }", "function tinygroom_search_order() {\n if (!$entry_id = $_POST['entry_id']) die(\"Aucune commande trouvée\");\n\n // Check for entry in database\n $entry = GFFormsModel::get_lead($entry_id);\n\n if (isset($entry['id']) && is_numeric($entry['id'])) {\n die($admin_url = admin_url( 'admin.php?page=gf_entries&view=entry&id=' . $entry['form_id'] . '&lid='.$entry['id']));\n } else {\n die(\"Aucune commande trouvée\");\n }\n}", "public function getPageResults(int $page = 1): array;", "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 }", "function getOrder()\n{\n\n}", "function paginateWithExtra($size = 15);", "function getOrder()\n {\n return 1;\n }", "function getOrder()\n {\n return 1;\n }", "function getOrder()\n {\n return 1;\n }", "function getOrder()\n {\n return 1;\n }", "function getOrder()\n {\n return 50;\n }", "function pagination(){}", "public function get_page();", "public function getGroupByPage() {}", "public function actionIndex()\n {\n//\n $req = Yii::$app->request;\n $sort = $req->get('sort');\n $query = Order::find();\n $countQuery = clone $query;\n $pages = new Pagination(['totalCount' => $countQuery->count()]);\n $orders = $query\n ->offset($pages->offset)\n ->orderBy($sort)\n ->limit($pages->limit)\n ->all();\n\n $this->data = [\n 'pages' => $pages,\n 'orders' => $orders,\n ];\n return $this->xrender();\n }", "public function rebuildOrders() {\n\t\t$totalOrdersPage = $this->ordersGetTotalPages();\n\t\tfor($i=1;$i<=$totalOrdersPage;$i++) {\n\t\t\t$page = $this->getOrders($i);\n\t\t\tif(count($page->response)) {\n\t\t\t\tforeach($page->response as $order) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'id' => $order->id,\n\t\t\t\t\t\t'artist_id' => $order->artist_id,\n\t\t\t\t\t\t'created_at' => $order->created_at,\n\t\t\t\t\t\t'subtotal' => $order->subtotal,\n\t\t\t\t\t\t'tax' => $order->tax,\n\t\t\t\t\t\t'currency' => $order->currency,\n\t\t\t\t\t\t'phone' => $order->phone,\n\t\t\t\t\t\t'shipping_method_calculator' => $order->shipping_method_calculator,\n\t\t\t\t\t\t'reshipment' => $order->reshipment,\n\t\t\t\t\t\t'fan' => $order->fan,\n\t\t\t\t\t\t'details_url' => $order->details_url,\n\t\t\t\t\t\t'exchange_rate' => $order->exchange_rate,\n\t\t\t\t\t\t'shipping_method_code' => $order->shipping_method_code,\n\t\t\t\t\t\t'shipping_address_firstname' => $order->shipping_address->firstname,\n\t\t\t\t\t\t'shipping_address_lastname' => $order->shipping_address->lastname,\n\t\t\t\t\t\t'shipping_address_address1' => $order->shipping_address->address1,\n\t\t\t\t\t\t'shipping_address_address2' => $order->shipping_address->address2,\n\t\t\t\t\t\t'shipping_address_city' => $order->shipping_address->city,\n\t\t\t\t\t\t'shipping_address_state' => $order->shipping_address->state,\n\t\t\t\t\t\t'shipping_address_postal_code' => $order->shipping_address->postal_code,\n\t\t\t\t\t\t'shipping_address_country' => $order->shipping_address->country,\n\t\t\t\t\t\t'shipping_address_phone' => $order->shipping_address->phone\n\t\t\t\t\t);\n\t\t\t\t\t$format = array('%d','%d','%s','%f','%f','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s');\n\t\t\t\t\t$tableFields = implode(',',array_keys($data));\n\t\t\t\t\t$tableFormat = implode(',',$format);\n\t\t\t\t\t$orderOnDuplicateUpdate = '';\n\t\t\t\t\t$keyIndex = 0;\n\t\t\t\t\tforeach($data as $key=>$field) {\n\t\t\t\t\t\tif($keyIndex>0) { $orderOnDuplicateUpdate .= ', '; }\n\t\t\t\t\t\t$orderOnDuplicateUpdate .= $key.'=VALUES('.$key.')';\n\t\t\t\t\t\t$keyIndex++;\n\t\t\t\t\t}\n\t\t\t\t\t$orderSQL = <<<EOD\n\t\t\t\t\tINSERT INTO {$this->wpdb->prefix}topspin_orders ({$tableFields}) VALUES ({$tableFormat})\n\t\t\t\t\tON DUPLICATE KEY UPDATE {$orderOnDuplicateUpdate}\nEOD;\n\t\t\t\t\t$this->wpdb->query($this->wpdb->prepare($orderSQL,$data));\n\t\t\t\t\t\n\t\t\t\t\t//Build items for the order\n\t\t\t\t\tforeach($order->items as $item) {\n\t\t\t\t\t\t$itemData = array(\n\t\t\t\t\t\t\t'id' => $item->id,\n\t\t\t\t\t\t\t'order_id' => $order->id,\n\t\t\t\t\t\t\t'campaign_id' => $item->campaign_id,\n\t\t\t\t\t\t\t'line_item_id' => $item->line_item_id,\n\t\t\t\t\t\t\t'spin_name' => $item->spin_name,\n\t\t\t\t\t\t\t'product_id' => $item->product_id,\n\t\t\t\t\t\t\t'product_name' => $item->product_name,\n\t\t\t\t\t\t\t'product_type' => $item->product_type,\n\t\t\t\t\t\t\t'merchandise_type' => $item->merchandise_type,\n\t\t\t\t\t\t\t'quantity' => $item->quantity,\n\t\t\t\t\t\t\t'sku_id' => $item->sku_id,\n\t\t\t\t\t\t\t'sku_upc' => $item->sku_upc,\n\t\t\t\t\t\t\t'sku_attributes' => serialize($item->sku_attributes),\n\t\t\t\t\t\t\t'factory_sku' => $item->factory_sku,\n\t\t\t\t\t\t\t'shipped' => $item->shipped,\n\t\t\t\t\t\t\t'status' => $item->status,\n\t\t\t\t\t\t\t'weight' => serialize($item->weight),\n\t\t\t\t\t\t\t'bundle_sku_id' => $item->bundle_sku_id,\n\t\t\t\t\t\t\t'shipping_date' => $item->shipping_date\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$itemFormat = array('%d','%d','%d','%d','%s','%d','%s','%s','%s','%d','%d','%s','%s','%s','%d','%s','%s','%d','%s');\n\t\t\t\t\t\t$itemTableFields = implode(',',array_keys($itemData));\n\t\t\t\t\t\t$itemTableFormats = implode(',',$itemFormat);\n\t\t\t\t\t\t$itemOnDuplicateUpdate = '';\n\t\t\t\t\t\t$itemKeyIndex = 0;\n\t\t\t\t\t\tforeach($itemData as $itemKey=>$itemField) {\n\t\t\t\t\t\t\tif($itemKeyIndex>0) { $itemOnDuplicateUpdate .= ', '; }\n\t\t\t\t\t\t\t$itemOnDuplicateUpdate .= $itemKey.'=VALUES('.$itemKey.')';\n\t\t\t\t\t\t\t$itemKeyIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$itemSQL = <<<EOD\n\t\t\t\t\t\tINSERT INTO {$this->wpdb->prefix}topspin_orders_items ({$itemTableFields}) VALUES ({$itemTableFormats})\n\t\t\t\t\t\tON DUPLICATE KEY UPDATE {$itemOnDuplicateUpdate}\nEOD;\n\t\t\t\t\t\t$this->wpdb->query($this->wpdb->prepare($itemSQL,$itemData));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function paginate($orderBy = 'nome', $perPage = 10);", "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 }", "function orders() {\n\t \treturn $this->hook(\"/{$this->subject_slug}/v1/orders.xml?api_key={$this->api_key}\",\"order\");\n\t}", "function getPagedElements() {\n return $this->page_object;\n }", "public static function getOrder(): int;", "public function getPageNumber();", "public function getPageNumber();", "protected function getPage() {}", "protected function getPage() {}", "public function index()\n {\n return $this->orderInterface->index();\n }", "protected function buildPagination() {}", "protected function buildPagination() {}", "function results_are_paged()\n {\n }", "public static function getTask(){ //($page = 1)\n \n /*$page = intval($page);\n $offset = ($page - 1) * 3;*/\n \n $db = Db::getConnection();\n \n $result = $db->query('SELECT * FROM task ORDER BY status DESC');\n\n return $result->fetchAll();\n }", "public function AllOrders_get() {\n extract($_GET);\n $result = $this->feeds_model->AllOrders($per_page, $offset);\n return $this->response($result);\n }", "public function index()\n {\n $orders = Order::latest()->paginate(5);\n \n return view('orders.index',compact('orders'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "public function order();", "function getNewPage($key,$pagenum){\n // get json data from api\n $json = @file_get_contents(\"https://api.hackaday.io/v1/feeds/global?api_key=$key&page=$pagenum\"); // Suppress errors that would stop execution\n return json_decode($json,true);\n}", "public function getOrder()\n {\n return 20;\n }", "public function getOrder()\n {\n return 20;\n }", "public function getIndex($order,$limit,$page) {\n\t\t$q = \"SELECT Biomarker.id, Biomarker.qastate, Biomarker.type, Biomarker.isPanel, Names.name \".\n\t\t\t\"FROM biomarkers as Biomarker \".\n\t\t\t\t\"JOIN biomarker_names AS Names ON (Names.biomarker_id=Biomarker.id AND Names.isPrimary=1) \".\n\t\t\t\t\t\"WHERE 1 \" .\n\t\t\t\t\t\"ORDER BY {$order} \" . \n\t\t\t\t\t\"LIMIT \".($limit * ($page-1)) .\",{$limit} \";\n\t\treturn $this->query($q);\n\t}", "public function index()\n {\n //\n return view('admin.itemsList.orderList')->with([\n 'orders' => Order::orderBy('created_at', 'desc')->paginate(6)\n ]);\n }", "public function getOrder()\n {\n return 10;\n }", "public function getOrder()\n {\n return 10;\n }", "public function getOrder()\n {\n return 10;\n }", "public function getOrder()\n {\n return 10;\n }", "public function getOrder()\n {\n return 10;\n }", "public function paging(){\n\t\t$sql = \"SELECT * FROM berita\";\n\t\t$query = $this->db->query($sql) or die ($this->db->error);\n\t\treturn $query;\n\t}", "abstract protected function fetchNextPage(): ?int;", "public function getPage() {}", "public function getPage() {}", "public function getPageEntryIds();", "function getNextSearchPage($tl)\n{\n if ($tl['page'] < $tl['pages'] - 1) {\n $nextPage = $tl['page'] + 1;\n } else {\n $nextPage = null;\n }\n return $nextPage;\n}", "public function getOrder()\n {\n return 1;// TODO: Implement getOrder() method.\n }", "function get_page($page, $output = \\OBJECT, $filter = 'raw')\n {\n }", "public function get_page_permastruct()\n {\n }", "function smarty_function_papyrine_getentries ($params, &$smarty) \n\t{\n\t\tif (empty ($params['assign']))\n\t\t\t$params['assign'] = 'entries';\n\n\t\tif (empty ($params['limit']))\n\t\t\t$params['limit'] = 10;\n\n\t\tif (empty ($params['status']))\n\t\t\t$params['status'] = 2;\n\n\t\tif (empty ($params['frontpage']))\n\t\t\t$params['frontpage'] = false;\n\n\t\tif (empty ($params['category']))\n\t\t\t$entries = $smarty->GetEntries ($params['status'], $params['limit'], $params['frontpage']);\n\t\telse {\n\t\t\t$category = $smarty->GetCategory ($params['category']);\n\t\t\t$entries = $category->GetEntries ($params['limit']);\n\t\t}\n\n\t\t$smarty->assign (\n\t\t\t$params['assign'], \n\t\t\tPapyrine::Objects2Array ($entries)\n\t\t);\n\t}", "public function index()\n {\n $orders = $this->orderRepository->with('foods')->get();\n return api_response_paginate(\n 200,\n 'success',\n (new OrderCollection($orders))\n ->paginate(Request::get('per-page') ?? 10));\n }", "public function getPage()\n\t{\n\t $url = URL::segment(1);\n\t\treturn $this->crud->_where(\"url = $url\")\n\t\t\t\t\t->read('row')\n\t\t;\n\t}", "public function index()\n {\n $orders = Order::orderBy('created_at', 'desc')->paginate(20);\n\n\n return view('vendor.voyager.order.browse', ['orders' => $orders]);\n\n }" ]
[ "0.66023403", "0.6132431", "0.612481", "0.58969814", "0.5876828", "0.5854071", "0.58467335", "0.5836994", "0.5828445", "0.5794937", "0.5775735", "0.57602185", "0.57602185", "0.57602185", "0.57602185", "0.57602185", "0.57602185", "0.575228", "0.5691405", "0.56791544", "0.5668754", "0.5628684", "0.5628302", "0.55825365", "0.5576227", "0.55640346", "0.5561839", "0.55261666", "0.55261666", "0.5506263", "0.5492713", "0.54921395", "0.54674155", "0.54641676", "0.5445269", "0.54421103", "0.5441565", "0.54359037", "0.5430091", "0.5430091", "0.5426569", "0.5425556", "0.5424445", "0.5418574", "0.5417855", "0.5413684", "0.54079825", "0.5407715", "0.5397308", "0.5378995", "0.5364676", "0.5364676", "0.5364676", "0.5364676", "0.5363483", "0.53545856", "0.53528535", "0.53490937", "0.53344834", "0.532097", "0.5319763", "0.53167105", "0.53155136", "0.5312169", "0.53117394", "0.5303715", "0.5303715", "0.5269918", "0.52687997", "0.5263439", "0.5263209", "0.5263209", "0.52623576", "0.526084", "0.5260438", "0.525985", "0.5253881", "0.5252103", "0.5246363", "0.5246363", "0.5240893", "0.52301335", "0.5225675", "0.5225675", "0.5225675", "0.5225675", "0.5225675", "0.5214902", "0.521327", "0.5213194", "0.5213194", "0.5209721", "0.52095664", "0.52076197", "0.5205434", "0.5203393", "0.5202324", "0.5198695", "0.5189402", "0.51880246" ]
0.62987506
1
Test that the request object extends the abstract
public function testConstruct() { $request = $this->createRequest(); $this->assertInstanceOf('Nimbles\Core\Request\RequestAbstract', $request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function is_base_request()\n {\n }", "abstract public function request();", "public function isRequest();", "public function testToRequest(): void\n {\n $request = new Request([\n 'banana' => 'strawberry',\n ]);\n $this->assertInstanceOf(IllRequest::class, $request->toRequest());\n }", "public function onInheritanceFromRequest($req) {\n\t}", "public function testNewInstanceWithDefaultArguments(): void\n {\n $this->assertInstanceOf(Request::class, self::$request);\n }", "public function testRequestIsPassedCorrectly()\n {\n $this->assertPropertySame('request', $this->request);\n }", "abstract protected function requestClass(): string;", "public function testCreateRequest() {\n\t\t$uri = 'http://www.php.net';\n\t\t$request = new HttpWebRequest($uri);\n\t\t\n\t\t// make sure it's the correct type/sub-type\n\t\t$this->assertTrue($request instanceof WebRequest);\n\t\t$this->assertTrue($request instanceof HttpWebRequest);\n\t\t\n\t\t// check to see if the uri was properly set\n\t\t$this->assertEquals($uri, $request->requestUri);\n\t}", "public function test_psr7_request(): void {\n\n\t\t$request = HTTP_Helper::request(\n\t\t\t'GET',\n\t\t\t'https://google.com'\n\t\t);\n\n\t\t$this->assertInstanceOf( RequestInterface::class, $request );\n\t\t$this->assertEquals( 'GET', $request->getMethod() );\n\t\t$this->assertInstanceOf( UriInterface::class, $request->getUri() );\n\t\t$this->assertEquals( 'google.com', $request->getUri()->getHost() );\n\t}", "abstract public function processRequest();", "public abstract function processRequest();", "function is_request($meta = array())\n {\n }", "abstract public function initFromRequest(\\App\\Request $request);", "public function testInit()\n {\n $request = new Request();\n $obj = $request->init();\n $this->assertEquals($request, $obj);\n }", "abstract public function verifyRequest(): void;", "abstract public function verifyRequest(): void;", "protected function _request() {}", "public function testGetRequest()\n {\n $viewCounterServiceMock = $this->getMockBuilder(ViewCounter::class)\n ->setConstructorArgs([$this->counterManagerMock, $this->requestStackMock, $this->viewcounterConfigMock])\n ->getMock();\n\n $this->requestStackMock\n ->expects($this->once())\n ->method('getCurrentRequest')\n ->with()\n ->willReturn($this->request);\n\n $request = $this->invokeMethod($viewCounterServiceMock, 'getRequest', []);\n\n $this->assertTrue($request instanceof Request);\n }", "public function canHandleRequest() {}", "public function canHandleRequest() {}", "public function canHandleRequest() {}", "public function canHandleRequest() {}", "public function testRequest() {\n $params = array('type'=>'categorie-name',\n 'search'=>'android');\n $this->assertType(PHPUnit_Framework_Constraint_IsType::TYPE_OBJECT, $this->object->request('get-product-categories', $params));\n }", "public function __construct(AbstractRequest $request)\n {\n $this->_request = $request;\n }", "public function testGetNewInterRequestObject()\n {\n $value = $this->class->get_new_inter_request_object(array());\n\n $this->assertInstanceOf('Lunr\\Corona\\InterRequest', $value);\n }", "public function filter_extends_filters_abstract()\n {\n $this->assertTrue(get_parent_class(new UserFilters(request())) === FiltersAbstract::class);\n }", "public function testImplementsAbstractController(): void\n {\n $controller = new UserController($this->request, $this->userService);\n\n $this->assertInstanceOf(AbstractController::class, $controller);\n }", "protected abstract function handleRequest();", "public function getRequest(): RequestInterface;", "abstract protected function sendRequest(RequestInterface $request): ResponseInterface;", "public function test_happy_flow_get()\n {\n $_SERVER['REQUEST_METHOD'] = 'GET';\n $_GET['sp-entity-id'] = 'http://mock-sp';\n\n $request = new Request($_GET, $_POST, [], [], [], $_SERVER);\n\n $this->assertTrue($this->validator->isValid($request));\n }", "abstract public function handleRequest($request);", "public function isValidRequest() {\n }", "public function canHandleRequest();", "public function canHandleRequest();", "public function testGetRequest()\n {\n $response= $this->apiObject->getRequest();\n $request=$response->getBody()->getContents();\n $this->assertMatchesJsonSnapshot($request);\n echo('\n El request recibido:\n '.$request);\n }", "public function request() : ServerRequestInterface;", "public function testAdditionalGettersAndSetters()\n {\n $this->assertSame($this->request->setCurrency('RUB'), $this->request);\n $this->assertEquals($this->request->getCurrency(), 'RUB');\n\n $this->assertSame($this->request->setFailUrl('http://test.test/error'), $this->request);\n $this->assertEquals($this->request->getFailUrl(), 'http://test.test/error');\n\n $this->assertSame($this->request->setDescription('Order Description'), $this->request);\n $this->assertEquals($this->request->getDescription(), 'Order Description');\n\n $this->assertSame($this->request->setLanguage('ru'), $this->request);\n $this->assertEquals($this->request->getLanguage(), 'ru');\n\n $this->assertSame($this->request->setPageView('DESKTOP'), $this->request);\n $this->assertEquals($this->request->getPageView(), 'DESKTOP');\n\n $this->assertSame($this->request->setClientId(123456), $this->request);\n $this->assertEquals($this->request->getClientId(), 123456);\n\n $this->assertSame($this->request->setMerchantLogin('test_login'), $this->request);\n $this->assertEquals($this->request->getMerchantLogin(), 'test_login');\n\n $this->assertSame($this->request->setJsonParams('{\"param\":\"value\"}'), $this->request);\n $this->assertEquals($this->request->getJsonParams(), '{\"param\":\"value\"}');\n\n $this->assertSame($this->request->setSessionTimeoutSecs(1800), $this->request);\n $this->assertEquals($this->request->getSessionTimeoutSecs(), 1800);\n\n $this->assertSame($this->request->setExpirationDate('2017-12-12T12:12:12'), $this->request);\n $this->assertEquals($this->request->getExpirationDate(), '2017-12-12T12:12:12');\n\n $this->assertSame($this->request->setBindingId(654321), $this->request);\n $this->assertEquals($this->request->getBindingId(), 654321);\n }", "abstract function route(RequestInterface $request);", "public function testNewInstanceWithWrongHttpMethod(): void\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage(\"Invalid HTTP method.\");\n\n $this->assertInstanceOf(Request::class, new Request(new Uri('http://127.0.0.1/'), 'FOO'));\n }", "abstract protected function process(Request $request);", "public function testBasic(): void\n {\n $this->assertInstanceOf(EshopOrdersRequest::class, $this->orders);\n }", "abstract public function populateRequest(PHPFrame_Request $request);", "protected function setUp()\n {\n \n\t$this->object = new Request(array(),array());\n }", "public function testSetBaseIsFluent()\n {\n $request = new Request($this->config, []);\n $this->assertSame($request, $request->setBase(uniqid('', true)));\n }", "abstract public function post(Request $request);", "public function testGetRequestType()\n {\n $options = new Mailing();\n $this->assertEquals('get', $options->getRequestType());\n }", "public function setUp()\n {\n $this->instance = new Request();\n }", "abstract public function is_have();", "protected function getRequest() {}", "abstract public function handle_request();", "protected function setUp()\n {\n $this->object = new Request('','','');\n }", "public function Matches (\\MvcCore\\IRequest $request);", "public function testSimpleExtractionFromRequest()\n {\n $queryData = ['a' => 1, 'b' => 2];\n $requestData = ['a' => 2, 'b' => 4, 'c' => 8];\n $contentData = ['b' => 3, 'c' => 6, 'd' => 9];\n $request = $this->createRequest($queryData, $requestData, $contentData);\n\n $this->assertEquals($requestData, $this->extractParameters($request, null, 'request'));\n }", "protected function createHttpRequest()\n {\n return $this->createMock(RequestInterface::class);\n }", "public function validateRequest();", "abstract function do_api_request();", "abstract public function getRequestBody();", "protected static function isInternalRequestType() {}", "protected static function isInternalRequestType() {}", "abstract public function get(Request $request);", "public function testSetBaseAllowsSettingOfBase()\n {\n $request = new Request($this->config, []);\n $base = uniqid('', true);\n $request->setBase($base);\n $this->assertEquals($base, $request->getBase());\n $this->assertEquals($base, $request->base);\n }", "abstract public function validate_request(array $params):bool;", "public function needs($abstract);", "function canHandleRequest() ;", "abstract public function test();", "abstract public function test();", "public function createRequest(): IRequest;", "public function testWithRequestTarget(): void\n {\n $request = self::$request->withRequestTarget('/foo/bar/baz/');\n\n $this->assertSame('/foo/bar/baz/', $request->getRequestTarget());\n }", "public function test_can_get_http_instance() {\n\t\t$this->assertInstanceOf( HTTP::class, HTTP_Helper::get_http() );\n\t}", "public function testRedirectReplacesRequestClass()\n {\n $new = $this->getMock('Lunr\\Corona\\RequestInterface');\n\n $this->class->redirect($new);\n\n $this->assertPropertySame('request', $new);\n $this->assertNotSame($new, $this->request);\n }", "protected abstract function test();", "protected abstract function test();", "protected function setUp()\n {\n $this->object = new Request;\n }", "public function testRequestSetCorrectly()\n {\n $property = $this->logger_reflection->getProperty('request');\n $property->setAccessible(TRUE);\n\n $this->assertEquals($this->request, $property->getValue($this->logger));\n $this->assertSame($this->request, $property->getValue($this->logger));\n }", "public function isRequest(): bool\n {\n return $this->form->getMethod() == $this->request->getMethod();\n }", "protected function setUp(): void\n {\n parent::setUp();\n $this->mRequest = new Request();\n }", "public function testPolymorphic()\n {\n //$this->fail();\n }", "public function testIsActionName(): void\n {\n foreach (['delete', 'edit', 'index', 'view'] as $action) {\n $this->assertFalse($this->Request->is($action));\n }\n\n $this->assertTrue($this->Request->is('add'));\n $this->assertTrue($this->Request->is(['add', 'edit']));\n $this->assertFalse($this->Request->is(['delete', 'edit']));\n }", "abstract public function mapRequest($request);", "public function __construct()\n {\n parent::__construct($_REQUEST);\n }", "public function HTTPRequest(){\n\t}", "abstract public function handleRequest(Request $request);", "public function __construct(IRequest $request)\n {\n if (property_exists($request, 'contentType')) {\n $type = explode(';', $request->contentType)[0];\n \n switch ($type) \n {\n case 'multipart/form-data':\n case 'application/x-www-form-urlencoded': \n $this->_FormData();\n break;\n case 'application/json': \n $this->_JsonData(); \n break;\n }\n }\n }", "abstract protected function createBackendRequest(Request $request);", "public function prepareRequest(RequestInterface $request);", "public function testValidateGetOrderRequest(): void\n {\n $this->assertTrue(method_exists($this->stack, 'validateGetOrderRequest'));\n }", "private function checkrequest()\n {\n // This method checks if there is user input, and returns the request_method if evaluated to be true\n if ($_SERVER['REQUEST_METHOD'] == \"POST\") {\n $this->request = \"post\";\n return true;\n } elseif ($_SERVER['REQUEST_METHOD'] == \"GET\") {\n $this->request = \"get\";\n return true;\n } else {\n $this->request = false;\n }\n }", "public function testObject()\n {\n $this->assertInstanceOf('ZF2XmlApiSendeffect\\Service\\AbstractService', $this->service);\n }", "public function testGetBody() {\n $request = $this->createRequest();\n\n static::setInput('hello world');\n $this->assertEquals('hello world', $request->getBody());\n $this->assertEquals('hello world', $request->body);\n }", "public function __construct($request = null) {\n parent::__construct($request);\n }", "public function preProcessRequest(RequestInterface &$request) {}", "public function testClassname()\n {\n $input = Request::all();\n\n //path params validation\n\n\n //not path params validation\n if (!isset($input['client'])) {\n throw new \\InvalidArgumentException('Missing the required parameter $client when calling testClassname');\n }\n $client = $input['client'];\n\n\n return response('How about implementing testClassname as a patch method ?');\n }", "public function testExtends($parentName)\n {\n \t$this->assertType($parentName , $this->object);\n }", "public function testExtends($parentName)\n {\n \t$this->assertType($parentName , $this->object);\n }", "public function isRequestAllowed(Request $request);", "public function processRequest();", "public function test__construct() {\n\n $obj = new DataTablesRequest();\n\n $this->assertEquals([], $obj->getColumns());\n $this->assertEquals(0, $obj->getDraw());\n $this->assertEquals(10, $obj->getLength());\n $this->assertEquals([], $obj->getOrder());\n $this->assertInstanceOf(ParameterBag::class, $obj->getQuery());\n $this->assertInstanceOf(ParameterBag::class, $obj->getRequest());\n $this->assertNull($obj->getSearch());\n $this->assertEquals(0, $obj->getStart());\n $this->assertNull($obj->getWrapper());\n }", "protected function isValid()\n {\n return !app('request') instanceof Request;\n }" ]
[ "0.68234825", "0.65541375", "0.6515897", "0.642222", "0.63653684", "0.6318197", "0.6315014", "0.6287202", "0.6258766", "0.6159344", "0.6150151", "0.6033908", "0.6005173", "0.60037893", "0.5980461", "0.5972225", "0.5972225", "0.5960055", "0.5947187", "0.5937627", "0.5937627", "0.5937627", "0.5937627", "0.59271336", "0.5915367", "0.5876263", "0.5874224", "0.58123255", "0.5812138", "0.58096343", "0.58065027", "0.57980794", "0.57856244", "0.5769804", "0.57658565", "0.57658565", "0.5748195", "0.57406855", "0.57185733", "0.5717674", "0.57026994", "0.5694041", "0.56928813", "0.5678458", "0.56756264", "0.56647223", "0.5664434", "0.5651945", "0.5650578", "0.5644199", "0.56112635", "0.5606839", "0.560649", "0.5600525", "0.55980515", "0.5592175", "0.55913746", "0.55852056", "0.55830723", "0.5574214", "0.5574214", "0.55736345", "0.55691636", "0.5563585", "0.55374265", "0.5534069", "0.55325407", "0.55325407", "0.5519023", "0.55159795", "0.5512455", "0.5494968", "0.54792553", "0.54792553", "0.54680586", "0.54675627", "0.5458647", "0.5443173", "0.5442389", "0.54340523", "0.5415994", "0.54129255", "0.5409256", "0.54079527", "0.54075754", "0.5390686", "0.5384103", "0.53646654", "0.5360331", "0.53588915", "0.53462315", "0.5344546", "0.5341759", "0.5341385", "0.53405815", "0.53405815", "0.5340312", "0.53385043", "0.53350395", "0.5333568" ]
0.71765363
0
Tests using the session, when accessing via request, the session should be read only
public function testSession() { static::$_session = array( 'test1' => 'abc', 'test2' => 123 ); $request = $this->createRequest(); $this->assertInstanceOf('Nimbles\Http\Session', $request->getSession()); $this->assertInstanceOf('Nimbles\Http\Session', $request->session); $this->assertEquals('abc', $request->getSession('test1')); $this->assertEquals('abc', $request->session->read('test1')); $this->assertEquals(123, $request->getSession('test2')); $this->assertNull($request->getSession('test3')); $request->getSession()->write('test3', 'def'); $this->assertNull($request->getSession('test3')); $request->getSession()->clear(); $this->assertEquals('abc', $request->getSession('test1')); $this->assertEquals(123, $request->getSession('test2')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetSession()\n {\n $this->assertEquals('session value', $this->_req->getSession('my_test_session'));\n }", "function testGetUserBySession() {\n $this->assertFalse(Sessions::getUserBySession());\n }", "public function hasSession() {}", "function sys_session_test(){\n session_name(\"MELOLSESSION\");\n session_start();\n if (isset($_SESSION[\"userId\"]) && isset($_SESSION[\"sessionId\"]) && isset($_REQUEST[\"sessionId\"])) {\n if ($_SESSION[\"sessionId\"] == $_REQUEST[\"sessionId\"]) {\n return TRUE;\n }\n }\n return FALSE;\n}", "public function sessionDummy()\n {\n return true;\n }", "public function testSessionHttpServer(): void\n {\n $this->session(['foo' => 'session data']);\n $this->get('/request_action/session_test');\n $this->assertResponseOk();\n $this->assertResponseContains('session data');\n $this->assertHeader('X-Middleware', 'true');\n }", "public function testGetSession()\n {\n $response = $this->loginAsRole(Role::ADMIN)\n ->get($this->url('sessions/1'));\n\n $response->assertStatus(200);\n\n $response->assertJsonStructure([\n 'name',\n 'school_id',\n 'start_date',\n 'end_date'\n ]);\n }", "public function getSession() {}", "function testSet() {\n\n\t\tsession_start();\n\n\t\techo $_SESSION['sessionID'];\n\t\t\n\t\tif(!isset($_SESSION['sessionID'])){\n\t\t\techo \"out\";\n\t\t\texit;\n\t\t}\n\n\t\techo \"in\";\n\t}", "abstract protected function getSession();", "public function testReadingSession()\n {\n // Get session\n $session = $this->getWorkingReader()->getSession();\n\n //-- Validate\n $this->assertSame(Session::TYPE_RACE, $session->getType());\n $this->assertSame('Quick Race', $session->getName());\n $this->assertSame(5, $session->getMaxLaps());\n $this->assertSame(30, $session->getMaxMinutes());\n $this->assertSame(5, $session->getLastedLaps());\n }", "protected static function isBackendSession() {}", "public function testArrayAccess() {\n\t\t$session = $this->getSession();\n\t\t$this->assertFalse(isset($session['test']), 'Test key is set for new empty session');\n\t\t$this->assertNull($session['test'], 'Not set key is not null');\n\t\t$session['test'] = 'testValue';\n\t\t$this->assertTrue(isset($session['test']), 'Test key is not set');\n\t\t$this->assertSame('testValue', $session['test'], 'Test key is not correctly set');\n\t\tunset($session['test']);\n\t\t$this->assertFalse(isset($session['test']), 'Test key is set after deleting');\n\t\t$this->assertNull($session['test'], 'Deleted key is not null');\n\t}", "public static function use_sessions()\n {\n \\Session::started() or \\Session::load();\n }", "public function getSession();", "public function testGetSessionDefault()\n {\n $val = $this->_req->getSession('DOESNT_EXIST', 'default value');\n $this->assertEquals('default value', $val);\n }", "public function testIndexStatus(){\n\n $user = factory(User::class)->create();\n\n $this->actingAs($user)->withSession(['foo' => 'bar'])->visit('admin/price/')->see(\"Price List\")\n ;\n\n }", "public function testGetSessionArray()\n {\n $expected = array('my_test_session' => 'session value', \n 'my_other_session' => 'session stuff');\n $this->assertEquals($expected, $this->_req->getSession());\n }", "protected function initializeSession() {}", "function loadSession() {}", "function setMockSession() {\n if (!class_exists('\\RightNow\\Libraries\\MockSession')) {\n Mock::generate('\\RightNow\\Libraries\\Session');\n }\n $session = new \\RightNow\\Libraries\\MockSession;\n $this->realSession = $this->CI->session;\n $this->CI->session = $session;\n $session->setSessionData(array('sessionID' => 'garbage'));\n }", "protected function _session() {\n\t\treturn $this->_crud()->Session;\n\t}", "function checkSession()\n {\n if(isset($_COOKIE['sessionId']))\n {\n $response = callApi('GET', 'session', ['sessionid' => $_COOKIE['sessionId']]);\n if($response['code'] == '200')\n return true;\n else\n return false;\n }\n }", "public function get_test_php_sessions()\n {\n }", "public function testNotLoggedIn()\n {\n $this->sessionInfo['logged_in'] = false;\n $this->sessionInfo['token'] = 'foo';\n\n $this->session($this->sessionInfo);\n\n $response = $this->call('GET', '/api/user');\n\n $this->assertEquals(200, $response->getStatusCode());\n\n $decoded = json_decode($response->getContent());\n\n $this->assertEquals('error', $decoded->status);\n }", "public function setUp()\n {\n parent::setUp();\n // Avoid \"Session store not set on request.\" - Exception!\n Session::setDefaultDriver('array');\n $this->manager = app('session');\n\n $user = new User;\n $user->id = 77;\n \t$user->fullname = \"Jack Robinson\";\n \t$user->phone = \"+2348022007561\";\n \t$user->email = \"[email protected]\";\n\n \t$request = new Request();\n $request->setSession($this->manager->driver());\n $request->session()->set('patient', $this->user);\n\n $session = $request->session()->get('patient');\n\n }", "public function testRunningInSafeMode()\n\t{\n\t\t$_GET['safe_mode'] = '1';\n\n\t\t$this->restartApplication();\n\n\t\t$this->call('orchestra::credential@login', array(), 'GET');\n\t\t$this->assertEquals('Y', \\Session::get('safe_mode'));\n\n\t\t$_GET['safe_mode'] = '0';\n\n\t\t$this->restartApplication();\n\n\t\t$this->call('orchestra::credential@login', array(), 'GET');\n\t\t$this->assertNull(\\Session::get('safe_mode'));\n\t}", "protected static function isFrontendSession() {}", "function sessionSet(){\r\n\t\tif(isset($_SESSION[\"$this->session_name\"])) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function setUpSession() \n {\n exec('mysqldump -u '.env('DB_USERNAME').' test | mysql -u '.env('DB_USERNAME').' test_testing');\n\n $this->amOnPage('/');\n $this->setCookie('selenium_request', 'true');\n }", "public function checkUsersSession(){\n\t}", "protected function isAuthorizedBackendSession() {}", "protected function isAuthorizedBackendSession() {}", "public function testInvalidSessionHandling() {\n\t\t$session = $this->getSession('nonexistent');\n\t\t$session->loadSession();\n\t\t$this->assertNotEquals('nonexistent', $session->getId(), 'The session ID was not changed');\n\t}", "protected function get_sessions()\n {\n }", "protected function mockSession()\n\t{\n\t\trequire_once ROOTPATH . 'tests/_support/Session/MockSession.php';\n\t\t$config = config('App');\n\t\t$this->session = new MockSession(new ArrayHandler($config, '0.0.0.0'), $config);\n\t\t\\Config\\Services::injectMock('session', $this->session);\n\t}", "protected function _getSession() {\n /**\n * Return session value\n */\n return Mage::getSingleton ( 'core/session' );\n }", "protected function checkSessionLifetime() {}", "function _read_user_session()\n {\t\t\n\t\tif($this->sh_Options['keeping_logic'] == 'db'){\n\t\t\t$this->is_present = $this->_read_user_session_db();\n\t\t} else {\n\t\t\t$this->is_present = $this->_read_user_session_ss();\n\t\t}\n\t}", "public function testShowUser()\n {\n \t$user = factory(User::class)->create()''\n \t$response = $this->actingAs($user)->withSession(['Foo' => 'bar'])->get('/memes');\n \t$response->assertStatus(200);\n \n }", "public function fetchSessionData() {}", "protected function isAuthorizedFrontendSession() {}", "public function testLoggedIn()\n {\n $this->session($this->sessionInfo);\n\n $response = $this->call('GET', '/api/user');\n\n $this->assertEquals(200, $response->getStatusCode());\n\n $decoded = json_decode($response->getContent());\n\n $this->assertEquals('success', $decoded->status);\n\n $this->assertEquals(true, $decoded->data->logged_in);\n }", "function requestSessionInfo()\n {\n //para pasarselo al aside;\n\n $sessionLevel = $this->loginController->GetSessionAuthLevel();\n $this->view->setSessionLevel($sessionLevel);\n\n $sessionName = $this->loginController->GetSessionUsername();\n $this->view->setSessionName($sessionName);\n }", "public static function setUpBeforeClass()\n {\n @session_start();\n\n }", "public static function sessionAndUserLoggedIn(){\n Verify::session();\n Verify::userLoggedIn();\n }", "public function testSessionManagerTest()\n {\n // Get date from session\n $dates = Session::get('dates');\n $this->assertIsArray($dates);\n $this->assertIsArray($dates[0]);\n\n $date = $dates[0];\n $this->assertSame('John Doe', $date['Name']);\n $this->assertSame('52', $date['Years']);\n $this->assertSame('18996', $date['Days']);\n $this->assertSame('460639', $date['Hours']);\n }", "protected function checkSessionToken() {}", "public static function sessionAndAdminLoggedIn(){\n Verify::session();\n Verify::adminLoggedIn();\n }", "public function canGet()\n {\n if ( !$this->actor ) \n {\n $this->actor = get_viewer(); \n }\n \n if ( !$this->actor ) \n {\n return false; \n }\n \n if ( !$this->actor->authorize('administration') ) \n {\n return false; \n }\n \n $this->getService('repos://site/connect.session');\n \n $api = $this->actor->sessions->{$this->getIdentifier()->name}; \n \n if ( !$api ) \n return false;\n \n $this->api = $api;\n }", "public function xhrSessionExist(){\n echo Session::get(\"loggedin\")?\"postoji\":\"ne postoji\";\n }", "public function before() {\n\t\t// What it does is get rid of invalid sessions which cause exceptions, which may happen\n\t\t// 1) when you make errors in your code.\n\t\t// 2) when the session expires!\n\t\ttry {\n\t\t\t$this->session = Session::instance();\n\t\t} catch(ErrorException $e) {\n\t\t\tsession_destroy();\n\t\t}\n\t\t// Execute parent::before first\n\t\tparent::before();\n\t\t// Open session\n\t\t$this->session = Session::instance();\n\n\t\t// Handle the unlikely situation where a logged-in user was recently deleted\n\t\t// by an admin, but is now making a request. In this case, we want to log the user out\n\t\t// before trying to process the request.\n\t\t$auth = Auth::instance();\n\t\t$user = $auth->get_user();\n\t\t// In this situation, we will still have a user in the session,\n\t\t// and the auth instance will still see its original role(s),\n\t\t// but the ORM will fetch NULL for the user ID\n\t\tif (!empty($user) and $user->id === NULL)\n\t\t{\n\t\t\t$auth->logout(TRUE, TRUE);\n\t\t}\n\n\t\t// Check user auth and role\n\t\t$action_name = Request::current()->action();\n\n\t\tif (($this->auth_required !== FALSE &&\n\t\t\t $auth->logged_in($this->auth_required) === FALSE)\n\t\t// auth is required AND user role given in auth_required is NOT logged in\n\t\t|| (is_array($this->secure_actions)\n\t\t\t&& array_key_exists($action_name, $this->secure_actions)\n\t\t\t&& $auth->logged_in($this->secure_actions[$action_name]) === FALSE)\n\t\t// OR secure_actions is set AND the user role given in secure_actions is NOT logged in\n\t\t) {\n\t\t\tif ($auth->logged_in()){\n\t\t\t// user is logged in but not on the secure_actions list\n\t\t\t\t$this->request->redirect(Route::get('default')->uri()); // TODO: Change route to Denied page\n\t\t\t} else {\n\t\t\t\t$this->request->redirect(Route::get('auth')->uri(array('action'=>'login')));\n\t\t\t}\n\t\t}\n\t}", "public function sess_read()\n\t{\n\t\treturn ($this->session_valid()) ? parent::sess_read() : FALSE;\n\t}", "public function setUp() : void\n {\n parent::setUp();\n\n $this->app['request']->setLaravelSession($this->app['session']->driver('array'));\n }", "function session()\n {\n if (!API_MODE) {\n session_name('SKELETON');\n session_start();\n } else {\n ini_set('session.use_cookies', '0');\n }\n }", "private static function configureSession()\n {\n if(!isset($_SESSION))\n {\n session_start();\n }\n }", "public function sess_read()\r\r\n\t{\r\r\n\t\t$session = $_SESSION;\r\r\n\r\r\n\t\t// Is the session data we unserialized an array with the correct format?\r\r\n\t\tif ( ! is_array($session) OR ! isset($session['session_id']) OR ! isset($session['ip_address']) OR ! isset($session['user_agent']) OR ! isset($session['last_activity']))\r\r\n\t\t{\r\r\n\t\t\tlog_message('debug', 'A session was not found.');\r\r\n\t\t\t$this->sess_destroy(FALSE);\r\r\n\t\t\treturn FALSE;\r\r\n\t\t}\r\r\n\r\r\n\t\t// Is the session current?\r\r\n\t\tif (($session['last_activity'] + $this->parent->sess_expiration) < $this->parent->now)\r\r\n\t\t{\r\r\n\t\t\t$this->sess_destroy(FALSE);\r\r\n\t\t\treturn FALSE;\r\r\n\t\t}\r\r\n\r\r\n\t\t// Does the IP Match?\r\r\n\t\tif ($this->parent->sess_match_ip == TRUE AND $session['ip_address'] != $this->CI->input->ip_address())\r\r\n\t\t{\r\r\n\t\t\t$this->sess_destroy(FALSE);\r\r\n\t\t\treturn FALSE;\r\r\n\t\t}\r\r\n\r\r\n\t\t// Does the User Agent Match?\r\r\n\t\tif ($this->parent->sess_match_useragent == TRUE AND trim($session['user_agent']) != trim(substr($this->CI->input->user_agent(), 0, 120)))\r\r\n\t\t{\r\r\n\t\t\t$this->sess_destroy(FALSE);\r\r\n\t\t\treturn FALSE;\r\r\n\t\t}\r\r\n\r\r\n\t\t// Session is valid!\r\r\n\t\t$this->parent->userdata = $session;\r\r\n\t\tunset($session);\r\r\n\r\r\n\t\treturn TRUE;\r\r\n\t}", "public function testConnection () {\n $this->cookies = SessionComponent::read( 'Capsule.cookies' );\n if ( empty( $this->idul ) ) {\n $this->idul = SessionComponent::read( 'User.idul' );\n }\n $request = $this->_fetchPage( '/pls/etprod8/twbkwbis.P_GenMenu?name=bmenu.P_AdminMnu' );\n\n // Retry user login if request fails\n if ( !$request || !isset( $request[ 'headers' ] ) || !is_array( $request[ 'headers' ] ) )\n $this->login( $this->idul, $this->password );\n\n // Check if session ID cookie from header response is empty\n $isEmpty = false;\n\n for ( reset( $request[ 'headers' ] ), $header = 0; $header < count( $request[ 'headers' ] ); next( $request[ 'headers' ] ), $header++ ) {\n $header_name = key( $request[ 'headers' ] );\n\n if ( $header_name == 'set-cookie' ) {\n if ( is_array( $request[ 'headers' ][ $header_name ] ) ) {\n foreach ( $request[ 'headers' ][ $header_name ] as $cookie ) {\n if ( preg_match( \"#SESSID\\=;#\", $cookie ) ) {\n $isEmpty = true;\n break;\n }\n }\n } elseif ( preg_match( \"#SESSID\\=;#\", $request[ 'headers' ][ $header_name ] ) ) {\n $isEmpty = true;\n }\n }\n }\n\n if ( $isEmpty ) {\n // Retry user login\n $this->login( $this->idul, $this->password );\n }\n\n // Connection is OK\n return true;\n\t}", "protected abstract function get_sessions();", "public function verifySessionIntegrity() {\n if (!$this->isValidSession()) {\n $this->end();\n $this->restart();\n }\n }", "public function testExistingIdentityCrossSession() {\n\n $sessionFactory = $this->getSampleProjectSessionFactory(true);\n \n $session1 = $sessionFactory->openSession();\n $session2 = $sessionFactory->openSession();\n $session3 = $sessionFactory->openSession();\n \n $bug = $session1->find('sample_Bug')->filterBy('bugId', 521152)->one();\n $project = $session2->find('sample_Project')->filterBy('projectId', 12345)->one();\n $user = $session3->find('sample_User')->filterBy('userId', '55566')->one();\n\n $this->assertTrue($bug->owner !== $project->manager);\n $this->assertTrue($user !== $bug->owner);\n $this->assertTrue($user !== $project->manager);\n \n $sessionFactory2 = $this->getSampleProjectSessionFactory(false);\n $sessionFactory3 = $this->getSampleProjectSessionFactory(false);\n \n $bug = $sessionFactory2->currentSession()->find('sample_Bug')->filterBy('bugId', 521152)->one();\n $user = $sessionFactory3->currentSession()->find('sample_User')->filterBy('userId', '55566')->one();\n $this->assertTrue($user !== $bug->owner);\n \n }", "public static function checkSession() {\n\t\t// Set any API keys\n\t\t$api_keys = array();\n\t\t// Check API Key or Session Authentication\n\t\t$key = \"\";\n\t\tif (isset($_GET['key'])) {\n\t\t\t$key = $_GET['key'];\n\t\t}\n\t\tif (!isset($_SESSION['user']) && !in_array($key, $api_keys)) {\n\t\t\texit('{\"status\":\"error\",\"message\":\"Authentication Error\"}');\n\t\t}\n\t}", "public function LoadRequestSession(){\n\n\t\t\t\tif(isset($this->parent) && is_object($this->parent)){\n\n\t\t\t\t\tif(is_string($this->parent->path)){\n\n\t\t\t\t\t\t$parent = $this->parent;\n\n\t\t\t\t\t\t$this->requestSession = new \\GGNSession($parent::sess_rup, \\GGNSession::ONLINE, $this->parent->path);\n\n\t\t\t\t\t\tif(is_object($this->requestSession)){\n\n\t\t\t\t\t\t\t$this->request = $this->requestSession->expired();\n\n\t\t\t\t\t\t\treturn (is_array($this->request)) ? $this->request : false;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse{\n\n\t\t\t\t\t\t\treturn false;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\n\t\t\t}", "public function testExpertAccess()\n {\n $this->withSession(['expert' => ['id' => 99, 'type' => 'expert']])\n ->get(route('account.create'))\n ->assertForbidden();\n }", "private function initSessionIfNecessary() {\n if (\\session_status() === \\PHP_SESSION_NONE) {\n // use cookies to store session IDs\n \\ini_set('session.use_cookies', 1);\n // use cookies only (do not send session IDs in URLs)\n \\ini_set('session.use_only_cookies', 1);\n // do not send session IDs in URLs\n \\ini_set('session.use_trans_sid', 0);\n\n // start the session (requests a cookie to be written on the client)\n//\t\t\t@Session::start();\n }\n }", "private function _getSession()\n {\n return Mage::getSingleton('payone_core/session');\n }", "public function testAction()\n {\n\t\techo \"123\";\n\t\t$userSession\t= new Container('fo_user');\n\t\techo '<pre>===>'; print_r($userSession->userSession); echo '</pre>';\n\t\treturn $this->getResponse();\n\t}", "public function setUp()\n\t{\n\t\tSession::$instance = null;\n\t\tSession::load();\n\t}", "public function setUp()\n\t{\n\t\t// http://stackoverflow.com/questions/23270650/cannot-send-session-cookie-headers-already-sent-phpunit-laravel\n\t\t@session_start();\n\t\t$this->_killSession();\n\t}", "protected function _getSession()\n {\n return Mage::getSingleton('mbiz_cc/session');\n }", "private function check()\n\t{\n\t\tif (!session_id())\n\t\t{\n\t\t\tsession_start();\n\t\t}\n\t}", "protected function _getSession()\n {\n return Mage::getSingleton('adminhtml/session');\n }", "protected function _getSession()\n {\n return Mage::getSingleton('adminhtml/session');\n }", "protected function _getSession()\n {\n return Mage::getSingleton('adminhtml/session');\n }", "protected function _getSession()\n {\n return Mage::getSingleton('adminhtml/session');\n }", "function checkSession()\n {\n if( !$this->session->userdata( 'logged_in' ) )\n redirect( 'login' );\n\n if ( $this->session->userdata( 'level' ) != 'guidance' )\n redirect( 'standard/unauthorized' );\n }", "public function isSetSessionCookie() {}", "public function isSetSessionCookie() {}", "public function storeSession() {}", "private function _createSession(){\n return $this->_session = new Session();\n }", "private function sesion_iniciada()\n\t{\n\t\t$this->load->library(\"session\");\n\t\tif($this->session->userdata(\"isess\")){\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "public static function session()\n {\n //Sjekker om en bruker er logget in\n if (isset($_SESSION['user'])) {\n //Hvis verifyUser() returnerer falskt er sessionene kapret\n if(!$_SESSION['user']->verifyUser()){\n unset($_SESSION['user']);\n $alert = new Alert(Alert::ERROR, \"Sessionen er kapret og du har blitt logget ut. Husk å bruke beskyttelse\");\n $alert->displayOnIndex();\n }\n }\n }", "public function createSession()\n {\n session_start();\n }", "function getUserFromSession() {\n\tsession_start();\n\treturn $_SESSION;\n}", "function getSession($index)\n{\n $CI = &get_instance();\n // Se não existir a posição requirida CI retorna false\n $flag = $CI->session->userdata($index);\n\n if (!empty($flag)) {\n return $flag;\n }\n\n return false;\n}", "protected function mockSession()\n {\n $session = new Session(new MockArraySessionStorage());\n $session->start();\n\n $beBag = new ArrayAttributeBag('_contao_be_attributes');\n $beBag->setName('contao_backend');\n\n $session->registerBag($beBag);\n\n $feBag = new ArrayAttributeBag('_contao_fe_attributes');\n $feBag->setName('contao_frontend');\n\n $session->registerBag($feBag);\n\n return $session;\n }", "protected function _session()\n {\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'set data on session markers',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n if ($this->_session && $this->_session->returns('display')) {\n foreach ($this->_session->returns('display') as $key => $val) {\n $this->generate('session_display;' . $key, $val);\n }\n }\n }", "public function testExample()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->withSession(['foo' => 'bar'])\n ->visit('/')\n ->see($user->name);\n }", "public function testLoginSuccessfulFunctionality()\n {\n\tunset($_SESSION);\n $email = '[email protected]';\n $ctrl = new Controller();\n $ctrl->login($email,'ooo');\n\n $this->assertEquals($_SESSION['email'], $email);\n\n }", "public function testSaveActionGet()\n {\n $this->app->session->set(\"dice-game\", new DiceGame(2, 2));\n $res = $this->controller->SaveActionGet();\n $this->assertInstanceOf(ResponseUtility::class, $res);\n //$this->assertStringEndsWith(\"active\", $res);\n }", "public static function startSession();", "public function avoidSessionHijacking()\n\t{\n\t\t// TODO\n\t}", "function getSession() {\n\t\treturn $this->getParam(self::PARAM_REQUEST_SESSION);\n\t}", "function checkSession()\r\n {\r\n if (!$this->Session->check('User'))\r\n {\r\n \t// Force the user to login\r\n $this->redirect('/user/login');\r\n exit();\r\n }\r\n }", "private function check_session()\n\t{\n\t\tif(isset($_SESSION['admin_id']))\n\t\t{\n\t\t\t/* \n\t\t\tTODO: check double device login\n\t\t\t*/\n\t\t}\n\t\telse if(isset($_SESSION['login_id']))\n\t\t{\n\t\t\tredirect(base_url() . 'contestant');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect(base_url());\n\t\t}\n\t}", "protected function getSession () {\n\t\treturn $this->session;\n\t}", "public function updateSession(){\n # code...\n }", "public function getUseSession() \n {\n return $this->_use_session;\n }", "public function getSession(){\r\n return $this->session;\r\n }", "public function setup_session(){\n if(!(isset($_SESSION))){\n session_start();\n }\n\n $_SESSION['user_id'] = $this->user_id;\n $_SESSION['name'] = $this->firstname;\n\n //Remove anon flag\n if(isset($_SESSION['anon'])){\n unset($_SESSION['anon']);\n }\n\n }" ]
[ "0.75726557", "0.7043142", "0.6947678", "0.6880947", "0.68456274", "0.6824789", "0.65769595", "0.6544459", "0.6535287", "0.6527015", "0.6481161", "0.6432103", "0.63958305", "0.63890475", "0.6377414", "0.6365313", "0.63555497", "0.6343835", "0.6342051", "0.63329786", "0.62902445", "0.6287952", "0.6278471", "0.62624675", "0.62589425", "0.625803", "0.6237665", "0.62367517", "0.62359333", "0.6218602", "0.62154365", "0.62098986", "0.62098986", "0.62087655", "0.6191563", "0.61887443", "0.6137335", "0.61157507", "0.6103486", "0.6065634", "0.60617024", "0.60608584", "0.6044341", "0.60442716", "0.60265374", "0.601549", "0.59982586", "0.5990091", "0.59714186", "0.595811", "0.59560716", "0.5955525", "0.5953307", "0.59516376", "0.594767", "0.5930976", "0.5925906", "0.5923416", "0.5923116", "0.5915535", "0.5913843", "0.59119594", "0.5902653", "0.59018904", "0.5899734", "0.58970314", "0.58933777", "0.5892694", "0.58900225", "0.5887525", "0.5886318", "0.5879944", "0.5879944", "0.5879944", "0.5879944", "0.58799016", "0.58761644", "0.58761644", "0.58760417", "0.5868931", "0.58680665", "0.5863017", "0.5858087", "0.58545923", "0.5854128", "0.58521956", "0.5839185", "0.5834312", "0.5833127", "0.58185685", "0.5808161", "0.58055425", "0.5804157", "0.5799563", "0.57969224", "0.5792687", "0.579076", "0.57892627", "0.57888836", "0.5788604" ]
0.7436899
1
Tests that the request uri is detected for multiple platforms
public function testGetRequestUri($options) { foreach ($options as $property => $array) { $property = '_' . $property; static::$$property = $array; } $request = $this->createRequest(); $this->assertEquals('/module/controller/action', $request->getRequestUri()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getPlatformUri(): string;", "private function _detect_uri() {\n if (!isset($_SERVER['REQUEST_URI']) OR !isset($_SERVER['SCRIPT_NAME'])) {\n return '';\n }\n\n $uri = $_SERVER['REQUEST_URI'];\n if (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0) {\n $uri = substr($uri, strlen($_SERVER['SCRIPT_NAME']));\n } elseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0) {\n $uri = substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));\n }\n\n // This section ensures that even on servers that require the URI to be in the query string (Nginx) a correct\n // URI is found, and also fixes the QUERY_STRING server var and $_GET array.\n if (strncmp($uri, '?/', 2) === 0) {\n $uri = substr($uri, 2);\n }\n $parts = preg_split('#\\?#i', $uri, 2);\n $uri = $parts[0];\n if (isset($parts[1])) {\n $_SERVER['QUERY_STRING'] = $parts[1];\n parse_str($_SERVER['QUERY_STRING'], $_GET);\n } else {\n $_SERVER['QUERY_STRING'] = '';\n $_GET = array();\n }\n\n if ($uri == '/' || empty($uri)) {\n return '/';\n }\n\n $uri = parse_url($uri, PHP_URL_PATH);\n\n // Do some final cleaning of the URI and return it\n return str_replace(array('//', '../'), '/', trim($uri, '/'));\n }", "private function isValidUri(): bool\n {\n return true;\n }", "private function checkURI()\n {\n // init vars\n $result = false;\n $uri = $this->getURI();\n $routesArray = $this->routes;\n\n // get existed rule for user requested uri\n foreach ($routesArray as $rulePattern => $path) {\n if (preg_match(\"~$rulePattern~i\", $uri)) {\n $result = [$rulePattern, $path];\n return $result;\n }\n }\n }", "abstract protected function isValidUri(): bool;", "function request_uri() {\n\n if (isset($_SERVER[\"REQUEST_URI\"])) {\n $uri = $_SERVER[\"REQUEST_URI\"];\n }\n else {\n $uri = $_SERVER[\"PHP_SELF\"] .\"?\". $_SERVER[\"argv\"][0];\n }\n\n return check_url($uri);\n}", "function _detectURI() {\n\t\t$aURL = array();\n\n\t\t// Try to get the request URL\n\t\tif (!empty($_SERVER['REQUEST_URI'])) {\n\t\t\t$aURL = parse_url($_SERVER['REQUEST_URI']);\n\t\t}\n\n\t\t// Fill in the empty values\n\t\tif (empty($aURL['scheme'])) {\n\t\t\tif (!empty($_SERVER['HTTP_SCHEME'])) {\n\t\t\t\t$aURL['scheme'] = $_SERVER['HTTP_SCHEME'];\n\t\t\t} else {\n\t\t\t\t$aURL['scheme'] = (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') ? 'https' : 'http';\n\t\t\t}\n\t\t}\n\n\t\tif (empty($aURL['host'])) {\n\t\t\tif (!empty($_SERVER['HTTP_HOST'])) {\n\t\t\t\tif (strpos($_SERVER['HTTP_HOST'], ':') > 0) {\n\t\t\t\t\tlist($aURL['host'], $aURL['port']) = explode(':', $_SERVER['HTTP_HOST']);\n\t\t\t\t} else {\n\t\t\t\t\t$aURL['host'] = $_SERVER['HTTP_HOST'];\n\t\t\t\t}\n\t\t\t} else if (!empty($_SERVER['SERVER_NAME'])) {\n\t\t\t\t$aURL['host'] = $_SERVER['SERVER_NAME'];\n\t\t\t} else {\n\t\t\t\tprint \"xajax Error: xajax failed to automatically identify your Request URI.\";\n\t\t\t\tprint \"Please set the Request URI explicitly when you instantiate the xajax object.\";\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\n\t\tif (empty($aURL['port']) && !empty($_SERVER['SERVER_PORT'])) {\n\t\t\t$aURL['port'] = $_SERVER['SERVER_PORT'];\n\t\t}\n\n\t\tif (empty($aURL['path'])) {\n\t\t\tif (!empty($_SERVER['PATH_INFO'])) {\n\t\t\t\t$sPath = parse_url($_SERVER['PATH_INFO']);\n\t\t\t} else {\n\t\t\t\t$sPath = parse_url($_SERVER['PHP_SELF']);\n\t\t\t}\n\t\t\t$aURL['path'] = $sPath['path'];\n\t\t\tunset($sPath);\n\t\t}\n\n\t\tif (!empty($aURL['query'])) {\n\t\t\t$aURL['query'] = '?'.$aURL['query'];\n\t\t}\n\n\t\t// Build the URL: Start with scheme, user and pass\n\t\t$sURL = $aURL['scheme'].'://';\n\t\tif (!empty($aURL['user'])) {\n\t\t\t$sURL.= $aURL['user'];\n\t\t\tif (!empty($aURL['pass'])) {\n\t\t\t\t$sURL.= ':'.$aURL['pass'];\n\t\t\t}\n\t\t\t$sURL.= '@';\n\t\t}\n\n\t\t// Add the host\n\t\t$sURL.= $aURL['host'];\n\n\t\t// Add the port if needed\n\t\tif (!empty($aURL['port']) && (($aURL['scheme'] == 'http' && $aURL['port'] != 80) || ($aURL['scheme'] == 'https' && $aURL['port'] != 443))) {\n\t\t\t$sURL.= ':'.$aURL['port'];\n\t\t}\n\n\t\t// Add the path and the query string\n\t\t$sURL.= $aURL['path'].@$aURL['query'];\n\n\t\t// Clean up\n\t\tunset($aURL);\n\t\treturn $sURL;\n\t}", "private function matchURL($request)\n {\n $uri = explode('/', $this->uri);\n $request_ = explode('/', $request);\n\n if (count($uri) !== count($request_)) {\n return false;\n }\n\n foreach ($uri as $k => $v):\n if (preg_match($this->regex, $v)) {\n unset($uri[$k]);\n unset($request_[$k]);\n }\n endforeach;\n return empty(array_diff($request_, $uri));\n }", "public function isUri();", "private static function verifyRequest()\n {\n if(isset($_SERVER['HTTP_USER_AGENT']) == false)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n if(strlen($_SERVER['HTTP_USER_AGENT']) == 0)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n if(strlen($_SERVER['HTTP_USER_AGENT']) > 624)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n $UnsupportedRequestMethod = true;\n\n if(strtoupper($_SERVER['REQUEST_METHOD']) == 'GET')\n {\n $UnsupportedRequestMethod = false;\n }\n\n if(strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')\n {\n $UnsupportedRequestMethod = false;\n }\n\n if($UnsupportedRequestMethod)\n {\n UnsupportedVersion::executeResponse();\n exit();\n }\n }", "public static function detect_uri()\n\t{\n\t\tif ( ! empty($_SERVER['PATH_INFO']))\n\t\t{\n\t\t\t// PATH_INFO does not contain the docroot or index\n\t\t\t$uri = $_SERVER['PATH_INFO'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// REQUEST_URI and PHP_SELF include the docroot and index\n\n\t\t\tif (isset($_SERVER['REQUEST_URI']))\n\t\t\t{\n\t\t\t\t// REQUEST_URI includes the query string, remove it\n\t\t\t\t$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n\n\t\t\t\t// Decode the request URI\n\t\t\t\t$uri = rawurldecode($uri);\n\t\t\t}\n\t\t\telseif (isset($_SERVER['PHP_SELF']))\n\t\t\t{\n\t\t\t\t$uri = $_SERVER['PHP_SELF'];\n\t\t\t}\n\t\t\telseif (isset($_SERVER['REDIRECT_URL']))\n\t\t\t{\n\t\t\t\t$uri = $_SERVER['REDIRECT_URL'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// If you ever see this error, please report an issue at http://dev.kohanaphp.com/projects/kohana3/issues\n\t\t\t\t// along with any relevant information about your web server setup. Thanks!\n\t\t\t\tthrow new Kohana_Exception('Unable to detect the URI using PATH_INFO, REQUEST_URI, PHP_SELF or REDIRECT_URL');\n\t\t\t}\n\n\t\t\t// Get the path from the base URL, including the index file\n\t\t\t$base_url = parse_url(Kohana::$base_url, PHP_URL_PATH);\n\n\t\t\tif (strpos($uri, $base_url) === 0)\n\t\t\t{\n\t\t\t\t// Remove the base URL from the URI\n\t\t\t\t$uri = (string) substr($uri, strlen($base_url));\n\t\t\t}\n\n\t\t\tif (Kohana::$index_file AND strpos($uri, Kohana::$index_file) === 0)\n\t\t\t{\n\t\t\t\t// Remove the index file from the URI\n\t\t\t\t$uri = (string) substr($uri, strlen(Kohana::$index_file));\n\t\t\t}\n\t\t}\n\n\t\treturn $uri;\n\t}", "function qa_is_mobile_probably()\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\trequire_once QA_INCLUDE_DIR . 'util/string.php';\n\n\t// inspired by: http://dangerousprototypes.com/docs/PhpBB3_MOD:_Replacement_mobile_browser_detection_for_mobile_themes\n\n\t$loweragent = strtolower(@$_SERVER['HTTP_USER_AGENT']);\n\n\tif (strpos($loweragent, 'ipad') !== false) // consider iPad as desktop\n\t\treturn false;\n\n\t$mobileheaders = array('HTTP_X_OPERAMINI_PHONE', 'HTTP_X_WAP_PROFILE', 'HTTP_PROFILE');\n\n\tforeach ($mobileheaders as $header)\n\t\tif (isset($_SERVER[$header]))\n\t\t\treturn true;\n\n\tif (qa_string_matches_one($loweragent, array(\n\t\t'android', 'phone', 'mobile', 'windows ce', 'palm', ' mobi', 'wireless', 'blackberry', 'opera mini', 'symbian',\n\t\t'nokia', 'samsung', 'ericsson,', 'vodafone/', 'kindle', 'ipod', 'wap1.', 'wap2.', 'sony', 'sanyo', 'sharp',\n\t\t'panasonic', 'philips', 'pocketpc', 'avantgo', 'blazer', 'ipaq', 'up.browser', 'up.link', 'mmp', 'smartphone', 'midp',\n\t)))\n\t\treturn true;\n\n\treturn qa_string_matches_one(strtolower(@$_SERVER['HTTP_ACCEPT']), array(\n\t\t'application/vnd.wap.xhtml+xml', 'text/vnd.wap.wml',\n\t));\n}", "function canHandleCurrentUrl() ;", "private function compatibility_check_for_ios() {\n $reges = '/ip(?:hone|[ao]d); cpu os \\K[\\d_]+/i';\n preg_match($reges, $_SERVER['HTTP_USER_AGENT'], $matches, PREG_OFFSET_CAPTURE, 0);\n\n if (empty($matches))\n return true;\n\n $ios_version = $matches[0][0];\n $ios_version = (int)explode('_', $ios_version)[0];\n\n if ($ios_version === 0)\n return true;\n\n return $ios_version > 9;\n }", "public function canHandleRequest(\\Eeno\\Http\\Request $request)\n {\n if( strcasecmp($request->method() , $this->method() ) == 0 &&\n strcasecmp($this->url() , $request->url() ) == 0)\n return true;\n return false; \n }", "public function canHandleCurrentUrl() {}", "function detect_os(){\n\t$ua = $_SERVER[\"HTTP_USER_AGENT\"];\n\t// ---- Mobile ----\n\n // Android\n $android = strpos($ua, 'Android') ? true : false;\n\n // BlackBerry\n $blackberry = strpos($ua, 'BlackBerry') ? true : false;\n\n // iPhone\n $iphone = strpos($ua, 'iPhone') ? true : false;\n\n // Palm\n $palm = strpos($ua, 'Palm') ? true : false;\n\n// ---- Desktop ----\n\n // Linux\n $linux = strpos($ua, 'Linux') ? true : false;\n\n // Macintosh\n $mac = strpos($ua, 'Macintosh') ? true : false;\n\n // Windows\n $win = strpos($ua, 'Windows') ? true : false;\n\n/* ============================ */\n\n\n/* ==== Detect the UA ==== */\n\n // Chrome\n $chrome = strpos($ua, 'Chrome') ? true : false; // Google Chrome\n \n // Firefox\n $firefox = strpos($ua, 'Firefox') ? true : false; // All Firefox\n $firefox_2 = strpos($ua, 'Firefox/2.0') ? true : false; // Firefox 2\n $firefox_3 = strpos($ua, 'Firefox/3.0') ? true : false; // Firefox 3\n $firefox_3_6 = strpos($ua, 'Firefox/3.6') ? true : false; // Firefox 3.6\n \n // Internet Exlporer\n $msie = strpos($ua, 'MSIE') ? true : false; // All Internet Explorer\n $msie_7 = strpos($ua, 'MSIE 7.0') ? true : false; // Internet Explorer 7\n $msie_8 = strpos($ua, 'MSIE 8.0') ? true : false; // Internet Explorer 8\n \n // Opera\n $opera = preg_match(\"/\\bOpera\\b/i\", $ua); // All Opera\n \n \n // Safari\n $safari = strpos($ua, 'Safari') ? true : false; // All Safari\n $safari_2 = strpos($ua, 'Safari/419') ? true : false; // Safari 2\n $safari_3 = strpos($ua, 'Safari/525') ? true : false; // Safari 3\n $safari_3_1 = strpos($ua, 'Safari/528') ? true : false; // Safari 3.1\n $safari_4 = strpos($ua, 'Safari/531') ? true : false; // Safari 4\n\n\t$device = null;\n\t$browser = null;\n\tif ($ua) {\n // ---- Test if using a Handheld Device ----\n if ($android) { // Android\n //echo 'You are using an Android!';\n $device = \"Android\";\n }\n if ($blackbery) { // Blackbery\n //echo 'You are using a Blackbery!';\n $device = \"Blackbery\";\n }\n if ($iphone) { // iPhone\n //echo 'You are using an iPhone!';\n $device = \"iPhone\";\n }\n if ($palm) { // Palm\n //echo 'You are using a Palm!';\n $device = \"Palm\";\n }\n\n if ($linux) { // Linux Desktop\n //echo 'You are using Linux';\n $device = \"Linux\";\n }\n\n // ---- Test if Firefox ----\n if ($firefox) {\n //echo 'You are using Firefox!';\n $browser = \"Firefox\";\n\n // Test Versions\n if ($firefox_2) { // Firefox 2\n //echo 'Version 2';\n \t$browser = \"Firefox Version 2\";\n }\n elseif ($firefox_3) { // Firefox 3\n //echo 'Version 3';\n \t$browser = \"Firefox Version 3\";\n }\n elseif ($firefox_3_6) { // Firefox 3.6\n //echo 'Version 3.6';\n \t$browser = \"Firefox Version 3.6\";\n }\n else { // A version not listed\n //echo 'What Version do you use?';\n }\n }\n\n // ---- Test if Safari or Chrome ----\n elseif ( ($safari || $chrome) && !$iphone) {\n\n if ($safari && !$chrome) { // Test if Safari and not Chrome\n //echo 'You are using Safari!';\n \t$browser = \"Safari \";\n\n // Test if Safari Mac or Safari Windows\n if ($mac && $safari) { // Safari Mac\n //echo 'You are using Safari on a Mac';\n \t\t$browser .= \"on Mac\";\n }\n if ($win && $safari) { // Safari Windows\n //echo 'You are using Safari on Windows';\n \t\t$browser .= \"on Windows\";\n }\n\n // Test Versions\n if ($safari_2) { // Safari 2\n $browser.= ' Version 2';\n }\n elseif ($safari_3) { // Safari 3\n $browser.= ' Version 3';\n }\n elseif ($safari_4) { // Safari 4\n $browser.= ' Version 4';\n }\n else {\n //echo 'What version are you using?';\n }\n }\n\n elseif ($chrome) { // Test if Chrome\n $browser= ' Chrome';\n }\n }\n\n // ---- Test if iPhone with Safari 3.1 ----\n elseif ($iphone && $safari_3_1) {\n //echo 'You are using Safari 3.1';\n $browser= 'Safari 3.1';\n }\n\n // ---- Test if Internet Explorer ----\n elseif ($msie) {\n //echo 'You are using Internet Explorer!';\n $browser= 'Internet Explorer ';\n\n // Test Versions\n if ($msie_7) { // Internet Explorer 7\n //echo 'Version 7';\n $browser.= 'Version 7';\n }\n elseif ($msie_8) { // Internet Explorer 8\n //echo 'Version 8';\n $browser.= 'Version 8';\n }\n else {\n //echo 'What Version do you use?';\n }\n }\n\n // ---- Test if Opera ----\n elseif ($opera) {\n \t//echo 'You are using Opera!';\n $browser= 'Opera';\n }\n\n // ---- If none of the above ----\n else {\n //echo 'What browser are you using?';\n }\n\n /*\n echo \"Device: {$device}\";\n echo \"<br />\";\n echo \"Browser: {$browser}\";\n */\n $data['device'] = $device;\n $data['browser'] = $browser;\n\n return $data;\n\n\t}\n}", "public function isRequestedUrlClean(Request\\Web $request)\n {\n $server = $request->getServer();\n if (!isset($server['REQUEST_URI'])) {\n throw new Exception('REQUEST_URI is not set');\n }\n\n return strpos($server['REQUEST_URI'], $this->entryPoint) !== 0;\n }", "function _parse_request_uri() {\n if (!isset($_SERVER['REQUEST_URI']) OR $_SERVER['REQUEST_URI'] == '') {\n return '';\n }\n\n $uri = explode(\"?\", $_SERVER['REQUEST_URI']); // This line is added to the original \n $request_uri = preg_replace(\"|/(.*)|\", \"\\\\1\", str_replace(\"\\\\\", \"/\", $uri[0])); // This line changed \n // Everything else is just the same\n\n if ($request_uri == '' OR $request_uri == SELF) {\n return '';\n }\n\n $fc_path = FCPATH;\n if (strpos($request_uri, '?') !== FALSE) {\n $fc_path .= '?';\n }\n\n $parsed_uri = explode(\"/\", $request_uri);\n\n $i = 0;\n foreach (explode(\"/\", $fc_path) as $segment) {\n if (isset($parsed_uri[$i]) AND $segment == $parsed_uri[$i]) {\n $i++;\n }\n }\n\n $parsed_uri = implode(\"/\", array_slice($parsed_uri, $i));\n\n if ($parsed_uri != '') {\n $parsed_uri = '/' . $parsed_uri;\n }\n\n return $parsed_uri;\n }", "public static function verifySameOriginHeader(){\n\t\tif(!isset($_SERVER[\"HTTP_ORIGIN\"]) && !isset($_SERVER[\"HTTP_REFERER\"])){\n\t\t\treturn false;\n\t\t}\n\n\t\t$url = null;\n\t\tif(isset($_SERVER[\"HTTP_ORIGIN\"])){\n\t\t\t$url = parse_url($_SERVER[\"HTTP_ORIGIN\"]);\n\t\t}\n\t\telse{\n\t\t\t$url = parse_url($_SERVER[\"HTTP_REFERER\"]);\n\t\t}\n\n\t\t$port = isset($url[\"port\"]) ? $url[\"port\"] : \"\";\n\t\t$url = $url[\"host\"] . $port;\n\n\t\treturn mb_strpos(mb_strtolower($url), LOCAL_URL) >= 0;\n\t}", "abstract protected function buildSpecificRequestUri();", "public static function isPhkUri($uri)\n{\n$u=$uri.' ';\n\n// Much faster this way\n\nreturn ($u{0}=='p' && $u{1}=='h' && $u{2}=='k' && $u{3}==':'\n\t&& $u{4}=='/' && $u{5}=='/'); \n\n//return (strlen($uri) >= 6) && (substr($uri,0,6)=='phk://');\n}", "function getOS($request) {\n $user_agent = $request->server('HTTP_USER_AGENT');\n $os_platform = $user_agent . \" - Unknown OS Platform\";\n $os_array = array(\n '/windows nt 10/i' => 'Windows 10',\n '/windows nt 6.3/i' => 'Windows 8.1',\n '/windows nt 6.2/i' => 'Windows 8',\n '/windows nt 6.1/i' => 'Windows 7',\n '/windows nt 6.0/i' => 'Windows Vista',\n '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',\n '/windows nt 5.1/i' => 'Windows XP',\n '/windows xp/i' => 'Windows XP',\n '/windows nt 5.0/i' => 'Windows 2000',\n '/windows me/i' => 'Windows ME',\n '/win98/i' => 'Windows 98',\n '/win95/i' => 'Windows 95',\n '/win16/i' => 'Windows 3.11',\n '/macintosh|mac os x/i' => 'Mac OS X',\n '/mac_powerpc/i' => 'Mac OS 9',\n '/linux/i' => 'Linux',\n '/ubuntu/i' => 'Ubuntu',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile'\n );\n foreach ($os_array as $regex => $value)\n if (preg_match($regex, $user_agent))\n $os_platform = $value;\n return $os_platform;\n }", "protected function _validate( $uri ) {\n // TODO: Validate for https://tools.ietf.org/html/rfc6570 - URI Template Format\n // Stupid validation for now:\n return strpos( $uri, 'http' ) === 0;\n\n // TODO: Might make sense to throw an exception if there is no {version} set\n // in the API, yet the $base_uri template provides one\n\n }", "function validateUri($uri);", "function can_try_url_schemes($avoid_remap = false)\n{\n if (!function_exists('get_option')) {\n return false;\n }\n $url_scheme = get_option('url_scheme');\n return (($url_scheme !== 'RAW') && (get_param_integer('keep_no_url_scheme', 0) === 0) && ((empty($GLOBALS['SITE_INFO']['block_url_schemes'])) || ($GLOBALS['SITE_INFO']['block_url_schemes'] !== '1')) && (!$avoid_remap)); // If we don't have the option on or are not using Apache, return\n}", "private function isCustomUrl()\n {\n return substr($this->baseUrl, 0, strlen(self::GCS_BASE_URL)) !== self::GCS_BASE_URL;\n }", "private function checkSameSiteNoneCompatible()\n {\n $compatible = false;\n\n $this->agent = new Agent();\n\n try {\n $browser = $this->getBrowserDetails();\n $platform = $this->getPlatformDetails();\n\n if ($this->agent->is('Chrome') && $browser['major'] >= 67) {\n $compatible = true;\n }\n\n if ($this->agent->is('iOS') && $platform['major'] > 12) {\n $compatible = true;\n }\n\n if ($this->agent->is('OS X') &&\n ($this->agent->is('Safari') && !$this->agent->is('iOS')) &&\n $platform['float'] > 10.14\n ) {\n $compatible = true;\n }\n\n if ($this->agent->is('UCBrowser') &&\n $browser['float'] > 12.13\n ) {\n $compatible = true;\n }\n\n return $compatible;\n } catch (\\Exception $e) {\n return false;\n }\n }", "private function matchPlatformToUrl($platform)\n\t{\n\t\treturn $this->platformToUrl[$platform];\n\t}", "function is_uri($uri){\n return (filter_var($uri, FILTER_VALIDATE_URL) !== false);\n}", "public function testUrlProtocol(): void\n {\n $url = 'http://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = 'ed2k://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = 'svn+ssh://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = '://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = '//example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = 'javascript:void(0)';\n $this->assertSame($url, Router::url($url));\n\n $url = 'tel:012345-678';\n $this->assertSame($url, Router::url($url));\n\n $url = 'sms:012345-678';\n $this->assertSame($url, Router::url($url));\n\n $url = '#here';\n $this->assertSame($url, Router::url($url));\n\n $url = '?param=0';\n $this->assertSame($url, Router::url($url));\n\n $url = '/posts/index#here';\n $expected = Configure::read('App.fullBaseUrl') . '/posts/index#here';\n $this->assertSame($expected, Router::url($url, true));\n }", "public function IsUrlAllowWithSpecificUserAgentProvider()\r\n {\r\n return array(\r\n array(\r\n array(\r\n '*' => array(\r\n 'disallow' => array(\r\n '/fr/'\r\n ),\r\n ),\r\n ),\r\n '/fr/page2',\r\n 'MyUserAgent',\r\n false\r\n ),\r\n );\r\n }", "public function supports(Request $request)\n {\n return 'app_user_idvault' === $request->attributes->get('_route')\n && $request->isMethod('GET') && $request->query->get('code');\n }", "function _request_uri() {\n if (isset($_SERVER['REQUEST_URI'])) {\n $uri = $_SERVER['REQUEST_URI'];\n }\n else {\n if (isset($_SERVER['argv'])) {\n $uri = $_SERVER['SCRIPT_NAME'] .'?'. $_SERVER['argv'][0];\n }\n elseif (isset($_SERVER['QUERY_STRING'])) {\n $uri = $_SERVER['SCRIPT_NAME'] .'?'. $_SERVER['QUERY_STRING'];\n }\n else {\n $uri = $_SERVER['SCRIPT_NAME'];\n }\n }\n // Prevent multiple slashes to avoid cross site requests via the FAPI.\n $uri = '/'. ltrim($uri, '/');\n\n return $uri;\n}", "function is_invalid_request() {\n\t$http_referer = (isset($_SERVER['HTTP_REFERER'])) ? parse_url($_SERVER['HTTP_REFERER']) : NULL;\t\n\tif(!check_value($http_referer)) {\n\t\t$referal = HTTP_HOST;\n\t} else {\n\t\t$referal = (isset($http_referer['port']) && !empty($http_referer['port'])) ? $http_referer['host'].':'.$http_referer['port'] : $http_referer['host'];\n\t}\n\treturn ($referal !== HTTP_HOST) ? true : false;\t\n}", "function MobileDetected() \n{\n\t$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);\n\t$accept = strtolower($_SERVER['HTTP_ACCEPT']);\n \n\tif( strpos($accept,'text/vnd.wap.wml')!==false || strpos($accept,'application/vnd.wap.xhtml+xml')!==false ) \n\t\treturn 1; // Mobile browser detected by HTTP-headers\n \n\tif( isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']) ) \n\t\treturn 2; // Mobile browser detected by server settings\n\n\n\tif(preg_match('/(ipad|android|symbianos|opera mini|ipod|blackberry|'.\n\t\t'palm os|palm|hiptop|avantgo|plucker|xiino|blazer|elaine|iris|3g_t|'.\n\t\t'windows ce|opera mobi|windows ce; smartphone;|windows ce; iemobile|'.\n\t\t'mini 9.5|vx1000|lge |m800|e860|u940|ux840|compal|'.\n\t\t'wireless| mobi|ahong|lg380|lgku|lgu900|lg210|lg47|lg920|lg840|'.\n\t\t'lg370|sam-r|mg50|s55|g83|t66|vx400|mk99|d615|d763|el370|sl900|'.\n\t\t'mp500|samu3|samu4|vx10|xda_|samu5|samu6|samu7|samu9|a615|b832|'.\n\t\t'm881|s920|n210|s700|c-810|_h797|mob-x|sk16d|848b|mowser|s580|'.\n\t\t'r800|471x|v120|rim8|c500foma:|160x|x160|480x|x640|t503|w839|'.\n\t\t'i250|sprint|w398samr810|m5252|c7100|mt126|x225|s5330|s820|'.\n\t\t'htil-g1|fly v71|s302|-x113|novarra|k610i|-three|8325rc|8352rc|'.\n\t\t'sanyo|vx54|c888|nx250|n120|mtk |c5588|s710|t880|c5005|i;458x|'.\n\t\t'p404i|s210|c5100|teleca|s940|c500|s590|foma|samsu|vx8|vx9|a1000|'.\n\t\t'_mms|myx|a700|gu1100|bc831|e300|ems100|me701|me702m-three|sd588|'.\n\t\t's800|8325rc|ac831|mw200|brew |d88|htc\\/|htc_touch|355x|m50|km100|'.\n\t\t'd736|p-9521|telco|sl74|ktouch|m4u\\/|me702|8325rc|kddi|phone|lg |'.\n\t\t'sonyericsson|samsung|240x|x320vx10|nokia|sony cmd|motorola|'.\n\t\t'up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|'.\n\t\t'pocket|kindle|silk|hpwos|mobile|psp|treo)/', $user_agent)) \n\t{\n\t\treturn 3; // Mobile browser detected by User Agent signature\n\t}\n\n\tif(in_array(substr($user_agent,0,4),\n\t\tArray(\"1207\", \"3gso\", \"4thp\", \"501i\", \"502i\", \"503i\", \"504i\", \"505i\", \"506i\",\n\t\t\t \"6310\", \"6590\", \"770s\", \"802s\", \"a wa\", \"abac\", \"acer\", \"acoo\", \"acs-\",\n\t\t\t \"aiko\", \"airn\", \"alav\", \"alca\", \"alco\", \"amoi\", \"anex\", \"anny\", \"anyw\",\n\t\t\t \"aptu\", \"arch\", \"argo\", \"aste\", \"asus\", \"attw\", \"au-m\", \"audi\", \"aur \",\n\t\t\t \"aus \", \"avan\", \"beck\", \"bell\", \"benq\", \"bilb\", \"bird\", \"blac\", \"blaz\",\n\t\t\t \"brew\", \"brvw\", \"bumb\", \"bw-n\", \"bw-u\", \"c55/\", \"capi\", \"ccwa\", \"cdm-\",\n\t\t\t \"cell\", \"chtm\", \"cldc\", \"cmd-\", \"cond\", \"craw\", \"dait\", \"dall\", \"dang\",\n\t\t\t \"dbte\", \"dc-s\", \"devi\", \"dica\", \"dmob\", \"doco\", \"dopo\", \"ds-d\", \"ds12\",\n\t\t\t \"el49\", \"elai\", \"eml2\", \"emul\", \"eric\", \"erk0\", \"esl8\", \"ez40\", \"ez60\",\n\t\t\t \"ez70\", \"ezos\", \"ezwa\", \"ezze\", \"fake\", \"fetc\", \"fly-\", \"fly_\", \"g-mo\",\n\t\t\t \"g1 u\", \"g560\", \"gene\", \"gf-5\", \"go.w\", \"good\", \"grad\", \"grun\", \"haie\",\n\t\t\t \"hcit\", \"hd-m\", \"hd-p\", \"hd-t\", \"hei-\", \"hiba\", \"hipt\", \"hita\", \"hp i\",\n\t\t\t \"hpip\", \"hs-c\", \"htc \", \"htc-\", \"htc_\", \"htca\", \"htcg\", \"htcp\", \"htcs\",\n\t\t\t \"htct\", \"http\", \"huaw\", \"hutc\", \"i-20\", \"i-go\", \"i-ma\", \"i230\", \"iac\",\n\t\t\t \"iac-\", \"iac/\", \"ibro\", \"idea\", \"ig01\", \"ikom\", \"im1k\", \"inno\", \"ipaq\",\n\t\t\t \"iris\", \"jata\", \"java\", \"jbro\", \"jemu\", \"jigs\", \"kddi\", \"keji\", \"kgt\",\n\t\t\t \"kgt/\", \"klon\", \"kpt \", \"kwc-\", \"kyoc\", \"kyok\", \"leno\", \"lexi\", \"lg g\",\n\t\t\t \"lg-a\", \"lg-b\", \"lg-c\", \"lg-d\", \"lg-f\", \"lg-g\", \"lg-k\", \"lg-l\", \"lg-m\",\n\t\t\t \"lg-o\", \"lg-p\", \"lg-s\", \"lg-t\", \"lg-u\", \"lg-w\", \"lg/k\", \"lg/l\", \"lg/u\",\n\t\t\t \"lg50\", \"lg54\", \"lge-\", \"lge/\", \"libw\", \"lynx\", \"m-cr\", \"m1-w\", \"m3ga\",\n\t\t\t \"m50/\", \"mate\", \"maui\", \"maxo\", \"mc01\", \"mc21\", \"mcca\", \"medi\", \"merc\",\n\t\t\t \"meri\", \"midp\", \"mio8\", \"mioa\", \"mits\", \"mmef\", \"mo01\", \"mo02\", \"mobi\",\n\t\t\t \"mode\", \"modo\", \"mot \", \"mot-\", \"moto\", \"motv\", \"mozz\", \"mt50\", \"mtp1\",\n\t\t\t \"mtv \", \"mwbp\", \"mywa\", \"n100\", \"n101\", \"n102\", \"n202\", \"n203\", \"n300\",\n\t\t\t \"n302\", \"n500\", \"n502\", \"n505\", \"n700\", \"n701\", \"n710\", \"nec-\", \"nem-\",\n\t\t\t \"neon\", \"netf\", \"newg\", \"newt\", \"nok6\", \"noki\", \"nzph\", \"o2 x\", \"o2-x\",\n\t\t\t \"o2im\", \"opti\", \"opwv\", \"oran\", \"owg1\", \"p800\", \"palm\", \"pana\", \"pand\",\n\t\t\t \"pant\", \"pdxg\", \"pg-1\", \"pg-2\", \"pg-3\", \"pg-6\", \"pg-8\", \"pg-c\", \"pg13\",\n\t\t\t \"phil\", \"pire\", \"play\", \"pluc\", \"pn-2\", \"pock\", \"port\", \"pose\", \"prox\",\n\t\t\t \"psio\", \"pt-g\", \"qa-a\", \"qc-2\", \"qc-3\", \"qc-5\", \"qc-7\", \"qc07\", \"qc12\",\n\t\t\t \"qc21\", \"qc32\", \"qc60\", \"qci-\", \"qtek\", \"qwap\", \"r380\", \"r600\", \"raks\",\n\t\t\t \"rim9\", \"rove\", \"rozo\", \"s55/\", \"sage\", \"sama\", \"samm\", \"sams\", \"sany\",\n\t\t\t \"sava\", \"sc01\", \"sch-\", \"scoo\", \"scp-\", \"sdk/\", \"se47\", \"sec-\", \"sec0\",\n\t\t\t \"sec1\", \"semc\", \"send\", \"seri\", \"sgh-\", \"shar\", \"sie-\", \"siem\", \"sk-0\",\n\t\t\t \"sl45\", \"slid\", \"smal\", \"smar\", \"smb3\", \"smit\", \"smt5\", \"soft\", \"sony\",\n\t\t\t \"sp01\", \"sph-\", \"spv \", \"spv-\", \"sy01\", \"symb\", \"t-mo\", \"t218\", \"t250\",\n\t\t\t \"t600\", \"t610\", \"t618\", \"tagt\", \"talk\", \"tcl-\", \"tdg-\", \"teli\", \"telm\",\n\t\t\t \"tim-\", \"topl\", \"tosh\", \"treo\", \"ts70\", \"tsm-\", \"tsm3\", \"tsm5\", \"tx-9\",\n\t\t\t \"up.b\", \"upg1\", \"upsi\", \"utst\", \"v400\", \"v750\", \"veri\", \"virg\", \"vite\",\n\t\t\t \"vk-v\", \"vk40\", \"vk50\", \"vk52\", \"vk53\", \"vm40\", \"voda\", \"vulc\", \"vx52\",\n\t\t\t \"vx53\", \"vx60\", \"vx61\", \"vx70\", \"vx80\", \"vx81\", \"vx83\", \"vx85\", \"vx98\",\n\t\t\t \"w3c \", \"w3c-\", \"wap-\", \"wapa\", \"wapi\", \"wapj\", \"wapm\", \"wapp\", \"wapr\",\n\t\t\t \"waps\", \"wapt\", \"wapu\", \"wapv\", \"wapy\", \"webc\", \"whit\", \"wig \", \"winc\",\n\t\t\t \"winw\", \"wmlb\", \"wonu\", \"x700\", \"xda-\", \"xda2\", \"xdag\", \"yas-\", \"your\",\n\t\t\t \"zeto\", \"zte-\"))) \n\t{\n\t\treturn 4; // Mobile browser detected by User Agent signature\n\t}\n\n\treturn false; // Mobile browser not found\n}", "public function test_uri_only_trimed_on_internal(Request $request, $expected)\n\t{\n\t\t$this->assertSame( (string) $request->uri(), $expected);\n\t}", "static function is_api($request){\n if(strpos($request->url(), url('api').'/')!==false){\n return true;\n }\n\n return false;\n\n }", "function getOS() { \n\n $user_agent = $_SERVER['HTTP_USER_AGENT'];\n\n $os_platform = \"UnknownOS\";\n\n $os_array = array(\n '/Windows Phone/i' => 'Windows Phone',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile'\n );\n\n foreach ($os_array as $regex => $value) { \n\n if (preg_match($regex, $user_agent)) {\n $os_platform = $value;\n }\n\n } \n\n return $os_platform;\n\n}", "function is_csrf_request() {\n $expected_uri = WEB_ROOT;\n $comparing_max_pos = strlen($expected_uri);\n $r = (strncmp(@$_SERVER['HTTP_REFERER'], $expected_uri, $comparing_max_pos));\n error_log('ERROR: CSRF found');\n return $r;\n }", "public function getServerURI() {\n $server_name = $this->full_server_name;\n\n if ($server_name != '[manual]') {\n $server_matches = array();\n preg_match('/(.*)\\/hiro\\/HiroServlet/i', $server_name, $server_matches);\n\n // New servers are with an \"api\" prefix instead of the old ones.\n $servers_prefixes = array(\n \"console1\",\n );\n\n if (empty($server_matches[1])) {\n return FALSE;\n }\n $found = str_replace($servers_prefixes, \"api\", $server_matches[1]);\n\n return $found;\n }\n }", "public static function hostMatched() {\n\t\t// TODO: add third-party comparison\n\t\t$return = TRUE;\n\t\treturn TRUE;\n\t\tif (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST' && isset($_SERVER['HTTP_REFERER']) && isset($_SERVER['HTTP_HOST'])) {\n\t\t\tlist(, , $referer_host) = explode('/', $_SERVER['HTTP_REFERER'], 4);\n\t\t\tif ($_SERVER['HTTP_HOST'] != $referer_host) {\n\t\t\t\t// Request came from a different site.\n\t\t\t\t$return = FALSE;\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "function operating_system_detection()\n {\n if (isset( $_SERVER )) {\n $agent = $_SERVER['HTTP_USER_AGENT'] ;\n } else {\n global $HTTP_SERVER_VARS ;\n if (isset( $HTTP_SERVER_VARS )) {\n $agent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ;\n } else {\n global $HTTP_USER_AGENT ;\n $agent = $HTTP_USER_AGENT ;\n }\n }\n $ros[] = array('Windows XP', 'Windows XP');\n $ros[] = array('Windows NT 5.1|Windows NT5.1)', 'Windows XP');\n $ros[] = array('Windows 2000', 'Windows 2000');\n $ros[] = array('Windows NT 5.0', 'Windows 2000');\n $ros[] = array('Windows NT 4.0|WinNT4.0', 'Windows NT');\n $ros[] = array('Windows NT 5.2', 'Windows Server 2003');\n $ros[] = array('Windows NT 6.0', 'Windows Vista');\n $ros[] = array('Windows NT 7.0', 'Windows 7');\n $ros[] = array('Windows NT 10.0', 'Windows 10');\n $ros[] = array('Windows CE', 'Windows CE');\n $ros[] = array('(media center pc).([0-9]{1,2}\\.[0-9]{1,2})', 'Windows Media Center');\n $ros[] = array('(win)([0-9]{1,2}\\.[0-9x]{1,2})', 'Windows');\n $ros[] = array('(win)([0-9]{2})', 'Windows');\n $ros[] = array('(windows)([0-9x]{2})', 'Windows');\n // Doesn't seem like these are necessary...not totally sure though..\n //$ros[] = array('(winnt)([0-9]{1,2}\\.[0-9]{1,2}){0,1}', 'Windows NT');\n //$ros[] = array('(windows nt)(([0-9]{1,2}\\.[0-9]{1,2}){0,1})', 'Windows NT'); // fix by bg\n $ros[] = array('Windows ME', 'Windows ME');\n $ros[] = array('Win 9x 4.90', 'Windows ME');\n $ros[] = array('Windows 98|Win98', 'Windows 98');\n $ros[] = array('Windows 95', 'Windows 95');\n $ros[] = array('(windows)([0-9]{1,2}\\.[0-9]{1,2})', 'Windows');\n $ros[] = array('win32', 'Windows');\n $ros[] = array('(java)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,2})', 'Java');\n $ros[] = array('(Solaris)([0-9]{1,2}\\.[0-9x]{1,2}){0,1}', 'Solaris');\n $ros[] = array('dos x86', 'DOS');\n $ros[] = array('unix', 'Unix');\n $ros[] = array('Mac OS X', 'Mac OS X');\n $ros[] = array('Mac_PowerPC', 'Macintosh PowerPC');\n $ros[] = array('(mac|Macintosh)', 'Mac OS');\n $ros[] = array('(sunos)([0-9]{1,2}\\.[0-9]{1,2}){0,1}', 'SunOS');\n $ros[] = array('(beos)([0-9]{1,2}\\.[0-9]{1,2}){0,1}', 'BeOS');\n $ros[] = array('(risc os)([0-9]{1,2}\\.[0-9]{1,2})', 'RISC OS');\n $ros[] = array('os/2', 'OS/2');\n $ros[] = array('freebsd', 'FreeBSD');\n $ros[] = array('openbsd', 'OpenBSD');\n $ros[] = array('netbsd', 'NetBSD');\n $ros[] = array('irix', 'IRIX');\n $ros[] = array('plan9', 'Plan9');\n $ros[] = array('osf', 'OSF');\n $ros[] = array('aix', 'AIX');\n $ros[] = array('GNU Hurd', 'GNU Hurd');\n $ros[] = array('(fedora)', 'Linux - Fedora');\n $ros[] = array('(kubuntu)', 'Linux - Kubuntu');\n $ros[] = array('(ubuntu)', 'Linux - Ubuntu');\n $ros[] = array('(debian)', 'Linux - Debian');\n $ros[] = array('(CentOS)', 'Linux - CentOS');\n $ros[] = array('(Mandriva).([0-9]{1,3}(\\.[0-9]{1,3})?(\\.[0-9]{1,3})?)', 'Linux - Mandriva');\n $ros[] = array('(SUSE).([0-9]{1,3}(\\.[0-9]{1,3})?(\\.[0-9]{1,3})?)', 'Linux - SUSE');\n $ros[] = array('(Dropline)', 'Linux - Slackware (Dropline GNOME)');\n $ros[] = array('(ASPLinux)', 'Linux - ASPLinux');\n $ros[] = array('(Red Hat)', 'Linux - Red Hat');\n // Loads of Linux machines will be detected as unix.\n // Actually, all of the linux machines I've checked have the 'X11' in the User Agent.\n //$ros[] = array('X11', 'Unix');\n $ros[] = array('(linux)', 'Linux');\n $ros[] = array('(amigaos)([0-9]{1,2}\\.[0-9]{1,2})', 'AmigaOS');\n $ros[] = array('amiga-aweb', 'AmigaOS');\n $ros[] = array('amiga', 'Amiga');\n $ros[] = array('AvantGo', 'PalmOS');\n //$ros[] = array('(Linux)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(rel\\.[0-9]{1,2}){0,1}-([0-9]{1,2}) i([0-9]{1})86){1}', 'Linux');\n //$ros[] = array('(Linux)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(rel\\.[0-9]{1,2}){0,1} i([0-9]{1}86)){1}', 'Linux');\n //$ros[] = array('(Linux)([0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3}(rel\\.[0-9]{1,2}){0,1})', 'Linux');\n $ros[] = array('[0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{1,3})', 'Linux');\n $ros[] = array('(webtv)/([0-9]{1,2}\\.[0-9]{1,2})', 'WebTV');\n $ros[] = array('Dreamcast', 'Dreamcast OS');\n $ros[] = array('GetRight', 'Windows');\n $ros[] = array('go!zilla', 'Windows');\n $ros[] = array('gozilla', 'Windows');\n $ros[] = array('gulliver', 'Windows');\n $ros[] = array('ia archiver', 'Windows');\n $ros[] = array('NetPositive', 'Windows');\n $ros[] = array('mass downloader', 'Windows');\n $ros[] = array('microsoft', 'Windows');\n $ros[] = array('offline explorer', 'Windows');\n $ros[] = array('teleport', 'Windows');\n $ros[] = array('web downloader', 'Windows');\n $ros[] = array('webcapture', 'Windows');\n $ros[] = array('webcollage', 'Windows');\n $ros[] = array('webcopier', 'Windows');\n $ros[] = array('webstripper', 'Windows');\n $ros[] = array('webzip', 'Windows');\n $ros[] = array('wget', 'Windows');\n $ros[] = array('Java', 'Unknown');\n $ros[] = array('flashget', 'Windows');\n // delete next line if the script show not the right OS\n //$ros[] = array('(PHP)/([0-9]{1,2}.[0-9]{1,2})', 'PHP');\n $ros[] = array('MS FrontPage', 'Windows');\n $ros[] = array('(msproxy)/([0-9]{1,2}.[0-9]{1,2})', 'Windows');\n $ros[] = array('(msie)([0-9]{1,2}.[0-9]{1,2})', 'Windows');\n $ros[] = array('libwww-perl', 'Unix');\n $ros[] = array('UP.Browser', 'Windows CE');\n $ros[] = array('NetAnts', 'Windows');\n $file = count ( $ros );\n $os = '';\n for ($n=0; $n<$file; $n++) {\n if (preg_match('/'.$ros[$n][0].'/i', $agent, $name)) {\n $os = @$ros[$n][1].' '.@$name[2];\n break;\n }\n }\n return trim ( $os );\n }", "function is_test_request() {\n\t$proxied = defined( 'WPORG_PROXIED_REQUEST' ) && WPORG_PROXIED_REQUEST;\n\t$sandbox = defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED;\n\n\treturn $proxied && $sandbox;\n}", "function url_check($url) { \n $hdrs = @get_headers($url); \n return is_array($hdrs) ? preg_match('/^HTTP\\\\/\\\\d+\\\\.\\\\d+\\\\s+2\\\\d\\\\d\\\\s+.*$/',$hdrs[0]) : false; \n}", "abstract public function setPlatformUri(string $baseUri);", "private function hasUri()\n {\n return null !== $this->uri;\n }", "function canHandleRequest() ;", "public function test_yourls_site() {\n $this->assertIsString(yourls_get_yourls_site());\n\n $scheme = yourls_get_protocol( yourls_get_yourls_site() );\n $this->assertContains( $scheme, array( 'http://', 'https://' ), \"yourls_get_yourls_site() isn't http(s)://\" );\n }", "function is_supported_mobile(){\n\tif(strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')){\n\t\treturn false; //true;\n\t}\n}", "public function canHandleRequest() {}", "public function canHandleRequest() {}", "public function canHandleRequest() {}", "public function canHandleRequest() {}", "function is_ios()\n {\n return dev::isIOS();\n }", "static public function compatible()\n {\n \treturn TRUE;\n \n //retezec popisujici prohlizec uzivatele\n $user_agent = arr::get($_SERVER, 'HTTP_USER_AGENT', '');\n\n //prohlizece safara, chrome, firefox a operu podporujeme ve vsech verzich\n if (preg_match('#applewebkit|BrowserKit|safari|chrome|firefox|opera|MSIE 7|MSIE 8|MSIE 9#i', $user_agent) == TRUE)\n {\n return TRUE;\n }\n\n return FALSE;\n }", "function _drush_patchfile_is_url($url) {\n return parse_url($url, PHP_URL_SCHEME) !== NULL;\n}", "protected function isCorsPath($request)\n {\n return $request->segment(1) == 'api';\n }", "private function _isResource() {\n $Info = explode('.', $_SERVER[\"REQUEST_URI\"]);\n $rVal = false;\n\n if ( count($Info) > 1 ) { $rVal = true; }\n\n // Return the Boolean Response\n return $rVal;\n }", "private function get_uri_request(){\n\n /*\n * get the url_route\n * the url_route is the part that is after index.php\n * and because of .htaccess where the index.php is not necessary in the url\n * the directory of the index.php should be determined.\n */\n\n\n if(_ROOT_DIRECTORY === str_replace('/','',_APP_PATH)){\n $request = ltrim($_SERVER['REQUEST_URI'], '/');\n\n }\n else{\n\n $request = str_replace(_APP_PATH,'',$_SERVER['REQUEST_URI']);\n }\n\n return $request;\n }", "private static function find_request_path() {\n $path = explode('/', trim($_SERVER['SCRIPT_NAME'], '/'));\n $uri = explode('/', trim($_SERVER['REQUEST_URI'], '/'));\n\n foreach ($path as $key => $val) {\n if (isset($uri[$key])) {\n if ($val == $uri[$key]) {\n unset($uri[$key]);\n } else {\n break;\n }\n } else {\n break;\n }\n }\n\n if (empty($uri[0])) {\n $uri[0] = '__DEFAULT_PAGE__';\n } else {\n //$uri[0] = str_replace(\".php\", \"\", $uri[0]);\n if (($pos = strpos($uri[0], \"?\")) !== FALSE) {\n $uri[0] = substr($uri[0], 0, $pos);\n }\n $uri[0] .= \".php\";\n }\n return $uri;\n }", "public function uri(string $uri): bool\n {\n # Split by the bar\n $uriSplit = explode('/', $uri);\n $requestSplit = explode('/', $this->uriRequest());\n\n if (count($uriSplit) != count($requestSplit))\n return false;\n\n for ($i = 0; $i < count($uriSplit); $i++) {\n # Search the separator to get a param\n if (str_contains($uriSplit[$i], Request::PARAM_SEPARATOR)) {\n $this->params[$uriSplit[$i]] = $requestSplit[$i];\n continue;\n }\n\n # If the uri and serve uir is different\n if ($uriSplit[$i] != $requestSplit[$i])\n return false;\n }\n\n return true;\n }", "function platform(){\n\n\t\treturn (new user_agent)->platform();\n\n\t}", "function rhd_is_mobile() {\n\t$mobile_browser = 0;\n\n\tif (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {\n\t $mobile_browser++;\n\t}\n\n\tif ((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {\n\t $mobile_browser++;\n\t}\n\n\t$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'], 0, 4));\n\t$mobile_agents = array(\n\t 'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',\n\t 'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',\n\t 'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',\n\t 'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',\n\t 'newt','noki','oper','palm','pana','pant','phil','play','port','prox',\n\t 'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',\n\t 'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',\n\t 'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',\n\t 'wapr','webc','winw','winw','xda ','xda-');\n\n\tif (in_array($mobile_ua,$mobile_agents)) {\n\t $mobile_browser++;\n\t}\n\n\tif ( array_key_exists( 'ALL_HTTP', $_SERVER ) ) {\n\t\tif (strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini') > 0) {\n\t\t $mobile_browser++;\n\t\t}\n\t}\n\n\tif (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'windows') > 0) {\n\t $mobile_browser = 0;\n\t}\n\n\tif ( $mobile_browser > 0 ) {\n\t\t$mobile_browser = TRUE;\n\t} else {\n\t\t$mobile_browser = FALSE;\n\t}\n\n\treturn $mobile_browser;\n}", "public function canHandleRequest();", "public function canHandleRequest();", "public function hasAreaInUri(): bool;", "public function AppLocalOrServer()\n {\n if (preg_match('/localhost/i', base_url())) return \"local\";\n else return \"server\";\n }", "public function match()\n {\n $startWithHttp = strpos($this->userInput, 'http://') === 0 || strpos($this->userInput, 'https://') === 0;\n $validUrl = filter_var($this->userInput, FILTER_VALIDATE_URL);\n\n return $startWithHttp && $validUrl;\n }", "protected function is_base_request()\n {\n }", "static public function isWebDocument() {\n return isset($_SERVER[\"HTTP_HOST\"]);\n }", "public function shouldCheckHttpHost()\n {\n return !Director::is_cli() && isset($_SERVER['HTTP_HOST']);\n }", "private function getUriFromRequest()\n\t{\n\t\tif (!isset($_SERVER['REQUEST_URI']) OR !isset($_SERVER['SCRIPT_NAME']))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t$_tempUri = $_SERVER['REQUEST_URI'];\n\t\tif (strpos($_tempUri, $_SERVER['SCRIPT_NAME']) === 0)\n\t\t{\n\t\t\t$_tempUri = substr($_tempUri, strlen($_SERVER['SCRIPT_NAME']) + 1);\n\t\t}\n\t\t\n\t\tif ($_tempUri == '/' OR empty($_tempUri))\n\t\t{\n\t\t\treturn '/';\n\t\t}\n\t\t\n\t\treturn $_tempUri;\n\t}", "public function testAutoDetectLocation()\n {\n $values = [\"on\", \"\", 1, true];\n\n foreach ($values as $value) {\n $_SERVER['HTTPS'] = $value;\n $this->assertMatchesRegularExpression(\n '/src=\"https:\\/\\/secure.gravatar.com\\/avatar\\/[a-z0-9]{32}.+\"/',\n $this->_object->gravatar(\"[email protected]\")->__toString()\n );\n }\n }", "private static function check_path_uri(&$request_uri, &$route_uri) : bool\n\t{\n\t\t$request = explode('/', $request_uri);\n\t\t$route = explode('/', $route_uri);\n\n\t\tif(count($request) !== count($route))\n\t\t\treturn false;\n\n\t\tforeach ($route as $key => $value)\n\t\t{\n\t\t\tif(preg_match('/#[0-9]+#/', $value) === 1)\n\t\t\t\tcontinue;\n\n\t\t\tif($request[$key] === $value)\n\t\t\t\tcontinue;\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private function detectRequest()\n {\n // Get URL\n $url = isset($_GET) && array_key_exists('url', $_GET) ? $_GET['url'] : '';\n $url = trim($url, '/');\n\n // Apply routes\n $url = $this->applyRoutes($url, $this->routes);\n\n // Split URL\n $params = explode('/', $url);\n if(empty($params[0])) {\n $params = array();\n }\n\n\n // Save parameters\n $this->params = $params;\n }", "function helperCheckForWrongUrl() {\n\t\t$status = array();\n\n\t\tif ($GLOBALS['TSFE']->config['config']['baseURL'] != '' || $GLOBALS['TSFE']->config['config']['absRefPrefix']) {\n\t\t\t$currentDomain = t3lib_div::getIndpEnv('TYPO3_HOST_ONLY');\n\t\t\t$linkDomain = $this->pi_getPageLink($GLOBALS['TSFE']->id);\n\n\t\t\tif ($linkDomain != '' && strpos($linkDomain, $currentDomain) === false) {\n\t\t\t\t$status['current']\t= $currentDomain;\n\t\t\t\t$status['link']\t\t\t= $linkDomain;\n\t\t\t}\n\t\t}\n\n\t\treturn $status;\n\t}", "public function supports(Request $request): ?bool\n {\n return $request->attributes->get('_route') === 'login_github_check';\n }", "function _userAgent()\n{\n $u_agent = $_SERVER['HTTP_USER_AGENT'];\n $bname = 'Unknown';\n $platform = 'Unknown';\n $version = \"\";\n\n $os_array = array(\n '/windows nt 10.0/i' => 'Windows 10',\n '/windows nt 6.3/i' => 'Windows 8.1',\n '/windows nt 6.2/i' => 'Windows 8',\n '/windows nt 6.1/i' => 'Windows 7',\n '/windows nt 6.0/i' => 'Windows Vista',\n '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',\n '/windows nt 5.1/i' => 'Windows XP',\n '/windows xp/i' => 'Windows XP',\n '/windows nt 5.0/i' => 'Windows 2000',\n '/windows me/i' => 'Windows ME',\n '/win98/i' => 'Windows 98',\n '/win95/i' => 'Windows 95',\n '/win16/i' => 'Windows 3.11',\n '/macintosh|mac os x/i' => 'Mac OS X',\n '/mac_powerpc/i' => 'Mac OS 9',\n '/linux/i' => 'Linux',\n '/ubuntu/i' => 'Ubuntu',\n '/iphone/i' => 'iPhone',\n '/ipod/i' => 'iPod',\n '/ipad/i' => 'iPad',\n '/android/i' => 'Android',\n '/blackberry/i' => 'BlackBerry',\n '/webos/i' => 'Mobile'\n );\n\n foreach ($os_array as $regex => $value) {\n\n if (preg_match($regex, $u_agent)) {\n $platform = $value;\n break;\n }\n }\n\n // Next get the name of the useragent yes seperately and for good reason\n if (preg_match('/MSIE/i', $u_agent) && !preg_match('/Opera/i', $u_agent)) {\n $bname = 'Internet Explorer';\n $ub = \"MSIE\";\n } elseif (preg_match('/Firefox/i', $u_agent)) {\n $bname = 'Mozilla Firefox';\n $ub = \"Firefox\";\n } elseif (preg_match('/Chrome/i', $u_agent)) {\n $bname = 'Google Chrome';\n $ub = \"Chrome\";\n } elseif (preg_match('/Safari/i', $u_agent)) {\n $bname = 'Apple Safari';\n $ub = \"Safari\";\n } elseif (preg_match('/Opera/i', $u_agent)) {\n $bname = 'Opera';\n $ub = \"Opera\";\n } elseif (preg_match('/Netscape/i', $u_agent)) {\n $bname = 'Netscape';\n $ub = \"Netscape\";\n }\n\n // finally get the correct version number\n $known = array('Version', $ub, 'other');\n $pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n\n if (!preg_match_all($pattern, $u_agent, $matches)) {\n // we have no matching number just continue\n }\n\n // see how many we have\n $i = count($matches['browser']);\n if ($i != 1) {\n //we will have two since we are not using 'other' argument yet\n //see if version is before or after the name\n if (strripos($u_agent, \"Version\") < strripos($u_agent, $ub)) {\n $version = $matches['version'][0];\n } else {\n $version = $matches['version'][1];\n }\n } else {\n $version = $matches['version'][0];\n }\n\n // check if we have a number\n $version = ($version == null || $version == \"\") ? \"?\" : $version;\n\n return array(\n 'userAgent' => $u_agent,\n 'name' => $bname,\n 'version' => $version,\n 'platform' => $platform,\n 'pattern' => $pattern\n );\n}", "function name_and_representation_in_url() {\n preg_match(URI_REGEX, request_uri(), $request_matches);\n return array(\n (isset($request_matches[1]) ? $request_matches[1] : ''),\n (isset($request_matches[2]) ? $request_matches[2] : ''),\n );\n}", "public function requestUri() {}", "private function get_uri ()\n {\n\n // Check these server vars first\n if (isset($_SERVER['REQUEST_URI']) && isset($_SERVER['SCRIPT_NAME']))\n {\n $path = $_SERVER['REQUEST_URI'];\n\n // Remove script name if still there\n if (strpos($path, $_SERVER['SCRIPT_NAME']) === 0)\n $path = substr($path, strlen($_SERVER['SCRIPT_NAME']));\n\n // Remove script's dir if still there\n elseif (strpos($path, dirname($_SERVER['SCRIPT_NAME'])) === 0)\n $path = substr($path, strlen(dirname($_SERVER['SCRIPT_NAME'])));\n\n // Remove query string if that's there\n if (strpos($path, '?') !== false)\n $path = substr($path, 0, strpos($path, '?'));\n\n if (trim(str_replace(array('//', '../'), '/', $path), '/') !== '') $uri = $path;\n }\n\n // Check path info\n if (!isset($uri))\n {\n $path = trim(isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO'), '/');\n\n if ($path !== '' && $path !== SELF) $uri = $path;\n }\n\n // Last try: check query string\n if (!isset($uri))\n $uri = trim(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING'), '/');\n\n // Unprintable control chars\n $control_chars = array('/%0[0-8bcef]/', '/%1[0-9a-f]/', '/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]+/S');\n\n do $uri = preg_replace($control_chars, '', $uri, -1, $count);\n while ($count);\n\n // Only allow THESE characters in URLs. Nothing else will make it through\n\n if (preg_match('|[^a-zA-Z 0-9~%.:_/\\-,]|', $uri, $matches)) die(\"Illegal character in URL: {$matches[0]}\");\n\n return $uri;\n }", "function url_request(): string\n{\n return url_site() . input_server('REQUEST_URI');\n}", "private function usesNonStandardHttpPort(): bool\n {\n return 'http' === $this->getScheme() && '80' != $this->router->getContext()->getHttpPort();\n }", "private function checkUrl() {\n $career = $this->route('career');\n\n $url = $this->input('url');\n $prefix = trans('module-careerplugin::options.url_prefix');\n $language = $career->language ?? $this->getLanguage();\n\n $fullUrl = ($language->language_code ?? '') . '/' . $prefix . '/' . $url;\n\n $urlModel = Url::findUrl($fullUrl);\n\n if (!$urlModel) {\n return true;\n }\n\n return $career && $urlModel->model_id === $career->id && $urlModel->model === Career::class;\n }", "function detectMobileDevice_iPhone(){\r\r\n\tif((bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPhone') || (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPod'))\r\r\n\t\treturn true;\r\r\n\treturn false;\r\r\n}", "private function compareUriPathHelper(Uri $requestedUri): bool {\n $requestedArr = $requestedUri->getComponents();\n\n $originalPath = $this->getPathArray();\n $requestedPath = $requestedArr['path'];\n\n return $this->comparePathHelper($originalPath, $requestedPath);\n }", "function url_exists($pageURL){\n\t if ((strpos($pageURL, \"https\")) === false){ $pageURL = \"https://\" . $pageURL;} //pos8etei https an leipei\n\t\t \n\t\t \n\t\t \n\t if (is_array(@get_headers($pageURL)) && ((strpos($pageURL, \"facebook\")) !== false))\t//an to header request itan epituxes kai to page itan kapoio fb page\n\t return true;\n\t else\n\t\t {return true;}\n\t}", "public function match(Zend_Controller_Request_Http $request)\r\n {\r\n \tif (Mage::app()->getStore()->isAdmin()) {\r\n return false;\r\n }\r\n \r\n \t$pathInfo = $request->getPathInfo();\r\n // remove suffix if any\r\n $suffix = Mage::helper('amlanding/url')->getSuffix();\r\n if ($suffix && '/' != $suffix){\r\n $pathInfo = str_replace($suffix, '', $pathInfo);\r\n }\r\n \r\n $pathInfo = explode('/', trim($pathInfo, '/ '), 2);\r\n $identifier = $pathInfo[0];\r\n $params = (isset($pathInfo[1]) ? $pathInfo[1] : '');\r\n \r\n \r\n\t\t/* @var $page Amasty_Xlanding_Model_Page */\r\n $page = Mage::getModel('amlanding/page');\r\n $pageId = $page->checkIdentifier($identifier, Mage::app()->getStore()->getId());\r\n if (!$pageId) {\r\n return false;\r\n }\r\n \r\n\r\n $params = trim($params, '/ ');\r\n if ($params){\r\n $params = explode('/', $params);\r\n Mage::register('amshopby_current_params', $params);\r\n if ('true' == (string)Mage::getConfig()->getNode('modules/Amasty_Shopby/active')){\r\n $parsed = Mage::helper('amshopby/url')->saveParams($request);\r\n if (!$parsed && !Mage::registry('amshopby_short_parsed')) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n $request->setModuleName('amlanding')\r\n ->setControllerName('page')\r\n ->setActionName('view')\r\n ->setParam('page_id', $pageId)\r\n ->setParam('am_landing', $identifier)\r\n ;\r\n \r\n return true;\r\n }", "protected function isWindowsOs() {}", "function fetch_os()\n\t{\n\t\t$useragent = strtolower($this->my_getenv('HTTP_USER_AGENT'));\n\t\t\n\t\tif ( strstr( $useragent, 'mac' ) )\n\t\t{\n\t\t\treturn 'mac';\n\t\t}\n\t\t\n\t\tif ( preg_match( '#wi(n|n32|ndows)#', $useragent ) )\n\t\t{\n\t\t\treturn 'windows';\n\t\t}\n\t\t\n\t\treturn 'unknown';\n\t}", "protected function isWindowsOs() {}", "protected function isRequestMobile() {\n\t\t$mobileUserAgents = array(\n\t\t\t'iPhone', 'MIDP', 'AvantGo', 'BlackBerry', 'J2ME', 'Opera Mini', 'DoCoMo', 'NetFront',\n\t\t\t'Nokia', 'PalmOS', 'PalmSource', 'portalmmm', 'Plucker', 'ReqwirelessWeb', 'iPod', 'iPad',\n\t\t\t'SonyEricsson', 'Symbian', 'UP\\.Browser', 'Windows CE', 'Xiino', 'Android'\n\t\t);\n\t\t$currentUserAgent = $this->getRemote('userAgent');\n\t\tforeach($mobileUserAgents as $userAgent) {\n\t\t\tif(strpos($currentUserAgent, $userAgent) !== false) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function is_ie52mac()\n{\n $ret = false;\n\n // Get the HTTP User Agent info. Becomes the $ua variable\n $ua = $_SERVER['HTTP_USER_AGENT'];\n\n // Mac Internet Explorer 5.2\n if(eregi(\"Mac\", $ua) && eregi(\"msie\", $ua) && eregi(\"5\\.2[0-9]\", $ua))\n {\n $ret = true;\n }\n\n return $ret;\n}", "static function get_request_uri()\n\t{\n\t\tif (!isset($_SERVER['REQUEST_URI'], $_SERVER['SCRIPT_NAME']))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\t$uri = parse_url($_SERVER['REQUEST_URI']);\n\t\t$query = isset($uri['query']) ? $uri['query'] : '';\n\t\t$uri = isset($uri['path']) ? rawurldecode($uri['path']) : '';\n\n\t\tif (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0)\n\t\t{\n\t\t\t$uri = substr($uri, strlen($_SERVER['SCRIPT_NAME']));\n\t\t}\n\t\telseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0)\n\t\t{\n\t\t\t$uri = substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));\n\t\t}\n\n\t\t// This section ensures that even on servers that require the URI to be in the query string (Nginx) a correct\n\t\t// URI is found, and also fixes the QUERY_STRING server var and $_GET array.\n\t\tif (trim($uri, '/') === '' && strncmp($query, '/', 1) === 0)\n\t\t{\n\t\t\t$query = explode('?', $query, 2);\n\t\t\t$uri = rawurldecode($query[0]);\n\t\t\t$_SERVER['QUERY_STRING'] = isset($query[1]) ? $query[1] : '';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$_SERVER['QUERY_STRING'] = $query;\n\t\t}\n\n\t\tparse_str($_SERVER['QUERY_STRING'], $_GET);\n\n\t\treturn $uri;\n\t}", "function urlcontains($string) {\n if (strpos('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'],$string) == true) {\n return true;\n }\n }", "private function isRoot()\n {\n if (isset($_SERVER['SERVER_SOFTWARE']) && preg_match('/(Development Server)/i', $_SERVER['SERVER_SOFTWARE']) && ($_SERVER['REQUEST_URI'] === '/'))\n {\n return true;\n }\n else if(($_SERVER['REQUEST_URI'] === '/') || count(slashExploder($_SERVER['REQUEST_URI'])) === 1)\n {\n return true;\n }\n\n return false;\n }", "function define_application_uri(){\n //Cargo la URI segun el servidor - Esta siempre es todo lo que esta despues de www.edunola.com.ar o localhost/\n $uri_actual= $_SERVER['REQUEST_URI'];\n //Analizo la cantidad de partes de la baseurl para poder crear la URI correspondiente para la aplicacion\n $url_base= explode(\"/\", BASEURL);\n $uri_app= \"\";\n //0= http, 1= //, 2= dominio, >3= una carpeta cualquiera\n if(count($url_base) > 3){\n //Trabajar desde el 4to elemento del arreglo\n $count_url_base= count($url_base);\n for($i = 3; $i < $count_url_base; $i++){\n $uri_app .= \"/\" . $url_base[$i];\n }\n }\n //Elimino la parte de la URI que es fija y no es utilizada - Esto seria en caso de que haya carpeta\n $uri_actual= substr($uri_actual, strlen($uri_app));\n //Elimino \"/\" en caso de que haya una al final de la cadena\n $uri_actual= trim($uri_actual, \"/\"); \n /*\n * Analizar Internacionalizacion\n */ \n //Crea las variable LOCALE, LOCALE_URI, URI_LOCALE, BASEURL_LOCALE\n $locale_actual= NULL;\n $locale_uri= NULL;\n $uri_app_locale= $uri_actual;\n $base_url_locale= BASEURL; \n //Si hay configuracion de internacionalizacion realiza analisis\n if(isset($GLOBALS['i18n']['locales'])){\n //Consigue el locale por defecto\n $locale_actual= $GLOBALS['i18n']['default'];\n //Consigo la primer parte de la URI para ver si esta internacionalizada\n $uri_locale= explode(\"/\", $uri_actual);\n $uri_locale= $uri_locale[0];\n \n //Consigo el resto de los posibles LOCALES\n $locales= str_replace(\" \", \"\", $GLOBALS['i18n']['locales']);\n //Separo los LOCALE\n $locales= explode(\",\", $locales);\n\n //Recorro todos los locale para ver si alguno coincide con la primer parte de la URL\n foreach ($locales as $locale) {\n //Cuando un locale coincide armo los datos correspondientes\n if($uri_locale == $locale){\n //Cambio el locale y el locale uri por el correspondiente\n $locale_actual= $locale;\n $locale_uri= $locale; \n //Salgo del For\n break;\n }\n } \n if($locale_actual == $uri_locale){\n //Le quito la parte de internacionalizacion a la uri actual\n $uri_actual= substr($uri_actual, strlen($locale_actual));\n $uri_actual= trim($uri_actual, \"/\");\n //Le agrego la parte internacinalizada al base locale\n if($locale_uri != NULL){\n $base_url_locale= $base_url_locale . $locale_uri . \"/\";\n }\n }\n } \n //URIAPP: Contiene la URI de peticion sin el fragmento de internacionalizacion\n define('URIAPP', $uri_actual);\n //URIAPP_LOCALE: Contiene la URI de peticion con el fragmento de internacionalizacion\n define('URIAPP_LOCALE', $uri_app_locale);\n //LOCALE_URI: Contiene el LOCALE segun la URI actual\n define('LOCALE_URI', $locale_uri);\n //LOCALE: Contiene el Locale actual. Si no se encuentra ninguno en la URL es igual al por defecto, si no es igual a LOCALE_URI\n define('LOCALE', $locale_actual);\n //BASEURL_LOCALE: Contiene la base URL con el LOCALE correspondiente. Si el locale es el por defecto esta es igual a BASEURL\n define('BASEURL_LOCALE', $base_url_locale);\n }", "public function match(Request $request)\n {\n if ($this->method) {\n if ($request->getMethod() != $this->method) {\n return false;\n }\n }\n if ($this->hostname && $request->hasHeader('host')) {\n if ($request->getHeader('hostname') != $this->host) {\n return false;\n }\n }\n\n // Ejecutamos la función de validación\n $function = [$this, 'match' . $this->type];\n\n $url = $request->getRequestTarget();\n $result = $function($url);\n\n if ($result) {\n // Encontramos un match. Añadimos los args del request\n $result['args'] = array_merge($this->args, \n $result['args']);\n\n return $result;\n }\n\n\n // Not valid\n return false;\n }", "public function testConstructorParsesRequestUri()\n {\n $server = ['REQUEST_URI' => '/v2/one/two?three=four'];\n $request = new Request($this->config, $server);\n $this->assertEquals('/v2/one/two', $request->getPathInfo());\n }", "function wp_browser_detect(){\n\t//Browsers\n\tglobal $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;\n\n\t//$browser = get_browser(null, true); //@TODO \"Nebula\" 0: Find a server this works on and then wrap in if $browser, then echo the version number too\n\t//@TODO \"Nebula\" 0: Also look into the function wp_check_browser_version().\n\n if ( $is_lynx ) {\n \treturn 'Lynx';\n } elseif ( $is_gecko ) {\n \treturn 'Gecko';\n } elseif ( $is_opera ) {\n \treturn 'Opera';\n } elseif ( $is_NS4 ) {\n \treturn 'NS4';\n } elseif ( $is_safari ) {\n \treturn 'Safari';\n } elseif ( $is_chrome ) {\n \treturn 'Chrome';\n } elseif ( $is_IE ) {\n \treturn 'IE';\n } else {\n \treturn 'Unknown Browser';\n }\n}" ]
[ "0.6322694", "0.6295105", "0.6193098", "0.61430156", "0.61342245", "0.6120261", "0.60942817", "0.607994", "0.601643", "0.5983301", "0.59709144", "0.5876129", "0.5866546", "0.5853762", "0.5844702", "0.583949", "0.5819422", "0.5790244", "0.57800674", "0.5757162", "0.5756502", "0.57543284", "0.57479566", "0.57294005", "0.57231975", "0.57094854", "0.5666543", "0.56657666", "0.5660321", "0.5641848", "0.563972", "0.5631956", "0.5627877", "0.56246674", "0.56226826", "0.562234", "0.56000245", "0.5585027", "0.5578507", "0.55626684", "0.55560577", "0.55298316", "0.55261", "0.5519787", "0.55187654", "0.55042547", "0.5500882", "0.5500536", "0.5499483", "0.54890245", "0.5481365", "0.5481365", "0.5481365", "0.5481365", "0.5478232", "0.547538", "0.54731005", "0.54654235", "0.54632914", "0.5456844", "0.54514", "0.54492575", "0.544794", "0.54366827", "0.5433995", "0.5433995", "0.5424932", "0.541953", "0.54137146", "0.5394961", "0.5391994", "0.53843045", "0.5383547", "0.5376167", "0.5375544", "0.53711545", "0.53678495", "0.5367616", "0.5362908", "0.53612393", "0.53603035", "0.5343075", "0.5338389", "0.53343505", "0.53321254", "0.5317728", "0.5316244", "0.53153455", "0.5312636", "0.5307522", "0.5305846", "0.5305385", "0.52989596", "0.52960175", "0.52871", "0.5278718", "0.527718", "0.52643937", "0.52524877", "0.5246157", "0.5245291" ]
0.0
-1
Tests the http method is detected
public function testGetMethod($method, $options) { foreach ($options as $property => $array) { $property = '_' . $property; static::$$property = $array; } $request = $this->createRequest(); $this->assertEquals($method, $request->getMethod()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHttpMethod();", "private static function _verifyMethod()\n {\n if (static::Method() == 'OPTIONS') {\n Response::Error('unsupported method.');\n }\n }", "public function testMethodReturnsRightStuff()\n\t{\n\t\t// Defaults method to CLI now.\n\t\t$this->assertEquals('cli', $this->request->getMethod());\n\t\t$this->assertEquals('CLI', $this->request->getMethod(true));\n\t}", "public static function isGetMethod() {\n return isset($_SERVER['REQUEST_METHOD']) && self::GET == $_SERVER['REQUEST_METHOD'];\n }", "public function hasHttpMethod()\n {\n return $this->http_method !== null;\n }", "public function testInvalidRequestMethod()\n {\n $response = $this->call('GET', '/api/v1/post', ['post_id' => -11, 'rating' => 12]);\n $this->assertEquals(405, $response->status());\n }", "public function testRequestMethodIsProperlyLoaded($method)\n {\n $request = new Request($this->config, ['REQUEST_METHOD' => $method]);\n\n $this->assertEquals($method, $request->getVerb());\n }", "protected function _checkRequestMethods() {\n\t\t$action = $this->_action();\n\t\t$apiConfig = $action->config('api');\n\n\t\tif (!isset($apiConfig['methods'])) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$request = $this->_request();\n\t\tforeach ($apiConfig['methods'] as $method) {\n\t\t\tif ($request->is($method)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tthrow new BadRequestException('Wrong request method');\n\t}", "function ifItIsMethod($method=null){\n if ($_SERVER['REQUEST_METHOD'] == strtoupper($method)) {\n return true;\n }\n return false;\n}", "public function testHttpMethods()\n {\n //Case A\n $r = new \\Slim\\Route('/foo', function () {});\n $this->assertEmpty($r->getHttpMethods());\n //Case B\n $r->setHttpMethods('GET');\n $this->assertEquals(array('GET'), $r->getHttpMethods());\n //Case C\n $r->appendHttpMethods('POST', 'PUT');\n $this->assertEquals(array('GET', 'POST', 'PUT'), $r->getHttpMethods());\n //Case D\n $this->assertTrue($r->supportsHttpMethod('GET'));\n $this->assertFalse($r->supportsHttpMethod('DELETE'));\n //Case E\n $viaResult = $r->via('DELETE');\n $this->assertTrue($viaResult instanceof \\Slim\\Route);\n $this->assertTrue($r->supportsHttpMethod('DELETE'));\n }", "public function testGetMethod() {\r\n\t\t$this->assertTrue ( XeroPoint_Control_Abstract::METHOD_POST == $this->testObject->getMethod (), 'incorrect method returned' );\r\n\t}", "public function testHttpRequestMethodStrictComparison()\n {\n $get = HttpRequestMethod::GET();\n $post = HttpRequestMethod::POST();\n\n $this->assertTrue($get === HttpRequestMethod::GET());\n $this->assertTrue($post === HttpRequestMethod::POST());\n $this->assertFalse($get === HttpRequestMethod::POST());\n $this->assertFalse($post === HttpRequestMethod::GET());\n $this->assertFalse($get === $post);\n }", "public function testURL()\n {\n $response = $this->call('GET','api/auth/login');\n\n $this->assertEquals(405,$response->status());\n }", "public static function method($type) {\n return $_SERVER['REQUEST_METHOD'] == strtoupper($type);\n }", "function searchHTTPMethod()\t{\n\t\treturn $this->getRandomHTTPMethod();\n\t}", "public function test_match_withSupportedMethod()\n {\n $route = new Route('GET|POST', '/home', 'test');\n $this->assertTrue(\n $route->match('GET', '/home'),\n 'match() must return true if method provided is supported by the route instanciated with more than one method.'\n );\n }", "function ifItIsMethod($method=null) {\n\n\t// making all the input UPPERCASE\n\t//if its post, if its get...\n\tif($_SERVER['REQUEST_METHOD'] == strtoupper($method)) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "private function processRequestMethod($method) {\n if(in_array(strtoupper($method),$this->supportedRequestMethods)) {\n $this->requestMethod=strtoupper($method);\n } elseif (strtoupper($method)==\"GET\") {\n $this->exceptionWithResponseCode(405,\n \"\\\"GET\\\" is not currently a supported request method. \" .\n \"Try the other API: https://wiki.egi.eu/wiki/GOCDB/PI/Technical_Documentation\"\n );\n }else {\n $this->exceptionWithResponseCode(405,\n \"\\\"\" . $method . \"\\\" is not currently a supported request method. For more details see: $this->docsURL\"\n );\n }\n }", "public static function isRequestMethod(string $method){\n $method = strtoupper($method);\n return ($_SERVER['REQUEST_METHOD'] === $method);\n }", "public function getRequestMethod(): string;", "public static function method(){\n \n return self::$request->getMethod(); \n }", "public function getRequestMethod(){\n //incercam sa determinam metoda(verbul) http folosit, momentan doar get si post\n $method = isset($_SERVER['REQUEST_METHOD']) && !empty($_SERVER['REQUEST_METHOD']) && preg_match('/'.self::HTTP_VERBS.'/', $_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET';\n //http permite doar get si post, pt a mima put si delete folosim un request post in care definim un input _method cu valoare put sau delete\n if($method == 'POST' && isset($_POST['_method']) && !empty($_POST['_method'])){\n if($method = $_POST['_method'] == 'PUT' || $method == 'DELETE'){\n return $method;\n }\n throw new HttpRequestMethodException(\"Invalid Http request method.\");\n }\n return $method;\n }", "function qa_is_http_get()\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\treturn $_SERVER['REQUEST_METHOD'] === 'GET';\n}", "private function requestMethod() \n {\n // Take the method as found in $_SERVER\n $method = $_SERVER['REQUEST_METHOD'];\n\n if ($_SERVER['REQUEST_METHOD'] == 'HEAD') {\n ob_start();\n $method = 'GET';\n } // If it's a POST request, check for a method override header\n elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {\n $headers = $this->requestHeaders();\n if (isset($headers['X-HTTP-Method-Override']) && in_array($headers['X-HTTP-Method-Override'], array('PUT', 'DELETE', 'PATCH'))) {\n $method = $headers['X-HTTP-Method-Override'];\n }\n }\n return $method;\n }", "private static function verifyRequest()\n {\n if(isset($_SERVER['HTTP_USER_AGENT']) == false)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n if(strlen($_SERVER['HTTP_USER_AGENT']) == 0)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n if(strlen($_SERVER['HTTP_USER_AGENT']) > 624)\n {\n InvalidUserAgentResponse::executeResponse();\n exit();\n }\n\n $UnsupportedRequestMethod = true;\n\n if(strtoupper($_SERVER['REQUEST_METHOD']) == 'GET')\n {\n $UnsupportedRequestMethod = false;\n }\n\n if(strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')\n {\n $UnsupportedRequestMethod = false;\n }\n\n if($UnsupportedRequestMethod)\n {\n UnsupportedVersion::executeResponse();\n exit();\n }\n }", "public function getMethod()\n {\n return Http::GET;\n }", "function getAllowedHttpMethods();", "protected function getHttpMethod()\n {\n return 'GET';\n }", "public function test_match_withUnsupportedMethod()\n {\n $route = new Route('GET', '/home', 'test');\n $this->assertFalse(\n $route->match('POST', '/home'),\n 'match() must return false method provided is not supported by the route.'\n );\n }", "public function hasMethod() : bool\n {\n return array_key_exists($this->request->getMethod(), $this->routes);\n }", "public function getMethod()\n {\n return Http::POST;\n }", "static public function IsMethodGET() {\n return (self::$method == \"GET\");\n }", "protected function test() {\n // TEST BLOCK - comment out once validation to here is verified\n $resp[\"method\"] = $this->method;\n $resp[\"request\"] = $this->request;\n $resp[\"putfile\"] = $this->file;\n $resp[\"verb\"] = $this->verb;\n $resp[\"args\"] = $this->args;\n //return $resp;\n // END TEST BLOCK\n if ($this->method == 'GET') {\n //return $this->verb; // For testing if-else ladder\n return testGetHandler( $this->args ); // Invoke your handler here\n }\n elseif ($this->method == 'POST') {\n return testPostHandler( $this->args );// Invoke your handler here\n }\n elseif ($this->method == 'DELETE' && count($this->args) == 1 ) {\n return $this->args[0]; // ID of delete request\n }\n else {\n return $resp; // DEBUG usage, help determine why failure occurred\n return \"Invalid requests\";\n }\n }", "public function method( $is = null ) \n\t{\n\t\tif ( !is_null( $is ) )\n\t\t{\n\t\t\treturn strtoupper( $is ) === $this->method();\n\t\t}\n\t\t\n\t\treturn strtoupper( $this->server( 'HTTP_X_HTTP_METHOD_OVERRIDE', $this->server( 'REQUEST_METHOD', 'GET' ) ) );\n\t}", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function getMethod();", "public function headerAllowedHttpMethods();", "public function getHttpMethod()\n {\n return $this->http_method;\n }", "public function getMethod()\n {\n return $this->method ?: 'GET';\n }", "protected function getHttpMethod()\n {\n return 'POST';\n }", "protected function getHttpMethod()\n {\n return 'POST';\n }", "public function getMethod()\n\t{\n\t\t//current method\n\t\t$httpMethod = mb_strtoupper($this->getRequestMethod());\n\t\t// If it's a HEAD request override it to being GET and prevent any output, as per HTTP Specification\n\t\t// @url http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4\n\t\tif ($httpMethod === Request::HEAD) {\n\t\t\t$httpMethod = Request::GET;\n\t\t}\n\n\t\t//When request is POST then check whether method override was sent and check whether in the method override have an annother method\n\t\t//like PUT, PATCH or DELETE \n\t\tif ($httpMethod === Request::POST) {\n\t\t\t$httpHeaders = $this->getServerParams();\n\n\t\t\tif (isset($httpHeaders['HTTP_X_HTTP_METHOD_OVERRIDE'])) {\n\t\t\t\t$overrideMethod = $httpHeaders['HTTP_X_HTTP_METHOD_OVERRIDE'];\n\n\t\t\t\tif (in_array($overrideMethod, array('PUT', 'DELETE', 'PATCH'))) {\n\t\t\t\t\t$httpMethod = $overrideMethod;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$httpMethod = $httpHeaders['REQUEST_METHOD'];\n\t\t\t}\n\t\t}\n\n\t\t//return current method\n\t\treturn $httpMethod;\n\t}", "#[Pure]\nfunction http_request_method_exists($method) {}", "public static function isAllowedRouteRequest() {\n\t\treturn self::$correct_request_method;\n\t}", "public function isMethodGet(): bool\n {\n return $this->isMethod(self::HTTP_GET);\n }", "public function testControllerMethodCatchAllRequestMethod()\n {\n $route = new Route();\n \n $route->set(null, \"user\", null, \"Anax\\Route\\MockHandlerControllerCatchAll\");\n \n $path = \"user/whatever\";\n $this->assertTrue($route->match($path, \"POST\"));\n $res = $route->handle($path);\n $this->assertEquals(\"catchAllPost\", $res);\n\n $this->assertTrue($route->match($path, \"PUT\"));\n $res = $route->handle($path);\n $this->assertEquals(\"catchAllPut\", $res);\n }", "public function request_method() {\n\t\tif ( isset( $_SERVER['REQUEST_METHOD'] ) ) {\n\t\t\treturn $_SERVER['REQUEST_METHOD'];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function testPostMethodNotAllowed()\n {\n $response = $this->runApp('POST', '/v1/products?password=' . $this->apiPassword, ['test']);\n\n $this->assertEquals(StatusCode::HTTP_METHOD_NOT_ALLOWED, $response->getStatusCode());\n $this->assertContains('Method not allowed', (string)$response->getBody());\n }", "private function setMethod()\n {\n $this->_requestMethod = $_SERVER['REQUEST_METHOD'];\n if (!in_array($this->_requestMethod, $this->_allowMethod)) {\n throw new Exception(\"Request method not allowed!\", 405);\n }\n }", "public function validateRequestMethod($supported_method) {\n // Http request method of the call.\n $call_request_method = $this->call_asset['method'];\n\n // Compare to what is set in the configuration page for http request\n // methods supported by this module.\n\n if (!in_array($call_request_method, $supported_method)) {\n // Method not supported.\n $response = [\n 'code' => 501, // Not Implemented.\n 'message' => 'Call: Unsupported request method.'\n ];\n TripalWebServiceResponse::errorResponse($response);\n }\n }", "public function getMethod()\n {\n $httpMethod = $this->serverAttributes()['REQUEST_METHOD'];\n\n if (!$httpMethod) {\n return false;\n }\n\n return $httpMethod;\n }", "public function testHttpMethodBasedRouting() {\n\t\tRouter::connect('/{:controller}/{:id:[0-9]+}', [\n\t\t\t'http:method' => 'GET', 'action' => 'view'\n\t\t]);\n\t\tRouter::connect('/{:controller}/{:id:[0-9]+}', [\n\t\t\t'http:method' => 'PUT', 'action' => 'edit'\n\t\t]);\n\n\t\t$request = new Request(['url' => '/posts/13', 'env' => [\n\t\t\t'REQUEST_METHOD' => 'GET'\n\t\t]]);\n\t\t$params = Router::process($request)->params;\n\t\t$expected = ['controller' => 'Posts', 'action' => 'view', 'id' => '13'];\n\t\t$this->assertEqual($expected, $params);\n\n\t\t$this->assertIdentical('/posts/13', Router::match($params));\n\n\t\t$request = new Request(['url' => '/posts/13', 'env' => [\n\t\t\t'REQUEST_METHOD' => 'PUT'\n\t\t]]);\n\t\t$params = Router::process($request)->params;\n\t\t$expected = ['controller' => 'Posts', 'action' => 'edit', 'id' => '13'];\n\t\t$this->assertEqual($expected, $params);\n\n\t\t$request = new Request(['url' => '/posts/13', 'env' => [\n\t\t\t'REQUEST_METHOD' => 'POST'\n\t\t]]);\n\t\t$params = Router::process($request)->params;\n\t\t$this->assertEmpty($params);\n\t}", "public function method( $is = null ) {\n\t\t$method = isset( $_SERVER['REQUEST_METHOD'] ) ? $_SERVER['REQUEST_METHOD'] : 'GET';\n\t\tif ( null !== $is ) {\n\t\t\treturn strcasecmp( $method, $is ) === 0;\n\t\t}\n\n\t\treturn $method;\n\t}", "public function testPutRequestShouldTriggerMethodNotAllowedError()\n\t{\n\t\t$this->request->setMethod('PUT');\n\t\t$this->dispatch('/api/event');\n\t\n\t\t$this->assertResponseCode(405);\n\t\t$this->assertQuery('error');\n\t}", "public function test_getMethod_returnsString()\n\t{\n\t\treturn $this->assertEquals(\n\t\t\t'POST', \n\t\t\t(new Post('http://example.com'))->getMethod()\n\t\t);\n\t}", "private function validateRequestMethod(string &$input): void\n {\n static $methods;\n\n if (!isset($methods)) {\n $methods = array(\n 'GET', 'POST', 'PUT', 'DELETE', 'HEAD'\n );\n }\n\n if (empty($input)) {\n throw new Exceptions\\InvalidArgumentException(\n \"No input method given.\"\n );\n }\n\n if (!in_array($input, $methods)) {\n throw new Exceptions\\InvalidArgumentException(\n \"${input} is not a valid HTTP method.\"\n );\n }\n\n $this->method = $input;\n }", "public function testHttpRequestMethodSetup()\n {\n $expected = array(\n 'OPTIONS' => HttpRequestMethod::OPTIONS(),\n 'GET' => HttpRequestMethod::GET(),\n 'HEAD' => HttpRequestMethod::HEAD(),\n 'POST' => HttpRequestMethod::POST(),\n 'PUT' => HttpRequestMethod::PUT(),\n 'DELETE' => HttpRequestMethod::DELETE(),\n 'TRACE' => HttpRequestMethod::TRACE(),\n 'CONNECT' => HttpRequestMethod::CONNECT(),\n );\n\n $this->assertSame($expected, HttpRequestMethod::members());\n }", "function isGetRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'GET' );\r\n}", "function ajan_is_get_request() {\n\treturn (bool) ( 'GET' === strtoupper( $_SERVER['REQUEST_METHOD'] ) );\n}", "function _getRequestMethod(){\n return $_SERVER['REQUEST_METHOD'];\n }", "public function getMethod()\n\t{\n\t\treturn strtoupper($this->_internal_request->get_normalized_http_method());\n\t}", "public function getMethod() {}", "public function getMethod() {}", "public function getMethod() {}", "public function getMethod() {}", "public function httpMethod()\n\t{\n\t\tif (!$this->_httpMethodString)\n\t\t{\n\t\t\t$this->_httpMethodString = strtolower($_SERVER['REQUEST_METHOD']);\n\t\t\t$this->_httpMethod = $this->getHttpMethodFromString($this->_httpMethodString);\n\t\t}\n\n\t\treturn $this->_httpMethod;\n\t}", "public function getMethod(): string {}", "private static function getMethodRequest(){\n return $_SERVER[\"REQUEST_METHOD\"];\n }", "public function testGetActionMethodForInvalidAction()\n {\n $application = new BasicTestApplication(FilePath::parse('/var/www/'));\n $request = new BasicTestRequest(Url::parse('http://www.domain.com/'), new Method('GET'));\n $response = new BasicTestResponse();\n $controller = new BasicTestController();\n $controller->processRequest($application, $request, $response, 'foo', []);\n\n self::assertNull($controller->getActionMethod());\n }", "public function getHttpMethod()\n {\n return $this->getAttribute('method');\n }", "public function getHttpMethod()\n {\n return 'POST';\n }", "public function getHttpMethod()\n {\n return 'POST';\n }", "public function getHttpMethod()\n {\n return 'POST';\n }", "public function setRequestMethod($method) {}", "public function requestMethod(){\n return strtolower($_SERVER['REQUEST_METHOD']);\n }", "public function testNewInstanceWithAllHttpMethods(string $method): void\n {\n $this->assertInstanceOf(Request::class, new Request(new Uri('http://127.0.0.1/'), $method));\n }", "public function testInvalidMethod($method)\n {\n $request = new Aspamia_Http_Request($method, '/test');\n }", "private function checkrequest()\n {\n // This method checks if there is user input, and returns the request_method if evaluated to be true\n if ($_SERVER['REQUEST_METHOD'] == \"POST\") {\n $this->request = \"post\";\n return true;\n } elseif ($_SERVER['REQUEST_METHOD'] == \"GET\") {\n $this->request = \"get\";\n return true;\n } else {\n $this->request = false;\n }\n }", "protected function validateRequestMethod()\n {\n $isValid = true;\n\n if ($this->controller instanceof Controller && $this->controller->shouldValidateAnnotation()) {\n $reader = new Reader(new Parser, new FileCache(A_STORAGE));\n $annotations = $reader->getMethodAnnotations(get_class($this->controller), $this->method);\n\n $methods = RequestMethod::methods();\n\n foreach ($methods as $method) {\n\n if (($annotations->get(strtolower($method)) || $annotations->get($method)) && $this->request->method != $method) {\n throw new \\Exception('Method Not Allowed', HttpCode::METHOD_NOT_ALLOWED);\n } else if (($annotations->get(strtolower($method)) || $annotations->get($method)) && $this->request->method == $method) {\n return true;\n }\n }\n }\n\n return $isValid;\n }", "public function getRequestMethod()\n\t{\n\t\t$method = $this->server->get('REQUEST_METHOD');\n\t\tif(in_array(strtoupper($method),$this->methods))\n\t\t{\n\t\t\treturn $method;\n\t\t}\n\t\treturn ;\n\t}", "public function method(){\n return $this->getServerVar('REQUEST_METHOD');\n }", "protected function __get_method()\n\t{\n\t\t$method = $this->env['REQUEST_METHOD'];\n\n\t\tif ($method == 'POST' && !empty($this->request_parameters['_method']))\n\t\t{\n\t\t\t$method = $this->request_parameters['_method'];\n\t\t}\n\n\t\t$method = strtolower($method);\n\n\t\tif (!in_array($method, self::$methods))\n\t\t{\n\t\t\tthrow new Exception('Unsupported request method: %method', array('%method' => $method), 400);\n\t\t}\n\n\t\treturn $method;\n\t}", "public function testCanSendRoute()\n {\n $this->assertEmpty([]);\n\n $routes = $this->app->getRoutes();\n\n foreach ($routes as $route) {\n if ($route->getName() == 'api.oauth') {\n $this->assertContains('POST', $route->getAllowedMethods());\n $this->assertEquals('/api/oauth', $route->getPath());\n }\n }\n }", "public static function isGet(){\n return self::isRequestMethod('GET');\n }", "public function isGet() {\n return $this->method == 'GET';\n }", "public function getHttpMethods()\r\n {\r\n return $this->methods;\r\n }", "public function getMethod()\n {\n return filter_input(INPUT_SERVER, 'REQUEST_METHOD');\n }", "private function isMethodValid(string $method)\n {\n return in_array($method, $this->httpMethods, true);\n }", "public function testSetGetMethod()\n {\n $oCurl = oxNew('oxCurl');\n $oCurl->setMethod('POST');\n\n $this->assertEquals('POST', $oCurl->getMethod());\n }", "public function testHttpRequestMethodAcceptAll()\n {\n $passedMethods = array();\n $handleHttpRequest = function (HttpRequestMethod $method, $url, $body) use (&$passedMethods) {\n $passedMethods[] = $method;\n };\n $handleHttpRequest(HttpRequestMethod::OPTIONS(), 'http://example.org/', null);\n $handleHttpRequest(HttpRequestMethod::GET(), 'http://example.org/', null);\n $handleHttpRequest(HttpRequestMethod::HEAD(), 'http://example.org/', null);\n $handleHttpRequest(HttpRequestMethod::POST(), 'http://example.org/', 'foo');\n $handleHttpRequest(HttpRequestMethod::PUT(), 'http://example.org/', 'foo');\n $handleHttpRequest(HttpRequestMethod::DELETE(), 'http://example.org/', null);\n $handleHttpRequest(HttpRequestMethod::TRACE(), 'http://example.org/', null);\n $handleHttpRequest(HttpRequestMethod::CONNECT(), 'http://example.org/', null);\n $expected = array(\n HttpRequestMethod::OPTIONS(),\n HttpRequestMethod::GET(),\n HttpRequestMethod::HEAD(),\n HttpRequestMethod::POST(),\n HttpRequestMethod::PUT(),\n HttpRequestMethod::DELETE(),\n HttpRequestMethod::TRACE(),\n HttpRequestMethod::CONNECT(),\n );\n\n $this->assertSame($expected, $passedMethods);\n }", "function invalidMethodRequest(){\n\n $return = array(\n 'status' => 405,\n 'message' => \"Method should be a post\"\n );\n\n http_response_code(405);\n\n //Send back response to client. \n print_r(json_encode($return));\n \n}", "public function processApi()\n {\n $func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['mode'])));\n if((int)method_exists($this,$func) > 0)\n {\n $this->$func();\n } \n else\n {\n $data = array('code' => \"404\", 'status' => \"failure\", \"msg\" => \"requested method not available\", \"data\" => array());\n $this->response($this->json($data)); \n }\n \n // If the method not exist with in this class, response would be \"Page not found\".\n }", "public function testDeleteRequestShouldTriggerMethodNotAllowedError()\n\t{\n\t\t$this->request->setMethod('DELETE');\n\t\t$this->dispatch('/api/event');\n\t\n\t\t$this->assertResponseCode(405);\n\t\t$this->assertQuery('error');\n\t}", "public function test_route_method_string() {\n\t\tregister_rest_route(\n\t\t\t'test-ns',\n\t\t\t'/test',\n\t\t\tarray(\n\t\t\t\t'methods' => 'GET',\n\t\t\t\t'callback' => '__return_null',\n\t\t\t\t'permission_callback' => '__return_true',\n\t\t\t)\n\t\t);\n\n\t\t$routes = $GLOBALS['wp_rest_server']->get_routes();\n\n\t\t$this->assertSame( $routes['/test-ns/test'][0]['methods'], array( 'GET' => true ) );\n\t}", "public function getAction()\n {\n Extra_ErrorREST::setInvalidHTTPMethod($this->getResponse());\n }", "public function testGetValue() : void {\n\t\t$this->assertEquals('GET', HttpMethod::Get->value);\n\t}" ]
[ "0.7410159", "0.7401536", "0.71777236", "0.7131715", "0.70755506", "0.7075163", "0.7066263", "0.70489657", "0.70327365", "0.69883686", "0.6987021", "0.69767505", "0.6929649", "0.6826258", "0.6817832", "0.68069065", "0.6795898", "0.67636484", "0.6742399", "0.6719282", "0.67025274", "0.6700166", "0.6697643", "0.6695726", "0.6695013", "0.66855496", "0.6682697", "0.6671706", "0.6638156", "0.6554461", "0.65523225", "0.6528756", "0.65258396", "0.6515527", "0.6514901", "0.6514901", "0.6514901", "0.6514901", "0.6514901", "0.6514901", "0.6514901", "0.6510599", "0.6469024", "0.6455265", "0.6449986", "0.6449986", "0.6447329", "0.64464873", "0.6446219", "0.6438768", "0.64386886", "0.6436992", "0.642451", "0.64235425", "0.6423455", "0.6415605", "0.6409745", "0.64012027", "0.6392477", "0.63883334", "0.6385525", "0.6375843", "0.6365708", "0.636332", "0.6363267", "0.63618344", "0.6355245", "0.6355245", "0.6355245", "0.6355245", "0.6349599", "0.63457036", "0.63444924", "0.633944", "0.63335425", "0.6327939", "0.6327939", "0.6327939", "0.6324948", "0.6323665", "0.6314036", "0.63125145", "0.6293906", "0.62901986", "0.62833023", "0.6281247", "0.62784255", "0.6265161", "0.62560123", "0.6253411", "0.62464803", "0.624568", "0.62437147", "0.62288266", "0.6225726", "0.62091106", "0.6206021", "0.6199965", "0.61958414", "0.6188797", "0.61876" ]
0.0
-1
Tests getting the port
public function testGetPort() { static::$_server = array( 'SERVER_PORT' => '80' ); $request = $this->createRequest(); $this->assertEquals(80, $request->getPort()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_getport_is_returning_the_correct_value(): void\n {\n $expected = 896;\n $actual = $this->secureRequest->getPort();\n $this->assertEquals($expected, $actual);\n }", "public function getPort() {}", "final public function getPort(): int {}", "protected function getConfiguredPort() {}", "public function getPort(): int\n {\n }", "public function getPort();", "public function getPort();", "public function getPort();", "public function getPort();", "public function getPort(): int;", "public function getPort():? int;", "protected function getConfiguredOrDefaultPort() {}", "public function port() : ?int;", "public function testWithPort()\n {\n $uri = $this->getUriForTest();\n $uriPort = $uri->withPort(4040);\n\n $this->assertEquals(null, $uri->getPort());\n $this->assertEquals(4040, $uriPort->getPort());\n }", "public function testStringPort()\n {\n $this->client->configure(array(\n 'port' => 'not-integer'\n ));\n }", "static public function getPort() {\n\t\treturn self::port;\n\t}", "public function testStringPort()\n {\n $this->client->configure([\n 'port' => 'not-integer',\n ]);\n }", "public function port($port);", "public function port()\n {\n }", "public function testPort0()\n {\n $this->client->configure(array(\n 'port' => 0\n ));\n\n $this->assertEquals($this->client->getPort(), 0);\n }", "public function testWithPortInvalid()\n {\n $uri = $this->getUriForTest();\n $uri->withPort(-1);\n }", "function is_port($port) {\n\tif (!is_numericint($port))\n\treturn false;\n\n\tif (($port < 1) || ($port > 65535))\n\treturn false;\n\telse\n\treturn true;\n}", "public function hasPort(){\n return $this->_has(12);\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort()\n {\n return $this->port;\n }", "public function getPort() {\n return @$this->attributes['port'];\n }", "protected function port()\n {\n // return env('APP_HTTP_PORT') != \"\" ? env('APP_HTTP_PORT') : $this->input->getOption('port');\n return env('TELSTAR_LOCAL_PORT') != \"\" ? env('TELSTAR_LOCAL_PORT') : $this->input->getOption('port');\n }", "public function getPort()\n {\n return $this->_port;\n }", "public function getPort()\n {\n return $this->_port;\n }", "public function getPort()\n {\n return (int)$this->port;\n }", "public function getPort()\r\n\t{\r\n\t\treturn $this->port;\r\n\t}", "public function getPort() {\n return $this->port;\n }", "public function getPort() {\n return $this->port;\n }", "public static function getPort()\n {\n return $_SERVER['SERVER_PORT'];\n }", "public function getPort(){\r\n return $this->Port;\r\n }", "public function getPort(): int {\n return $this->context->port;\n }", "static function Port ()\n\t\t{\n\t\t\tif (php_sapi_name() === \"cli\")\n\t\t\t\treturn NULL;\n\t\t\treturn isset ($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : \"\";\n\t\t}", "public function getPort()\n {\n return isset($this->port) ? $this->port : 0;\n }", "public function getPort()\n {\n return isset($this->port) ? $this->port : 0;\n }", "public function testNegativePort()\n {\n $this->client->configure(array(\n 'port' => -1\n ));\n }", "public function getPort()\n {\n return $this->getConfig('port');\n }", "public function getPort()\n {\n return isset($this->urlParts['port']) ? $this->urlParts['port'] : NULL;\n }", "public function getPort()\n\t{\n\t\treturn (int) $this->port;\n\t}", "public function getPort()\n {\n $port = $this->serverAttributes()['REMOTE_PORT'];\n\n if (!$port) {\n return false;\n }\n\n return $port;\n }", "private function getPort ()\n\t\t{\n\t\t\t$server_config = $this->config['server'];\n\t\t\t$config_data = file( $this->config['server'] );\n\t\t\t$i=0;\n\t\t\twhile ( $i < count ( $config_data ) ) {\n\t\t\t\tif(strstr ( $config_data [$i] , \"port\" ) ) { /* line of port in server.conf */\n\t\t\t\t\t$buffer = explode (\" \" , $config_data[$i] ) ;\n\t\t\t\t\tif ( count ( $buffer ) == 2 ) \n\t\t\t\t\t\t$this->result['data']['port'] = trim($buffer[1]);\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn;\n\t\t}", "public function getPort(): ?int {\n\t\treturn $this->port;\n\t}", "public function getPort()\n {\n if (null === $this->port) {\n $this->detectPort();\n }\n\n return $this->port;\n }", "public function getPort(): int {\n return (integer) $this->port;\n }", "public function getPort() : string\n {\n return $this->port;\n }", "public function GetPort() {\n\n return intval($this->GetRequestContext()->SERVER['SERVER_PORT']);\n }", "private function testDevServerConnection($port) {\n\t\t$connection = @fsockopen('127.0.0.1', $port, $errno, $errstr, 1);\n\n\t\tif (is_resource($connection)) {\n\t\t\tfclose($connection);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function getPort()\n {\n return isset($this->Port) ? $this->Port : null;\n }", "public function getPort(): int\n\t{\n\t\treturn $this->iPort;\n\t}", "static function Port()\n {\n return self::Variable('SERVER_PORT');\n }", "public function getPort() {\n return $this->getConfig('port', $this->defaults['port']);\n }", "public static function getPort() {\n\t if(!isset(self::$port)) {\n\t self::$port = isset($_SERVER['SERVER_PORT'])\n\t ? intval($_SERVER['SERVER_PORT'])\n\t : 80;\n\t }\n\t return self::$port;\n\t}", "public function getPort()\n {\n $value = $this->get(self::port);\n return $value === null ? (string)$value : $value;\n }", "protected function port()\n {\n return env( 'APP_HTTP_PORT' ) != \"\" ? env( 'APP_HTTP_PORT' ) : $this->input->getOption('port');\n }", "public function setPort($port);", "public function setPort($port);", "public function getPort()\n {\n return $this->wrapped->getPort();\n }", "function getServerPort() {\n\t\treturn $this->getParam(self::PARAM_SERVER_PORT);\n\t}", "public function getPort() {\n\n if (empty($this->uriParts['port'])) {\n return NULL;\n }\n else {\n if ($this->getScheme()) {\n if ($this->uriParts['port'] == Constants::STANDARD_PORTS[$this->getScheme()]) {\n return null;\n }\n }\n return (int) $this->uriParts['port'];\n }\n }", "public function testFromStringMissingPort(): void\n {\n $this->expectException(SocketException::class);\n $this->expectExceptionMessage('Missing port');\n\n InternetAddress::fromString('1.1.1.1');\n }", "public function assertPortIs( $port ) {\n\t\t$pattern = str_replace( '\\*', '.*', preg_quote( $port, '/' ) );\n\n\t\t$actual = (string) wp_parse_url( $this->driver->getCurrentURL(), PHP_URL_PORT ) ?? '';\n\n\t\tPHPUnit::assertThat(\n\t\t\t$actual,\n\t\t\tnew RegularExpression( '/^' . $pattern . '$/u' ),\n\t\t\t\"Actual port [{$actual}] does not equal expected port [{$pattern}].\"\n\t\t);\n\n\t\treturn $this;\n\t}", "public function getPort()\n {\n\n $scheme = $this->getScheme();\n if (empty($this->_port) || (\n (isset(self::$_defaultPorts[$scheme]) && $this->_port === self::$_defaultPorts[$scheme])\n )) {\n\n return null;\n }\n\n return $this->_port;\n }", "public function testLargePort()\n {\n $this->client->configure(array(\n 'port' => 65536\n ));\n }", "public function getProxyPort();", "public function testGetPortWithSchemeAndDefaultPort()\n {\n $uriHttp = new Uri('http', 'www.example.com', 80);\n $uriHttps = new Uri('https', 'www.example.com', 443);\n\n $this->assertNull($uriHttp->getPort());\n $this->assertNull($uriHttps->getPort());\n }", "function getPortFromURL($url){\n\t$port = getComponentFromURL($url, \"port\");\n\tif($port !== false){\n\t\treturn $port;\n\t}\n\n\t//port is not found in URL so lets return the default port 80 for http and 443 for https\n\t$scheme = getComponentFromURL($url, \"scheme\");\n\tif($scheme == \"http\"){\n\t\treturn \"80\";\n\t}\n\telse if($scheme == \"https\"){\n\t\treturn \"443\";\n\t}\n\n\t_log(\"getPortFromURL: unsupported URL scheme\");\n\treturn false;\n}", "public function testGetSelfHostWithPort()\n {\n $original = $_SERVER;\n\n Configuration::loadFromArray([\n 'baseurlpath' => '',\n ], '[ARRAY]', 'simplesaml');\n\n // standard port for HTTP\n $_SERVER['SERVER_PORT'] = '80';\n $this->assertEquals('localhost', HTTP::getSelfHostWithNonStandardPort());\n\n // non-standard port\n $_SERVER['SERVER_PORT'] = '3030';\n $this->assertEquals('localhost:3030', HTTP::getSelfHostWithNonStandardPort());\n\n // standard port for HTTPS\n $_SERVER['HTTPS'] = 'on';\n $_SERVER['SERVER_PORT'] = '443';\n $this->assertEquals('localhost', HTTP::getSelfHostWithNonStandardPort());\n\n $_SERVER = $original;\n }", "public function getPort()\n {\n if (is_null($this->_port)) {\n $this->_port = !self::getIsSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int) $_SERVER['SERVER_PORT'] : 80;\n }\n\n return $this->_port;\n }", "public static function isPortValid($port)\n {\n return true;\n }", "public function testLargePort()\n {\n $this->client->configure([\n 'port' => 65536,\n ]);\n }", "public function setPort($port)\r\n\t{\r\n\t\tif (!empty($port))\r\n\t\t{\r\n\t\t\t$this->port = $port;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function validate_port($port)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $firewall = new Firewall();\n\n return $firewall->validate_port($port);\n }", "public function port() {\n return $this->db['port'];\n }", "public static function getPort()\n {\n if (!isset(self::$_data[self::KEY_PORT]))\n {\n $_port = $_SERVER[\"SERVER_PORT\"];\n if (isset($_SERVER[\"HTTP_X_FORWARDED_PORT\"]) && strlen($_SERVER[\"HTTP_X_FORWARDED_PORT\"]) > 0)\n {\n $_port = $_SERVER[\"HTTP_X_FORWARDED_PORT\"];\n }\n self::setPort($_port);\n }\n\n return self::$_data[self::KEY_PORT];\n }", "protected function getDefaultPort(): string\n {\n return (string)rand(3000, 9999);\n }", "protected function set_port($port)\n {\n }", "private function findAppPort(): int\n {\n $result = $this->appPort;\n\n if (!$result) {\n for ($i = self::MIN_APP_PORT; $i <= self::MAX_APP_PORT; $i++) {\n try {\n $url = 'http://127.0.0.1:' . $i;\n $body = $this->getCommandString('psTest');\n $response = $this->sendHttpPostRequest($url, $body);\n if ($response->status === 202) {\n $result = $i;\n $this->appPort = $result;\n $this->appVer = '1.10';\n try {\n $this->appVer = $response->responseJson['version'];\n } catch (\\Throwable $e) {\n echo 'Exception: ' . $e->getMessage() . PHP_EOL;\n }\n break;\n }\n } catch (\\Throwable $e) {\n echo 'Exception: ' . $e->getMessage() . PHP_EOL;\n }\n }\n } else {\n try {\n $url = 'http://127.0.0.1:' . $result;\n $body = $this->getCommandString('psTest');\n $response = $this->sendHttpPostRequest($url, $body);\n if ($response->status === 202) {\n $this->appVer = '1.10';\n try {\n $this->appVer = $response->responseJson['version'];\n } catch (\\Throwable $e) {\n echo 'Exception: ' . $e->getMessage() . PHP_EOL;\n }\n } else {\n $this->appPort = 0;\n $this->appVer = 0;\n $result = $this->findAppPort();\n }\n } catch (\\Throwable $e) {\n echo 'Exception: ' . $e->getMessage() . PHP_EOL;\n $this->appPort = 0;\n $this->appVer = 0;\n $result = $this->findAppPort();\n }\n }\n\n return $result;\n }", "protected function hasStandardPort()\n {\n return (!$this->port || $this->port === 80 || $this->port === 443);\n }", "public function set_port($port)\n {\n }", "public static function getSocketName(string &$address, int &$port): bool {}", "public function bind(string $address, int $port): bool {}", "public function testConstructorInvalidPorts($port)\n {\n new Sopha_Db('mydb', 'localhost', $port);\n }", "public function testFromStringInvalidPort(): void\n {\n $this->expectException(SocketException::class);\n $this->expectExceptionMessage('Invalid address');\n\n InternetAddress::fromString('1.1.1.1:-1');\n }", "public function hasServerPort()\n {\n return $this->server_port !== null;\n }", "public function getRemotePort()\n {\n return $this->server['REMOTE_PORT'];\n }", "public function getPortIdentifier()\n {\n return $this->port;\n }", "public function getServerPort()\n {\n $serverPort = $this->serverAttributes()['SERVER_PORT'];\n\n if (!$serverPort) {\n return false;\n }\n\n return $serverPort;\n }" ]
[ "0.7995592", "0.7878456", "0.76549435", "0.75793535", "0.7575332", "0.7500126", "0.7500126", "0.7500126", "0.7500126", "0.74999326", "0.74018097", "0.73659337", "0.7318871", "0.72774947", "0.72529423", "0.7196392", "0.7187571", "0.710005", "0.7051977", "0.7046147", "0.6994843", "0.6898399", "0.6887895", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.68851066", "0.6857853", "0.6857271", "0.6848765", "0.6848765", "0.68135816", "0.6808136", "0.67725134", "0.67725134", "0.6760239", "0.67469925", "0.6743391", "0.67314464", "0.67301327", "0.67301327", "0.671582", "0.6684574", "0.66713554", "0.66639477", "0.66468567", "0.6619802", "0.66138285", "0.65985674", "0.65970117", "0.6592063", "0.65894395", "0.6586652", "0.65858865", "0.65699303", "0.65554065", "0.6533516", "0.65023255", "0.64830786", "0.64663965", "0.64324456", "0.64324456", "0.6426984", "0.6373166", "0.63601446", "0.6359317", "0.6348852", "0.6340429", "0.6338238", "0.6325262", "0.63140726", "0.63040036", "0.62849456", "0.6284351", "0.62795854", "0.62568307", "0.6219308", "0.6199869", "0.6191342", "0.61805844", "0.6167113", "0.61602813", "0.6156428", "0.6117506", "0.6109408", "0.60808104", "0.60345817", "0.6032543", "0.60258186", "0.6021802", "0.6019481", "0.60184044", "0.6012339" ]
0.8006574
0
Tests getting the host
public function testGetHost() { static::$_server = array( 'SERVER_NAME' => 'nimbl.es' ); $request = $this->createRequest(); $this->assertEquals('nimbl.es', $request->getHost()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_gethost_is_returning_the_correct_value(): void\n {\n $expected = 'localhost';\n $actual = $this->secureRequest->getHost();\n $this->assertEquals($expected, $actual);\n }", "public function getHost() {}", "public function getHost() {}", "final public function getHost(): string {}", "public function getHost();", "public function getHost();", "public function getHost();", "public function getHost();", "public function getHost();", "public function getHost();", "public function getHost()\n {\n }", "public function getHost(): string;", "public function getHost(): string\n {\n }", "public function getHost():? string;", "public function testGetHost_setHost_host()\n {\n $sHost = 'someHost';\n\n $oCurl = oxNew('oxCurl');\n $oCurl->setHost($sHost);\n\n $this->assertEquals($sHost, $oCurl->getHost(), 'Check if getter returns what is set in setter.');\n }", "public function host() : string;", "public function host($host);", "public function testWithHost()\n {\n $uri = $this->getUriForTest();\n $uriWithHost = $uri->withHost('www.foo.bar');\n\n $this->assertEquals('www.example.com', $uri->getHost());\n $this->assertEquals('www.foo.bar', $uriWithHost->getHost());\n }", "public function get_host(): ?string;", "public function testHostIsSetCorrectlyFromTheHeaders()\n {\n $server = ['HTTP_HOST' => 'joind.in'];\n $request = new Request($this->config, $server);\n\n $this->assertEquals('joind.in', $request->host);\n $this->assertEquals('joind.in', $request->getHost());\n }", "public function testGetHost_notSet_null()\n {\n $oCurl = oxNew('oxCurl');\n $this->assertNull($oCurl->getHost(), 'Default value must be null.');\n }", "public function testGetHost()\n {\n $hostMock = $this->getMockBuilder(Host::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $workspace = new Workspace($hostMock);\n\n $this->assertSame($hostMock, $workspace->getHost());\n }", "public function host();", "public function shouldCheckHttpHost()\n {\n return !Director::is_cli() && isset($_SERVER['HTTP_HOST']);\n }", "public static function getHost()\n {\n return self::$__host;\n }", "public function getHost(): ?string;", "protected function getConfiguredHost() {}", "protected function getHostFromUri() {}", "public function testHostCanBeSetWithSetHost()\n {\n $host = uniqid() . '.com';\n $request = new Request($this->config, []);\n $request->setHost($host);\n\n $this->assertEquals($host, $request->getHost());\n }", "public function getHost(): string\r\n {\r\n return $this->host;\r\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost()\n {\n return $this->host;\n }", "public function getHost() {\n \n\n\t\treturn $_SERVER[\"HTTP_HOST\"];\n }", "public function getHost()\n\t{\n\t\t$host = null;\n\n\t\tif ($this->isUsingTrustedProxy() && $this->hasHeader(self::$trustedHeaderNames['client-host'])) {\n\t\t\t$hosts = explode(',', $this->getHeaderLine(self::$trustedHeaderNames['client-host']));\n\t\t\t$host = trim(end($hosts));\n\t\t}\n\n\t\tif (!$host) {\n\t\t\t$host = $this->getHeaderLine('HOST');\n\t\t}\n\n\t\tif (!$host) {\n\t\t\t$host = $this->getServerParam('SERVER_NAME');\n\t\t}\n\n\t\tif (!$host) {\n\t\t\t$host = $this->getServerParam('SERVER_ADDR');\n\t\t}\n\n\t\t// Remove the port number\n\t\t$host = strtolower(preg_replace(\"/:\\d+$/\", '', trim($host)));\n\t\t\n\t\t// Check for forbidden characters\n\t\t// Credit: Symfony HTTPFoundation\n\t\tif (!empty($host) && !empty(preg_replace(\"/(?:^\\[)?[a-zA-Z0-9-:\\]_]+\\.?/\", '', $host))) {\n\t\t\tthrow new InvalidArgumentException(\"Invalid host \\\"$host\\\"\");\n\t\t}\n\n\t\treturn $host;\n\t}", "public function getHost()\n {\n return $this->_host;\n }", "protected function getHttpHost()\r\n {\r\n return isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'cli';\r\n }", "public function getHost() {\r\n return (is_null($this->host)) ? null : $this->host;\r\n }", "public static function getHost() {\n $port = $_SERVER['SERVER_PORT'];\n $s = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 's' : '';\n $p = (($s && $port == \"443\") || (!$s && $port == \"80\")) ? '' : \":$port\";\n $host = \"http$s://\" . $_SERVER['HTTP_HOST'] . $p;\n OpenM_Log::debug(\"host: $host\", __CLASS__, __METHOD__, __LINE__);\n return $host;\n }", "public function getSiteHost();", "public function getHost() {\n\n if (isset($this->host)) {\n return $this->host;\n }\n\n return 'localhost';\n }", "protected function isHostConfigured() {}", "public function getHost()\n {\n return $this->get('host');\n }", "protected function host()\n {\n // return env('APP_HTTP_HOST') != \"\" ? env('APP_HTTP_HOST') : $this->input->getOption('host');\n return env('TELSTAR_LOCAL_HOST') != \"\" ? env('TELSTAR_LOCAL_HOST') : $this->input->getOption('host');\n }", "public function getHost(): string {\n return $this->host;\n }", "public function getHost() {\n return $this->host;\n }", "public function getHost() {\n return $this->host;\n }", "public static function getHost() {\n\t\tif(!isset(self::$host)) {\n\t\t\tif(self::$trust && isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {\n \tself::$host = $_SERVER['HTTP_X_FORWARDED_HOST'];\n \t} else if(isset($_SERVER['HTTP_HOST'])) {\n \tself::$host = $_SERVER['HTTP_HOST'];\n \t} else if(isset($_SERVER['SERVER_NAME'])) {\n \tself::$host = $_SERVER['SERVER_NAME'];\n \t}\n\t }\n\t return self::$host;\n\t}", "public function host()\n {\n return $this->host;\n }", "public static function host() {\n\t\t$host = gethostbyaddr(self::ip());\n\t\treturn ($host == '') ? null : $host;\n\t}", "public function getHost()\n {\n return isset($this->host) ? $this->host : '';\n }", "function gethostname(): string|false {}", "public function host()\n\t{\n\t\treturn isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['SERVER_ADDR'];\n\t}", "public function getHost()\n {\n $host = $this->serverAttributes()['HTTP_HOST'];\n\n if (!$host) {\n return false;\n }\n\n return $host;\n }", "public function getHost()\n {\n return $this->getConfig('host');\n }", "protected function getHost() {\n\t\treturn ($this->router->getParam('HTTPS') ? 'https' : 'http') . '://' . $this->router->getParam('HTTP_HOST');\n\t}", "public function host() {\n\t\treturn $this->getHeader('Host');\n\t}", "private function getHost()\n {\n if(getenv('APP_ENV') === 'local') {\n return 'http://platform.dev';\n } elseif(getenv('APP_ENV') === 'staging') {\n return 'http://platform.sourc.in';\n } else {\n return 'http://platform.sourceeasy.com';\n }\n }", "function getHost() {\r\n\r\n $scheme = (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != \"on\")\r\n ? 'http'\r\n : 'https';\r\n $url = $scheme . '://' . $_SERVER['HTTP_HOST'];\r\n\r\n return $url;\r\n\r\n }", "public function getHost() {\n return $this->getConfig('host', $this->defaults['host']);\n }", "function database_get_host_info()\n {\n\t return ( function_exists('mysql_get_host_info') ? mysql_get_host_info($this->database_connection) : FALSE );\n\t}", "public static function getHttpHost() {\n\t\treturn self::$httpHost;\n\t}", "public function GetHost() {\n\n return $this->Host;\n }", "function atkHost()\n{\n\t$atkHost = $_SERVER[\"HTTP_HOST\"]!=\"\"?$_SERVER[\"HTTP_HOST\"]:$_SERVER[\"SERVER_NAME\"];\n\n\t// if we're running on our cluster environment\n\t// we seem to have a specific portid within the HTTP_HOST\n\t// If so, remove it from the hostname\n\n\t$dummy = explode(\":\", $atkHost);\n\treturn $dummy[0];\n}", "protected function detectHost()\n {\n if ($this->setHostFromProxy()) {\n return;\n }\n\n if (isset($_SERVER['HTTP_HOST']) && ! empty($_SERVER['HTTP_HOST'])) {\n // Detect if the port is set in SERVER_PORT and included in HTTP_HOST\n if (\n isset($_SERVER['SERVER_PORT'])\n && preg_match('/^(?P<host>.*?):(?P<port>\\d+)$/', $_SERVER['HTTP_HOST'], $matches)\n ) {\n // If they are the same, set the host to just the hostname\n // portion of the Host header.\n if ((int) $matches['port'] === (int) $_SERVER['SERVER_PORT']) {\n $this->setHost($matches['host']);\n return;\n }\n\n // At this point, we have a SERVER_PORT that differs from the\n // Host header, indicating we likely have a port-forwarding\n // situation. As such, we'll set the host and port from the\n // matched values.\n $this->setPort((int) $matches['port']);\n $this->setHost($matches['host']);\n return;\n }\n\n $this->setHost($_SERVER['HTTP_HOST']);\n\n return;\n }\n\n if (! isset($_SERVER['SERVER_NAME']) || ! isset($_SERVER['SERVER_PORT'])) {\n return;\n }\n\n $name = $_SERVER['SERVER_NAME'];\n $this->setHost($name);\n }", "public function getHost(): string\n {\n return (string) $this->host;\n }", "function set_host($value)\r\n\t\t{\r\n\t\t\treturn $this->host = $value;\r\n\t\t}", "function ticketbud_get_host($host) {\n\t// if not, return an IP that was known to be accessible at the last check.\n\tif ( ticketbud_server_connectivity_ok() ) {\n\t\treturn $host;\n\t} else {\n\t\t$ips = ticketbud_get_server_connectivity();\n\t\t// a firewall may be blocking access to some Ticketbud IPs\n\t\tif ( count($ips) > 0 && count(array_filter($ips)) < count($ips) ) {\n\t\t\t// use DNS to get current IPs, but exclude any known to be unreachable\n\t\t\t$dns = (array)gethostbynamel( rtrim($host, '.') . '.' );\n\t\t\t$dns = array_filter($dns);\n\t\t\tforeach ( $dns as $ip ) {\n\t\t\t\tif ( array_key_exists( $ip, $ips ) && empty( $ips[$ip] ) )\n\t\t\t\t\tunset($dns[$ip]);\n\t\t\t}\n\t\t\t// return a random IP from those available\n\t\t\tif ( count($dns) )\n\t\t\t\treturn $dns[ array_rand($dns) ];\n\t\t\t\n\t\t}\n\t}\n\t// if all else fails try the host name\n\treturn $host;\n}", "public function getHost() {\n\t\t\t# Default StyleSheet\n\t\t\tif (! $_REQUEST[\"stylesheet\"]) $_REQUEST[\"stylesheet\"] = 'network.host.xsl';\n\t\t\t$response = new \\HTTP\\Response();\n\t\n\t\t\t# Initiate Host Object\n\t\t\t$host = new \\Network\\Host();\n\t\n\t\t\tif (preg_match('/^([\\w\\-]+)\\.(.*)$/',$_REQUEST['name'],$matches)) {\n\t\t\t\t$_REQUEST['name'] = $matches[1];\n\t\t\t\t$_REQUEST['domain_name'] = $matches[2];\n\t\t\t}\n\t\t\tif (! isset($_REQUEST['domain_name'])) $this->error('domain name or fully qualified host name required');\n\t\t\tif (! isset($_REQUEST['name'])) $this->error('name required');\n\t\t\t$domain = new \\Network\\Domain();\n\t\t\t$domain->get($_REQUEST['domain_name']);\n\t\t\tif (! $domain->id) $this->error('Domain not found');\n\t\n\t\t\t# Get Host\n\t\t\t$host->get($domain->id,$_REQUEST['name']);\n\t\n\t\t\t# Error Handling\n\t\t\tif ($host->error()) $this->error($host->error());\n\t\t\telseif ($host->id) {\n\t\t\t\t$response->host = $host;\n\t\t\t\t$response->success = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$response->success = 0;\n\t\t\t\t$response->error = \"Host not found\";\n\t\t\t}\n\t\n\t\t\tapi_log('network',$_REQUEST,$response);\n\t\n\t\t\t# Send Response\n\t\t\tprint $this->formatOutput($response);\n\t\t}", "public function getHost()\n {\n return $this->server['HTTP_HOST'];\n }", "public function getHost(): string {\n return $this->context->host;\n }", "public function LookupPing($host) {\n\t\treturn false;\n\t}", "public function assertHostIs( $host ) {\n\t\t$pattern = str_replace( '\\*', '.*', preg_quote( $host, '/' ) );\n\n\t\t$actual = wp_parse_url( $this->driver->getCurrentURL(), PHP_URL_HOST ) ?? '';\n\n\t\tPHPUnit::assertThat(\n\t\t\t$actual,\n\t\t\tnew RegularExpression( '/^' . $pattern . '$/u' ),\n\t\t\t\"Actual host [{$actual}] does not equal expected host [{$pattern}].\"\n\t\t);\n\n\t\treturn $this;\n\t}", "public function host_exist() {\n return D( 'User/Host' )->host_exist_verifition( array( 'usr_login_id' => get_session_id() ) );\n }", "public function testGetDomain()\n {\n $this->assertEquals('www.maintainable.com', $this->_req->getDomain());\n }", "public function hostname() {\n $host = $this->client(\"origin\")?? $this->client(\"host\")?? $this->uri(\"host\");\n $host = parse_url($host);\n\n return $host[\"host\"]?? $host[\"path\"];\n }", "public function getHost()\n {\n return $this->wrapped->getHost();\n }", "public function getAppHost(): string;", "public function getVhost(): string\n {\n }", "protected function ResolveHost() {\n\n $Server= $this->GetOption('RequestContext')->SERVER;\n $DetectedHost= $Server['HTTP_HOST'];\n $this->Host= $DetectedHost;\n }", "public function getHost(): string\n {\n return $this->configuration[ConfigurationInterface::HOST];\n }", "public function testMissingParameterAddCheckHost() {\n $check = $this->default_check;\n $check['host'] = null;\n $this->pingdom->addCheck($check);\n }", "function gethostbyname($hostname)\n{\n}", "public function host()\n {\n return $this->globals->server()[\"HTTP_HOST\"];\n }", "function testipaddress ($nametotest) {\n $ipaddress = $nametotest;\n $ipaddress = gethostbyname($nametotest);\n if ($ipaddress == $nametotest) {\n echo \"No ip address for host<br>\";\n }\n else {\n echo \"good hostname, $nametotest ipaddress = $ipaddress<br>\";\n }\n}", "public function user_host()\n {\n return $this->server('HTTP_HOST');\n }", "public function checkisOnCurrentHostInvalidHosts() {}", "protected function host()\n {\n return env( 'APP_HTTP_HOST' ) != \"\" ? env( 'APP_HTTP_HOST' ) : $this->input->getOption('host');\n }", "public function getHost() {\n\t\treturn $this->netxHostname;\n\t}", "public function getHost()\n {\n return isset($this->urlParts['host']) ? $this->urlParts['host'] : NULL;\n }", "public function withHost($host)\n {\n }", "public function testEnvironmentForSocial()\n {\n $hostApi = $this->app['config']['hosts.api'];\n $hostApp = $this->app['config']['hosts.app'];\n\n $this->assertNotNull($hostApi);\n $this->assertStringStartsWith('http', $hostApi);\n $this->assertStringEndsNotWith('/', $hostApi);\n $this->assertNotNull($hostApp);\n $this->assertStringStartsWith('http', $hostApp);\n $this->assertStringEndsNotWith('/', $hostApp);\n }", "public function getHost()\n {\n\n if (empty($this->_host))\n return '';\n\n return $this->_host;\n }" ]
[ "0.7970635", "0.78280675", "0.78280675", "0.76161706", "0.76155096", "0.76155096", "0.76155096", "0.76155096", "0.76155096", "0.76155096", "0.75386465", "0.7440316", "0.7372886", "0.72920686", "0.72354496", "0.7111182", "0.70864993", "0.7047357", "0.7004821", "0.69461167", "0.69397885", "0.69142586", "0.6891814", "0.68769854", "0.6866954", "0.6851431", "0.67965794", "0.6781947", "0.6780332", "0.67671305", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6735881", "0.6716983", "0.67131275", "0.66915095", "0.66866225", "0.6685488", "0.6683269", "0.6679763", "0.6678161", "0.6670737", "0.66647017", "0.6640768", "0.6622398", "0.6594798", "0.6594798", "0.65729266", "0.6562048", "0.6553014", "0.6537018", "0.6516787", "0.6508314", "0.6502964", "0.6500947", "0.64979804", "0.6482556", "0.6478804", "0.6473054", "0.64662224", "0.6464979", "0.64613175", "0.6441433", "0.64369315", "0.6431814", "0.6422901", "0.6409198", "0.6408634", "0.6396424", "0.63636416", "0.6362986", "0.6350827", "0.6338263", "0.6327492", "0.63185155", "0.6317118", "0.63142365", "0.630362", "0.62972474", "0.62869495", "0.62668633", "0.6260891", "0.6257182", "0.6245743", "0.6241725", "0.6238739", "0.62348515", "0.6234347", "0.62316227", "0.6225084", "0.6207495", "0.6202094", "0.61935306" ]
0.77891123
3
Tests reading headers from a request
public function testGetHeader($name, $value) { $serverName = 'HTTP_' . strtoupper(str_replace('-', '_', $name)); static::$_server = array( $serverName => $value, ); $request = $this->createRequest(); $this->assertInstanceOf('Nimbles\Http\Header\Collection', $request->getHeader()); $this->assertInstanceOf('Nimbles\Http\Header\Collection', $request->header); $this->assertInstanceOf('Nimbles\Http\Header', $request->getHeader($name)); $this->assertEquals($name . ': ' . $value, (string) $request->getHeader($name)); $this->assertInstanceOf('Nimbles\Http\Header', $request->header->getHeader($name)); $this->assertEquals($name . ': ' . $value, (string) $request->header->getHeader($name)); $this->assertInstanceOf('Nimbles\Http\Header', $request->header->$name); $this->assertEquals($name . ': ' . $value, (string) $request->header->$name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testHttpRequestHeader()\n {\n $client = new HttpClient();\n $headers = [\n 'foo1' => 'bar1',\n 'foo2' => 'bar2',\n ];\n $response = $client->send(\n HttpRequestMethod::GET,\n 'https://postman-echo.com/headers',\n '',\n $headers\n );\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertEquals('OK', $response->getReasonPhrase());\n $responseBody = $response->getBody();\n $responseBodyHeaders = $responseBody['headers'];\n foreach ($headers as $expectedHeaderName => $expectedHeaderValue) {\n $this->assertArrayHasKey($expectedHeaderName, $responseBodyHeaders);\n $this->assertEquals($expectedHeaderValue, $responseBodyHeaders[$expectedHeaderName]);\n }\n $this->assertNotEmpty($response->getHeaders());\n }", "public static function getRequestHeaders() {}", "public function testGetHttpRequestHeaders(): void\n {\n // setup\n $requestParams = $this->getRequestParamsMock();\n\n // test body\n /** @var string $param */\n $param = $requestParams->getParam('unexisting-param', 'default-value');\n\n // assertions\n $this->assertEquals('default-value', $param, 'Default value must be returned but it was not');\n }", "public function getRequestHeaders();", "public function testAcceptsHeadersAreParsedCorrectly()\n {\n $server = [\n 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n ];\n $request = new Request($this->config, $server);\n\n $this->assertFalse($request->accepts('image/png'));\n $this->assertTrue($request->accepts('text/html'));\n $this->assertTrue($request->accepts('application/xhtml+xml'));\n $this->assertTrue($request->accepts('application/xml'));\n $this->assertTrue($request->accepts('*/*'));\n }", "public function testHeader()\n {\n $this->header('header', 'stub');\n $this->header('other', 'stub');\n\n $this->assertEquals($this->headers, ['header' => 'stub', 'other' => 'stub']);\n }", "abstract public function getHeaders();", "public function testHttpResponseHeader()\n {\n $client = new HttpClient();\n $response = $client->send(\n HttpRequestMethod::GET,\n 'https://postman-echo.com/response-headers?foo1=bar1&foo2=bar2',\n );\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertEquals('OK', $response->getReasonPhrase());\n $this->assertNotEmpty($response->getBody());\n $responseHeaders = $response->getHeaders();\n foreach (\n [\n 'foo1' => 'bar1',\n 'foo2' => 'bar2',\n ] as $expectedHeaderName => $expectedHeaderValue\n ) {\n $this->assertArrayHasKey($expectedHeaderName, $responseHeaders);\n $this->assertEquals($expectedHeaderValue, $responseHeaders[$expectedHeaderName]);\n }\n }", "public function getHeaders() {}", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "#[Pure]\nfunction http_get_request_headers() {}", "public abstract function getHeaders();", "function getResponseHeaders();", "public function getHeaders ();", "private function readHeaders() {\n $headers = $this->status->getHeaders();\n\n foreach ($headers as $key => $value) {\n switch ($key) {\n case \"Location\":\n $this->response['location'] = $value[0];\n break;\n\n case \"Content-Type\":\n $this->response['content_type'] = $value[0];\n break;\n\n case \"Content-Length\":\n $this->response['content_length'] = $value[0];\n break;\n\n default:\n break;\n }\n }\n }", "public function testAssertHeaderContains(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withHeader('Etag', 'abc123');\n\n $this->assertHeaderContains('Etag', 'abc');\n }", "public function getResponseHeaders();", "public function testGetParameterFromHeader(): void\n {\n // setup\n Layer::setAllHeaders([\n 'Custom-Header' => 'header value'\n ]);\n\n $requestParams = $this->getRequestParamsMock();\n\n // test body\n /** @var string $param */\n $param = $requestParams->getParam('Custom-Header');\n\n // assertions\n $this->assertEquals('header value', $param, 'Header value must be fetched but it was not');\n }", "public function getHeaders()\n {\n }", "public function getHeaders()\n {\n }", "function testCustomHeaders() {\n\t$config = getConfig();\n\t$root = getRootPath();\n\t\n\t// Get the test page.\n\t$http = new \\AutoHttp\\Http($config);\n\t$page = $http->getPage($root .'/test/pages/http/customheaders.php', array('X-HttpTestHeader: clienttestval'));\n\t\n\t// Make sure our custom header was sent.\n\tif (strpos($page['body'], 'Custom header detected!') === false)\n\t\treturn 'Custom header wasn\\'t sent.';\n\t\n\treturn true;\n}", "public function testSetsCorrectAuthenticationHeader()\n {\n /** @var \\Koren\\ErplyBooks\\Resource\\Invoices $invoicesResource */\n $invoicesResource = $this->client->Invoices();\n\n $request = new Request('GET', $invoicesResource->getEndpointUrl());\n\n $request = $this->client->authenticate($request);\n $this->assertInstanceOf(\n RequestInterface::class,\n $request\n );\n\n $this->assertTrue(\n $request->hasHeader('Accept')\n );\n\n $this->assertTrue(\n $request->hasHeader('Content-Type')\n );\n\n $this->assertEquals(\n $request->getHeader('Accept')[0],\n 'application/json'\n );\n\n $this->assertEquals(\n $request->getHeader('Content-Type')[0],\n 'application/json'\n );\n }", "public function testHeader() {\n $response = new Response();\n $key = \"This is the test key\";\n $value = \"And this is the test value\";\n $response->setHeader($key, $value);\n $this->assertEquals($value, $response->header($key));\n }", "public function testHttpResponseHeadersHas(UnitTester $I)\n {\n $headers = new Headers();\n\n $headers->set('Content-Type', 'text/html');\n\n $I->assertTrue(\n $headers->has('Content-Type')\n );\n\n $I->assertFalse(\n $headers->has('unknown-header')\n );\n }", "public function getHeaderValue();", "public function testParsingAuthorizationHeader() {\n\t\t$signer = new Auth_OAuth_Signer();\n\n\t\t$auth_header = 'OAuth realm=\"http://photos.example.net/\", oauth_version=\"1.0\", oauth_consumer_key=\"dpf43f3'\n\t\t\t. 'p2l4k3l03\", oauth_token=\"nnch734d00sl2jdk\", oauth_timestamp=\"1191242096\", oauth_nonce=\"kllo9940pd93'\n\t\t\t. '33jh\", oauth_signature_method=\"PLAINTEXT\", oauth_signature=\"kd94hf93k423kf44%26pfkkdhi9sl3r4s00\"';\n\t\t$params = array('file'=>'vacation.jpg', 'size'=>'original');\n\t\tself::build_request('GET', 'http://photos.example.net/photos', $params, $auth_header);\n\t\t$request = Auth_OAuth_RequestImpl::fromRequest();\n\n\t\t$this->assertEquals('http://photos.example.net/', $request->getRealm());\n\t\t$this->assertEquals('1.0', $request->getVersion());\n\t\t$this->assertEquals('dpf43f3p2l4k3l03', $request->getConsumerKey());\n\t\t$this->assertEquals('nnch734d00sl2jdk', $request->getToken());\n\t\t$this->assertEquals('1191242096', $request->getTimestamp());\n\t\t$this->assertEquals('kllo9940pd9333jh', $request->getNonce());\n\t\t$this->assertEquals('PLAINTEXT', $request->getSignatureMethod());\n\t\t$this->assertEquals('kd94hf93k423kf44&pfkkdhi9sl3r4s00', $request->getSignature());\n\t}", "public function testAssertHeader(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withHeader('Etag', 'abc123');\n\n $this->assertHeader('Etag', 'abc123');\n }", "public function get_headers()\n {\n }", "public function get_headers()\n {\n }", "public function get_headers()\n {\n }", "public function testHostIsSetCorrectlyFromTheHeaders()\n {\n $server = ['HTTP_HOST' => 'joind.in'];\n $request = new Request($this->config, $server);\n\n $this->assertEquals('joind.in', $request->host);\n $this->assertEquals('joind.in', $request->getHost());\n }", "function read_header($curl, $string) {\n print \"Received header: $string\\n\\n\";\n return strlen($string);\n}", "protected function _parseHeader() {}", "public function testNetworkInterceptor(): void\n {\n $this->givenNetworkInterceptor(new RemoveResponseHeader('foo'));\n $this->givenNetworkInterceptor(new SetResponseHeader('foo', 'bar'));\n\n $request = new Request('http://example.org/');\n\n $this->whenRequestIsExecuted($request);\n\n $this->thenRequestDoesNotHaveHeader('foo');\n $this->thenResponseDoesNotHaveHeader('foo');\n }", "public function testInvalidHeaderName($header)\n {\n $request = new Aspamia_Http_Request('GET', '/');\n $request->setHeader($header);\n }", "#[Pure]\nfunction http_match_request_header($header, $value, $match_case = null) {}", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function testUnsetHeader()\n {\n $request = new Aspamia_Http_Request('GET', '/');\n \n $request->setHeader('User-Agent', 'Foo/Bar');\n $this->assertEquals('Foo/Bar', $request->getHeader('user-agent'));\n \n $request->setHeader('user-agent', false);\n $this->assertNull($request->getHeader('user-agent'));\n }", "private function parseRequestHeader($request)\n {\n $headers = array();\n\n foreach (explode(\"\\r\\n\", $request) as $line)\n {\n if (strpos($line, ': ') !== false)\n {\n list($key, $value) = explode(': ', $line);\n\n $headers[trim($key)] = trim($value);\n }\n }\n\n return $headers;\n }", "private function parseRequestHeader($request)\n {\n $headers = array();\n\n foreach (explode(\"\\r\\n\", $request) as $line)\n {\n if (strpos($line, ': ') !== false)\n {\n list($key, $value) = explode(': ', $line);\n\n $headers[trim($key)] = trim($value);\n }\n }\n\n return $headers;\n }", "public function testAuthenticateTokenHeader()\n {\n $request = new ServerRequest();\n\n $expected = [\n 'id' => 1,\n 'group_id' => 1,\n 'user_name' => 'admad',\n 'email' => '[email protected]',\n 'created' => new FrozenTime('2014-03-17 01:18:23'),\n 'updated' => new FrozenTime('2014-03-17 01:20:31'),\n ];\n $request = $request->withEnv('HTTP_AUTHORIZATION', 'Bearer ' . $this->token);\n $result = $this->auth->getUser($request, $this->response);\n $this->assertEquals($expected, $result);\n\n $request = $request->withEnv('HTTP_AUTHORIZATION', 'WrongBearer ' . $this->token);\n $result = $this->auth->getUser($request, $this->response);\n $this->assertFalse($result);\n\n $this->expectException('UnexpectedValueException');\n $request = $request->withEnv('HTTP_AUTHORIZATION', 'Bearer foobar');\n $result = $this->auth->getUser($request, $this->response);\n $this->assertFalse($result);\n }", "public function getHeader(string $name);", "protected function readHeaders()\n {\n $ret = [];\n foreach ($this->environment as $key => $value) {\n # Note: the content-type and content-length headers always come\n # after the `CONTENT_TYPE` and `CONTENT_LENGTH` values in the\n # $_SERVER superglobal; if you use the values for the non `HTTP_...`\n # version, they will just be overwritten by the `HTTP_` version.\n if (strpos($key, \"HTTP_\") === 0) {\n $key = substr($key, 5);\n $key = strtolower($key);\n $key = str_replace(\"_\", \"-\", $key);\n $ret[$key] = $value;\n }\n }\n return $ret;\n }", "public function test_authorization_header()\n {\n }", "public function getHeader($name);", "public function testHttpResponseHeadersGetSet(UnitTester $I)\n {\n $headers = new Headers();\n\n $headers->set('Content-Type', 'text/html');\n\n $I->assertSame(\n 'text/html',\n $headers->get('Content-Type')\n );\n }", "protected static function get_response_headers()\n {\n }", "#[Pure]\nfunction http_parse_headers($header) {}", "public function getRequestHeaders()\n {\n return curl_getinfo($this->res, CURLINFO_HEADER_OUT);\n }", "public function testRequestGet()\n {\n $url = 'http://localhost:8080';\n $req = new HttpHeadRequest($url);\n \n $hopper = new Grasshopper();\n \n $hopper->addRequest($req);\n \n $result = $hopper->waitForAll();\n \n $res = $result[$url];\n \n if ($res instanceof SuccessEvent){\n $headers = $res->getResponse()->getHeadersParsed();\n echo print_r($headers,true) . PHP_EOL;\n \n $this->assertEquals(200, $res->getResponse()->getStatusCode());\n }\n else{\n $this->fail('GET request returned failure result');\n }\n }", "public function testGetHeader_headerNotSetAndHostNotSet_headerWithoutHost()\n {\n $aExpectedHeader = array(\n 'POST /cgi-bin/webscr HTTP/1.1',\n 'Content-Type: application/x-www-form-urlencoded',\n 'Connection: close'\n );\n $oCurl = oxNew('oxCurl');\n\n $this->assertEquals($aExpectedHeader, $oCurl->getHeader(), 'Header must be without host as host not set.');\n }", "public function getHeaders()\n {\n return $this->headerRequested->get();\n }", "public function testAssertHeaderNotContains(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withHeader('Etag', 'abc123');\n\n $this->assertHeaderNotContains('Etag', 'xyz');\n }", "public function test_protected_parseCookieHeaders()\n {\n $cookies = $this->object->parseCookieHeaders($this->responseHeaders_1, 'service.example.com');\n\n $this->assertInternalType('array', $cookies);\n $this->assertEquals(1, count($cookies));\n $this->assertEquals('SID', $cookies[0]['name']);\n $this->assertEquals('k1jut1r1bqrumpei837kk4jks0', $cookies[0]['value']);\n $this->assertEquals('/', $cookies[0]['path']);\n $this->assertEquals('service.example.com', $cookies[0]['domain']);\n $this->assertFalse($cookies[0]['secure']);\n }", "public function testParsingEmptyHeader() {\n\t\t$headers = new Headers();\n\t\t$parsed = Cookie::parse_from_headers($headers);\n\n\t\t$this->assertIsArray($parsed, 'Return value is not an array');\n\t\t$this->assertCount(0, $parsed, 'Returned array is not empty');\n\t}", "public function getRequestHeaders()\n {\n return [];\n }", "public function testGetHeader_headerSetAndHostSet_headerFromSet()\n {\n $sHost = 'someHost';\n $aHeader = array('Test header');\n $oCurl = oxNew('oxCurl');\n $oCurl->setHost($sHost);\n $oCurl->setHeader($aHeader);\n\n $this->assertEquals($aHeader, $oCurl->getHeader(), 'Header must be same as set header.');\n }", "public function getRawRequestHeaders() {\n\t}", "public function getRequestHeaders()\r\n {\r\n return $this->request_headers;\r\n }", "public function getHeaders(): array\n {\n }", "public function testAddingANewHeaderIsFoundTheTheHeadersArray()\n {\n $inputHeaders = array(\n 'Host' => 'test.mysite.local'\n );\n $inputHeaderName = 'Connection';\n $inputHeaderValue = 'close';\n $mock = new Headers($inputHeaders);\n $mock->add($inputHeaderName, $inputHeaderValue);\n\n $this->assertEquals($inputHeaderValue, $mock->get($inputHeaderName));\n }", "private function requestHeaders() \n {\n // getallheaders available, use that\n if (function_exists('getallheaders')) {\n return getallheaders();\n }\n\n // getallheaders not available: manually extract 'm\n $headers = array();\n foreach ($_SERVER as $name => $value) {\n if ((substr($name, 0, 5) == 'HTTP_') || ($name == 'CONTENT_TYPE') || ($name == 'CONTENT_LENGTH')) {\n $headers[str_replace(array(' ', 'Http'), array('-', 'HTTP'), ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;\n }\n }\n return $headers;\n }", "private function readHead() {\n\t\t$matches = array();\n\n\t\t// Read and parse status line\n\t\t$status = $this->readLine();\n\t\tif (!preg_match('!^(?:HTTP/(\\d\\.\\d)) (\\d{3})(?: (.+))?!', $status, $matches)) {\n\t\t\tthrow new MOXMAN_Http_HttpClientException(\"Malformed status line: \" . $status);\n\t\t}\n\n\t\t// Debug status line\n\t\tif ($this->client->getLogLevel() >= 2) {\n\t\t\t$this->client->log(\"< \" . trim($status));\n\t\t}\n\n\t\t$this->version = $matches[1];\n\t\t$this->code = intval($matches[2]);\n\t\t$this->message = $matches[3];\n\n\t\t// Read and parse headers\n\t\tdo {\n\t\t\t$line = $this->readLine();\n\n\t\t\t// Debug header line\n\t\t\tif ($this->client->getLogLevel() >= 2) {\n\t\t\t\t$this->client->log(\"< \" . trim($line));\n\t\t\t}\n\n\t\t\tif (preg_match('!^([^\\x00-\\x1f\\x7f-\\xff()<>@,;:\\\\\\\\\"/\\[\\]?={}\\s]+):(.+)$!', $line, $matches)) {\n\t\t\t\t$name = strtolower($matches[1]);\n\t\t\t\t$value = trim($matches[2]);\n\n\t\t\t\t// Put multiple headers with the same name into an array\n\t\t\t\tif (isset($this->headers[$name])) {\n\t\t\t\t\tif (is_array($this->headers[$name])) {\n\t\t\t\t\t\t$this->headers[$name][] = $value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->headers[$name] = array($this->headers[$name], $value);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->headers[$name] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t} while ($line !== \"\");\n\t}", "public function getStatusHeaders() {}", "public function getHeader();", "public function getHeader();", "public function getHeader();", "public function testGetHeaders()\n {\n $headerOption = new \\RonRademaker\\Exporter\\Option\\HeadersOption(['foo', 'bar']);\n\n $this->assertEquals(['foo', 'bar'], $headerOption->getFields());\n $this->assertEquals(['foo', 'bar'], $headerOption->getValue());\n }", "public function testConstructorSetsTheHeadersArrayIfTheyArePassedCorrectlyAsAString()\n\t{\n $inputHeadersString = 'GET /test/jsonrpc.php HTTP/1.1' . \"\\r\\n\" .\n 'Host: test.mysite.local' . \"\\r\\n\" .\n 'Connection: close' . \"\\r\\n\";\n $expectedHeadersArray = array(\n 'Host' => 'test.mysite.local',\n 'Connection' => 'close'\n );\n $mock = new Headers($inputHeadersString);\n $this->assertEquals($expectedHeadersArray, $mock->getAsArray());\n\t}", "private static function getHeaders( )\n\t{\n\t\tif ( \\function_exists( 'apache_request_headers' ) === true )\n\t\t{\n\t\t\treturn \\apache_request_headers( );\n\t\t}\n\n\t\tforeach ( $_SERVER as $key => $value )\n\t\t{\n\t\t\tif ( substr( $key, 0, 5 ) === 'HTTP_' )\n\t\t\t{\n\t\t\t\t$headers[str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', substr( $key, 5 ) ) ) ) )] = $value;\n\t\t\t}\n\t\t\telseif ( $key === 'CONTENT_TYPE' || $key === 'CONTENT_LENGTH' )\n\t\t\t{\n\t\t\t\t$headers[str_replace( '_', '-', ucwords( strtolower( $key ) ) )] = $value;\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( $headers ) === true )\n\t\t{\n\t\t\treturn $headers;\n\t\t}\n\n\t\treturn false;\n\t}", "public function get_test_authorization_header()\n {\n }", "function get_headers(string $url, int $format = 0, $context = null): array\n{\n error_clear_last();\n if ($context !== null) {\n $result = \\get_headers($url, $format, $context);\n } else {\n $result = \\get_headers($url, $format);\n }\n if ($result === false) {\n throw UrlException::createFromPhpError();\n }\n return $result;\n}", "private function getheaders($req) {\n $res = preg_match(\"/GET (.*) HTTP/i\" , $req, $match) ? $match[1] : \"???\";\n $host = preg_match(\"/Host: (.*)\\r\\n/i\" , $req, $match) ? $match[1] : \"???\";\n $ori = preg_match(\"/Origin: (.*)\\r\\n/i\" , $req, $match) ? $match[1] : \"???\";\n $key = preg_match(\"/Sec-WebSocket-Key: (.*)\\r\\n/i\", $req, $match) ? $match[1] : \"???\";\n\n return array($res, $host, $ori, $key);\n }", "function rc_request_header($name)\n{\n if (function_exists('getallheaders'))\n {\n $hdrs = array_change_key_case(getallheaders(), CASE_UPPER);\n $key = strtoupper($name);\n }\n else\n {\n $key = 'HTTP_' . strtoupper(strtr($name, '-', '_'));\n $hdrs = array_change_key_case($_SERVER, CASE_UPPER);\n }\n\n return $hdrs[$key];\n }", "public function getHeader($name)\n {\n if (preg_match('/^'.$name.': (.*)$/m',$this->response,$result))\n {\n return trim($result[1]);\n }\n else\n {\n return false;\n }\n }", "public function getHeader($name)\n {\n if (preg_match('/^'.$name.': (.*)$/m',$this->response,$result))\n {\n return trim($result[1]);\n }\n else\n {\n return false;\n }\n }", "#[Pure]\n public function getHeaders() {}", "#[Pure]\n public function getHeaders() {}", "public function testHead(): void\n {\n $this->assertNull($this->_response);\n\n $this->head('/request_action/test_request_action');\n $this->assertNotEmpty($this->_response);\n $this->assertInstanceOf('Cake\\Http\\Response', $this->_response);\n $this->assertResponseSuccess();\n }", "public function getHeader($headerName);", "function request_headers() {\n\t\t$headers = array();\n\t\tforeach( $_SERVER as $key => $value ) {\n\t\t\tif( substr( $key, 0, 5 ) !== 'HTTP_' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$key = str_replace( ' ', '-', ucwords( underscore( substr( $key, 5 ), ' ' ) ) );\n\t\t\t$key = preg_replace_callback( '/\\b(TE|DNT|MD5)\\b/i',function($matches){ return strtoupper($matches[0]); }, $key );\n\t\t\t$headers[$key] = $value;\n\t\t}\n\t\treturn $headers;\n\t}", "public function testHttpResponseHeadersToArray(UnitTester $I)\n {\n $headers = new Headers();\n\n $headers->set('Content-Type', 'text/html');\n\n $expected = [\n 'Content-Type' => 'text/html',\n ];\n\n $I->assertSame(\n $expected,\n $headers->toArray()\n );\n }", "protected function fetchHeaders() \n {\n\n $authHeader = $this->request->getHeader(\"Authorization\");\n\n // exist if no Auth token is present in request\n if(!$authHeader) {\n \n // set API response via helper\n $response = setAPIresponse(['Success'=>'Authorization token required'], 400);\n \n returnJson($response);\n\n }\n\n // get token value from header\n $token = $authHeader->getValue();\n\n return $this->decodeToken($token);\n\n }", "public function getHttpHeader($name = null);", "public function getHeaders()\n {\n return apache_request_headers();\n }" ]
[ "0.79437065", "0.7433231", "0.731399", "0.7162159", "0.71117043", "0.7060483", "0.7003715", "0.6950176", "0.69136107", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68341255", "0.68336874", "0.6829063", "0.6818532", "0.67591864", "0.67366904", "0.6660463", "0.6648461", "0.6600288", "0.6587365", "0.6587365", "0.6548897", "0.65398", "0.65240777", "0.65017354", "0.642155", "0.6380323", "0.63762665", "0.637381", "0.6373334", "0.6373334", "0.63662636", "0.636219", "0.63611305", "0.63609034", "0.6315452", "0.6295736", "0.6289605", "0.6289605", "0.6289605", "0.6289605", "0.6289605", "0.6289605", "0.6289605", "0.6255676", "0.6250168", "0.6250168", "0.62286586", "0.62159985", "0.62100524", "0.6192286", "0.618088", "0.6172653", "0.616855", "0.6164122", "0.6134167", "0.61239475", "0.61041677", "0.60915524", "0.608607", "0.60762846", "0.6062612", "0.6043876", "0.60321116", "0.6008115", "0.6004632", "0.598117", "0.59709764", "0.5966804", "0.5963251", "0.59591585", "0.59589463", "0.59589463", "0.59589463", "0.59493756", "0.5943646", "0.59385014", "0.5935195", "0.59304756", "0.59172636", "0.5912745", "0.59026766", "0.59026766", "0.590232", "0.590232", "0.5894695", "0.5891623", "0.5881965", "0.587522", "0.58620626", "0.586046", "0.5859764" ]
0.6447226
33
Tests that the body of the request is retrieved correctly
public function testGetBody() { $request = $this->createRequest(); static::setInput('hello world'); $this->assertEquals('hello world', $request->getBody()); $this->assertEquals('hello world', $request->body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetRequest()\n {\n $response= $this->apiObject->getRequest();\n $request=$response->getBody()->getContents();\n $this->assertMatchesJsonSnapshot($request);\n echo('\n El request recibido:\n '.$request);\n }", "abstract public function getRequestBody();", "public static function getRequestBody() {}", "public function testGetBody()\n {\n $xml = '<people type=\"array\"><person><id>1</id></person></people>';\n $req = new Mad_Controller_Request_Mock();\n $req->setBody($xml);\n\n $this->assertEquals($xml, $req->getBody());\n }", "private function testResponseBody($body)\n {\n\n if ( empty($body) ) {\n\n throw (new LarastackPaystackException());\n }\n\n $bodyArray = json_decode($body, true);\n\n if ( empty($bodyArray['status']) || !$bodyArray['status'] || empty($bodyArray['data'])) {\n\n throw (new LarastackPaystackException());\n }\n\n return $bodyArray['data'];\n }", "public function getBody()\n {\n $body = json_decode($this->body, true);\n\n dd($body);\n }", "protected function getBody()\n {\n $body = file_get_contents('php://input');\n json_decode($body);\n if(json_last_error() == JSON_ERROR_NONE){\n return json_decode($body);\n }else{\n return false;\n }\n }", "public function getParsedBody() {}", "public function testInputDataHttpServer(): void\n {\n $this->post('/request_action/input_test', '{\"hello\":\"world\"}');\n if ($this->_response->getBody()->isSeekable()) {\n $this->_response->getBody()->rewind();\n }\n $this->assertSame('world', $this->_response->getBody()->getContents());\n $this->assertHeader('X-Middleware', 'true');\n }", "#[Pure]\nfunction http_get_request_body() {}", "public function testGetRawBody0()\n{\n\n $actual = $this->sqsJob->getRawBody();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testSimpleExtractionFromRequest()\n {\n $queryData = ['a' => 1, 'b' => 2];\n $requestData = ['a' => 2, 'b' => 4, 'c' => 8];\n $contentData = ['b' => 3, 'c' => 6, 'd' => 9];\n $request = $this->createRequest($queryData, $requestData, $contentData);\n\n $this->assertEquals($requestData, $this->extractParameters($request, null, 'request'));\n }", "public function getParsedBody();", "public function getBody() : string\n {\n if ($this->requestMethod !== \"POST\" && $this->requestMethod !== \"PUT\" && $this->requestMethod !== \"DELETE\")\n throw new \\InvalidArgumentException(\"Body is only availabe on POST/PUT requests.\");\n return file_get_contents(\"php://input\");\n }", "public function testRequestIsPassedCorrectly()\n {\n $this->assertPropertySame('request', $this->request);\n }", "public function testValidRequest()\n {\n $this->client->{$this->method}(\n $this->endpoint,\n $this->getValidData(),\n $this->requestHeaders\n );\n $this->assertResponseCode(200, 299);\n }", "public static function getRequestBodyStream() {}", "function http_get_body(){\n\n // read content from body\n $content = file_get_contents('php://input');\n\n // check content encoding\n switch(http_get_content_encoding()){\n\n // json content encoding\n case \"json\": {\n\n // return content as json\n return json_decode($content);\n }\n\n // xml content encoding\n case \"xml\": {\n\n // return content as xml\n return new SimpleXMLElement($content);\n }\n }\n}", "public function test_happy_flow_get()\n {\n $_SERVER['REQUEST_METHOD'] = 'GET';\n $_GET['sp-entity-id'] = 'http://mock-sp';\n\n $request = new Request($_GET, $_POST, [], [], [], $_SERVER);\n\n $this->assertTrue($this->validator->isValid($request));\n }", "public function testProperties(): void\n {\n $body = new RequestBodyObject();\n\n $url = new UrlObject();\n $formParameter = new FormParameterObject();\n $file = new FileObject();\n\n $body->setDisabled(false);\n $body->setMode('file');\n $body->setRaw('test-raw');\n $body->setUrl($url);\n $body->setFormParameter($formParameter);\n $body->setFile($file);\n\n $this->assertProperties($body, [\n 'isDisabled' => false,\n 'getMode' => 'file',\n 'getRaw' => 'test-raw',\n 'getUrl' => $url,\n 'getFormParameter' => $formParameter,\n 'getFile' => $file\n ]);\n }", "public function testResponseGet()\n {\n $result = json_decode($this->body, true);\n\n $this->assertEquals($this->response->get('Model'), $result['Model']);\n $this->assertEquals($this->response->get('RequestId'), $result['RequestId']);\n $this->assertEquals($this->response->get('Inexistence'), null);\n $this->assertEquals($this->response->get('Inexistence', 'Inexistence'), 'Inexistence');\n }", "static function body()\n\t{\n\t\treturn file_get_contents('php://input');\n\t}", "public function getRawBody();", "public function testToArray(): void\n {\n $file = new FileObject();\n $url = new UrlObject();\n $formParameter = new FormParameterObject();\n\n $body = new RequestBodyObject([\n 'disabled' => false,\n 'file' => $file,\n 'form_parameter' => $formParameter,\n 'mode' => 'file',\n 'raw' => 'test-raw',\n 'url' => $url\n ]);\n\n self::assertEquals([\n 'disabled' => false,\n 'file' => $file,\n 'formdata' => $formParameter,\n 'mode' => 'file',\n 'raw' => 'test-raw',\n 'urlencoded' => $url\n ], $body->toArray());\n }", "public function getBody() {}", "public function getBody(): string;", "public function getBody(): string;", "protected function getRequestBody()\n\t{\n\t\treturn $this->request->getContent();\n\t}", "public function getBodyObject()\r\n {\r\n }", "public function getBodyContents()\n {\n return ($this->payload != null) \n ? $this->payload : URLUtils::formURLEncodeMap($this->bodyParams); \n }", "public function testVerifyUsingPOST()\n {\n\n }", "public function testSimpleExtractionFromContent()\n {\n $queryData = ['a' => 1, 'b' => 2];\n $requestData = ['a' => 2, 'b' => 4, 'c' => 8];\n $contentData = ['b' => 3, 'c' => 6, 'd' => 9];\n $request = $this->createRequest($queryData, $requestData, $contentData);\n\n $this->assertEquals($contentData, $this->extractParameters($request, null, 'content'));\n }", "function getBody()\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"getBody()\\n\";\r\n\t\treturn $this->responseBody;\r\n\t}", "public function testStringObject() {\n $client = new Client();\n $client->post = array(\n 'data' => Parser::create('<b>the-data</b>')->inner('<b>', '</b>'),\n 'nestedData' =>\n array(\n 'one' => Parser::create('<i>the-data2</i>')->inner('<i>', '</i>'),\n ),\n 'form_token' => '123123123',\n );\n $response = $client->fetch('http://' . TestCase::$settings['envHttpMirrorServer'] . '/');\n $responseParsed = ClientHelper::parseRequest($response);\n $this->assertSame('data=the-data&nestedData%5Bone%5D=the-data2&form_token=123123123', $responseParsed['Body']);\n }", "public function get_body()\n {\n return json_decode(file_get_contents('php://input'), TRUE);\n }", "public function body()\n {\n $entityBody = file_get_contents('php://input');\n\n foreach ((array)json_decode($entityBody) as $field => $value) {\n $this->requestStack[$field] = $value;\n }\n return json_decode($entityBody);\n }", "public function testBodyShow()\n {\n $page = Page::inRandomOrder()->first();\n $response = $this->actingAs(User::inRandomOrder()->first(), 'api')->json('GET', \"/api/pages/{$page->slug}/body\");\n $response\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n \"type\",\n \"content\",\n ],\n 'links' => [\n \"self\",\n ],\n 'relationships' => [\n \"page\" => [\n \"links\" => [\n \"self\",\n ],\n \"data\" => [\n \"id\",\n \"name\",\n \"slug\",\n ],\n ],\n\n ],\n ]);\n }", "public static function getBody() {\r\n return @file_get_contents('php://input');\r\n }", "public function testResolveInvalidRequestBody(): void\n {\n $this->expectException(ValidationException::class);\n $request = new Request([], [], [], [], [], ['CONTENT_TYPE' => ['application/json']], '{}');\n\n $validator = $this->createMock(ValidatorInterface::class);\n $violations = new ConstraintViolationList(array(\n $this->createMock(ConstraintViolation::class),\n ));\n $validator->expects($this->once())\n ->method('validate')\n ->willReturn($violations);\n $argumentMetadata = new ArgumentMetadata('resolver', PostRecruitmentArgumentResolver::class, false, false, null);\n $argumentResolver = new PostRecruitmentArgumentResolver($validator);\n $request = $argumentResolver->resolve($request, $argumentMetadata);\n $request->current();\n }", "public function testNestedData() {\n $client = new Client();\n $client->post = array(\n 'form' => array(\n 'login' => 'bgates',\n 'password' => 'monkey'\n ),\n 'form_token' => '123123123',\n );\n $response = $client->fetch('http://' . TestCase::$settings['envHttpMirrorServer'] . '/');\n $responseParsed = ClientHelper::parseRequest($response);\n $this->assertSame('form%5Blogin%5D=bgates&form%5Bpassword%5D=monkey&form_token=123123123', $responseParsed['Body']);\n }", "public function body()\r\n {\r\n // Only get it once\r\n if (null === $this->body) {\r\n $this->body = @file_get_contents('php://input');\r\n }\r\n\r\n return $this->body;\r\n }", "public function testPutDataFormUrlEncoded(): void\n {\n $this->configRequest([\n 'headers' => [\n 'Content-Type' => 'application/x-www-form-urlencoded',\n ],\n ]);\n $this->put('/request_action/post_pass', ['title' => 'value']);\n $this->assertResponseOk();\n $data = json_decode('' . $this->_response->getBody());\n $this->assertSame('value', $data->title);\n }", "public static function getBody()\n {\n $entityBody = file_get_contents('php://input');\n return $entityBody;\n }", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function getBody();", "public function testBasicGET()\n\t{\n\t\t$Request = new Request(\n\t\t\tnew URL('http://' . self::TESTHOST . '/hallo'),\n\t\t\tnull, // method. Default GET\n\t\t\tnull, // Payload\n\t\t\t$this->_getDefaultOptions());\n\n\t\t// Return the body as string\n\t\t$Result = $Request->getResponseAs(new StringValue());\n\n\t\t$this->assertEquals('hallo', (string)$Result);\n\t}", "public function getBodyContent() {}", "#[Pure]\nfunction http_get_request_body_stream() {}", "public function test_create_task_body_not_a_string()\n {\n $credential = [\n 'body' => 231\n ];\n\n $token = User::factory()->create()->createToken('my-app-token')->plainTextToken;\n\n $response = $this->json('POST', '/api/tasks', $credential, ['Accept' => 'application/json', 'npm install -g @stoplight/cli' => 'Bearer '.$token]);\n\n $response\n ->assertStatus(422)\n ->assertJsonValidationErrors('body')\n ->assertJsonPath('errors.body', [\"The body must be a string.\"]);\n }", "private function body()\n {\n return json_decode($this->request->all()[\"job\"], true);\n }", "public function get_body_params()\n {\n }", "public function post_body() {\n\t\treturn file_get_contents( 'php://input' );\n\t}", "function getHttpBody() {\n return $this->httpBody;\n }", "public function testGetPostParams()\n {\n // simulate a post\n $expected = array('document' => array('name' => 'hey'),\n 'post_test1' => 'false', 'post_test2' => 'go yanks');\n $this->assertEquals($expected, $this->_req->getPostParams());\n }", "private function isAlexaRequest($body)\n {\n // https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#request-body-syntax\n return (is_array($body) && isset($body['version']) && isset($body['context']) && isset($body['request']));\n }", "public function body() {\n\t\tif ( null === $this->_body ) {\n\t\t\t$this->_body = @file_get_contents( 'php://input' );\n\t\t}\n\n\t\treturn $this->_body;\n\t}", "public function getBody(): ReadableStream;", "public function test_example()\n {\n $response = $this->get('/toto/2');\n $response->assertStatus(200);\n $response->assertJson([]);\n $this->assertJsonStringEqualsJsonString(json_encode([\"params\" => \"2\"]), $response->content());\n }", "protected function check_2_body(Request $request, Response $response, array &$args)\n {\n return true;\n }", "public function test_a_task_requires_a_body()\n {\n $this->signIn();\n\n $project = auth()->user()->projects()->create(\n factory('App\\Project')->raw()\n );\n\n // 'make' ga nyimpen di db (return object), 'create' nyimpen di db (return object), 'raw' (return array)\n $attributes = factory('App\\Task')->raw(['body' => '']);\n $this->post($project->path() . '/tasks', $attributes)->assertSessionHasErrors('body');\n }", "public function getBody() : array\n {\n if ($this->requestMethod == \"GET\") {\n $result = array(); \n foreach ($_GET as $key => $value) {\n $result[$key] = $value;\n }\n return $result;\n }\n\n if ($this->requestMethod == \"POST\") {\n $result = array();\n foreach ($_POST as $key => $value) {\n $result[$key] = filter_input(INPUT_POST, $key, FILTER_SANITIZE_SPECIAL_CHARS);\n }\n\n return $result;\n }\n\n return $body;\n }", "private function performRequest($body) {\n\n\t\t$ch = curl_init($this->service . '/' . $this->action);\n\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\tcurl_setopt($ch, CURLOPT_POST, 1 );\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"VnnSpringnet/0.1\" );\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\n\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array(\n\t\t\t\t'User-Agent: VnnSpringnet/0.1'));\n\t\t$json = curl_exec($ch);\n\n\t\tif($json === false) {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\treturn json_decode($json, true);\n\t\t} catch(\\Exception $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function testPostDataHttpServer(): void\n {\n $this->post('/request_action/post_pass', ['title' => 'value']);\n $data = json_decode('' . $this->_response->getBody());\n $this->assertSame('value', $data->title);\n $this->assertHeader('X-Middleware', 'true');\n }", "public function getHttpBody(): string\n {\n return $this->httpBody;\n }", "public function testRequirementsNew()\n {\n $model = self::$f1->get('/v1/requirements/new.json');\n $this->assertEquals('200', $model['http_code']);\n $this->assertNotEmpty($model['body'], \"No Response Body\");\n return $model['body'];\n }", "public function testSendValidJsonHttpRequest()\n {\n $client = new HttpClient();\n $payload = [\n 'foo1' => 'bar1',\n 'foo2' => 'bar2',\n ];\n $response = $client->sendJson(\n HttpRequestMethod::POST,\n 'https://postman-echo.com/post',\n $payload\n );\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertEquals('OK', $response->getReasonPhrase());\n $responseBody = $response->getBody();\n $this->assertArrayHasKey('json', $responseBody);\n $this->assertEquals($payload, $responseBody['json']);\n $this->assertNotEmpty($response->getHeaders());\n }", "public function testSimple() {\n $client = new Client();\n $client->post = array(\n 'login' => 'bgates',\n 'password' => 'monkey',\n 'form_token' => '123123123',\n );\n $response = $client->fetch('http://' . TestCase::$settings['envHttpMirrorServer'] . '/');\n $responseParsed = ClientHelper::parseRequest($response);\n $this->assertSame('login=bgates&password=monkey&form_token=123123123', $responseParsed['Body']);\n }", "protected function parse_body_params()\n {\n }", "public function withBody(mixed $body): RequestInterface;", "public function testCms()\n {\n $client = new Client();\n $response = $client->request('GET', 'http://localhost:5005/students/1');\n $this->assertEquals($response->getHeaderLine('content-type'), 'application/json');\n }", "public function getHttpBody()\n {\n return $this->httpBody;\n }", "public function testAcceptContentTypeWithBody()\n {\n\n $config = ['accepts' => ['text/html']];\n $response = m::mock(Response::class);\n $headers = m::mock(stdClass::class);\n $response->headers = $headers;\n $request = m::mock(Request::class);\n $app = m::mock(ApplicationContract::class);\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $response\n ->shouldReceive('isRedirection')->once()->andReturn(false)\n ->shouldReceive('getContent')->once()->andReturn('<body></body>')\n ->shouldReceive('setContent')->once();\n $headers->shouldReceive('get')->with('Content-type')->once()->andReturn('text/html');\n $request->shouldReceive('ajax')->once()->andReturn(false);\n $tracy = new Tracy($config, $app, $request);\n $excepted = $tracy->renderResponse($response);\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $this->assertSame($excepted, $response);\n }", "public function testResolveInvalidRequestContent(): void\n {\n $this->expectException(InvalidContentException::class);\n $request = new Request([], [], [], [], [], ['CONTENT_TYPE' => ['application/json']], null);\n\n $validator = $this->createMock(ValidatorInterface::class);\n $argumentMetadata = new ArgumentMetadata('resolver', PostRecruitmentArgumentResolver::class, false, false, null);\n $argumentResolver = new PostRecruitmentArgumentResolver($validator);\n $request = $argumentResolver->resolve($request, $argumentMetadata);\n $request->current();\n }", "public function get_body()\n {\n }", "public function testAddGetParam()\n\t{\n\t\t$URL = new URL('http://' . self::TESTHOST . \"/requestInfos.php?getA=hallo\");\n\t\t$Payload = new Payload(new DataAsGET('getB', 'halloB'));\n\n\t\t$Request = new Request($URL, new PUT(), $Payload);\n\t\t$this->assertTrue(\n\t\t\t$Request->getResponseAs(\n\t\t\t\tnew class extends AbstractResponse\n\t\t\t\t{\n\t\t\t\t\tpublic function createByRequest($body, Headerlist $Headers, HTTPStatusCode $Status, \\DateInterval $RequestTime)\n\t\t\t\t\t{\n\t\t\t\t\t\t$bodyArr = json_decode($body, true);\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t$bodyArr['_GET']['getA'] == 'hallo'\n\t\t\t\t\t\t\t&& $bodyArr['_GET']['getB'] == 'halloB'\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}", "abstract public function getBody();", "public function getRawBody(): string\n {\n if ($this->rawBody === null) {\n $this->rawBody = file_get_contents('php://input');\n }\n\n return $this->rawBody;\n }", "public function canHaveBody() {\n return ( $this->status < 100 || $this->status >= 200 ) &&\n (!in_array($this->status, array(201, 204, 304)));\n }", "protected function getRequestBody(Request $request)\n {\n return json_decode((string) $request->getBody());\n }", "public function testFailContentEmpty()\n {\n $request = Request::create(\n '/test',\n 'POST',\n [],\n [],\n [],\n [],\n null\n );\n\n $this->expectException(JsonRpcRequestException::class);\n $this->expectExceptionMessage('Request content is null');\n\n new JsonRpcRequest($request);\n }", "protected function getBody()\n {\n return $this->getRequest()->getBody();\n }", "public function body($body);", "public function testIndexActionGet()\n {\n $request = $this->di->get(\"request\");\n $request->setGet(\"ip\", \"8.8.8.8\");\n\n\n $res = $this->controller->indexActionGet();\n\n $body = $res->getBody();\n\n // var_dump($body);\n $this->assertInstanceOf(\"Anax\\Response\\ResponseUtility\", $res);\n $this->assertContains(\"Kolla vädret\", $body);\n }", "public function test_create_task_body_empty()\n {\n $credential = [\n 'body' => ''\n ];\n\n $token = User::factory()->create()->createToken('my-app-token')->plainTextToken;\n\n $response = $this->json('POST', '/api/tasks', $credential, ['Accept' => 'application/json', 'Authorization' => 'Bearer '.$token]);\n\n $response\n ->assertStatus(422)\n ->assertJsonValidationErrors('body')\n ->assertJsonPath('errors.body', [\"The body field is required.\"]);\n }", "public function testWhatHappensWhenRequestBreaks() \n {\n $mock = Mockery::mock('ZafBoxRequest');\n\n $test_result = new stdClass;\n $test_result->status_code = 404;\n $test_result->body = '404 error';\n $mock->shouldReceive('get')->andReturn($test_result);\n\n // set the requests object to be our stub\n IoC::instance('requests', $mock);\n\n $tester = IoC::resolve('tester');\n $result = $tester->test('element', 'http://google.com', array(\n 'tag' => 'h1',\n ));\n $this->assertFalse($result);\n }", "public function withParsedBody($data)\n {\n }", "public function testRequestBuilding(): void\n {\n $this->requestAsJson();\n $this->configRequest([\n 'headers' => [\n 'X-CSRF-Token' => 'abc123',\n ],\n 'base' => '',\n 'webroot' => '/',\n 'environment' => [\n 'PHP_AUTH_USER' => 'foo',\n 'PHP_AUTH_PW' => 'bar',\n ],\n ]);\n $this->cookie('split_token', 'def345');\n $this->session(['User' => ['id' => '1', 'username' => 'mark']]);\n $request = $this->_buildRequest('/tasks/add', 'POST', ['title' => 'First post']);\n\n $this->assertSame('abc123', $request['environment']['HTTP_X_CSRF_TOKEN']);\n $this->assertSame('application/json', $request['environment']['CONTENT_TYPE']);\n $this->assertSame('/tasks/add', $request['url']);\n $this->assertArrayHasKey('split_token', $request['cookies']);\n $this->assertSame('def345', $request['cookies']['split_token']);\n $this->assertSame(['id' => '1', 'username' => 'mark'], $request['session']->read('User'));\n $this->assertSame('foo', $request['environment']['PHP_AUTH_USER']);\n $this->assertSame('bar', $request['environment']['PHP_AUTH_PW']);\n }", "public function testGetContent()\n {\n $mockHeader = ['Content-Type' => 'application/json; charset=utf-8'];\n\n $mockBody = '{\"id\":\"\",\"title\":\"\",\"updated\":\"\",\"author\":{\"name\":\"\"},\"link\":{\"@rel\":\"self\",\"@href\":\"\"},\"entry\":[{\"id\":\"\",\"title\":\"\",\"updated\":\"\",\"author\":{\"name\":\"\"},\"link\":{\"@rel\":\"\",\"@href\":\"\"},\"summary\":{\"@type\":\"\",\"#text\":\"\"},\"category\":{\"@term\":\"\"}}]}';\n\n $mock = new MockHandler([\n new Response(200, $mockHeader, $mockBody),\n ]);\n\n $handlerStack = HandlerStack::create($mock);\n\n $testClient = new Client(['handler' => $handlerStack]);\n\n $dataSource = new NcdrRss();\n\n $dataSource->newHttpClient($testClient);\n\n $data = $dataSource->getContent();\n\n $this->assertIsArray($data['entry'], 'entry must be an array');\n }", "public function testIndexActionPost()\n {\n $request = $this->di->get(\"request\");\n $request->setPost(\"ip\", \"8.8.8.8\");\n // var_dump($request);\n\n $res = $this->controller->indexActionPost();\n\n $body = $res->getBody();\n\n // var_dump($body);\n $this->assertInstanceOf(\"Anax\\Response\\ResponseUtility\", $res);\n $this->assertContains(\"Kolla vädret\", $body);\n }", "public function testHomePost()\n {\n\n $requestParams = [\n 'inputBike' => 3,\n ];\n\n $response = $this->call('POST', '/', $requestParams);\n\n $response->assertSeeText(\"Intive FDV test\");\n $response->assertSeeText(\"ACME RENTAL'S BIKES\");\n $response->assertSeeText(\"Thanks to use ACME RENTAL'S BIKES service.\");\n $response->assertSeeText(\"Your bikes\");\n $response->original->getData()['bikes'];\n $response->assertViewHas(\"bikes\", !null);\n $response->assertViewHas(\"byHour\", !null);\n $response->assertViewHas(\"byDay\", !null);\n $response->assertViewHas(\"byWeek\", !null);\n $response->assertViewIs(\"success\");\n $this->assertTrue($response->isOk(), \"Wrong params\");\n\n\n }" ]
[ "0.72822946", "0.71747833", "0.7147613", "0.7130142", "0.6728743", "0.6632701", "0.66032916", "0.65649486", "0.65515965", "0.649139", "0.6465092", "0.6458552", "0.6427771", "0.6362577", "0.6361816", "0.63154215", "0.6249263", "0.62427676", "0.62036306", "0.6162646", "0.6147145", "0.61433464", "0.61410934", "0.6107866", "0.61008", "0.61001426", "0.61001426", "0.60933304", "0.60762316", "0.60009384", "0.5998645", "0.5995053", "0.5984318", "0.5968889", "0.5966595", "0.59618455", "0.59523237", "0.5943861", "0.5940873", "0.5932667", "0.59311473", "0.5918209", "0.58946174", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.58844155", "0.5883549", "0.58712876", "0.5868182", "0.586808", "0.58389306", "0.58194065", "0.581216", "0.58106446", "0.579643", "0.5790304", "0.578321", "0.57676154", "0.57665664", "0.5764142", "0.57629776", "0.5761442", "0.5744772", "0.57426226", "0.5742522", "0.5741739", "0.57291317", "0.5701097", "0.56982315", "0.568776", "0.5678705", "0.5677307", "0.5674177", "0.5673949", "0.5667329", "0.56640613", "0.5661036", "0.5660197", "0.56534255", "0.56532085", "0.56355435", "0.5611071", "0.5607314", "0.5606282", "0.5596742", "0.55902797", "0.55795634", "0.55794346", "0.55755585", "0.55695283", "0.555203" ]
0.84744406
0
Data provider for request uri
public function requestUriProvider() { return array( array(array( // apache and lighttpd 'server' => array( 'REQUEST_URI' => '/module/controller/action', ), )), array(array( // iis 'server' => array( 'HTTP_X_REWRITE_URL' => '/module/controller/action', ), )), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function requestUri() {}", "public function uri();", "public function uri();", "public function uri();", "abstract public function defaultReturnUrlDataProvider();", "protected function get_uri()\n {\n }", "public function getRequestUri() {}", "abstract public function getUri();", "abstract protected function getUri(): string;", "private function getUri(){\n return $this->uri = parse_url($_SERVER['REQUEST_URI']);\n }", "public function get_uri()\n {\n }", "public function uri($uri);", "public function getRequestData();", "public function get($uri);", "public function getViewData( $data, $uri=null ) {\n\t\treturn $data;\n\t}", "public function getUri() {}", "public function getUri() {}", "public function uriFor(string $name, array $data = [], array $queryData = []):string;", "public function provider_url()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'foo/bar',\n\t\t\t\tarray(),\n\t\t\t\t'http',\n\t\t\t\tTRUE,\n\t\t\t\t'http://localhost/kohana/foo/bar'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'foo',\n\t\t\t\tarray('action' => 'bar'),\n\t\t\t\t'http',\n\t\t\t\tTRUE,\n\t\t\t\t'http://localhost/kohana/foo/bar'\n\t\t\t),\n\t\t);\n\t}", "public function getQueryDataProvider() {}", "abstract protected function uri($uri);", "public function getUri()\n {\n }", "public function getUri()\n {\n }", "abstract protected function buildSpecificRequestUri();", "public function getUri();", "public function getUri();", "public function getUri();", "public function getUri();", "abstract protected function getDataProvider();", "private function __construct() {\n if ($_SERVER['REQUEST_METHOD'] == 'GET') {\n $this->data = $_GET;\n } else {\n if (isset($_SERVER['HTTP_CONTENT_TYPE'])) {\n $contentType = $_SERVER['HTTP_CONTENT_TYPE'];\n if (strpos($contentType, ';') !== false) {\n $split = explode(';', $contentType);\n $contentType = trim($split[0]);\n $enc = trim($split[1]);\n }\n if ($contentType == 'application/x-www-form-urlencoded') {\n $this->data = $_POST;\n } else if ($contentType == 'application/json') {\n $json = file_get_contents('php://input');\n $this->data = json_decode($json, true);\n }\n }\n }\n if (strpos($_SERVER['REQUEST_URI'], '/api/') === 0) {\n $this->route = explode('/', $_SERVER['REQUEST_URI']);\n }\n }", "public function getProvider();", "public function getProvider();", "public function getProvider();", "public function uriKey(): string;", "public function parametersAndQueriesDataProvider() {}", "abstract public function uri(): string;", "public function fetchUriString()\n\t{\n\t\tif ($_tempUri = $this->getUriFromRequest())\n\t\t{\n\t\t\t$this->set(trim($_tempUri, '/'));\n\t\t}\n\t\t\n\t\treturn;\n\t}", "public function getDataProvider();", "public function getDataProvider();", "public function buildBackendUri() {}", "public function uri() : string;", "function populate_from_request();", "public function uri(){\n return $this->uri;\n }", "private function __construct(){\n $this->setRequestUri();\n }", "public function getURI();", "public function getAndPostDataProvider() {}", "public function __construct($data)\n {\n $this->url = $data;\n }", "public function getRequestUrl() {\n\t}", "public function validUrlValidResourceDataProvider() {}", "public function getUri(){\n return $this->uri;\n }", "protected function _request() {}", "private function setUri(): void\n {\n $this->uri = strtok($_SERVER['REQUEST_URI'],'?');\n }", "public function request($providerKey);", "public function __construct ($name, $value, $uri) {}", "public function renderUri();", "public function getServerPathAttribute();", "public function slashJsDataProvider() {}", "public function setUri($uri) {}", "protected function getRequest() {}", "protected function getHostFromUri() {}", "function uri(): string;", "function dataUri($path)\n {\n $data = $this->evaluate($this->resolve($path));\n\n return sprintf(\"data:%s;base64,%s\",\n $this->contentType($path), rawurlencode(base64_encode($data))\n );\n }", "function provider($label, $id)\n{\n return array(\n 'label' => $label,\n 'id' => $id,\n 'url' => './auth/' . $id\n );\n}", "public function buildFrontendUri() {}", "public function loadUri()\n {\n try\n {\n if ( !isset( $_GET ) || empty( $_GET ) )\n {\n throw new Exception( 'loadUri: Segment Null' );\n }\n else\n {\n $routes = explode( \"/\", $_GET['route'] );\n foreach ( $routes as $uri )\n {\n if ( $uri != \"\" )\n {\n $this->uri_segment[] = $uri;\n }\n (isset( $_SERVER['HTTP_REFERER'] )) ? $this->referer = $_SERVER['HTTP_REFERER'] : $this->referer = '';\n }\n }\n }\n catch ( Exception $e )\n {\n echo $e->getMessage();\n exit;\n }\n //base_uri arquivo atual\n $this->baseUri = substr( HTTPURL, 0, -1 );\n return $this;\n }", "private function request($request=null){\r\n\r\n if(is_null($request)){\r\n\r\n $this->request = request_uri();\r\n\r\n }else{\r\n\r\n $this->request = $request;\r\n\r\n }\r\n\r\n\r\n }", "public static function provider($provider)\n {\n static::$data = $provider;\n }", "function __construct($uri)\n {\n $this->uri = $uri;\n }", "public function provider_uri_only_trimed_on_internal()\n\t{\n\t\t$old_request = Request::$initial;\n\t\tRequest::$initial = new Request('foo/bar');\n\n\t\t$result = array(\n\t\t\tarray(\n\t\t\t\tnew Request('http://www.google.com'),\n\t\t\t\t'http://www.google.com'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\tnew Request('http://www.google.com/'),\n\t\t\t\t'http://www.google.com/'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\tnew Request('foo/bar/'),\n\t\t\t\t'foo/bar'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\tnew Request('foo/bar'),\n\t\t\t\t'foo/bar'\n\t\t\t)\n\t\t);\n\n\t\tRequest::$initial = $old_request;\n\t\treturn $result;\n\t}", "public function provideAction(){\n if($this->request->hasArgument('post')){\n $post = $this->postRepository->findByUid($this->request->getArgument('post'));\n if($post){\n $array['uid'] = $this->request->getArgument('post');\n $array['content'] = $post->getContent();\n $array['crdate'] = $post->getCrdate();\n $array['owner'] = $post->getOwner();\n $this->view->assign('dataJson',json_encode($array));\n }\n else{\n $this->view->assign('dataJson',json_encode(['content' => '<div class=\"alert alert-warning\">Post ('.$this->request->getArgument('post').') is not accessible or could not be loaded!</div>']));\n }\n }\n else{\n $this->view->assign('dataJson',json_encode(['content' => '<div class=\"alert alert-danger\">No post ID given!</div>']));\n }\n }", "public function get_data();", "public function url();", "public function url();", "public function url();", "private static function setUristr() {\n $uri_request = HttpHelper::getUri();\n if(WEB_DIR != \"/\") {\n self::$uri = str_replace(WEB_DIR, \"\", $uri_request);\n } else {\n self::$uri = substr($uri_request, 1);\n }\n }", "abstract public function getAuthUri(): string;", "function rest_get_queried_resource_route()\n {\n }", "public function uri() {\n return $this->uri;\n }", "public function ParseRequestUri(){\n $uri_arr = explode('/',$this->request_uri);\n $this->controller_name = empty($uri_arr[2]) ? 'top' : $uri_arr[2];\n $this->action_name = empty($uri_arr[3]) ? 'index' : $uri_arr[3];\n }", "function getRequestData($requestURI) {\n\t\treturn (explode('/', $requestURI));\n\t}", "public function getRequestPath(): string\n {\n return '/api/food-database/parser';\n }", "abstract public function get_url_read();", "public function setUri($uri);", "protected function setGetData()\n\t{\n\t\t$this->request->addParams($this->query->getParams());\n\t}", "public function dataProviderForTestGetUri()\n {\n return array(\n array(\n 'request' => new Request\\AddressArchive(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/archive_address',\n ),\n array(\n 'request' => new Request\\AddressBalance(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/address_balance',\n ),\n array(\n 'request' => new Request\\AddressUnarchive(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/unarchive_address',\n ),\n array(\n 'request' => new Request\\AutoConsolidateAddresses(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/auto_consolidate',\n ),\n array(\n 'request' => new Request\\ListAddresses(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/list',\n ),\n array(\n 'request' => new Request\\NewAddress(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/new_address',\n ),\n array(\n 'request' => new Request\\Send(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/payment',\n ),\n array(\n 'request' => new Request\\SendMany(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/sendmany',\n ),\n array(\n 'request' => new Request\\WalletBalance(),\n 'expected' => 'https://blockchain.info/de/merchant/test43/balance',\n ),\n );\n }", "private function makeDataFromUrl(){\n if (empty($_GET)){\n Route::$controller='home';\n return true;\n }\n $routs= explode('/',strip_tags($_GET['route']));\n $result=array();\n foreach ($routs as $k=>$v){\n switch ($k){\n case 0:\n $result['controller']=$v;\n $result['method']='index';\n Route::$controller=$v;\n Route::$method='index';\n break;\n default: $result['data'][]=$v;\n }\n }\n if (!empty($result['data']))\n Route::$data=$result['data'];\n return true;\n }", "abstract public function initFromRequest(\\App\\Request $request);", "public function requestUrl($path) {\n \treturn config('params.server-api') . $path ;\n\t}", "public function request(&$model) {\n\n if (!isset($model->request['uri']['host'])) {\n $model->request['uri']['host'] = 'www.google.com';\n }\n\n if (!isset($model->request['uri']['scheme'])) {\n $model->request['uri']['scheme'] = 'https';\n }\n\n $model->request['uri']['path'] = 'analytics/feeds/' . $model->request['uri']['path'];\n\n $response = parent::request($model);\n\n return $response;\n\n }", "protected function getDocumentProviderUri() {\n\t\tif ( isset( $this->params['canonicalUrl'] ) ) {\n\t\t\treturn $this->params['canonicalUrl'];\n\t\t}\n\t\treturn $this->getTitle()->getCanonicalURL();\n\t}", "abstract protected function token_url();", "public function uri()\n {\n return $this->_requestUri;\n }", "public function getUriVars(): array;", "public function route() {\r\n register_rest_route( 'api/v1', '/web-data-endpoint', array(\r\n 'methods' => 'GET',\r\n 'callback' => array( $this, 'callback' )\r\n ) );\r\n }", "function get($uri){\n require __DIR__ . '/../model/object.php';\n $headers = apache_request_headers();\n switch ($uri) {\n case '/':\n index($headers);\n break;\n\n case '/qualcosa.php':\n getQualcosa($headers);\n break;\n\n case '/questionari.php':\n getQuestionariQ($headers);\n break;\n\n case '/esercenti.php':\n getEsercentiQ($headers);\n break;\n\n case '/utenti.php':\n getUtentiQ($headers);\n break;\n\n case '/dashboardApertamente.php':\n getDashboard($headers);\n break;\n\n case '/esercenti.php':\n getEsercentiQ($headers);\n break;\n \n default:\n notFound();\n break;\n }\n}", "final protected function getPathProvider()\n {\n return $this->pathProvider;\n }", "public function requestValueProvider()\n {\n $values = [];\n $values[] = [ 'protocol', 'resque' ];\n $values[] = [ 'domain', 'www.domain.com' ];\n $values[] = [ 'port', '666' ];\n $values[] = [ 'base_path', '/path' ];\n $values[] = [ 'base_url', 'http://www.domain.com:666/path/' ];\n $values[] = [ 'sapi', 'cli' ];\n $values[] = [ 'controller', 'resque' ];\n $values[] = [ 'method', '' ];\n $values[] = [ 'params', [] ];\n $values[] = [ 'call', 'resque/' ];\n\n return $values;\n }", "public function getRequest();", "public function getRequest();", "public function getRequest();" ]
[ "0.6164993", "0.58355623", "0.58355623", "0.58355623", "0.5817619", "0.57942075", "0.5786084", "0.5744322", "0.56760424", "0.5617566", "0.5568506", "0.5568264", "0.5548408", "0.55432004", "0.5542756", "0.5539684", "0.5539684", "0.55318815", "0.5513079", "0.5492381", "0.5475437", "0.54678845", "0.54678845", "0.5464788", "0.54403317", "0.54403317", "0.54403317", "0.54403317", "0.54394907", "0.54394794", "0.5399492", "0.5399492", "0.5399492", "0.5391508", "0.53871727", "0.5367639", "0.5350743", "0.5335998", "0.5335998", "0.5320881", "0.5318701", "0.53109294", "0.5301994", "0.5298713", "0.5296294", "0.5279401", "0.5273174", "0.52714485", "0.52669024", "0.5265465", "0.5258608", "0.5250151", "0.5235191", "0.52288115", "0.5195546", "0.51799345", "0.51728123", "0.5171879", "0.51644397", "0.5146433", "0.5145873", "0.5137567", "0.5124343", "0.5121699", "0.51213753", "0.5117486", "0.51167953", "0.5098094", "0.50967294", "0.5091982", "0.5079483", "0.50783616", "0.50783616", "0.50783616", "0.507391", "0.5071746", "0.50672054", "0.5050979", "0.5038887", "0.5036097", "0.5033166", "0.5032834", "0.5030474", "0.5029201", "0.5027883", "0.5022013", "0.5021931", "0.50206804", "0.50009024", "0.5000083", "0.50000477", "0.4993227", "0.49888682", "0.49887025", "0.49752805", "0.4973735", "0.4967672", "0.4963985", "0.4963985", "0.4963985" ]
0.59148395
1
Data provider for request methods
public function methodProvider() { return array( array('GET', array( // standard GET support 'server' => array( 'REQUEST_METHOD' => 'GET', ), )), array('POST', array( // standard POST support 'server' => array( 'REQUEST_METHOD' => 'POST', ), )), array('PUT', array( // standard PUT support 'server' => array( 'REQUEST_METHOD' => 'PUT', ), )), array('PUT', array( // 'server' => array( // X-Http-Method-Override header support 'REQUEST_METHOD' => 'POST', 'HTTP_X_HTTP_METHOD_OVERRIDE' => 'PUT', ), )), array('PUT', array( // 'server' => array( // method_override querystring support 'REQUEST_METHOD' => 'POST', ), 'query' => array( 'method_override' => 'PUT' ) )), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAndPostDataProvider() {}", "public function getRequestData();", "function populate_from_request();", "protected function _request() {}", "public function parametersAndQueriesDataProvider() {}", "public function & GetRequest ();", "protected function setGetData()\n\t{\n\t\t$this->request->addParams($this->query->getParams());\n\t}", "public function populate_from_request()\r\n\t\t{\t\t\r\n\t\t\t// Interate through each class method.\r\n\t\t\tforeach(get_class_methods($this) as $method) \r\n\t\t\t{\t\t\r\n\t\t\t\t$key = str_replace('set_', '', $method);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// If there is a request var with key matching\r\n\t\t\t\t// current method name, then the current method \r\n\t\t\t\t// is a set mutator for this request var. Run \r\n\t\t\t\t// it (the set method) with the request var. \r\n\t\t\t\tif(isset($_GET[$key]))\r\n\t\t\t\t{\t\t\t\t\t\r\n\t\t\t\t\t$this->$method($_GET[$key]);\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public function get_data()\n {\n\n\n }", "protected function getRequest() {}", "public function request();", "function getDataFromRequest( &$data ) {\n\n\t\t$requestVar = KRequest::getInt($this->propertyName, NULL);\n\n\t\tif (empty($requestVar)) {\n\t\t\t$data->{$this->propertyName} = NULL;\n\t\t}\n\t\telse {\n\t\t\t$data->{$this->propertyName} = $requestVar;\n\t\t}\n\n\t}", "abstract public function request();", "abstract public function responseProvider();", "function req($key) {\r\n\treturn val(Request::$data, $key);\r\n}", "abstract public function provide() :ResponseProvider;", "public function lookup() { return $this->doRequest(); }", "protected function getData() { }", "private function __construct() {\n if ($_SERVER['REQUEST_METHOD'] == 'GET') {\n $this->data = $_GET;\n } else {\n if (isset($_SERVER['HTTP_CONTENT_TYPE'])) {\n $contentType = $_SERVER['HTTP_CONTENT_TYPE'];\n if (strpos($contentType, ';') !== false) {\n $split = explode(';', $contentType);\n $contentType = trim($split[0]);\n $enc = trim($split[1]);\n }\n if ($contentType == 'application/x-www-form-urlencoded') {\n $this->data = $_POST;\n } else if ($contentType == 'application/json') {\n $json = file_get_contents('php://input');\n $this->data = json_decode($json, true);\n }\n }\n }\n if (strpos($_SERVER['REQUEST_URI'], '/api/') === 0) {\n $this->route = explode('/', $_SERVER['REQUEST_URI']);\n }\n }", "public function providertestRequest()\r\n {\r\n return array(array(\"list\",\"course\"),array(\"list\",\"teacher\"));\r\n }", "function request() {\n return $this->presenter()->request();\n }", "public function service($request,$response,$utilities);", "abstract protected function getDataProvider();", "public function getRequest() {}", "public function getRequest() {}", "function getData()\n {\n $method = $this->getMethod();\n $return = null;\n if ($method == 'GET') {\n $return = $_GET;\n } else if ($method == 'POST') {\n $return = $_POST;\n }\n\n return $return;\n }", "abstract public function getData(GridViewRequest $request);", "function getData()\r\n {\r\n //if POST or PUT get the data wiht file_get_contents\r\n if ($this->request === \"POST\" || $this->request === \"PUT\") {\r\n $this->preCleanData = JSON_decode(file_get_contents(\"php://input\"));\r\n //else get the ID from $_get\r\n } else if ($this->request === \"GET\" || $this->request === \"DELETE\") {\r\n if (isset($_GET['ID'])) {\r\n $this->data = $_GET['ID'];\r\n return;\r\n } else {\r\n return;\r\n }\r\n }\r\n $this->cleanData();\r\n }", "protected function mapRequest() {\n foreach($_REQUEST as $key => $value) {\n $this->data[$key] = $value;\n }\n }", "public function __invoke(Request $request)\n {\n \n }", "public function getQueryDataProvider() {}", "public function request()\n {\n }", "public function request()\n {\n }", "abstract public function initFromRequest(\\App\\Request $request);", "public static function get_data(){\n\n }", "abstract public function get(Request $request);", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "private function inputs(){\n\t\tswitch($_SERVER['REQUEST_METHOD']){ // Make switch case so we can add additional \n\t\t\tcase \"GET\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"GET\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tcase \"POST\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"POST\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tcase \"PUT\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"PUT\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tcase \"DELETE\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"DELETE\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->response('Forbidden',403);\n\t\t\t\tbreak;\n\t\t}\n\t}", "protected function init() {\n switch ($this->requestType) {\n case 'get':\n $this->getData();\n break;\n\t\t\t\t\n\t\t\tcase 'sendTesteEmail':\n $this->sendTesteEmail();\n break;\n\t\t\t\t\n\t\t\tcase 'sendCreatedIndicationEmail':\n $this->sendCreatedIndicationEmail();\n break;\n }\n }", "public function set_data() {\n\t\tif (!empty($_GET)) {\n\t\t\tif ('search' === $this->_getKey) {\n\t\t\t\t$this->_getKey = array_keys($_GET);\n\t\t\t\t$this->searchModel->set_search_query(($this->searchModel->searchable)\n\t\t\t\t\t->registerModel(Modules::class, 'module_name')\n\t\t\t\t\t->registerModel(Multiplatforms::class, 'name')\n\t\t\t\t\t->registerModel(Log::class, 'method')\n\t\t\t\t\t->perform($_GET[$this->_getKey[0]])\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->searchModel->result();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function GetData();", "public function get_data();", "public function getBusinessRequest();", "public function getDataProvider();", "public function getDataProvider();", "abstract protected function data(ServerRequestInterface $request, Document $document);", "public function requestValueProvider()\n {\n $values = [];\n $values[] = [ 'protocol', 'resque' ];\n $values[] = [ 'domain', 'www.domain.com' ];\n $values[] = [ 'port', '666' ];\n $values[] = [ 'base_path', '/path' ];\n $values[] = [ 'base_url', 'http://www.domain.com:666/path/' ];\n $values[] = [ 'sapi', 'cli' ];\n $values[] = [ 'controller', 'resque' ];\n $values[] = [ 'method', '' ];\n $values[] = [ 'params', [] ];\n $values[] = [ 'call', 'resque/' ];\n\n return $values;\n }", "public function __construct(){\r\n\t\t\t$this->request_vars = array();\r\n\t\t\t$this->data = '';\r\n\t\t\t$this->http_accept = (strpos($_SERVER['HTTP_ACCEPT'], 'json')) ? 'json' : 'xml';\r\n\t\t\t$this->method = 'GET';\r\n\t\t}", "public function methodProvider()\n {\n return [\n ['GET'],\n ['POST'],\n ['PUT'],\n ['DELETE'],\n ['TRACE'],\n ['HEAD'],\n ['OPTIONS'],\n ];\n }", "public function showRequestPost();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function HTTPRequest(){\n\t}", "public function requestAction()\n {\n }", "public function getData ()\n {\n\n $data = [];\n\n foreach ($this as $key => $value) {\n\n $method = 'get' . ucfirst(camel_case($key));\n\n if (method_exists($this, $method)) {\n\n $data[$key] = $this->{$method}();\n\n }\n\n }\n\n $data['request_data'] = $this->hideProtectedFields($data['request_data']);\n\n return $data;\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __invoke(Request $request)\n {\n //\n }", "public function __construct(Request $request)\n {\n $this->requestData = $request;\n }", "public function processRequest();", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getData()\n {\n }", "public function getRequestWrapper();", "public function data();", "public function data();", "public final function set_request($request = array()) {\n\t \t\n\t \t/* set vars from the server request */\n\t\t$this->request = $request;\n\t\t\n\t\t/* extracts the method, but this is not really importand to do at this point, as it will be set later too */\n\t\t/* $this method is also set when the corresponding action ($this-read, create, ...) is called */\n\t\tif( isset($request['method']))\n\t\t\t$this->request_method = $request['method'];\n\t\t\n\t\t/* extract query vars */\n\t\tif( isset($request['queryvars']))\n\t\t\t$this->request_query_vars = (array) $request['queryvars']; // array is expected\n\n\t\t/* looking for model ids in the request */\n\t\t$this->id = $this->_find_in_request($this->properties->id_attribute);\n\t\t$this->parent_id = $this->_find_in_request($this->properties->parent_id_attribute);\t\n\t\t\n\n\t\t/* USER HANDLING */\n\n\t \t/* is the user allowed to make this request */\n\t \tif ( ( $this->properties->access == \"loggedin\" ) && ( ! is_user_logged_in() ) ) {\n\t\t\t$this->set_error( 56, 'user must be logged in for this request' );\t\t\t\t \t\n\t \t}\n\t\t\n\t \t/* some extra authentication */\n\t \t/* is the uer allowed to make this request */\n \t\t$allowed = $this->is_authenticated($request, $this->request_method);\n \t\tif(! $allowed)\n\t\t\t$this->set_error( 56, 'user is not authenticated' );\t\t\t\t \t\n\t \t\t\n\t\t\n\t}", "public function getDataAction () {\n\t\t$this->getAnswer();\n\t}", "public function getDataAction () {\n\t\t$this->getAnswer();\n\t}", "protected function getViewData() {\n\n }", "public function __construct(Request $request);", "abstract protected function data();", "public function prepareRequest()\n {\n }", "public function properRequestValueProvider()\n {\n $values = [];\n $values[] = [ 'protocol', 'resque' ];\n $values[] = [ 'domain', 'www.domain.com' ];\n $values[] = [ 'port', '666' ];\n $values[] = [ 'base_path', '/path' ];\n $values[] = [ 'base_url', 'http://www.domain.com:666/path/' ];\n $values[] = [ 'sapi', 'cli' ];\n $values[] = [ 'controller', 'resque' ];\n $values[] = [ 'method', '' ];\n $values[] = [ 'params', [ ] ];\n $values[] = [ 'call', 'resque/' ];\n\n return $values;\n }", "abstract protected function getReponseData() ;", "public function getDataRequest()\n {\n /** @var Core_Entity_Request $dataRequest */\n $dataRequest = $this->_requestClass;\n return new $dataRequest(\n array(\n Core_Entity_Model_Abstract::CONSTRUCT_STORAGE => $this->getStorage()\n )\n );\n }" ]
[ "0.64925283", "0.64772457", "0.638208", "0.63586116", "0.6265029", "0.61258274", "0.6072275", "0.59336543", "0.59240496", "0.5906705", "0.5848746", "0.5843327", "0.5838313", "0.58318454", "0.5806516", "0.5791805", "0.57849574", "0.57728714", "0.5758793", "0.57300675", "0.57278883", "0.5718869", "0.5713741", "0.57123566", "0.57123566", "0.56808007", "0.5680618", "0.567936", "0.56774586", "0.56763434", "0.5670601", "0.56689996", "0.56689996", "0.5664045", "0.56601065", "0.5653352", "0.56376374", "0.56376374", "0.56376374", "0.56365037", "0.5624227", "0.56112856", "0.5602044", "0.55931777", "0.5591249", "0.5580751", "0.5578402", "0.5578402", "0.5575523", "0.5566782", "0.556549", "0.5564224", "0.55576575", "0.5554158", "0.5554158", "0.5554158", "0.5554158", "0.5554158", "0.5554158", "0.5554158", "0.5554158", "0.55522615", "0.55412257", "0.5539767", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.553913", "0.55117035", "0.5508768", "0.5504342", "0.5504342", "0.5504342", "0.5504342", "0.5504342", "0.5504342", "0.5504342", "0.5504342", "0.5504342", "0.5491496", "0.5479578", "0.5479578", "0.5451406", "0.5443932", "0.5443932", "0.5433767", "0.542955", "0.54267544", "0.54081976", "0.5406705", "0.5399717", "0.53894067" ]
0.60596275
7
Data provider for headers
public function headerProvider() { return array( array('User-Agent', 'test'), array('X-Custom', 'value'), array('Accept', 'text/plain'), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeaderData() {}", "public function getHeaders()\n {\n }", "public function getHeaders()\n {\n }", "public abstract function getHeaders();", "public function getHeaders() {}", "public function get_headers()\n {\n }", "public function get_headers()\n {\n }", "public function get_headers()\n {\n }", "abstract public function getHeaders();", "public function setHeaders()\n {\n }", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "public function getHeaders();", "protected function makeHeader()\n {\n }", "abstract public function SetHeaders();", "public function getHeaders ();", "abstract public function header($name, $value);", "public function getAdditionalHeaderData() {}", "protected function _initHeaders()\n {\n $headers = new DataHolder();\n\n foreach ($_SERVER as $key => $value)\n {\n if (strpos($key, 'HTTP_') === 0)\n {\n $headers->set(substr($key, 5), $value);\n }\n elseif (in_array($key, array('CONTENT_LENGTH', 'CONTENT_TYPE')))\n {\n $headers->set($key, $value);\n }\n }\n\n $this->set('_headers', $headers);\n }", "public function setHeader($key,$val){ return $this->headers->set($key,$val); }", "public function getHeader($headerName);", "public function getCustomHeaders()\n {\n }", "public function withHeader($name, $value)\n {\n }", "protected function setHeader(){\n $this->header = [\n 'Auth-id' => $this->username,\n 'Auth-token' => $this->generateToken(),\n 'Timestamp' => time()\n ];\n }", "public function getHeaders()\n{\n return $this->headers;\n}", "function getHeaders(){ return $this->_Headers; }", "public function getRequestHeaders();", "public static function set_headers()\n {\n }", "public function add_header() {\n }", "public function setHeaders(array $header) {}", "public function getHeaders(){\n return $this->headers;\n }", "public function addHeader()\n {\n }", "public static function provideHeaders(): array\n {\n return [\n 'simple' => [\n ['Content-Type' => 'text/plain', 'Content-Encoding' => 'gzip'],\n ['Content-Type' => 'text/plain', 'Content-Encoding' => 'gzip'],\n ],\n\n 'with authorization as string' => [\n ['Content-Type' => 'application/json', 'Authorization' => 'bearer some-foo-token'],\n ['Content-Type' => 'application/json', 'Authorization' => '***'],\n ],\n\n 'with authorization as array' => [\n ['Content-Type' => 'application/json', 'Authorization' => ['bearer some-foo-token', 'basic foo']],\n ['Content-Type' => 'application/json', 'Authorization' => ['***']],\n ],\n ];\n }", "public function headers(): Collection;", "public function getHeader();", "public function getHeader();", "public function getHeader();", "public function addHeaders($headers) {}", "public function doMetaHeaders(&$headers)\r\n {\r\n $headers = array(\r\n 'title' => 'Title',\r\n 'description' => 'Description',\r\n 'author' => 'Author',\r\n 'date' => 'Date',\r\n 'robots' => 'Robots',\r\n 'template' => 'Template'\r\n );\r\n }", "public function get_header($key)\n {\n }", "public function getHeaderValue()\n {\n }", "public function headers(): array\n {\n return [\n Header::title('Student Name'),\n Header::title('Module 1'),\n Header::title('Module 2'),\n Header::title('Actions'),\n ];\n }", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function getHeaders(): array;", "public function setHeader($header);", "public function getHeader($key);", "public function getHeader($name)\n {\n }", "public function getHeader($name)\n {\n }", "private function setHeaderInformation()\n {\n $this->header = new \\stdClass();\n $request \t= \\Yii::$app->request;\n $requestHeaders = $request->getHeaders();\n foreach ($this->headerKey as $key => $value) {\n if ($requestHeaders->offsetExists($value)) {\n $this->header->$value = $requestHeaders->get($value);\n $this->header->status =200;\n } else {\n $this->header->status =500;\n yii::error('Header '.$value.\" is missing\", 'api_request');\n break;\n }\n }\n }", "function getHeaders() {\n\t\treturn $this->getData('headers');\n\t}", "public function format_for_header()\n {\n }", "public function getHeader(string $name);", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "public function getHeaderValue();", "public function getHeader($name);", "function add_header($key, $value) {\n $this->headers[$key] = $value;\n return $this;\n }", "public function populate_headers() {\n // If header is already defined, return it immediately\n if (!empty($this->headers)) {\n return;\n }\n\n // In Apache, you can simply call apache_request_headers()\n if (function_exists('apache_request_headers')) {\n $this->headers = apache_request_headers();\n } else {\n isset($_SERVER['CONTENT_TYPE']) && $this->headers['Content-Type'] = $_SERVER['CONTENT_TYPE'];\n\n foreach ($_SERVER as $key => $val) {\n if (sscanf($key, 'HTTP_%s', $header) === 1) {\n // take SOME_HEADER and turn it into Some-Header\n $header = str_replace('_', ' ', strtolower($header));\n $header = str_replace(' ', '-', ucwords($header));\n\n $this->headers[$header] = $val;\n $this->header_map[strtolower($header)] = $header;\n }\n }\n }\n\n }", "public function getHeader() {\n }", "function nocache_headers()\n {\n }", "abstract public function header();", "public function getHeaders(): array\n {\n }", "private function setHeaders() {\n // Data required for the token request\n $data = array(\n 'client_id' => $this->client_id,\n 'sign' => $this->calcSign($this->client_id, $this->secret, $this->getTime()),\n 't' => $this->getTime(),\n 'sign_method' => 'HMAC-SHA256',\n 'Content-Type' => 'application/json'\n );\n // If we have an access token, include it in the request\n if($this->access_token !== '') {\n $data['access_token'] = $this->access_token;\n }\n // Create a $dataHeaders array and assign it with colon separated key value pairs\n $dataHeaders = array();\n foreach($data as $k => $d) {\n $dataHeaders[] = \"$k:$d\";\n }\n return $dataHeaders;\n }", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}" ]
[ "0.68964887", "0.6823706", "0.6823706", "0.6798505", "0.6778691", "0.676379", "0.67631537", "0.67631537", "0.6751685", "0.67475873", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.66890407", "0.6684859", "0.66842264", "0.6675723", "0.66407514", "0.6567569", "0.6559434", "0.65366507", "0.6512292", "0.65003765", "0.64462423", "0.64397275", "0.6438109", "0.6423378", "0.64165646", "0.6409176", "0.63692385", "0.63535327", "0.63484824", "0.6343943", "0.63214886", "0.63191444", "0.6318628", "0.6318628", "0.6318628", "0.62776256", "0.6243341", "0.6236777", "0.62355375", "0.62343645", "0.62304646", "0.62304646", "0.62304646", "0.62304646", "0.62304646", "0.62304646", "0.62304646", "0.622459", "0.6224095", "0.6219375", "0.6219375", "0.62089175", "0.6198451", "0.6194787", "0.6191516", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.61897624", "0.6187868", "0.61860985", "0.61827517", "0.61780936", "0.61707735", "0.6155699", "0.61458576", "0.6145537", "0.6141636", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214", "0.6139214" ]
0.74517184
0
/ | | Future Use | | | All these methods do not return anything and are reserved for future use | Reserved for future use
public function getReservedForFutureUse1Attribute(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _i() {\n }", "public function implementation_pending()\n {\n }", "final private function __construct() {}", "final private function __construct() {}", "public function helper()\n\t{\n\t\n\t}", "public function __invoke()\n {\n return null;\n }", "public function __invoke()\n {\n return null;\n }", "private function method1()\n\t{\n\t}", "private function method2()\n\t{\n\t}", "function __return_null()\n {\n }", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "private final function __construct() {}", "protected final function __construct() {}", "abstract protected function requiredOperations1(): void;", "private function __() {\n }", "function broken() { }", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "protected function _request() {}", "protected function get__futureItems()\n\t{\n\t\treturn NULL;\n\t}", "abstract protected function _unimplemented() : Exception;", "abstract protected function _unimplemented() : Exception;", "abstract protected function _unimplemented() : Exception;", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct () {}", "public function deprecatedMethod () {}", "public function implementation_pending(): void\n {\n }", "private function private_method() {}", "abstract protected function doEvil();", "private function static_things()\n\t{\n\n\t\t# code...\n\t}", "private function aFunc()\n {\n }", "abstract protected function external();", "public function get_lookup(/* ... */)\n {\n throw new \\RuntimeException('Method not implemented');\n }", "function __return_false()\n {\n }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }" ]
[ "0.5690714", "0.5613104", "0.55886376", "0.55886376", "0.55652255", "0.5531449", "0.5531449", "0.5516829", "0.5513821", "0.5508555", "0.5488889", "0.5488889", "0.5488889", "0.54562825", "0.5425141", "0.54194343", "0.5394593", "0.53891337", "0.5378156", "0.5378156", "0.5378156", "0.5378156", "0.537471", "0.5366878", "0.5357028", "0.5357028", "0.5357028", "0.5344276", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53439873", "0.53408134", "0.53408134", "0.53153706", "0.5308562", "0.5302859", "0.52630645", "0.52548575", "0.52443916", "0.523596", "0.520793", "0.52036977", "0.51994264", "0.5191349", "0.5191349", "0.5191349", "0.5191349", "0.5191349" ]
0.0
-1
Index page for Admin Teams
public function index() { return view('admin::management.admin_teams_manager.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function index()\n\t{\n\t\t$teams = $this->teams->retrieve_with_field();\n\n\t\t$data = array(\n\t\t\t'title' => 'Teams',\n\t\t\t'teams' => $teams,\n\t\t\t'js' => array(''),\n\t\t\t'css' => array('/styles/admin.css'),\n\t\t\t'sidenav' => self::$user_links\n\t\t);\n\n\t\t$this->load->view('admin/show_all_teams.php', $data);\n\t}", "public function index()\n {\n $teams=Teams::where('id', '!=', 1)->where('delete', '!=', 1)->get();\n return view(\"admin.teams.index\", compact('teams'));\n }", "public function index()\n {\n $page_title = \"Manage Team\";\n $team = Team::all();\n return view('admin.team.index', compact('page_title', 'team'));\n }", "public function index()\n {\n $teams = Teams::get();\n $teams = $this->subSqlStr($teams);\n return view('admin.team',compact('teams'));\n }", "public function index()\n {\n Gate::authorize('teams');\n\n $teams = Team::paginate();\n return view('admin.teams.index',[\n 'teams' => $teams,\n ]);\n }", "public function index()\n {\n $team = Team::all();\n return view('admin.team.index')->with('team',$team);\n }", "public function index()\n {\n //\n\n return view('admin.team.index')->withEntries(Team::orderByDesc('id')->get());\n }", "public function index()\n {\n //\n\n $teams = Team::all();\n\n return view('admin.teams.index', compact('teams'));\n }", "public function index()\n {\n $teams = Team::all();\n return view('admin.team.index',compact('teams'));\n }", "public function index()\n {\n return view('teams.index', ['teams' => HelpdeskTeam::all()]);\n }", "public function index()\n {\n $teams = Team::all();\n $choice = Choice::first();\n return view(\"pages.admin.home.team.index\", compact(\"teams\", \"choice\"));\n }", "public function index()\n {\n $teams = Team::paginate(6);\n return view('admin.about.team.index',compact('teams'));\n }", "public function index()\n {\n return view('backend.team.index');\n }", "public function index()\n {\n return view('backend.team.index');\n }", "public function indexAction(){\n $user = $this->getUser();\n\n if($user->getRole()->getRole() === 'ROLE_EMPLOYEE'){\n $teams = $user->getTeams();\n }else if($user->getRole()->getRole() === 'ROLE_MANAGER'){\n $teams = $user->getManagedTeams();\n }else if($user->getRole()->getRole() === 'ROLE_ADMIN'){\n $em = $this->getDoctrine()->getManager();\n $teams = $em->getRepository('UserBundle:Team')->findAll();\n }else{\n $teams = null;\n }\n\n return $this->render('UserBundle:Team:table.html.twig', [\n 'teams' => $teams,\n ]);\n }", "public function actionTeams()\n\t{\n\t\t// renders the view file 'protected/views/site/index.php'\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t$this->render('teams');\n\t}", "public function index()\n\t{\n\t\techo '<h3>Exams :</h3>';\n\t\techo '<a href=\"' . site_url(\"admin/createExam\") . '\" > Create Exam </a> - ';\n\t\techo '<a href=\"' . site_url(\"admin/deleteExam\") . '\" > Delete Exam </a> - ';\n\t\techo '<a href=\"' . site_url(\"admin/renameExam\") . '\" > Rename Exam </a>';\n\t\t\n\t\techo '<h3>Users :</h3>';\n\t\techo '<a href=\"' . site_url(\"admin/createUser\") . '\" > Create User </a> - ';\n\t\techo '<a href=\"' . site_url(\"admin/suspendUser\") . '\" > Suspend User </a> - ';\n\t\techo '<a href=\"' . site_url(\"admin/activateUser\") . '\" > Activate User </a>';\n\t}", "public function index()\n {\n return view('employees::teams.index');\n }", "public function index()\n {\n $people = People::paginate(15);\n return view('admin.pages.team.index')\n ->with('people', $people);\n }", "public function index()\n {\n $teammembers = $this->teammemberRepository->getTeammembers();\n\n return view('admin.teammember.index', compact('teammembers'));\n }", "public function index()\n {\n \n try {\n\n // fetching team members\n $team_members = TeamMembers::select('id', 'first_name', 'last_name', 'image','designation', 'designation', 'status','created_at')->get();\n \n return view('admin.team.list-team-member')->with('team_members',$team_members->toArray());\n\n } catch (\\Exception $e) {\n print_r($e->getMessage());\n }\n\n }", "public function index()\n {\n $authUser = \\Auth::user();\n $userId = $authUser['id'];\n\n $teamList = BdTeam::with(['bdTeamMembers', 'department']);\n if($userId != 13) {\n $teamList->where(['created_by' => $userId]);\n }\n $teamList = $teamList->orderBy('id', 'desc')->get();\n $teamList = $teamList->all();\n\n return view('bd_team.index', compact('teamList', 'authUser'));\n }", "public function index()\n {\n $db = team::all();\n $count = $db->count();\n return view('admin.pages.about.team.index',compact('db','count'));\n }", "public function index()\n {\n return view('pages.teams.teams');\n }", "public function index()\n {\n $teams = team::all();\n \n\n return view('/teamindex', compact('teams'));\n }", "public function index()\n {\n return view('teams.index');\n }", "public function index(){\n $nbrPag = 20;\n $teams = Team::orderBy('league_id')->whereHas('players', function($query){\n $query->where('activity', '=', 1);\n })->has('players', '>', 0)->paginate($nbrPag);\n\n if(!Input::get('page')){\n $page = 0;\n } else {\n $page = Input::get('page') * $nbrPag - $nbrPag;\n }\n return view('admin.players.index', compact('teams', 'page'));\n }", "public function index()\n {\n $this->groups = Team::all();\n return view('admin.teams.index', $this->data);\n }", "public function index()\n {\n access([\"can-owner\", \"can-host\", \"can-manager\"]);\n\n $teams = Team::all();\n $operators = Operator::all();\n $cities = City::all();\n\n return view(\"teams.index\", [\n 'teams' => $teams,\n 'operators' => $operators,\n 'cities' => $cities\n ]);\n }", "public function indexAdmin()\n {\n \t$meetings=ceremony::all();\n \treturn view('admin.yigincaq.index',compact('meetings'));\n }", "public function index()\n\t{\n $teams = Team::all();\n return view('teams.index', compact('teams'));\n\t}", "public function indexAdminAction(){\n $this->denyAccessUnlessGranted('ROLE_ADMIN', 'Vous n\\'avez pas accès à cette page' );\n return $this->render('LSIMarketBundle:admin:index.html.twig');\n }", "public function index()\n {\n if (! Gate::allows('exam_access')) {\n return abort(401);\n }\n\n\n if (request('show_deleted') == 1) {\n if (! Gate::allows('exam_delete')) {\n return abort(401);\n }\n $exams = Exam::onlyTrashed()->get();\n } else {\n $exams = Exam::all();\n }\n\n return view('admin.exams.index', compact('exams'));\n }", "public function index()\n {\n $teams = \\App\\Team::all();\n return view('team.index', compact('teams'));\n }", "public function index()\n {\n $teams = Team::orderBy('id','asc')->get();\n\n return view('player.teams.index', [\n 'teams' => $teams,\n ]);\n }", "public function index()\n {\n $user = $this->userContract->findWith(request()->user()->id, ['profile']);\n $select = [null => 'Please Select'] + $this->teamCategoryContract->getTeamCategorySelect();\n $categories = $this->teamCategoryContract->getCategoriesWithTeams();\n $categoryId = null;\n $teamId = null;\n\n return view('backend.teams.index', compact('user', 'categories', 'select', 'categoryId', 'teamId'));\n }", "public function index()\n {\n $teams = Team::paginate(15);\n return view('admin_pages.settings.ourteam',compact('teams'));\n }", "public function index()\n {\n //\n $teams =Team::paginate(2);\n return view('team/lists')->withTeams($teams);\n }", "public function listAction()\n {\t\n\t\t$this->createActivity(\"Admin\",\"List view\");\n $em = $this->getDoctrine()->getManager();\n\t\t$oEmTeacher=$em->getRepository('BoAdminBundle:Admin');\n $admin = $oEmTeacher->getTeacherList(\"Teacher\");\n\t\t$nb_tc = count($admin);\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null) $page=1;\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$admin = $oEmTeacher->getTeacherList(\"Teacher\",$offset,$nb_cpp);\n return $this->render('admin/index.html.twig', array(\n 'admin' => $admin,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"personnel\",\n\t\t\t'sm'=>\"admin\",\n ));\n }", "public function actionTeam()\n\t{\n\t\t// renders the view file 'protected/views/site/index.php'\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t$this->render('team');\n\t}", "public function index()\n {\n $exams=Exams::all();\n return view('dashboard')->with('exams',$exams);\n }", "public function index()\n {\n return view('Team.index');\n }", "public function index()\n {\n //\n $admins = Admin::all();\n return view ('theme.admin.admin_manager')->with(['admins'=>$admins]);\n }", "public function action_index()\n\t{\n\t\tif ( ! Auth::instance()->logged_in('admin'))\n\t\t\tthrow new HTTP_Exception_403();\n\t\t\n\t\t// show admin page\n\t\t$companies = ORM::factory('company')->find_all();\n\t\t$this->template->content = View::factory('admin/admin')->bind('companies', $companies);\n\t\t\n\t}", "public function index()\n {\n $teams = Team::latest()->paginate(20);\n return view('system.teams.index',compact(['teams']));\n }", "public function admin_index() {\n\t\t$this->Team->recursive = 0;\n\t\t$teams = $this->Team->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'Team.id >=' => 1,\n\t\t\t\t//'Team.status' => array(StatusOfTeam::Active)\n\t\t\t)\n\t\t));\n\t\t$this->set('teams', $teams);\n\t}", "public function index()\n {\n $now = Carbon::now();\n\n $deact_users = Question::where('status',1)->count();\n $all_users = Team::all()->count();\n\n $questions = Question::whereStatus(1)->get();\n\n return view('home', compact( 'deact_users', 'all_users', 'questions'));\n }", "public function indexAction()\n {\n $this->view->title = 'Li-No | Admin Index';\n $this->_forward('login', 'auth');\n }", "public function index()\n {\n $teams = Team::all();\n \n return view('teams.index', compact('teams'));\n }", "public function index()\n {\n // //List of Teams\n $team = Noe_Team::all(); \n\t\t// foreach($team as $musics){\n // dd($musics->musics);\n // }\n\t\t$teams = ShortList::all(); \n return view('Noe2019/index', ['team'=>$team,'teams'=>$teams]);\n }", "public function index()\n {\n $teams = Team::all();\n return view('teams.index', ['teams' => $teams]);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('SkokiOrlikBundle:Matches')->findAll();\n $teams = $em->getRepository('SkokiOrlikBundle:Teams')->findAll();\n $tt = array();\n foreach($teams as $t) {\n $tt[$t->getId()] = $t;\n }\n //var_dump($tt,$entities);die();\n\n return $this->render('SkokiOrlikBundle:Matches:index.html.twig', array(\n 'entities' => $entities,\n 'teams' => $tt\n ));\n }", "public function index()\n {\n //get current user's id\n $user = Auth::User()->id;\n $league = League::find(1);\n $league_id = $league->id;\n\n //search players through user and league id's\n $teamMappings = Team::where('user_id', $user)->where('league_id', $league_id)->get();\n\n $playerIds = [];\n foreach ($teamMappings as $mapping) {\n $playerIds[] = $mapping->player_id;\n }\n\n $players = Player::whereIn('id', $playerIds)->get();\n\n\n return view('myteam', compact('players'));\n\n }", "public function index()\n {\n $title = DB::table('page')->select('title')->first()->title;\n $footer_text = DB::table('page')->select('footer_text')->first()->footer_text;\n $email = DB::table('page')->select('email')->first()->email;\n $logo_url = DB::table('page')->select('logo_url')->first()->logo_url;\n $plants = DB::table('plants')->get();\n\n if (Auth::check()) {\n return view('admin', ['title' => $title, \n 'footer_text' => $footer_text, \n 'email' => $email, \n 'logo_url' => $logo_url, \n 'plants' => $plants\n ]);\n } else {\n return redirect(route(\"login\"));\n }\n }", "public function index()\n\t{\n\t\tView::render('admin');\n\t}", "public function indexAction()\r\n {\r\n echo 'User admin index';\r\n }", "public function index( ){\n\t\tif( Auth::check() ){\n\t\t\treturn View::make('admin.index');\n\t\t} else {\n\t\t\treturn Redirect::route('login');\n\t\t}\n\t\t// return View::make( 'welcome' );\n\t}", "public function action_index() {\r\n\r\n\t$main_content = View::forge(\"account/simpleauth\");\r\n $main_sidebar = View::forge(\"vlog/sidebar\");\r\n\r\n\t$this->template->page_content = $main_content;\r\n $this->template->page_sidebar = $main_sidebar;\r\n }", "public function indexAction() {\n $admin = $this->session->admin;\n if (!is_null($admin)) {\n $this->view->grid = Yourdelivery_Model_Crm_Ticket::getGrid(null, null, $admin->getId());\n }\n else {\n $this->error(__b(\"Admin information not found. Strange :(\"));\n } \n }", "public function index()\n {\n Auth::check();\n $admins = Admin::all();\n return view(\"ControlPanel.admin.index\")->with([\n \"admins\" => $admins\n ]);\n }", "public function index()\n {\n \n $teams = Team::paginate();\n\n return view('team.index', compact('teams'))\n ->with('i', (request()->input('page', 1) - 1) * $teams->perPage());\n }", "public function index()\n {\n $teams = DB::table('team_user')\n ->where('user_id', Auth::user()->id)\n ->get();\n \n return TeamUserResource::collection($teams, 200); \n }", "function index() {\n $data['team'] = $this->Team_model->get_all_team();\n\n $data['_view'] = 'team/index';\n $this->load->view('layouts/main', $data);\n }", "public function index()\n {\n $users = Admin::all();\n $loggedId = intval(Auth::guard('admin')->id());\n\n return view('admin.users.admins.index', [\n 'users' => $users ,\n 'loggedId' => $loggedId\n ]);\n }", "public function adminIndexAction()\r\n {\r\n $pages=$this->getDoctrine()->getRepository(\"AppBundle:Page\")->findAll();\r\n $view=array('pages' => $pages,\r\n );\r\n return $this->render('page/adminIndex.html.twig', $view);\r\n }", "public function index()\n {\n $teams = $this->teamRepository->get();\n\n return $this->view('index', compact('teams'));\n }", "public function index()\n {\n $admins = administrator::get();\n return response()->view('admin.index', ['admins' => $admins]);\n }", "public function index()\n {\n return view('admin.teacher')->with(['teachers'=> Teacher::all(), 'schedules'=>Schedule::all()]);\n }", "public function index()\n {\n try {\n $teams = Team::all('name', 'logo_uri');\n if ($teams) {\n return json_encode(array(\"status\" => 200, \"message\" => \"Team List\", \"response\" => $teams));\n }\n return json_encode(array(\"status\" => 500, \"message\" => \"No teams to display\"));\n } catch (Throwable $e) {\n report($e);\n return json_encode(array(\"status\" => 500, \"message\" => \"Something went wrong\"));\n }\n }", "public function indexAction(): void\n {\n echo 'User admin index';\n }", "public function index()\n {\n $years = Year::with('teams')->orderBy('name', 'desc')->get();\n\n return view('admin.teams.index', compact('years'));\n }", "public function index()\n {\n if (Auth::guard('admin')->check()) {\n return \\view('admin.match.index');\n } else {\n return Redirect('login')->with('msg', 'Anda harus login'); //routing login\n } \n }", "public function index()\n {\n $this->data[\"clients\"] = auth()->user()->getUser()->client()->get();\n $this->data['team_permissions'] = Group::whereType(\"teammate.role\")->get();\n return view(\"employer.teammate.index\", $this->data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('UserBundle:User')->findAllAdmin();\n\n return $this->render('AdminBundle:admin:index.html.twig', array(\n 'entities' => $entities\n ));\n }", "public function index()\n {\n $teamRankingT20s = TeamsRankingT20::all();\n $clubs = Club::pluck('name','id');\n return view('admin.teamRankingt20.index',compact('teamRankingT20s','clubs'));\n }", "public function index()\n {\n $data = [];\n $data['teams'] = AdvisoryTeam::all();\n return view('backend.pages.advisor.index',$data);\n }", "public function index() {\r\n $admins = DB::table('user_account')->get();\r\n return View::make('admin.index', array('users' => $admins));\r\n }", "public function team(){\n\tif ($this->session->userdata('logged_in')){\n\t\t$data['title'] = 'Team';\n\t\t$data['teamsList'] = $this->common_model->get_all('fr_team', '');\n\t\t$this->set_layout('team/team_list',$data);\n\t}else{\n\t\t$this->load->view('site/login');\n\t}\n}", "public function index()\n {\n return view('admin.users',[\n 'users'=>User::all(),\n 'currentPage'=>'Our Team',\n 'middlePage'=>null,\n 'job_titles'=>JobTitle::all(),\n 'polyvalent'=>PolyvalentToggle::first(),\n ]);\n }", "public function index()\n {\n $user = Auth::user();\n if($user->rol_vp == 'admin'){\n $id = 0;\n }else{\n $id = 1;\n }\n request()->merge(['id' => $id]);\n $list = $this->funGetList(request())->data;\n return view('admin.index');\n }", "public function index()\n {\n if (Auth::user()->accountType == 'REGULAR'){\n return redirect('/');\n }\n\n else{\n $accomodations = accomodations::all();\n $adventures = adventures::all();\n $historics = historics::all();\n $foods = foods::all();\n\n return view('admin',[\n 'accomodations' => $accomodations,\n 'adventures' => $adventures,\n 'foods' => $foods,\n 'historics' => $historics,\n 'title' => 'Admin Page'\n ]);\n }\n }", "public function index()\n {\n if (session()->has('teamId'))\n return redirect('/questions/1');\n return view('login');\n }", "public function index()\n {\n\n \treturn view('userRoles.teacher.home');\n }", "public function index()\n {\n return 'Wellcome! This is master admin panel.';\n }", "public function getTutorialsLists() {\n //get admin id from session \n $admin_id = Session::get('bio_admin_id');\n if($admin_id == \"\"){\n return Redirect::to('/backend');\n }\n $data = DB::table('tbl_tutorials')->orderBy('id')->get();\n return view('admin.manage-tutorials')->with('data', $data);\n }", "public function index()\n {\n $value = TeamMember::select('*')\n ->where('user_id','=', auth()->user()->id )\n ->get();\n \n //? Using Eloquent to output the teams related to a user \n $user = User::find(auth()->user()->id);\n $users = $user->teams;\n\n //?outputing the data inside personal table \n $personal_task = Personal::select('*')\n ->where('user_id','=', auth()->user()->id )\n ->get();\n \n \n\n //? Returing the View with data passed into it.\n return view('User.Dashboard',[\n 'TeamMember' => $value,\n 'Team' => $users,\n 'Personal'=>$personal_task,\n ]);\n }", "public function index()\n {\n $users = DB::table('users')->count();\n $tables = DB::table('rest_tables_conts')->count();\n $requests = DB::table('rest_requests')->count();\n $adminSettings = DB::table('settings')->get();\n\n return view('adminpanel::admin.index')->with([\n 'settings' => $adminSettings,\n 'users' => $users,\n 'requests' => $requests,\n 'tables' => $tables,\n ]);\n }", "public function index()\n {\n return view('admin.teacher.index');\n }", "public function adminAction()\n {\n $contact = new ContactManager();\n $coordonnees = $contact->getContact();\n return $this->twig->render('admin/admin.html.twig', array(\n \"coordonnees\" => $coordonnees));\n }", "public function index()\n {\n // ******** Page title ********\n $pageTitle = \"Équipes\";\n $team = new Team;\n // ******** Get current season ********\n $currentSeason = $team->getCurrentSeason();\n // ******** Get all teams form current season ********\n $teams = $team->getTeamsFromCurrentSeason($currentSeason);\n\n return view('team/index', compact('pageTitle', 'teams', 'currentSeason'));\n }", "public function index()\n {\n $admins=Admin::all();\n $currentAdmin=Auth::guard('admin')->user();\n if($currentAdmin->admin_type==1){\n return view('admin.admin.index',compact('admins','currentAdmin'));\n }else{\n return back();\n }\n\n }", "public function index()\n {\n $admin = 0 ;\n if (Auth::user()->adminLevel == $admin)\n {\n $staff = DB::table('users')->paginate(10);\n return view('admin/index', ['staffs' => $staff] );\n }\n else\n {\n $finance = 1;\n $sales = 2;\n $development = 3;\n\n if (Auth::user()->adminLevel == $admin) {\n return redirect(action('adminpanelController@index'));\n } elseif (Auth::user()->adminLevel == $finance) {\n return redirect(action('financeController@index'));\n } elseif (Auth::user()->adminLevel == $sales) {\n return redirect(action('salesController@index'));\n } elseif (Auth::user()->adminLevel == $development) {\n return redirect(action('developmentController@index'));\n } else {\n return view('auth/login');\n }\n }\n }", "public function index()\n {\n if (!config('tvi.web.enabled')) {\n return redirect(route('admin.index'));\n }\n\n return Inertia::render('website/home/Index');\n }", "public function test_teams_index_authenticated_admin_shows_correct_view(){\n $this->signInAdmin();\n $response = $this->get(route('teams.index'));\n $response->assertStatus(200);\n $response->assertViewIs('views.teams.index');\n }", "public function index()\n\t{\n\t\t// Replaced by combined teacher interface\n\t\treturn Redirect::route('teacher.index');\n\t}", "function admin_index(){\r\n\t $this->__requireRole(ROLE_TUTOR);\r\n//\t $this->Scenariosetup->bindModel(array('hasOne' => array('Player')));\r\n\t $this->set('scenariosetups', $this->Scenariosetup->findAll());\r\n\t $this->set('usedParametersets', $this->UsedParameterset->findAll());\r\n\t $this->render();\r\n\t}", "public function index(){\n $artistes = $this->Artiste->findArtiste();\n\n $this->render('admin.artistes.index', compact('artistes'));\n }", "public function index()\n {\n //Only Admin can access Admin Dashboard\n $role='';\n if(Auth::check()) {\n $role = Auth::user()->role;\n }\n if($role == 'Admin') {\n //Fetching all students and instructors for display on admin landing page\n $students = User::where('role','Student')\n ->where('archived','=','0')\n ->get();\n $instructors = User::where('role','Instructor')\n ->where('archived','=','0')\n ->get();\n return view('admin/home', compact('students','instructors'));\n }\n else\n {\n return view('auth/not_authorized');\n }\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $users = $em->getRepository('AppBundle:Member')->findAll();\n\n return $this->xRender('Admin/Lid/index.html.twig', array(\n 'users' => $users,\n ));\n }", "public function index()\n {\n $groups = $this->Chat->getAllRoom();\n $this->set(['title' => 'Chat Online', 'groups' => $groups]);\n $this->render('index');\n }" ]
[ "0.7514271", "0.74876475", "0.7446683", "0.7314998", "0.72911364", "0.7218733", "0.7192002", "0.71891284", "0.71735555", "0.71319366", "0.7106088", "0.7044672", "0.7031703", "0.7031703", "0.7021351", "0.6980214", "0.69531024", "0.6950973", "0.69330543", "0.69053555", "0.6882386", "0.68696433", "0.6867598", "0.68659383", "0.6864723", "0.6856985", "0.6849629", "0.683314", "0.68270934", "0.68065304", "0.6795166", "0.6775657", "0.67747116", "0.6759135", "0.6751544", "0.67451173", "0.6735801", "0.6733973", "0.6727112", "0.67228955", "0.6720517", "0.67144734", "0.6699381", "0.6695798", "0.6694907", "0.6691961", "0.66905427", "0.6683577", "0.6669714", "0.66671014", "0.66492414", "0.6637352", "0.66352415", "0.66328746", "0.662311", "0.6614692", "0.6594989", "0.65883887", "0.658794", "0.6581531", "0.6577543", "0.6573331", "0.65578485", "0.6553195", "0.6552419", "0.65493023", "0.65446866", "0.6542245", "0.65401626", "0.65233594", "0.6514366", "0.6512906", "0.65109664", "0.6504164", "0.6497491", "0.64971393", "0.64882463", "0.6487939", "0.6487286", "0.6484471", "0.64791054", "0.64773", "0.6476809", "0.64722365", "0.6470602", "0.64663345", "0.6460356", "0.6455432", "0.6449659", "0.6447092", "0.6442986", "0.6430881", "0.64300555", "0.6424571", "0.6423374", "0.64232737", "0.6420428", "0.6420072", "0.64169145", "0.6416258" ]
0.7571364
0
Create new Admin Teams
public function create() { $informationView = $this->informationView(); $associationsView = $this->associationsView(); $statusSelectView = $this->statusSelectView(); return view('admin::management.admin_teams_manager.create_edit', compact( 'informationView', 'associationsView', 'statusSelectView' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view(\"admin.teams.create\");\n }", "public function create()\n {\n //\n\n return view('admin.teams.create');\n }", "public function create()\n {\n return view('admin.teams.create');\n }", "public function create()\n {\n //\n return view('admin.team.create');\n }", "public function create()\n {\n\n if (is_null($this->user) || !$this->user->can('team.create')) {\n abort(403, 'Sorry !! You are Unauthorized to create any team !');\n }\n \n return view('backend.team.create');\n }", "public function create()\n {\n $user = \\Auth::user();\n\n $companies = $user->getHandledCompanies('Adding/Editing of Teams');\n\n\n return view('pages.teams.createteam', [\n 'companies' => $companies,\n ]);\n }", "public function create()\n {\n return view('admin.teams.create', $this->data);\n }", "public function create()\n\t{\n\t\tif(Auth::check()) {\n\t\t\t$user = User::find(Auth::user()->id);\n $team = Team::where(\"user_id\", \"=\", $user->id)->count();\n if($team > 0) {\n return Redirect::to(\"/teams/\".$user->team->region.\"/\".$user->team->clean_name)->with('error', 'Your already have a team');\n }\n\t\t\tif($user->team_id != 0) {\n\t\t\t\treturn Redirect::to(\"/teams/\".$user->team->region.\"/\".$user->team->clean_name)->with('error', 'Your already have a team');\n\t\t\t} else {\n\t\t\t\treturn View::make('teams.create');\n\t\t\t}\n\t\t} else {\n\t\t\treturn Redirect::to(\"/login\");\n\t\t}\n\t\t\n\t}", "public function create()\n {\n return view('admin.about.team.create');\n }", "public function create()\n {\n return view('admin.pages.about.team.create');\n }", "public function create()\n {\n return view('admin.team.create');\n }", "function createAdminTeam($name, $leader_id) {\n $now = time();\n $formatedDate = date(\"Y-m-d\", $now);\n $today = Tools::date2timestamp($formatedDate);\n\n\n // create admin team\n $teamId = Team::getIdFromName($name);\n if (-1 === $teamId) {\n $teamId = Team::create($name, T_(\"CodevTT Administrators team\"), $leader_id, $today);\n }\n\n if (-1 != $teamId) {\n\n // --- add to codev_config_table\n Config::getInstance()->setQuiet(true);\n Config::getInstance()->setValue(Config::id_adminTeamId, $teamId, Config::configType_int);\n Config::getInstance()->setQuiet(false);\n\n // add leader as member\n $adminTeam = TeamCache::getInstance()->getTeam($teamId);\n $adminTeam->addMember($leader_id, $today, Team::accessLevel_dev);\n $adminTeam->setEnabled(false);\n\n // add default ExternalTasksProject\n // TODO does Admin team need ExternalTasksProject ?\n $adminTeam->addExternalTasksProject();\n\n // NOTE: CodevTT Admin team does not need any side task project.\n\n } else {\n throw new Exception (\"Admin Team creation failed: \".$name);\n }\n return $teamId;\n}", "public function create()\n {\n return view('teams.create');\n }", "public function create()\n {\n return view('player.teams.create');\n }", "public function create()\n {\n Gate::authorize('teams.create');\n\n $jobtitle = JobTitle::get();\n return view('admin.teams.create', [\n 'team' => new Team(),\n 'jobtitle' => $jobtitle,\n ]);\n }", "protected function Action_CreateTeam () {\n \n $data = $_POST;\n \n $team = new M_Team;\n $profile = new M_TeamProfile;\n \n /* Set name */\n if(!$team->SetField('name', $data['name']))\n $this->messages->Error('Please enter a valid team name.');\n \n /* Set game_tag */\n if(!$profile->SetField('game_tag', $data['game_tag']))\n $this->messages->Error('Please enter a valid team game tag.');\n \n /* Set team_type */\n if(!$profile->SetField('team_type', $data['team_type']))\n $this->messages->Error('Please select a valid team type.');\n \n /* Set profile_key */\n if(!$team->FilterField('profile_key', $data['profile_key']))\n $this->messages->FieldError('profile_key', 'Please enter a valid team profile URL.');\n else if($team->CheckProfileKeyExists($data['profile_key']))\n $this->messages->FieldError('profile_key', 'Sorry, this team profile URL is already taken.');\n else\n $team->SetField('profile_key', $data['profile_key'], false);\n \n if(!$this->messages->has_errors) {\n AppLog::Report('Team was created', $team->data);\n $team->Create($this->session->user, $profile);\n \n $this->messages->Success('Your team has been created.'); //todo: Queue this\n \n $this->steps_sub->GoToNext(false, array('tid' => $team->Id()));\n }\n else {\n AppLog::Report('Team creation failed', var_export($team->data, true));\n }\n }", "public function teamCreate()\n {\n // Create team\n $team = new Team([\n 'name' => null,\n ]);\n\n $team->respo_id = Auth::user()->id;\n if ($team->save()) {\n // Put user in the team\n $user = Auth::user();\n $user->ce = true;\n $user->team_id = $team->id;\n $user->team_accepted = true;\n if ($user->save()) {\n return redirect(route('dashboard.ce.myteam'))->withSuccess('L\\'équipe a été créé !');\n }\n }\n return $this->error('Impossible d\\'ajouter l\\'équipe !');\n }", "public function create()\n { \n return view('teams.create');\n }", "public function create()\n {\n return view('employees::teams.create');\n }", "function new_team()\n\t{\n\t\t// Grab the list of fields for the dropdown.\n\t\t$fields = $this->fields->retrieve_id_name();\n\n\t\t// If there were no fields, then error out.\n\t\tif (!$fields)\n\t\t{\n\t\t\tshow_error('You must add a field before adding a team.');\n\t\t}\n\n\t\t$data = array(\n\t\t\t'form_action' => 'action_create_team',\n\t\t\t'title' => 'Create a New Team',\n\t\t\t'js' => array('/js/admin/admin.js'),\n\t\t\t'css' => array('/styles/admin.css'),\n\t\t\t'fields' => $fields,\n\t\t\t'name' => '',\n\t\t\t'homeid' => '',\n\t\t\t'city' => '',\n\t\t\t'region' => '',\n\t\t\t'msg' => 'Please enter the information regarding the new team.',\n\t\t\t'submit_message' => 'Add Team',\n\t\t\t'sidenav' => self::$user_links\n\t\t);\n\n\t\t$this->load->helper(array('form'));\n\n\t\t$this->load->view('admin/team_edit.php', $data);\n\t}", "public function create()\n {\n return view('teams.create');\n }", "public function create()\n {\n return view('admin.pages.team.add');\n }", "public function createTeams(Request $request){\n $validator = Validator::make($request->all(), [\n 'team_name' => 'required',\n 'sports_id' => 'required',\n 'department_name' => 'required'\n ]);\n\n if($validator->passes()){\n if(!$this->teamExist($request->sports_id, $request->team_name, $request->department_name)){\n if($this->createTeam($request->sports_id, $request->team_name, $request->department_name)){\n return redirect('/admin/teams');\n }\n }else{\n $request->session()->flash('message', 'Team already exist');\n return redirect('/admin/teams/add');\n }\n }else{\n return redirect('/admin/teams/add')->withErrors($validator);\n }\n }", "public function new ( Team $team){\n if ($team->adding == 1 || $team->manager_id == auth()->id()){\n return view('Pages.Teams.add',compact('team'));\n }\n else\n {\n abort('403');\n }\n }", "public function create()\n {\n //\n return view('team/create');\n }", "public function create()\n {\n return view('backend.team.create');\n }", "public function create()\n {\n //\n return view('team.create');\n }", "public function create()\n {\n //\n return view('team.create');\n }", "public function create()\n {\n return view('admin.teammember.create');\n }", "public function create()\n {\n $team = Team::get();\n // $teams = Team::all();\n\n return view('teams.create', compact('team'));\n }", "public function create()\n {\n return view('team.create'); \n }", "public function create()\n {\n return view('admin.team.add-team-member');\n }", "public function create()\n {\n // $years = Year::orderBy('name', 'desc')->get();\n // return view('admin.teams.create', compact('years'));\n return redirect('/admin/teams');\n }", "public function create()\n {\n return view('/teamcreate');\n }", "public function create()\n {\n {\n $teams = Team::all();\n return view('games.create')->with('teams', $teams);\n }\n }", "public function create()\n {\n return view('create-team');\n }", "public function create()\n { \n $teams = Team::all(); \n return view('players.create',['teams'=>$teams]);\n }", "public function create()\n { \n $this->data[\"clients\"] = auth()->user()->getUser()->client()->get();\n $this->data['team_permissions'] = Group::whereType(\"teammate.role\")->get();\n return view('employer.teammate.create', $this->data);\n }", "public function create()\n {\n return view('team.create');\n }", "public function create()\n {\n $teams = Team::where('user_id',Auth::user()->id)->latest()->paginate(20);\n $users = User::where('role','client')->latest()->paginate(50);\n $salons = Salon::where('user_id',Auth::user()->id)->latest()->get();\n $shops = Shop::where('user_id',Auth::user()->id)->latest()->get();\n return view('system.teams.create',compact(['teams','users','salons','shops']));\n }", "public function create()\n {\n $form = 'create';\n\n\n return view(getView('backend.team.form'), compact('form'));\n }", "function action_create_team()\n\t{\n\t\t// Loading form validation helper and the Markdown parser.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('homeid', 'Field', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('city', 'City', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('region', 'Region', 'trim|required|xss_clean');\n\n\t\t$name = $this->input->post('name');\n\t\t$homeid = $this->input->post('homeid');\n\t\t$city = $this->input->post('city');\n\t\t$region = $this->input->post('region');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\tif ($this->teams->insert($name, $homeid, $city, $region))\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'message' => 'Team added successfully!'\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\techo json_encode(array(\n\t\t\t'status' => 'danger',\n\t\t\t'message' => 'One or more of the fields are invalid.'\n\t\t));\n\t}", "public function create()\n {\n \n $teams= Team::all();\n return view(\"players.create\",compact('teams'));\n }", "public function create()\n {\n return view('Team.create');\n }", "public function create_team()\n {\n $this->form_validation->set_rules('name', 'Team Name', 'trim|required|alpha_numeric|is_unique[team.name]');\n \n if ($this->form_validation->run() == false) {\n \n $this->data['teams'] = $this->CreateTeamModel->get_teams();\n $this->load->view('create_team_view',$this->data);\n } else {\n $this->load->model('CreateTeamModel');\n if ($result = $this->CreateTeamModel->create_team()) {\n \n echo '<script>alert(\"Team has been created successfully!\");</script>';\n $this->data['teams'] = $this->CreateTeamModel->get_teams();\n $this->load->view('create_team_view',$this->data);\n } else {\n echo '<script>alert(\"Team creation failed!\");</script>';\n $this->data['teams'] = $this->CreateTeamModel->get_teams();\n $this->load->view('create_team_view',$this->data);\n }\n }\n }", "public function create()\n {\n $teams = Team::all();\n return view('player.create', compact('teams'));\n }", "public function create()\n {\n $games = \\App\\Game::orderBy('date','asc')\n ->orderBy('time','asc')\n ->select('name','game')\n ->get();\n $data = compact('games');\n return view('m.teams.create', $data);\n }", "public function store(AdminTeamsRequest $request)\n {\n $inputs = $request->sortInputs();\n $insert = AdminTeam::saveAdminTeam(null, $inputs['info'], $inputs['relations']);\n\n $insert ? Session::flash('error', $insert) : Session::flash('success', 'Admin Team Successfully Updated.');\n return redirect()->route('admin.management.admin-teams-manager');\n }", "public function create()\n {\n if (! Gate::allows('exam_create')) {\n return abort(401);\n }\n\n $courses = \\App\\Course::ofTeacher()->get();\n $courses_ids=$courses->pluck('id');\n $courses=$courses->pluck('course_code', 'id')->prepend(trans('quickadmin.qa_please_select'), '');\n $lessons = \\App\\Lesson::whereIn('course_id',$courses_ids)->get()->pluck('course_code', 'id')->prepend(trans('quickadmin.qa_please_select'), '');\n $questions = \\App\\Question::get()->pluck('question', 'id');\n\n\n return view('admin.exams.create', compact('courses', 'lessons', 'questions'));\n }", "public function store()\n {\n $this->validate($this->request, Team::CREATE_TEAM_RULES);\n\n $user = $this->user->createUser($this->request->all());\n\n $teamRequestData = collect($this->request->all())->put('user_id', $user->id);\n $team = $this->team->postTeam($teamRequestData);\n\n $this->createAdminsRole($team);\n\n return redirect()->route('home')->with([\n 'alert' => 'Team successfully created. Now login to your team!',\n 'alert_type' => 'success',\n ]);\n }", "public function createTeam($teamName, $student, $league);", "public function createAction(Request $request){\n $em = $this->getDoctrine()->getManager();\n $team = new Team();\n $form = $this->createForm(new TeamType($em), $team);\n $form->handleRequest($request);\n\n if($form->isValid()){\n $team = $form->getData();\n //$user->setUsername($form->getData()->getUsername());\n //$user->setPassword($form->getData()->getPassword());\n //$user->setRole($form->getData()->getRole());\n //$user->setFirstName($form->getData()->getFirstName());\n //$user->setLastName($form->getData()->getLastName());\n //$user->setTotalPoints($form->getData()->getTotalPoints());\n //$user->setIsActive($form->getData()->getIsActive());\n\n $em->persist($team);\n $em->flush();\n $this->get('session')->getFlashBag()->add('success', 'Team '.$team->getName().' successfully created.');\n return $this->redirectToRoute('team_index');\n }\n\n return $this->render('UserBundle:Team:create.html.twig', [\n 'form' => $form->createView(),\n 'team' => $team,\n ]);\n }", "public function create()\n {\n\n $team = new Team();\n return view('team.create', compact('team'));\n }", "public function create()\n {\n $leagues = League::all();\n return view('Team.create', compact('leagues'));\n }", "public function createAdminToken();", "public function create($object){\n\t\t$url = WEBSERVICE. \"teams/create\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"POST\");\n\t\t$this->HTTPRequest->setData($object);\n\t\t$response = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $response;\n\t}", "public function create()\n {\n $authUser = \\Auth::user();\n $userDetails = $authUser->employeeProfile()->first();\n\n $bdUser = User::with('employee')->whereHas('employeeProfile', function (Builder $query) use($userDetails) {\n $departmentId = $userDetails->department_id; // B.D department id\n $query->where(['department_id' => $departmentId]);\n })->first();\n\n $teamHodId = $bdUser->leaveAuthorities()->where(['leave_authorities.priority' => '2'])->pluck('manager_id')->first();\n \n $existingUsers = BdTeamMember::where('isactive', 1)->pluck('user_id')->all();\n $existingUsers[] = $teamHodId;\n\n $users = User::whereHas('employee', function (Builder $q) {\n $q->where('isactive', 1);\n })->whereHas('employeeProfile', function (Builder $query) use($existingUsers, $userDetails) {\n $departmentId = $userDetails->department_id; // B.D department id\n\n $query->where(['department_id' => $departmentId, 'isactive' => 1])->whereNotIn('user_id', $existingUsers);\n })->get()->all();\n\n return view('bd_team.create', compact('users', 'userDetails'));\n }", "public function createAdminsRole($team)\n {\n // Create role\n $roleId = DB::table('roles')->insertGetId([\n 'name' => 'Admins',\n 'slug' => str_slug('Admins', '-'),\n 'user_id' => $team->user_id,\n 'team_id' => $team->id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n // Implementing permissions on role\n $permissions = DB::table('permissions')->get();\n foreach ($permissions as $permission) {\n DB::table('role_permissions')->insert([\n 'role_id' => $roleId,\n 'permission_id' => $permission->id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n }\n\n // Inserting user into role.\n DB::table('users_roles')->insertGetId([\n 'role_id' => $roleId,\n 'user_id' => $team->user_id,\n 'team_id' => $team->id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n return true;\n }", "public function create()\n {\n $clubs = Club::all();\n return view('teams.create')->with('clubs', $clubs);\n }", "public function create()\n {\n return view('admin.manager_teacher.add');\n }", "public function create()\n {\n $sports = sports::get();\n\n return view('admins.create',compact('sports'));\n }", "private function administer(): array {\n return [\n 'title' => $this->t('Administer Team'),\n 'restrict access' => TRUE,\n ];\n }", "public function create()\n {\n return view('admin.Leagues.createleague');\n\n }", "public function addTeams(){\n $sports = Sports::all();\n return view('admin.add_teams')->with('sports', $sports);\n }", "public function create()\n {\n // $admins = Admin::whereDoesntHave('conversations')->get();\n\n $admins = Admin::all();\n\n return view('admin.conversations.create',compact('admins'));\n }", "public function create()\n {\n $players = Player::with( 'team' )->get();\n\n $free_agents = [];\n\n // Find players without a team\n foreach ( $players as $player ) {\n if ( count( $player->team ) < 1 ) {\n array_push( $free_agents, $player );\n }\n }\n\n $free_agent_collection = collect( $free_agents );\n\n return view( 'project1.createTeam', [\n 'free_agents' => $free_agent_collection\n ]);\n }", "public function create()\n {\n $teamData = Team::all();\n $temoignageData = Temoignage::all();\n return view('adminTemoignage', compact('temoignageData', 'teamData'));\n }", "public function create()\n {\n $this->authorize('admin.teacher.create');\n\n return view('admin.teacher.create');\n }", "public function test_an_authenticated_user_can_create_a_new_forum_threads()\n {\n $this->signIn();\n\n //we hit the end point to create anew thread\n\n $thread = make('App\\Thread');\n\n\n $response = $this->post('/thread', $thread->toArray());\n\n // dd($response->headers->get('Location'));\n //when we visit the thread page\n\n //we should see the new thread\n $this->get($response->headers->get('Location'))\n ->assertSee($thread->title)\n ->assertSee($thread->body);\n\n //we should see the new thread\n //\n\n }", "public function create()\n {\n $roles = \\Spatie\\Permission\\Models\\Role::all();\n $organizations = DB::table('organizations')->get();\n $countries = DB::table('recipients_country')->pluck('country_name', 'recipients_country_id')->all();\n $departments = DB::table('departments')->pluck('dept_name', 'department_id')->all();\n\n $roles_array = [];\n foreach ($roles as $role) {\n $roles_array[$role->id] = $role->name;\n }\n\n\n $organizations_array = [];\n foreach ($organizations as $organization) {\n $organizations_array[$organization->organization_id] = $organization->organization_name;\n }\n\n\n return view('admin.users.create')->with([\n 'roles' => $roles_array, 'organizations' => $organizations_array,\n 'countries' => $countries, 'departments' => $departments\n ]);\n //return view('admin.user.create');\n }", "public function createAdmin() { return view('panel.users.create.admin'); }", "public function create()\n {\n return view('teacher.exams.create');\n }", "public function createAdmin() {\n if(User::where('email', '[email protected]')->count() == 0) {\n $admin = new User();\n $admin->name = \"Administrador\";\n $admin->email = \"[email protected]\";\n $admin->password = bcrypt(\"admin\");\n $admin->user_type = User::UserTypeAdmin;\n $admin->save();\n }\n }", "public function run()\n {\n\n AboutTeam::create([\n 'id' => '1',\n 'titulo' => 'About Team',\n 'subtitulo' => 'STORY ABOUT OUR TEAM',\n 'tituloImagem' => 'WHAT WE ARE EXPERT AT',\n 'subtituloImagem' => 'Why Clients Choose Us?',\n 'desc1' => 'A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.',\n 'desc2' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookm arksgrove right at the coast of the Semantics, a large language ocean. A small river named',\n 'imagem' => 'https://raw.githubusercontent.com/araujoblucas/Projeto-Laravel-2019-12/master/storage/app/public/img/defaults/1500x1000.jpg',\n 'dado1' => '1000+',\n 'descdado1' => 'Client Consultations',\n 'dado2' => '10mIns',\n 'descdado2' => 'Recovered cost for clients',\n 'dado3' => '95%',\n 'descdado3' => 'Successful Cases',\n 'dado4' => '30+',\n 'descdado4' => 'Professional Attorneys',\n 'contatoTitulo' => 'WE ARE LOOKING FOR NEW PARTNERS',\n 'contatodesc' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.',\n ]);\n }", "public function create()\n {\n $data['branch'] = BranchModel::all();\n $data['department'] = DepartmentModel::all();\n $data['employee'] = EmployeModel::get()->toArray();\n $data['team'] = TeamModel::with('team_member')\n ->join('users','users.id','=','team.team_leader_id')\n ->get()->toArray();\n\n return view('team.team',$data);\n }", "public function create($projectId) {\n $user = \\Nette\\Environment::getUser();\n dibi::query(\"INSERT INTO teams SET leader = %s\", $user->id, \", project = %i\", $projectId);\n $teamId = dibi::getInsertId();\n\n dibi::query(\"INSERT INTO students_in_teams SET login = %s\", $user->id, \", team = %i\", $teamId);\n \n return $this->getTeam($teamId);\n }", "public function create()\n {\n $game_teams = GameTeam::all();\n $notices = Notice::all();\n return view('admin/solicitation.create',compact('game_teams','notices'));\n }", "public function create()\n {\n // $this->authorize('create');\n // return view('admin.admins.show');\n }", "public function create()\n {\n if (!Session()->has('user_id')) {\n return redirect('login');\n }\n $common_array = array(\n 'content_heading' => 'All Settings'\n );\n //$developer_id = Session::get('developer_id');\n $roles = MtbRole::all();\n $plans = FitnessMemberPackage::all();\n //$languages = MtbLanguage::all();\n //$timezones = MtbTimezone::all();\n //$developer_teams = DtbDevelopTeam::where('developer_id', $developer_id)->get();\n //$projects = DtbProject::where('developer_id', $developer_id)->get();\n return view('users.add', compact('roles','plans', 'common_array'));\n \n }", "protected function create(array $data)\n {\n return Team::create([\n 'team_name' => $data['team_name'],\n 'user1'=>$data['user1'],\n 'user2'=>$data['user2'],\n 'user3'=>$data['user3'],\n 'user4'=>$data['user4'],\n 'user5'=>$data['user5'],\n 'user6'=>$data['user6'],\n 'password' => bcrypt($data['password']),\n ]);\n }", "public function store(Teams $team, TeamRequest $request)\n {\n $input = $request->all();\n\n/*\n\n if ($request->team_lead) {\n $team_lead = $request->team_lead;\n } else {\n $team_lead = null;\n }\n $team->team_lead = $team_lead;\n try {\n /* Check whether function success or not * /\n $team->fill($request->except('team_lead'))->save();\n /* redirect to Index page with Success Message * /\n return redirect('teams')->with('success', 'Teams Created Successfully');\n } catch (Exception $e) {\n /* redirect to Index page with Fails Message * /\n return redirect('teams')->with('fails', 'Teams can not Create'.'<li>'.$e->errorInfo[2].'</li>');\n }\n*/\n\n\n\n $teams = $this->teamRepository->create($input);\n\n Flash::success('Team saved successfully.');\n\n return redirect(route('backend.teams.index'));\n }", "public function create()\n {\n $roles = Role::pluck('name','name')->all();\n $teams = Team::pluck('name','id')->all();\n $teams = Arr::add($teams, \"\", \"no team\");\n $positions = [\n \"0\"=>\"Team leader\",\n \"1\"=>\"Senior team member\",\n \"2\"=>\"Junior team member\",\n null=>\"no position\"\n ];\n return view('users.create',compact('roles', 'teams', 'positions'));\n }", "public function store()\n\t{\n\t\tif(Auth::check()) {\n\t\t\t$user = User::find(Auth::user()->id);\n if($user->team_id == 0) {\n\n if($user->qp < 100) {\n return Redirect::to('/teams/create')\n ->withInput()\n ->with('error', 'You do not have enough QP!');\n }\n\n $input = Input::all();\n $validation = Validator::make($input, Team::$rules);\n if ($validation->passes())\n {\n $clean_team_name = str_replace(\" \", \"\", Input::get('teamname'));\n $clean_team_name = strtolower($clean_team_name);\n $clean_team_name = mb_strtolower($clean_team_name, 'UTF-8');\n\n // Is Team name taken?\n $check_teams = Team::where(\"region\", \"=\", Input::get('region'))->where(\"clean_name\", \"=\", $clean_team_name)->count();\n if($check_teams > 0) {\n return Redirect::to(\"/teams/create\")->with(\"error\", \"This Team name is already taken\");\n }\n\n $team = new Team;\n $team->user_id = Auth::user()->id;\n $team->team_level_id = 1;\n $team->exp = 0;\n $team->name = Input::get('teamname');\n $team->clean_name = $clean_team_name;\n $team->region = Input::get('region');\n $team->website = Input::get('website');\n if (Input::hasFile('logo'))\n {\n if(Input::file('logo')->getClientSize() > 1048576) {\n return Redirect::to('/teams/create')\n ->withInput()\n ->withErrors($validation)\n ->with('error', 'The maximum size for images is 1 MB!');\n }\n $extension = Input::file('logo')->getClientOriginalExtension();\n Input::file('logo')->move(public_path().\"/img/teams/logo/\", Input::get('region').\"_\".$clean_team_name.\".\".$extension);\n $team->logo = Input::get('region').\"_\".$clean_team_name.\".\".$extension;\n } else {\n $team->logo = \"default.jpg\";\n }\n\n\n if(Input::get('description') == \"\") {\n $team->description = \"\";\n } else {\n $team->description = Input::get('description');\n }\n $team->save();\n $user->team_id = $team->id;\n $user->qp = $user->qp - 100;\n $user->save();\n\n return Redirect::to(\"/teams/\".$team->region.\"/\".$team->clean_name)->with('success', 'Your Team has been created');\n\n } else {\n return Redirect::to('/teams/create')\n ->withInput()\n ->withErrors($validation)\n ->with('error', 'There were validation errors.');\n }\n\n } else {\n return Redirect::to(\"/teams/\".$user->team->region.\"/\".$user->team->clean_name)->with('error', 'Your already have a team');\n }\n\n\t\t} else {\n\t\t\treturn Redirect::to(\"/login\");\n\t\t}\n\t}", "public function create(Request $request,$department_id)\n {\n \t$team = TeamLead::where('department_id','=',$department_id)->get();\n \n\n \t\t$team_leads = TeamLead::where('department_id','=',$department_id)->pluck('team_lead_id','id');\n \t\tFormer::populate($team_leads);\n\n \t\t$team_members = TeamLead::where('department_id','=',$department_id)->pluck('member_id','id');\n \t\tFormer::populate($team_members);\n\n\n \t\t$team_lead = User::where('team_lead','=',1)->where('department_id','=',$department_id)->pluck('fname','id');\n \t\t$member_id = User::where('team_lead','=',0)->where('department_id','=',$department_id)->pluck('fname','id');\n \t\treturn view('admin.departments.team',compact('member_id','team_lead','department_id','team','team_members','team_leads'));\n \t\n }", "function fantacalcio_admin_teams_list() {\n $out = l(\"Aggiungi squadra\", \"admin/fantacalcio/teams/add\", array(\n \"attributes\" => array(\"class\" => \"btn btn-info\"))) . \"<br/><br/>\";\n \n $teams = Team::all();\n \n if ($teams) {\n \n $header = array(\"Nome\", \"Utente\", \"Gironi\", \"Attiva\");\n \n foreach ($teams as $t_id => $team) {\n \n $account = User::get($team->user);\n \n $groups_team = \"\";\n foreach ($team->getCompetitions() as $competition) {\n $groups_team .= $competition . \"<br>\";\n }\n $rows[] = array(\n l($team->name, \"admin/fantacalcio/teams/\" . $t_id), \n $account != null ? $account->name : \"\", \n $groups_team, \n fantacalcio_check_value($team->active));\n }\n $out .= theme(\"table\", array(\n \"header\" => $header, \n \"rows\" => $rows, \n \"attributes\" => array(\"class\" => array(\"table table-responsive\")), \n \"sticky\" => TRUE, \n \"empty\" => t(\"Nessuna squadra\")));\n }\n \n return $out;\n}", "public function create()\n {\n $teamRankingT20s = TeamsRankingT20::all();\n\n /*$roles = PlayerRole::pluck('name','id')->all();*/\n\n\n //$batting_styles = BattingStyle::pluck('name','id')->all();\n\n $clubs = Club::pluck('name','id')->all();\n\n\n\n\n //$bowling_styles = BowlingStyle::pluck('name','id')->all();\n\n return view('admin.teamRankingt20.create', compact('clubs','teamRankingT20s'));\n }", "public function create(TeamUserRequest $request)\n {\n\n $team = $this->repository->newInstance([]);\n Form::populate($team);\n\n return $this->theme->of('team::user.team.create', compact('team'))->render();\n }", "public function create()\n {\n// $cates = Article::where('pid',15)->get();\n// $ids = getIds($cates);\n// $articles = Article::select('id','title')->whereIn('pid',$ids)\n// ->orderBy('id','desc')->get();\n return view('admin.team_add',compact('articles'));\n }", "public function create()\n {\n if(Auth::user()->type == 'admin'){\n return view('admin.users.create');\n }else{\n return redirect()->route('admin.dashboard.index');\n }\n \n }", "public function create()\n {\n $adminsubs = Subject::orderBy('name')->get();\n return view('admin.create',[ 'adminsubs' => $adminsubs ]);\n }", "public function create()\n {\n return view('admin.admins.create'); \n }", "public function create()\n {\n $teacher = User::where('is_teacher','=',1 )->lists('name','id')->all();\n //developer can be a student or alumni\n $students = User::where('is_teacher','=',0 )->orWhere('is_teacher','=',2 )->lists('name','id')->all();\n return view('project.create',compact('teacher','students'))->with('title',\"Create New Project\");\n }", "public function create()\n {\n //\n\n $admin = Auth::user();\n $roles = Role::select('*')->whereIn('name',['superadmin','admin','admin-editor'])->get();\n // dd($admin);\n return view('admin.create',compact('admin','roles'));\n\n }", "public function testAccessAdminCreatePage()\n {\n $user = factory(User::class)->create();\n $response = $this->actingAs($user)\n ->get(route('admin.project.create'));\n\n $response->assertSuccessful();\n\n }", "public function create() {\n\t\t$groups = PermissionGroup::with(['permissions'])->where('slug', 'branches')->orWhere('slug', 'admins')->orWhere('slug', 'trips')->orWhere('slug', 'customers')->get();\n\t\t$types = AdminType::where('active', 1)->whereIn('id', [2, 3, 4])->latest()->get();\n\t\treturn view('merchants.admins.create', compact('groups', 'types'));\n\t}", "public function createadmin(){\n if($this->check() == true){\n if(isset($_POST['submit'])){\n $name = $_POST['name'];\n $surname = $_POST['surname'];\n $email = $_POST['email'];\n $pass = $_POST['password'];\n $this->admindb->insert('admin', array(\n 'name' => $name,\n 'surname' => $surname,\n 'email' => $email,\n 'password' => password_hash($pass, PASSWORD_BCRYPT, [12])\n ))->get();\n }else{\n // die(\"There's some problem with creating admin...\");\n }\n $this->view('admin/createadmin');\n// $this->view('admin/createadmin');\n }\n }", "public function admin_create()\n {\n return View::make('admin_create');\n }", "public function create()\n {\n if (Gate::denies('admins.create', Auth::user())) {\n return response()->view('errors.403', [], 403);\n }\n $data = [\n 'languages' => array(\n 'english',\n 'arabic'\n ),\n 'nationalities' => array(\n 'Egyptian',\n 'Saudian'\n ),\n 'formRoute' => route('admins.store'),\n 'submitBtn' => trans('admin.update')\n ];\n return view(AD . '.admins.form')->with($data);\n }", "public function addUserTeam_post() {\n /* Validation section */\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->set_rules('MatchGUID', 'MatchGUID', 'trim|required|callback_validateEntityGUID[Matches,MatchID]');\n $this->form_validation->set_rules('ContestGUID', 'ContestGUID', 'trim|required|callback_validateEntityGUID[Contest,ContestID]');\n $this->form_validation->set_rules('UserTeamType', 'UserTeamType', 'trim|required|in_list[Draft]');\n $this->form_validation->set_rules('UserTeamName', 'UserTeamName', 'trim');\n $this->form_validation->set_rules('IsPreTeam', 'IsPreTeam', 'trim|required|in_list[Yes,No]');\n $this->form_validation->set_rules('UserTeamPlayers', 'UserTeamPlayers', 'trim');\n\n $this->form_validation->validation($this); /* Run validation */\n /* Validation - ends */\n\n $UserTeam = $this->SnakeDrafts_model->addUserTeam($this->Post, $this->SessionUserID, $this->SeriesID, $this->MatchID, $this->ContestID);\n if (!$UserTeam) {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"An error occurred, please try again later.\";\n } else {\n $this->Return['Data']['UserTeamGUID'] = $UserTeam;\n $this->Return['Message'] = \"Team created successfully.\";\n }\n }", "public function create()\n\t{\n\n\t\tif ( $this->admin )\n\t {\n\t \n\t $view['teams'] = Team::with(array('senior', 'junior'))->get();\n\t\t\t$view['homes'] = Home::all();\n\t\t\t$view['admin'] = true;\n\n\t } else {\n\n\t \t$view['teams'] = Team::with(array('senior', 'junior'))->where('id', '=', $this->userTeam->id)->get();\n\t\t\t$view['homes'] = Home::where('team_id', '=', $this->userTeam->id)->get();\n\t\t\t$view['admin'] = false;\n\t }\n\n\t if (count($view['homes']) == 0) return Redirect::to('error')->with('error_message', 'There are no famillies to report on yet !'); \n\n\t\t$this->layout->content = View::Make('visits.new', $view);\n\t}" ]
[ "0.7099234", "0.693582", "0.68697625", "0.6781409", "0.67559433", "0.67178804", "0.6678022", "0.66657555", "0.66631234", "0.6610386", "0.66054773", "0.6587731", "0.6564389", "0.65042084", "0.6468542", "0.6463741", "0.64607596", "0.64475876", "0.6434369", "0.6416071", "0.6411088", "0.6406779", "0.6384215", "0.63474655", "0.62900656", "0.6281776", "0.62757015", "0.62757015", "0.6256279", "0.6250702", "0.62474746", "0.6213194", "0.6211435", "0.61746484", "0.6163193", "0.61567366", "0.6151908", "0.6141246", "0.61349016", "0.6124558", "0.6097848", "0.60632664", "0.60521936", "0.60339415", "0.6032499", "0.6025552", "0.601501", "0.5999643", "0.59637266", "0.5920203", "0.59109116", "0.5904845", "0.5901887", "0.58909", "0.5886171", "0.58428985", "0.58402455", "0.58102137", "0.5742575", "0.5733942", "0.5729209", "0.5715768", "0.5703085", "0.5697389", "0.5693625", "0.56885934", "0.5688335", "0.5686049", "0.56770027", "0.5661972", "0.5654745", "0.5650336", "0.5644084", "0.563848", "0.5623958", "0.5621569", "0.5620535", "0.5609899", "0.5608355", "0.5600491", "0.5596327", "0.55947596", "0.5592945", "0.55917925", "0.5590434", "0.55877775", "0.55855346", "0.55838144", "0.5581939", "0.5577908", "0.5570589", "0.5569323", "0.5568913", "0.5567275", "0.556284", "0.5555812", "0.5550376", "0.5547863", "0.55474716", "0.55395883" ]
0.6407261
21
Create new Admin Teams
public function store(AdminTeamsRequest $request) { $inputs = $request->sortInputs(); $insert = AdminTeam::saveAdminTeam(null, $inputs['info'], $inputs['relations']); $insert ? Session::flash('error', $insert) : Session::flash('success', 'Admin Team Successfully Updated.'); return redirect()->route('admin.management.admin-teams-manager'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view(\"admin.teams.create\");\n }", "public function create()\n {\n //\n\n return view('admin.teams.create');\n }", "public function create()\n {\n return view('admin.teams.create');\n }", "public function create()\n {\n //\n return view('admin.team.create');\n }", "public function create()\n {\n\n if (is_null($this->user) || !$this->user->can('team.create')) {\n abort(403, 'Sorry !! You are Unauthorized to create any team !');\n }\n \n return view('backend.team.create');\n }", "public function create()\n {\n $user = \\Auth::user();\n\n $companies = $user->getHandledCompanies('Adding/Editing of Teams');\n\n\n return view('pages.teams.createteam', [\n 'companies' => $companies,\n ]);\n }", "public function create()\n {\n return view('admin.teams.create', $this->data);\n }", "public function create()\n\t{\n\t\tif(Auth::check()) {\n\t\t\t$user = User::find(Auth::user()->id);\n $team = Team::where(\"user_id\", \"=\", $user->id)->count();\n if($team > 0) {\n return Redirect::to(\"/teams/\".$user->team->region.\"/\".$user->team->clean_name)->with('error', 'Your already have a team');\n }\n\t\t\tif($user->team_id != 0) {\n\t\t\t\treturn Redirect::to(\"/teams/\".$user->team->region.\"/\".$user->team->clean_name)->with('error', 'Your already have a team');\n\t\t\t} else {\n\t\t\t\treturn View::make('teams.create');\n\t\t\t}\n\t\t} else {\n\t\t\treturn Redirect::to(\"/login\");\n\t\t}\n\t\t\n\t}", "public function create()\n {\n return view('admin.about.team.create');\n }", "public function create()\n {\n return view('admin.pages.about.team.create');\n }", "public function create()\n {\n return view('admin.team.create');\n }", "function createAdminTeam($name, $leader_id) {\n $now = time();\n $formatedDate = date(\"Y-m-d\", $now);\n $today = Tools::date2timestamp($formatedDate);\n\n\n // create admin team\n $teamId = Team::getIdFromName($name);\n if (-1 === $teamId) {\n $teamId = Team::create($name, T_(\"CodevTT Administrators team\"), $leader_id, $today);\n }\n\n if (-1 != $teamId) {\n\n // --- add to codev_config_table\n Config::getInstance()->setQuiet(true);\n Config::getInstance()->setValue(Config::id_adminTeamId, $teamId, Config::configType_int);\n Config::getInstance()->setQuiet(false);\n\n // add leader as member\n $adminTeam = TeamCache::getInstance()->getTeam($teamId);\n $adminTeam->addMember($leader_id, $today, Team::accessLevel_dev);\n $adminTeam->setEnabled(false);\n\n // add default ExternalTasksProject\n // TODO does Admin team need ExternalTasksProject ?\n $adminTeam->addExternalTasksProject();\n\n // NOTE: CodevTT Admin team does not need any side task project.\n\n } else {\n throw new Exception (\"Admin Team creation failed: \".$name);\n }\n return $teamId;\n}", "public function create()\n {\n return view('teams.create');\n }", "public function create()\n {\n return view('player.teams.create');\n }", "public function create()\n {\n Gate::authorize('teams.create');\n\n $jobtitle = JobTitle::get();\n return view('admin.teams.create', [\n 'team' => new Team(),\n 'jobtitle' => $jobtitle,\n ]);\n }", "protected function Action_CreateTeam () {\n \n $data = $_POST;\n \n $team = new M_Team;\n $profile = new M_TeamProfile;\n \n /* Set name */\n if(!$team->SetField('name', $data['name']))\n $this->messages->Error('Please enter a valid team name.');\n \n /* Set game_tag */\n if(!$profile->SetField('game_tag', $data['game_tag']))\n $this->messages->Error('Please enter a valid team game tag.');\n \n /* Set team_type */\n if(!$profile->SetField('team_type', $data['team_type']))\n $this->messages->Error('Please select a valid team type.');\n \n /* Set profile_key */\n if(!$team->FilterField('profile_key', $data['profile_key']))\n $this->messages->FieldError('profile_key', 'Please enter a valid team profile URL.');\n else if($team->CheckProfileKeyExists($data['profile_key']))\n $this->messages->FieldError('profile_key', 'Sorry, this team profile URL is already taken.');\n else\n $team->SetField('profile_key', $data['profile_key'], false);\n \n if(!$this->messages->has_errors) {\n AppLog::Report('Team was created', $team->data);\n $team->Create($this->session->user, $profile);\n \n $this->messages->Success('Your team has been created.'); //todo: Queue this\n \n $this->steps_sub->GoToNext(false, array('tid' => $team->Id()));\n }\n else {\n AppLog::Report('Team creation failed', var_export($team->data, true));\n }\n }", "public function teamCreate()\n {\n // Create team\n $team = new Team([\n 'name' => null,\n ]);\n\n $team->respo_id = Auth::user()->id;\n if ($team->save()) {\n // Put user in the team\n $user = Auth::user();\n $user->ce = true;\n $user->team_id = $team->id;\n $user->team_accepted = true;\n if ($user->save()) {\n return redirect(route('dashboard.ce.myteam'))->withSuccess('L\\'équipe a été créé !');\n }\n }\n return $this->error('Impossible d\\'ajouter l\\'équipe !');\n }", "public function create()\n { \n return view('teams.create');\n }", "public function create()\n {\n return view('employees::teams.create');\n }", "function new_team()\n\t{\n\t\t// Grab the list of fields for the dropdown.\n\t\t$fields = $this->fields->retrieve_id_name();\n\n\t\t// If there were no fields, then error out.\n\t\tif (!$fields)\n\t\t{\n\t\t\tshow_error('You must add a field before adding a team.');\n\t\t}\n\n\t\t$data = array(\n\t\t\t'form_action' => 'action_create_team',\n\t\t\t'title' => 'Create a New Team',\n\t\t\t'js' => array('/js/admin/admin.js'),\n\t\t\t'css' => array('/styles/admin.css'),\n\t\t\t'fields' => $fields,\n\t\t\t'name' => '',\n\t\t\t'homeid' => '',\n\t\t\t'city' => '',\n\t\t\t'region' => '',\n\t\t\t'msg' => 'Please enter the information regarding the new team.',\n\t\t\t'submit_message' => 'Add Team',\n\t\t\t'sidenav' => self::$user_links\n\t\t);\n\n\t\t$this->load->helper(array('form'));\n\n\t\t$this->load->view('admin/team_edit.php', $data);\n\t}", "public function create()\n {\n return view('teams.create');\n }", "public function create()\n {\n $informationView = $this->informationView();\n $associationsView = $this->associationsView();\n $statusSelectView = $this->statusSelectView();\n\n return view('admin::management.admin_teams_manager.create_edit',\n compact(\n 'informationView',\n 'associationsView',\n 'statusSelectView'\n )\n );\n }", "public function create()\n {\n return view('admin.pages.team.add');\n }", "public function createTeams(Request $request){\n $validator = Validator::make($request->all(), [\n 'team_name' => 'required',\n 'sports_id' => 'required',\n 'department_name' => 'required'\n ]);\n\n if($validator->passes()){\n if(!$this->teamExist($request->sports_id, $request->team_name, $request->department_name)){\n if($this->createTeam($request->sports_id, $request->team_name, $request->department_name)){\n return redirect('/admin/teams');\n }\n }else{\n $request->session()->flash('message', 'Team already exist');\n return redirect('/admin/teams/add');\n }\n }else{\n return redirect('/admin/teams/add')->withErrors($validator);\n }\n }", "public function new ( Team $team){\n if ($team->adding == 1 || $team->manager_id == auth()->id()){\n return view('Pages.Teams.add',compact('team'));\n }\n else\n {\n abort('403');\n }\n }", "public function create()\n {\n //\n return view('team/create');\n }", "public function create()\n {\n return view('backend.team.create');\n }", "public function create()\n {\n //\n return view('team.create');\n }", "public function create()\n {\n //\n return view('team.create');\n }", "public function create()\n {\n return view('admin.teammember.create');\n }", "public function create()\n {\n $team = Team::get();\n // $teams = Team::all();\n\n return view('teams.create', compact('team'));\n }", "public function create()\n {\n return view('team.create'); \n }", "public function create()\n {\n return view('admin.team.add-team-member');\n }", "public function create()\n {\n // $years = Year::orderBy('name', 'desc')->get();\n // return view('admin.teams.create', compact('years'));\n return redirect('/admin/teams');\n }", "public function create()\n {\n return view('/teamcreate');\n }", "public function create()\n {\n {\n $teams = Team::all();\n return view('games.create')->with('teams', $teams);\n }\n }", "public function create()\n {\n return view('create-team');\n }", "public function create()\n { \n $teams = Team::all(); \n return view('players.create',['teams'=>$teams]);\n }", "public function create()\n { \n $this->data[\"clients\"] = auth()->user()->getUser()->client()->get();\n $this->data['team_permissions'] = Group::whereType(\"teammate.role\")->get();\n return view('employer.teammate.create', $this->data);\n }", "public function create()\n {\n return view('team.create');\n }", "public function create()\n {\n $teams = Team::where('user_id',Auth::user()->id)->latest()->paginate(20);\n $users = User::where('role','client')->latest()->paginate(50);\n $salons = Salon::where('user_id',Auth::user()->id)->latest()->get();\n $shops = Shop::where('user_id',Auth::user()->id)->latest()->get();\n return view('system.teams.create',compact(['teams','users','salons','shops']));\n }", "public function create()\n {\n $form = 'create';\n\n\n return view(getView('backend.team.form'), compact('form'));\n }", "function action_create_team()\n\t{\n\t\t// Loading form validation helper and the Markdown parser.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('homeid', 'Field', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('city', 'City', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('region', 'Region', 'trim|required|xss_clean');\n\n\t\t$name = $this->input->post('name');\n\t\t$homeid = $this->input->post('homeid');\n\t\t$city = $this->input->post('city');\n\t\t$region = $this->input->post('region');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\tif ($this->teams->insert($name, $homeid, $city, $region))\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'message' => 'Team added successfully!'\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\techo json_encode(array(\n\t\t\t'status' => 'danger',\n\t\t\t'message' => 'One or more of the fields are invalid.'\n\t\t));\n\t}", "public function create()\n {\n \n $teams= Team::all();\n return view(\"players.create\",compact('teams'));\n }", "public function create()\n {\n return view('Team.create');\n }", "public function create_team()\n {\n $this->form_validation->set_rules('name', 'Team Name', 'trim|required|alpha_numeric|is_unique[team.name]');\n \n if ($this->form_validation->run() == false) {\n \n $this->data['teams'] = $this->CreateTeamModel->get_teams();\n $this->load->view('create_team_view',$this->data);\n } else {\n $this->load->model('CreateTeamModel');\n if ($result = $this->CreateTeamModel->create_team()) {\n \n echo '<script>alert(\"Team has been created successfully!\");</script>';\n $this->data['teams'] = $this->CreateTeamModel->get_teams();\n $this->load->view('create_team_view',$this->data);\n } else {\n echo '<script>alert(\"Team creation failed!\");</script>';\n $this->data['teams'] = $this->CreateTeamModel->get_teams();\n $this->load->view('create_team_view',$this->data);\n }\n }\n }", "public function create()\n {\n $teams = Team::all();\n return view('player.create', compact('teams'));\n }", "public function create()\n {\n $games = \\App\\Game::orderBy('date','asc')\n ->orderBy('time','asc')\n ->select('name','game')\n ->get();\n $data = compact('games');\n return view('m.teams.create', $data);\n }", "public function create()\n {\n if (! Gate::allows('exam_create')) {\n return abort(401);\n }\n\n $courses = \\App\\Course::ofTeacher()->get();\n $courses_ids=$courses->pluck('id');\n $courses=$courses->pluck('course_code', 'id')->prepend(trans('quickadmin.qa_please_select'), '');\n $lessons = \\App\\Lesson::whereIn('course_id',$courses_ids)->get()->pluck('course_code', 'id')->prepend(trans('quickadmin.qa_please_select'), '');\n $questions = \\App\\Question::get()->pluck('question', 'id');\n\n\n return view('admin.exams.create', compact('courses', 'lessons', 'questions'));\n }", "public function store()\n {\n $this->validate($this->request, Team::CREATE_TEAM_RULES);\n\n $user = $this->user->createUser($this->request->all());\n\n $teamRequestData = collect($this->request->all())->put('user_id', $user->id);\n $team = $this->team->postTeam($teamRequestData);\n\n $this->createAdminsRole($team);\n\n return redirect()->route('home')->with([\n 'alert' => 'Team successfully created. Now login to your team!',\n 'alert_type' => 'success',\n ]);\n }", "public function createTeam($teamName, $student, $league);", "public function createAction(Request $request){\n $em = $this->getDoctrine()->getManager();\n $team = new Team();\n $form = $this->createForm(new TeamType($em), $team);\n $form->handleRequest($request);\n\n if($form->isValid()){\n $team = $form->getData();\n //$user->setUsername($form->getData()->getUsername());\n //$user->setPassword($form->getData()->getPassword());\n //$user->setRole($form->getData()->getRole());\n //$user->setFirstName($form->getData()->getFirstName());\n //$user->setLastName($form->getData()->getLastName());\n //$user->setTotalPoints($form->getData()->getTotalPoints());\n //$user->setIsActive($form->getData()->getIsActive());\n\n $em->persist($team);\n $em->flush();\n $this->get('session')->getFlashBag()->add('success', 'Team '.$team->getName().' successfully created.');\n return $this->redirectToRoute('team_index');\n }\n\n return $this->render('UserBundle:Team:create.html.twig', [\n 'form' => $form->createView(),\n 'team' => $team,\n ]);\n }", "public function create()\n {\n\n $team = new Team();\n return view('team.create', compact('team'));\n }", "public function create()\n {\n $leagues = League::all();\n return view('Team.create', compact('leagues'));\n }", "public function createAdminToken();", "public function create($object){\n\t\t$url = WEBSERVICE. \"teams/create\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"POST\");\n\t\t$this->HTTPRequest->setData($object);\n\t\t$response = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $response;\n\t}", "public function create()\n {\n $authUser = \\Auth::user();\n $userDetails = $authUser->employeeProfile()->first();\n\n $bdUser = User::with('employee')->whereHas('employeeProfile', function (Builder $query) use($userDetails) {\n $departmentId = $userDetails->department_id; // B.D department id\n $query->where(['department_id' => $departmentId]);\n })->first();\n\n $teamHodId = $bdUser->leaveAuthorities()->where(['leave_authorities.priority' => '2'])->pluck('manager_id')->first();\n \n $existingUsers = BdTeamMember::where('isactive', 1)->pluck('user_id')->all();\n $existingUsers[] = $teamHodId;\n\n $users = User::whereHas('employee', function (Builder $q) {\n $q->where('isactive', 1);\n })->whereHas('employeeProfile', function (Builder $query) use($existingUsers, $userDetails) {\n $departmentId = $userDetails->department_id; // B.D department id\n\n $query->where(['department_id' => $departmentId, 'isactive' => 1])->whereNotIn('user_id', $existingUsers);\n })->get()->all();\n\n return view('bd_team.create', compact('users', 'userDetails'));\n }", "public function createAdminsRole($team)\n {\n // Create role\n $roleId = DB::table('roles')->insertGetId([\n 'name' => 'Admins',\n 'slug' => str_slug('Admins', '-'),\n 'user_id' => $team->user_id,\n 'team_id' => $team->id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n // Implementing permissions on role\n $permissions = DB::table('permissions')->get();\n foreach ($permissions as $permission) {\n DB::table('role_permissions')->insert([\n 'role_id' => $roleId,\n 'permission_id' => $permission->id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n }\n\n // Inserting user into role.\n DB::table('users_roles')->insertGetId([\n 'role_id' => $roleId,\n 'user_id' => $team->user_id,\n 'team_id' => $team->id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n return true;\n }", "public function create()\n {\n $clubs = Club::all();\n return view('teams.create')->with('clubs', $clubs);\n }", "public function create()\n {\n return view('admin.manager_teacher.add');\n }", "public function create()\n {\n $sports = sports::get();\n\n return view('admins.create',compact('sports'));\n }", "private function administer(): array {\n return [\n 'title' => $this->t('Administer Team'),\n 'restrict access' => TRUE,\n ];\n }", "public function create()\n {\n return view('admin.Leagues.createleague');\n\n }", "public function addTeams(){\n $sports = Sports::all();\n return view('admin.add_teams')->with('sports', $sports);\n }", "public function create()\n {\n // $admins = Admin::whereDoesntHave('conversations')->get();\n\n $admins = Admin::all();\n\n return view('admin.conversations.create',compact('admins'));\n }", "public function create()\n {\n $players = Player::with( 'team' )->get();\n\n $free_agents = [];\n\n // Find players without a team\n foreach ( $players as $player ) {\n if ( count( $player->team ) < 1 ) {\n array_push( $free_agents, $player );\n }\n }\n\n $free_agent_collection = collect( $free_agents );\n\n return view( 'project1.createTeam', [\n 'free_agents' => $free_agent_collection\n ]);\n }", "public function create()\n {\n $teamData = Team::all();\n $temoignageData = Temoignage::all();\n return view('adminTemoignage', compact('temoignageData', 'teamData'));\n }", "public function create()\n {\n $this->authorize('admin.teacher.create');\n\n return view('admin.teacher.create');\n }", "public function test_an_authenticated_user_can_create_a_new_forum_threads()\n {\n $this->signIn();\n\n //we hit the end point to create anew thread\n\n $thread = make('App\\Thread');\n\n\n $response = $this->post('/thread', $thread->toArray());\n\n // dd($response->headers->get('Location'));\n //when we visit the thread page\n\n //we should see the new thread\n $this->get($response->headers->get('Location'))\n ->assertSee($thread->title)\n ->assertSee($thread->body);\n\n //we should see the new thread\n //\n\n }", "public function create()\n {\n $roles = \\Spatie\\Permission\\Models\\Role::all();\n $organizations = DB::table('organizations')->get();\n $countries = DB::table('recipients_country')->pluck('country_name', 'recipients_country_id')->all();\n $departments = DB::table('departments')->pluck('dept_name', 'department_id')->all();\n\n $roles_array = [];\n foreach ($roles as $role) {\n $roles_array[$role->id] = $role->name;\n }\n\n\n $organizations_array = [];\n foreach ($organizations as $organization) {\n $organizations_array[$organization->organization_id] = $organization->organization_name;\n }\n\n\n return view('admin.users.create')->with([\n 'roles' => $roles_array, 'organizations' => $organizations_array,\n 'countries' => $countries, 'departments' => $departments\n ]);\n //return view('admin.user.create');\n }", "public function createAdmin() { return view('panel.users.create.admin'); }", "public function create()\n {\n return view('teacher.exams.create');\n }", "public function createAdmin() {\n if(User::where('email', '[email protected]')->count() == 0) {\n $admin = new User();\n $admin->name = \"Administrador\";\n $admin->email = \"[email protected]\";\n $admin->password = bcrypt(\"admin\");\n $admin->user_type = User::UserTypeAdmin;\n $admin->save();\n }\n }", "public function run()\n {\n\n AboutTeam::create([\n 'id' => '1',\n 'titulo' => 'About Team',\n 'subtitulo' => 'STORY ABOUT OUR TEAM',\n 'tituloImagem' => 'WHAT WE ARE EXPERT AT',\n 'subtituloImagem' => 'Why Clients Choose Us?',\n 'desc1' => 'A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.',\n 'desc2' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookm arksgrove right at the coast of the Semantics, a large language ocean. A small river named',\n 'imagem' => 'https://raw.githubusercontent.com/araujoblucas/Projeto-Laravel-2019-12/master/storage/app/public/img/defaults/1500x1000.jpg',\n 'dado1' => '1000+',\n 'descdado1' => 'Client Consultations',\n 'dado2' => '10mIns',\n 'descdado2' => 'Recovered cost for clients',\n 'dado3' => '95%',\n 'descdado3' => 'Successful Cases',\n 'dado4' => '30+',\n 'descdado4' => 'Professional Attorneys',\n 'contatoTitulo' => 'WE ARE LOOKING FOR NEW PARTNERS',\n 'contatodesc' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.',\n ]);\n }", "public function create()\n {\n $data['branch'] = BranchModel::all();\n $data['department'] = DepartmentModel::all();\n $data['employee'] = EmployeModel::get()->toArray();\n $data['team'] = TeamModel::with('team_member')\n ->join('users','users.id','=','team.team_leader_id')\n ->get()->toArray();\n\n return view('team.team',$data);\n }", "public function create($projectId) {\n $user = \\Nette\\Environment::getUser();\n dibi::query(\"INSERT INTO teams SET leader = %s\", $user->id, \", project = %i\", $projectId);\n $teamId = dibi::getInsertId();\n\n dibi::query(\"INSERT INTO students_in_teams SET login = %s\", $user->id, \", team = %i\", $teamId);\n \n return $this->getTeam($teamId);\n }", "public function create()\n {\n $game_teams = GameTeam::all();\n $notices = Notice::all();\n return view('admin/solicitation.create',compact('game_teams','notices'));\n }", "public function create()\n {\n // $this->authorize('create');\n // return view('admin.admins.show');\n }", "public function create()\n {\n if (!Session()->has('user_id')) {\n return redirect('login');\n }\n $common_array = array(\n 'content_heading' => 'All Settings'\n );\n //$developer_id = Session::get('developer_id');\n $roles = MtbRole::all();\n $plans = FitnessMemberPackage::all();\n //$languages = MtbLanguage::all();\n //$timezones = MtbTimezone::all();\n //$developer_teams = DtbDevelopTeam::where('developer_id', $developer_id)->get();\n //$projects = DtbProject::where('developer_id', $developer_id)->get();\n return view('users.add', compact('roles','plans', 'common_array'));\n \n }", "protected function create(array $data)\n {\n return Team::create([\n 'team_name' => $data['team_name'],\n 'user1'=>$data['user1'],\n 'user2'=>$data['user2'],\n 'user3'=>$data['user3'],\n 'user4'=>$data['user4'],\n 'user5'=>$data['user5'],\n 'user6'=>$data['user6'],\n 'password' => bcrypt($data['password']),\n ]);\n }", "public function store(Teams $team, TeamRequest $request)\n {\n $input = $request->all();\n\n/*\n\n if ($request->team_lead) {\n $team_lead = $request->team_lead;\n } else {\n $team_lead = null;\n }\n $team->team_lead = $team_lead;\n try {\n /* Check whether function success or not * /\n $team->fill($request->except('team_lead'))->save();\n /* redirect to Index page with Success Message * /\n return redirect('teams')->with('success', 'Teams Created Successfully');\n } catch (Exception $e) {\n /* redirect to Index page with Fails Message * /\n return redirect('teams')->with('fails', 'Teams can not Create'.'<li>'.$e->errorInfo[2].'</li>');\n }\n*/\n\n\n\n $teams = $this->teamRepository->create($input);\n\n Flash::success('Team saved successfully.');\n\n return redirect(route('backend.teams.index'));\n }", "public function create()\n {\n $roles = Role::pluck('name','name')->all();\n $teams = Team::pluck('name','id')->all();\n $teams = Arr::add($teams, \"\", \"no team\");\n $positions = [\n \"0\"=>\"Team leader\",\n \"1\"=>\"Senior team member\",\n \"2\"=>\"Junior team member\",\n null=>\"no position\"\n ];\n return view('users.create',compact('roles', 'teams', 'positions'));\n }", "public function store()\n\t{\n\t\tif(Auth::check()) {\n\t\t\t$user = User::find(Auth::user()->id);\n if($user->team_id == 0) {\n\n if($user->qp < 100) {\n return Redirect::to('/teams/create')\n ->withInput()\n ->with('error', 'You do not have enough QP!');\n }\n\n $input = Input::all();\n $validation = Validator::make($input, Team::$rules);\n if ($validation->passes())\n {\n $clean_team_name = str_replace(\" \", \"\", Input::get('teamname'));\n $clean_team_name = strtolower($clean_team_name);\n $clean_team_name = mb_strtolower($clean_team_name, 'UTF-8');\n\n // Is Team name taken?\n $check_teams = Team::where(\"region\", \"=\", Input::get('region'))->where(\"clean_name\", \"=\", $clean_team_name)->count();\n if($check_teams > 0) {\n return Redirect::to(\"/teams/create\")->with(\"error\", \"This Team name is already taken\");\n }\n\n $team = new Team;\n $team->user_id = Auth::user()->id;\n $team->team_level_id = 1;\n $team->exp = 0;\n $team->name = Input::get('teamname');\n $team->clean_name = $clean_team_name;\n $team->region = Input::get('region');\n $team->website = Input::get('website');\n if (Input::hasFile('logo'))\n {\n if(Input::file('logo')->getClientSize() > 1048576) {\n return Redirect::to('/teams/create')\n ->withInput()\n ->withErrors($validation)\n ->with('error', 'The maximum size for images is 1 MB!');\n }\n $extension = Input::file('logo')->getClientOriginalExtension();\n Input::file('logo')->move(public_path().\"/img/teams/logo/\", Input::get('region').\"_\".$clean_team_name.\".\".$extension);\n $team->logo = Input::get('region').\"_\".$clean_team_name.\".\".$extension;\n } else {\n $team->logo = \"default.jpg\";\n }\n\n\n if(Input::get('description') == \"\") {\n $team->description = \"\";\n } else {\n $team->description = Input::get('description');\n }\n $team->save();\n $user->team_id = $team->id;\n $user->qp = $user->qp - 100;\n $user->save();\n\n return Redirect::to(\"/teams/\".$team->region.\"/\".$team->clean_name)->with('success', 'Your Team has been created');\n\n } else {\n return Redirect::to('/teams/create')\n ->withInput()\n ->withErrors($validation)\n ->with('error', 'There were validation errors.');\n }\n\n } else {\n return Redirect::to(\"/teams/\".$user->team->region.\"/\".$user->team->clean_name)->with('error', 'Your already have a team');\n }\n\n\t\t} else {\n\t\t\treturn Redirect::to(\"/login\");\n\t\t}\n\t}", "public function create(Request $request,$department_id)\n {\n \t$team = TeamLead::where('department_id','=',$department_id)->get();\n \n\n \t\t$team_leads = TeamLead::where('department_id','=',$department_id)->pluck('team_lead_id','id');\n \t\tFormer::populate($team_leads);\n\n \t\t$team_members = TeamLead::where('department_id','=',$department_id)->pluck('member_id','id');\n \t\tFormer::populate($team_members);\n\n\n \t\t$team_lead = User::where('team_lead','=',1)->where('department_id','=',$department_id)->pluck('fname','id');\n \t\t$member_id = User::where('team_lead','=',0)->where('department_id','=',$department_id)->pluck('fname','id');\n \t\treturn view('admin.departments.team',compact('member_id','team_lead','department_id','team','team_members','team_leads'));\n \t\n }", "function fantacalcio_admin_teams_list() {\n $out = l(\"Aggiungi squadra\", \"admin/fantacalcio/teams/add\", array(\n \"attributes\" => array(\"class\" => \"btn btn-info\"))) . \"<br/><br/>\";\n \n $teams = Team::all();\n \n if ($teams) {\n \n $header = array(\"Nome\", \"Utente\", \"Gironi\", \"Attiva\");\n \n foreach ($teams as $t_id => $team) {\n \n $account = User::get($team->user);\n \n $groups_team = \"\";\n foreach ($team->getCompetitions() as $competition) {\n $groups_team .= $competition . \"<br>\";\n }\n $rows[] = array(\n l($team->name, \"admin/fantacalcio/teams/\" . $t_id), \n $account != null ? $account->name : \"\", \n $groups_team, \n fantacalcio_check_value($team->active));\n }\n $out .= theme(\"table\", array(\n \"header\" => $header, \n \"rows\" => $rows, \n \"attributes\" => array(\"class\" => array(\"table table-responsive\")), \n \"sticky\" => TRUE, \n \"empty\" => t(\"Nessuna squadra\")));\n }\n \n return $out;\n}", "public function create()\n {\n $teamRankingT20s = TeamsRankingT20::all();\n\n /*$roles = PlayerRole::pluck('name','id')->all();*/\n\n\n //$batting_styles = BattingStyle::pluck('name','id')->all();\n\n $clubs = Club::pluck('name','id')->all();\n\n\n\n\n //$bowling_styles = BowlingStyle::pluck('name','id')->all();\n\n return view('admin.teamRankingt20.create', compact('clubs','teamRankingT20s'));\n }", "public function create(TeamUserRequest $request)\n {\n\n $team = $this->repository->newInstance([]);\n Form::populate($team);\n\n return $this->theme->of('team::user.team.create', compact('team'))->render();\n }", "public function create()\n {\n// $cates = Article::where('pid',15)->get();\n// $ids = getIds($cates);\n// $articles = Article::select('id','title')->whereIn('pid',$ids)\n// ->orderBy('id','desc')->get();\n return view('admin.team_add',compact('articles'));\n }", "public function create()\n {\n if(Auth::user()->type == 'admin'){\n return view('admin.users.create');\n }else{\n return redirect()->route('admin.dashboard.index');\n }\n \n }", "public function create()\n {\n $adminsubs = Subject::orderBy('name')->get();\n return view('admin.create',[ 'adminsubs' => $adminsubs ]);\n }", "public function create()\n {\n return view('admin.admins.create'); \n }", "public function create()\n {\n $teacher = User::where('is_teacher','=',1 )->lists('name','id')->all();\n //developer can be a student or alumni\n $students = User::where('is_teacher','=',0 )->orWhere('is_teacher','=',2 )->lists('name','id')->all();\n return view('project.create',compact('teacher','students'))->with('title',\"Create New Project\");\n }", "public function create()\n {\n //\n\n $admin = Auth::user();\n $roles = Role::select('*')->whereIn('name',['superadmin','admin','admin-editor'])->get();\n // dd($admin);\n return view('admin.create',compact('admin','roles'));\n\n }", "public function testAccessAdminCreatePage()\n {\n $user = factory(User::class)->create();\n $response = $this->actingAs($user)\n ->get(route('admin.project.create'));\n\n $response->assertSuccessful();\n\n }", "public function create() {\n\t\t$groups = PermissionGroup::with(['permissions'])->where('slug', 'branches')->orWhere('slug', 'admins')->orWhere('slug', 'trips')->orWhere('slug', 'customers')->get();\n\t\t$types = AdminType::where('active', 1)->whereIn('id', [2, 3, 4])->latest()->get();\n\t\treturn view('merchants.admins.create', compact('groups', 'types'));\n\t}", "public function createadmin(){\n if($this->check() == true){\n if(isset($_POST['submit'])){\n $name = $_POST['name'];\n $surname = $_POST['surname'];\n $email = $_POST['email'];\n $pass = $_POST['password'];\n $this->admindb->insert('admin', array(\n 'name' => $name,\n 'surname' => $surname,\n 'email' => $email,\n 'password' => password_hash($pass, PASSWORD_BCRYPT, [12])\n ))->get();\n }else{\n // die(\"There's some problem with creating admin...\");\n }\n $this->view('admin/createadmin');\n// $this->view('admin/createadmin');\n }\n }", "public function admin_create()\n {\n return View::make('admin_create');\n }", "public function create()\n {\n if (Gate::denies('admins.create', Auth::user())) {\n return response()->view('errors.403', [], 403);\n }\n $data = [\n 'languages' => array(\n 'english',\n 'arabic'\n ),\n 'nationalities' => array(\n 'Egyptian',\n 'Saudian'\n ),\n 'formRoute' => route('admins.store'),\n 'submitBtn' => trans('admin.update')\n ];\n return view(AD . '.admins.form')->with($data);\n }", "public function addUserTeam_post() {\n /* Validation section */\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->set_rules('MatchGUID', 'MatchGUID', 'trim|required|callback_validateEntityGUID[Matches,MatchID]');\n $this->form_validation->set_rules('ContestGUID', 'ContestGUID', 'trim|required|callback_validateEntityGUID[Contest,ContestID]');\n $this->form_validation->set_rules('UserTeamType', 'UserTeamType', 'trim|required|in_list[Draft]');\n $this->form_validation->set_rules('UserTeamName', 'UserTeamName', 'trim');\n $this->form_validation->set_rules('IsPreTeam', 'IsPreTeam', 'trim|required|in_list[Yes,No]');\n $this->form_validation->set_rules('UserTeamPlayers', 'UserTeamPlayers', 'trim');\n\n $this->form_validation->validation($this); /* Run validation */\n /* Validation - ends */\n\n $UserTeam = $this->SnakeDrafts_model->addUserTeam($this->Post, $this->SessionUserID, $this->SeriesID, $this->MatchID, $this->ContestID);\n if (!$UserTeam) {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"An error occurred, please try again later.\";\n } else {\n $this->Return['Data']['UserTeamGUID'] = $UserTeam;\n $this->Return['Message'] = \"Team created successfully.\";\n }\n }", "public function create()\n\t{\n\n\t\tif ( $this->admin )\n\t {\n\t \n\t $view['teams'] = Team::with(array('senior', 'junior'))->get();\n\t\t\t$view['homes'] = Home::all();\n\t\t\t$view['admin'] = true;\n\n\t } else {\n\n\t \t$view['teams'] = Team::with(array('senior', 'junior'))->where('id', '=', $this->userTeam->id)->get();\n\t\t\t$view['homes'] = Home::where('team_id', '=', $this->userTeam->id)->get();\n\t\t\t$view['admin'] = false;\n\t }\n\n\t if (count($view['homes']) == 0) return Redirect::to('error')->with('error_message', 'There are no famillies to report on yet !'); \n\n\t\t$this->layout->content = View::Make('visits.new', $view);\n\t}" ]
[ "0.7099234", "0.693582", "0.68697625", "0.6781409", "0.67559433", "0.67178804", "0.6678022", "0.66657555", "0.66631234", "0.6610386", "0.66054773", "0.6587731", "0.6564389", "0.65042084", "0.6468542", "0.6463741", "0.64607596", "0.64475876", "0.6434369", "0.6416071", "0.6411088", "0.6407261", "0.6406779", "0.6384215", "0.63474655", "0.62900656", "0.6281776", "0.62757015", "0.62757015", "0.6256279", "0.6250702", "0.62474746", "0.6213194", "0.6211435", "0.61746484", "0.6163193", "0.61567366", "0.6151908", "0.6141246", "0.61349016", "0.6124558", "0.6097848", "0.60632664", "0.60521936", "0.60339415", "0.6032499", "0.6025552", "0.601501", "0.59637266", "0.5920203", "0.59109116", "0.5904845", "0.5901887", "0.58909", "0.5886171", "0.58428985", "0.58402455", "0.58102137", "0.5742575", "0.5733942", "0.5729209", "0.5715768", "0.5703085", "0.5697389", "0.5693625", "0.56885934", "0.5688335", "0.5686049", "0.56770027", "0.5661972", "0.5654745", "0.5650336", "0.5644084", "0.563848", "0.5623958", "0.5621569", "0.5620535", "0.5609899", "0.5608355", "0.5600491", "0.5596327", "0.55947596", "0.5592945", "0.55917925", "0.5590434", "0.55877775", "0.55855346", "0.55838144", "0.5581939", "0.5577908", "0.5570589", "0.5569323", "0.5568913", "0.5567275", "0.556284", "0.5555812", "0.5550376", "0.5547863", "0.55474716", "0.55395883" ]
0.5999643
48
Gather data for index page and datatables
public function data() { $adminTeams = AdminTeam::allAdminTeams(); return Datatables::of($adminTeams) ->editColumn('members', function ($r) { return AdminTeamMember::where('team_id', $r->id)->get()->count(); }) ->editColumn('clients', function ($r) { return AdminTeamClient::where('team_id', $r->id)->get()->count(); }) ->editColumn('states', function ($r) { return AdminTeamStates::where('team_id', $r->id)->get()->count(); }) ->editColumn('is_active', function ($r) { return ($r->is_active) ? 'Yes' : 'No'; }) ->addColumn('action', function ($r) { return view('admin::management.admin_teams_manager.partials._options', ['row' => $r]); }) ->make(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageData() {\n\t\t//$stat = Statistic::select(array('statistic.id', 'statistic.created_at','category.category_name', 'statistic.ip_address'))\n\t\t//->join('category','statistic.category_id','=','category.id'); \n\t\t$stat = StatView::select(array('id','date','category_name', 'ip_address'));\n\n\t\treturn Datatables::of($stat) \n\t\t-> add_column('actions','<a href=\"{{{ URL::to(\\'admin/blogs/\\' . $id . \\'/delete\\' ) }}}\" class=\"btn btn-xs btn-danger iframe\">{{{ Lang::get(\\'button.delete\\') }}}</a>') \n -> remove_column('id') -> make();\n\n\t}", "public function indexTable()\n {\n $this->paginate = array('all', 'order' => array('modified' => 'desc'));\n $contentVariableTables = $this->paginate('ContentVariableTable');\n $this->set(compact('contentVariableTables', $contentVariableTables));\n }", "public function getPageData();", "public function page_metadata_datatable()\n\t\t{\n\t\t\t\n\t\t\t$list = $this->Page_metadata->get_datatables();\n\t\t\t$data = array();\n\t\t\t$no = $_POST['start'];\n\t\t\t\n\t\t\tforeach ($list as $page) {\n\t\t\t\t$no++;\n\t\t\t\t$row = array();\n\t\t\t\t//$row[] = '<input type=\"checkbox\" name=\"cb[]\" id=\"cb\" onclick=\"enableButton(this)\" value=\"'.$page->id.'\">';\n\t\t\t\t\n\t\t\t\t$url = 'admin/page_metadata_details';\n\t\t\t\t\n\t\t\t\t$row[] = '<div class=\"checkbox checkbox-primary pull-left\"><input type=\"checkbox\" name=\"cb[]\" class=\"cb\" onclick=\"enableButton(this)\" value=\"'.$page->id.'\"><label for=\"cb\"></label></div><div style=\"margin-left: 30%; margin-right: 30%; \"><a data-toggle=\"modal\" href=\"#\" data-target=\"#viewPageMetadataModal\" class=\"link\" onclick=\"viewPageMetadata('.$page->id.',\\''.$url.'\\');\" id=\"'.$page->id.'\" title=\"View\">'.$page->page.'</a></div>';\n\t\t\t\t\n\t\t\t\t//$row[] = '<h4><a data-toggle=\"modal\" href=\"#\" data-target=\"#viewPageMetadataModal\" class=\"link\" onclick=\"viewPageMetadata('.$page->id.');\" id=\"'.$page->id.'\" title=\"View\">'.$page->page.'</a></h4>';\n\t\t\t\t\n\t\t\t\t$row[] = substr($page->keywords, 0, 95).'...';\n\t\t\t\t\n\t\t\t\t$row[] = '<a data-toggle=\"modal\" data-target=\"#editModal\" class=\"btn btn-primary btn-xs\" onclick=\"editPageMetadata('.$page->id.',\\''.$url.'\\');\" title=\"Edit\"><i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> Edit</a>';\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//$row[] = $type->details;\n\t\t\t\t\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t \n\t\t\t$output = array(\n\t\t\t\t\n\t\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\t\"recordsTotal\" => $this->Page_metadata->count_all(),\n\t\t\t\t\"recordsFiltered\" => $this->Page_metadata->count_filtered(),\n\t\t\t\t\"data\" => $data,\n\t\t\t);\n\t\t\t//output to json format\n\t\t\techo json_encode($output);\n\t\t}", "public function index()\n {\n load_datatable($this->data);\n load_daterangepicker($this->data);\n echo $this->blade->view()->make('page/page', $this->data)->render();\n }", "public function index()\n {\n $blogs = Blog::all();\n return view('tables.datatables',compact('blogs'))->with('i', (request()->input('page', 1) - 1) * 5);\n }", "private function getData(){\n\t\tdb::getAdapter();\n\t\t\n\t\t$counter=0;\n\t\t$arrayFieldQuery=array();\n\t\tforeach($this->fields as $field){\n\t\t\t$arrayFieldQuery[$field]=$this->types[$counter];\n\t\t\t$counter++;\n\t\t}\n\t\t\n\t\t$counter=0;\n\t\t$arrayFilters=array();\n\t\tforeach($this->filters as $filter){\n\t\t\t$arrayFilters[$this->fields[$filter[0]]]=array(\"type\"=>$this->types[$filter[0]],\"value\"=>$filter[1]);\n\t\t}\n\t\t\n\t\tif(db::getFields($this->table,$arrayFieldQuery,$arrayFilters,$this->orderQuery,$this->limit,true)){\n\t\t\t$this->pages=ceil(((int)db::getCalculatedRows())/((int)$this->maxRowsPerPage));\n\t\t\t$this->maxRows=(int)db::getCalculatedRows();\n\t\t\twhile($row=db::fetch(db::$FETCH_TYPE_ASSOC)){\n\t\t\t\t$this->addRow($row);\n\t\t\t}\n\t\t}\n\t}", "public function getPageCountData() {\n\t\t//$stat = Statistic::select(array('statistic.id', 'statistic.category_id','category.category_name', 'statistic.ip_address as access','statistic.created_at')) \n\t\t//->join('category','category.id','=','statistic.category_id')->groupBy('category_name'); \n\n\t\t$stat = StatView::select(array('id','category_name', 'ip_address as temp2', 'ip_address as temp1'))->groupBy('category_name');\n\t\t\n\t\treturn Datatables::of($stat) \n\t\t-> edit_column('temp1','{{ DB::table(\\'stat_view\\')->where(\\'category_name\\', \\'=\\', $category_name)->orderBy(\\'date\\',\\'DESC\\')->first()->date }}')\n\t\t-> edit_column('temp2','{{ DB::table(\\'stat_view\\')->where(\\'category_name\\', \\'=\\', $category_name)->count() }}')\n\t\t-> remove_column('id') \n\t\t-> make();\n\n\t}", "protected function processIndex()\n {\n //convert the request to sql\n $processedRequest = $this->processRequest($this->request);\n $records = $this->getRecords($processedRequest);\n\n //get the results and append its relationships\n $results = $this->appendRelationshipsToResult($this->request, $records['results']);\n\n //return the kanvas pagination format\n if ($this->request->hasQuery('format')) {\n $limit = (int) $this->request->getQuery('limit', 'int', 25);\n\n $results = [\n 'data' => $results,\n 'limit' => $limit,\n 'page' => $this->request->getQuery('page', 'int', 1),\n 'total_pages' => ceil($records['total'] / $limit),\n ];\n }\n\n return $this->processOutput($results);\n }", "public function indexData()\n {\n $tickets = Ticket::with('provider', 'client')->where('type', 'admin');\n $url = url('/backend/tickets/');\n return Datatables::of($tickets)\n ->addColumn('action', function ($ticket) use($url) {\n return '<a href=\"'.$url.'/'.$ticket->id.'\" class=\"btn btn-success m-btn m-btn--icon\">\n <span><i class=\"fa fa-eye\"></i><span>View</span></span></a>';\n })\n ->editColumn('status', function ($ticket) use($url) {\n if($ticket->status == 'opened'){\n return '<label class=\"m-badge m-badge--default m-badge--wide\">Opened</label>';\n }else{\n return '<label class=\"m-badge m-badge--success m-badge--wide\">Closed</label>';\n }\n })\n ->editColumn('client', function ($ticket) use($url) {\n if($ticket->client_id != null){\n return $ticket->client->first_name . ' ' . $ticket->client->last_name;\n }else{\n return '--';\n }\n })\n ->editColumn('provider', function ($ticket) use($url) {\n if($ticket->provider_id != null){\n return $ticket->provider->first_name . ' ' . $ticket->provider->last_name;\n }else{\n return '--';\n }\n })\n ->rawColumns(['action', 'status'])\n ->make(true);\n }", "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}", "protected function renderData()\n {\n $data = $this->loadData();\n\n $rows = $data->getRows() ?: [];\n $number = $this->property('number') ?: 0;\n $this->vars['rows'] = $number > 0\n ? array_slice($rows, 0, $number)\n : $data->getRows();\n\n $this->vars['total'] = $data->getTotalsForAllResults()[$this->property('metric')];\n }", "function _show_index($handler_id, &$data)\n {\n midcom_show_style('events-header');\n midcom_show_style('index-header');\n midcom_show_style('trips-header');\n foreach ($this->_trips as $trip) {\n if (! $this->_request_data['datamanager']->autoset_storage($trip))\n {\n debug_push_class(__CLASS__, __FUNCTION__);\n debug_add(\"The datamanager for trip {$trip->id} could not be initialized, skipping it.\");\n debug_print_r('Object was:', $trip);\n debug_pop();\n continue;\n }\n $this->_request_data['view_trip'] = $data['datamanager']->get_content_html();\n $this->_request_data['trip'] = $trip;\n midcom_show_style('trips-item');\n }\n midcom_show_style('trips-footer');\n midcom_show_style('meetings-header');\n foreach ($this->_meetings as $meeting) {\n if (! $this->_request_data['datamanager']->autoset_storage($meeting))\n {\n debug_push_class(__CLASS__, __FUNCTION__);\n debug_add(\"The datamanager for meeting {$meeting->id} could not be initialized, skipping it.\");\n debug_print_r('Object was:', $trip);\n debug_pop();\n continue;\n }\n $this->_request_data['view_meeting'] = $data['datamanager']->get_content_html();\n $this->_request_data['meeting'] = $meeting;\n midcom_show_style('meetings-item');\n }\n midcom_show_style('meetings-footer');\n midcom_show_style('index-footer');\n midcom_show_style('events-footer');\n }", "protected function processIndex()\n {\n //convert the request to sql\n $processedRequest = $this->processRequest($this->request);\n $records = $this->getRecords($processedRequest);\n $results = $records['results'];\n\n //return the kanvas pagination format\n if ($this->request->hasQuery('format')) {\n $limit = (int) $this->request->getQuery('limit', 'int', 25);\n\n $results = [\n 'data' => $results,\n 'limit' => $limit,\n 'page' => $this->request->getQuery('page', 'int', 1),\n 'total_pages' => ceil($records['total'] / $limit),\n ];\n }\n\n return $this->processOutput($results);\n }", "public function indexData() \n {\n return Datatables::of(LogPatron::select(['id', 'actor_id', 'action', 'role', 'patron_id', 'created_at', 'deactivated', 'firstname', 'middlename', 'lastname']))\n ->addColumn('issued_by', function($row) { return $row->actor_id . ' | ' . $row->userLogPatron->username; })\n ->orderColumn('issued_by', function ($query, $order) {\n $query->orderBy('id', $order);\n })\n ->addColumn('name', function($row) { return $row->lastname . ', ' . $row->firstname . ' ' . $row->middlename; })\n ->orderColumn('name', function ($query, $order) {\n $query->orderBy('lastname', $order)->orderBy('firstname', $order)->orderBy('middlename', $order);\n })\n ->editColumn('user_id', function($row) { return $row->user_id . ' | ' . $row->userLogPatron->username; })\n ->editColumn('deactivated', function($row) { \n if($row->deactivated == 1) return \"Deactivated\";\n else return \"Active\";\n })\n ->addColumn('actions', 'admin.logs.patron.action')\n ->rawColumns(['link', 'actions'])\n ->make(true); \n }", "private function collectAllData()\n {\n $this->getParsedHeader();\n $this->getServerConfig();\n $this->getPageTitle();\n $this->getLanguage();\n $this->getCharset();\n $this->getHeadingsCount();\n $this->getCanonicalLINKS();\n $this->getAllLinksData();\n }", "function eqspy_page_callback() {\n ?>\n <link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css\">\n <script src=\"https://code.jquery.com/jquery-3.5.1.min.js\"></script>\n <script src=\"https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js\"></script>\n \n <div class=\"wrap\">\n <h1 class=\"wp-heading-inline\" style=\"font-size: 2em; border-bottom: 1px solid gray; width: 100%; margin-bottom: 1em; margin-top: 0;\">Tracker Admin</h1>\n <?php $all_entries = eqspy_list(); ?>\n <table id=\"eqspy\" class=\"display\" style=\"width:100%\" data-order=\"[[ 0, &quot;desc&quot; ]]\">\n <thead>\n <tr>\n <th>Date</th>\n <th>User</th>\n <th>IP</th>\n <th>Action</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n <?php foreach($all_entries as $row) { ?>\n <tr>\n <td data-order=\"<?php echo $row->date; ?>\"><?php echo equipeer_convert_date( $row->date, 'FR3' ); ?></td>\n <td><?php echo $row->user_name; ?></td>\n <td><?php echo $row->user_ip; ?></td>\n <td><?php echo $row->user_action; ?></td>\n <td><?php echo $row->description; ?></td>\n </tr>\n <?php } ?>\n </table>\n \n </div>\n <script>\n jQuery(document).ready( function () {\n jQuery('#eqspy').DataTable( {\n \"lengthMenu\": [[25, 50, 100, -1], [25, 50, 100, \"All\"]]\n } );\n } );\n </script>\n <?php\n }", "public function index()\n {\n return Datatables::of(Studentcsv::query())->make(true);\n }", "abstract public function datatables();", "protected function renderData()\n {\n $data = $this->loadData();\n\n $rows = $data->getRows() ?: [];\n $limit = $this->property('limit') ?: 0;\n $this->vars['rows'] = $limit > 0\n ? array_slice($rows, 0, $limit)\n : $data->getRows();\n\n $this->vars['total'] = $data->getTotals();\n }", "public function index()\n {\n return new DatatableCollection(Datatable::latest()->paginate(10));\n }", "public function index()\r\n {\r\n $this->page_list_grid();\r\n }", "public function indexDataTable(Request $request) {\n return \\DataTable::make(UsersDataTable::class)->renderData($request);\n }", "public function index()\n\t{\n\t\tLarasset::start('header')->css('daterangepicker');\n\t\tLarasset::start('footer')->js('moment', 'daterangepicker');\n\t\tLarasset::start('footer')->js('dataTables-min', 'dataTables-bootstrap', 'bootstrap_editable');\n\n\t\t//Setting Defaults\n\t\t$data['records'] ='';\n\t\t$data['fromdate'] = '';\n\t\t$data['todate'] = sqldate('now');\n\t\t$data = $this->_fetchRecord();\n\t\t$data['view_file'] = 'sales.sales';\n\n\t\t//Geting dynamic\n\t\tif( ($record_type = Input::get('record_type')) != NULL ){\n\t\t\t//$data = $this->_fetchRecord();\n\t\t\t$data['view_file'] = 'sales.' . $record_type;\n\t\t}\n\n\t\t$this->layout->title = \"Sales records\";\n\t\t$this->layout->content = View::make('sales.sales_index', $data);\n\t}", "function datatable(){\n \n $page = $_POST['page']; // get the requested page\n\t\t$limit = $_POST['rows']; // get how many rows we want to have into the grid\n\t\t$sidx = $_POST['sidx']; // get index row - i.e. user click to sort\n\t\t$sord = $_POST['sord']; // get the direction\n\t\tif(!$sidx) $sidx =1;\n\n\n\t\t$fields_arrayPackage = array(\n\t\t\t'p.menu_id','p.menu_name','p.menu_area','p.menu_link','p.menu_position','p.menu_parent','p.menu_status','u.first_name','p.menu_createOn','u1.first_name as firstname','p.menu_updateOn'\n\t\t);\n\t\t$join_arrayPackage = array(\n\t\t\t'users AS u' => 'u.id = p.menu_createBy',\n\t\t\t'users AS u1' => 'u1.id = p.menu_updateBy',\n\t\t);\n\t\t//$where_arrayPackage = array('c.category_show_status' =>'1','s.status_show_status' =>'1');\n\t\t$where_arrayPackage = array('p.menu_parent' => '0','p.menu_status' => '1');\n\t\t$orderPackage = $sidx.' '. $sord;\n\n\t\t$count = $this->mcommon->join_records_counts($fields_arrayPackage, 'jr_menu_module as p', $join_arrayPackage, $where_arrayPackage, '', $orderPackage);\n\n\t\tif( $count >0 ) {\n\t\t\t$total_pages = ceil($count/$limit);\n\t\t} else {\n\t\t\t$total_pages = 0;\n\t\t}\n\t\tif ($page > $total_pages) $page=$total_pages;\n\t\t$start = $limit*$page - $limit; // do not put $limit*($page - 1)\n\n\t\t$responce->page = $page;\n\t\t$responce->total = $total_pages;\n\t\t$responce->records = $count;\n\t\t$dataTable_Details = $this->mcommon->join_records_all($fields_arrayPackage, 'jr_menu_module as p', $join_arrayPackage, $where_arrayPackage, '', $orderPackage,'object');\n\t\t\n\t\tif (isset($dataTable_Details) && !empty($dataTable_Details)) {\n\t\t\t$i=0;\n\t foreach ($dataTable_Details->result() as $dataDetail) {\n\t \t$responce->rows[$i]['id'] = $dataDetail->menu_id;\n\t \t//$responce->rows[$i]['cell']= array($dataDetail->ndtContractor_id);\n\t \t$responce->rows[$i]['cell']['edit_menu_id'] = get_buttons_new_only_Edit($dataDetail->menu_id,'admin/Equipment/');\n\t \t$responce->rows[$i]['cell']['delete_menu_id'] = get_buttons_new_only_Delete($dataDetail->menu_id,'admin/Equipment/');\n\t \t$responce->rows[$i]['cell']['menu_name'] = $dataDetail->menu_name;\n\t \t$responce->rows[$i]['cell']['menu_area'] = $dataDetail->menu_area;\n\t \t$responce->rows[$i]['cell']['menu_link'] = $dataDetail->menu_link;\n\t \t$responce->rows[$i]['cell']['menu_position'] = $dataDetail->menu_position;\n\t \t$responce->rows[$i]['cell']['first_name'] = $dataDetail->first_name;\n\t \t$responce->rows[$i]['cell']['menu_createOn'] = get_date_timeformat($dataDetail->menu_createOn);\n\t \t$responce->rows[$i]['cell']['firstname'] = $dataDetail->firstname;\n\t \t$responce->rows[$i]['cell']['menu_updateOn'] = get_date_timeformat($dataDetail->menu_updateOn);\n\t \t\t$i++;\n\t }\n\t //$responce->userData['page'] = $responce->page;\n\t //$responce->userData['totalPages'] = $responce->total;\n\t $responce->userData->totalrecords = $responce->records;\n\t } \n\t\techo json_encode($responce);\n }", "public function index()\n {\n //$results = DB::table('individual_report_cicl')->select('id', 'section', 'key_indicators_of_performance', 'total', 'cr', 'cv', 'adm1', 'adm2', 'adm3')->where('user_id', auth('api')->user()->id)->get();\n //return $results;\n }", "public function index()\n {\n $datas = Data::latest()->paginate(5);\n return view('data.index', compact('datas'))->with('i', (request()->input('page', 1) -1)*5);\n }", "function datatable(){\n \n $page = $_POST['page']; // get the requested page\n\t\t$limit = $_POST['rows']; // get how many rows we want to have into the grid\n\t\t$sidx = $_POST['sidx']; // get index row - i.e. user click to sort\n\t\t$sord = $_POST['sord']; // get the direction\n\t\tif(!$sidx) $sidx =1;\n\n\t\t$fields_arrayPackage = array(\n\t\t\t'j.radiographer_first_id','j.radiographer_first_name','u.first_name','j.radiographer_first_createOn as createOn','u1.first_name as firstname','j.radiographer_first_updateOn as updateOn'\n\t\t);\n\t\t$join_arrayPackage = array(\n\t\t\t'users AS u' => 'u.id = j.radiographer_first_createBy',\n\t\t\t'users AS u1' => 'u1.id = j.radiographer_first_updateBy',\n\t\t);\n\t\t$where_arrayPackage = array('j.radiographer_first_show_status' =>'1');\n\t\t$orderPackage = $sidx.' '. $sord;\n\n\t\t$count = $this->mcommon->join_records_counts($fields_arrayPackage, 'jr_radiographer_first as j', $join_arrayPackage, $where_arrayPackage, '', $orderPackage);\n\n\t\tif( $count >0 ) {\n\t\t\t$total_pages = ceil($count/$limit);\n\t\t} else {\n\t\t\t$total_pages = 0;\n\t\t}\n\t\tif ($page > $total_pages) $page=$total_pages;\n\t\t$start = $limit*$page - $limit; // do not put $limit*($page - 1)\n\n\t\t$responce->page = $page;\n\t\t$responce->total = $total_pages;\n\t\t$responce->records = $count;\n\t\t$dataTable_Details = $this->mcommon->join_records_all($fields_arrayPackage, 'jr_radiographer_first as j', $join_arrayPackage, $where_arrayPackage, '', $orderPackage,'object');\n\n\t\tif (isset($dataTable_Details) && !empty($dataTable_Details)) {\n\t\t\t$i=0;\n\t foreach ($dataTable_Details->result() as $dataDetail) {\n\t \t$responce->rows[$i]['id'] = $dataDetail->radiographer_first_id;\n\t \t//$responce->rows[$i]['cell']= array($dataDetail->ndtContractor_id);\n\t \t$responce->rows[$i]['cell']['edit_radiographer_first_id'] = get_buttons_new_only_Edit($dataDetail->radiographer_first_id,'master/Radiographer1/');\n\t \t$responce->rows[$i]['cell']['delete_radiographer_first_id'] = get_buttons_new_only_Delete($dataDetail->radiographer_first_id,'master/Radiographer1/');\n\t \t$responce->rows[$i]['cell']['radiographer_first_name'] = $dataDetail->radiographer_first_name;\n\t \t$responce->rows[$i]['cell']['first_name'] = $dataDetail->first_name;\n\t \t$responce->rows[$i]['cell']['createOn'] = get_date_timeformat($dataDetail->createOn);\n\t \t$responce->rows[$i]['cell']['firstname'] = $dataDetail->firstname;\n\t \t$responce->rows[$i]['cell']['updateOn'] = get_date_timeformat($dataDetail->updateOn);\n\t \t\t$i++;\n\t }\n\t //$responce->userData['page'] = $responce->page;\n\t //$responce->userData['totalPages'] = $responce->total;\n\t $responce->userData->totalrecords = $responce->records;\n\t } \n\t\techo json_encode($responce);\n }", "public function index()\n\t{\n\t\t$data['data'] = $this->gadget_model->get_all_gadget();\n\n\t\t$this->load->view(\"templates/v_header\");\n\t\t$this->load->view('gadget/gadget_datatable', $data);\n\t\t$this->load->view(\"templates/v_footer\");\n\t}", "public function dataTable();", "public function index()\n {\n return datatables()->eloquent(Sector::with('voters','leaders','zone'))\n ->addColumn('votantes',function (Sector $sector){\n return count($sector->voters);\n })->addColumn('lideres',function (Sector $sector){\n return count($sector->leaders);\n })->toJson();\n }", "public function index()\n\t{\n\t\t$rownds = $this->rownd->all(array('sort_order'=>'asc'), array('user_id'=>app::session('id')));\n\t\t\n\t\tif ($rownds)\n\t\t{\n\t\t\t$data['rownds'] = $rownds->result;\n\t\t\t$this->render($data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->render();\n\t\t}\n\t}", "public function indexAction() {\n\t\t$this->_model->where_clause(NULL);\n\n\t\tif(!isset($this->params['page'])) {\n\t\t\tself::$params['page'] = 1;\n\t\t} \n\n\t\t$this->_view->data['info'] = $this->_model->getPage($this->params['page'], $this->config->pagination_limit);\n\t\t$this->_view->data['total_items'] = $this->_model->getCount();\n\t\t$this->addModuleTemplate($this->module, 'index');\n\n\t}", "public function getRows($input = array(), $data = array())\n\t{\n\t\t\n\n\t\t// Handle any conditions for working with dynamic queries\n\t\t\n\n\t\t// Handle \"Order By\", $input['sidx'] is sort column, $input['sord'] is \"asc\" or \"desc\"\n\t\t\t\t\n\t\n\t\t// Build \"Count\" query\t$input['page'] is current page num, $input['perPage'] is limit\t\n\t\t\n\t\t\n\t\t// Build Main query\n\t\t\n\t\t\n\t\t\n\t\t//******************************************************************************\n\t\t// from\n\t\t$query = DB::table('tad_schools AS schools');\n\t\t$count_query = DB::table('tad_schools AS schools');\n\t\t\n\t\t// sd\n\t\t$query->leftJoin('tad_sd AS sd','sd.id','=','schools.sd_id');\n\t\t\t\t\t\t\n\t\t// cities\n\t\t$query->leftJoin('tad_cities AS cities', function($join)\n\t\t\t\t {\n\t\t\t\t\t\t$join->on('cities.id','=','schools.city_id');\n\t\t\t\t\t});\n\t\t\n\t\t// counties\n\t\t$query->leftJoin('tad_counties AS counties','counties.id','=','schools.county_id');\n\t\t\n\t\t// dept\n\t\t$query->leftJoin('tad_dept AS dept', function($join) \n\t\t\t\t\t{\n\t\t\t\t\t\t$join->on('dept.school_id','=','schools.id');\n\t\t\t\t\t\t$join->on('dept.type_id','=',DB::raw('?'));\n\t\t\t \t})\n\t\t\t ->setBindings(array_merge($query->getBindings(),array(\"4\")));\n\t\t\t\t\t\t\t\t\n\t\t// dept people\n\t\t$query->leftJoin('tad_dept_people AS dept_people', function($join) \n\t\t\t\t\t{\n\t\t\t\t\t\t$join->on('dept_people.dept_id','=','dept.id');\n\t\t\t\t\t\t$join->on('dept_people.personnel_type_id','=',DB::raw('?'));\n\t\t\t \t})\n\t\t\t ->setBindings(array_merge($query->getBindings(),array(\"4\")));\n\t\t\t\t\t\t\t\n\t\t// people\n\t\t$query = $query->leftJoin('tad_people AS people','people.id','=','dept_people.person_id');\n\t\t\n\t\t// school\n\t\t$query->where('schools.active','1');\n\t\tif(!empty($this->grid_settings['params']['cty']))\n\t\t{\n\t\t\t$query->where('schools.city_id',$this->grid_settings['params']['cty']);\n\t\t\t$count_query->where('schools.city_id',$this->grid_settings['params']['cty']);\n\t\t}\n\t\t\t\t\n\t\t// select\n\t\t$query = $query->select( 'schools.id AS schools__id',\n\t\t\t\t\t\t\t\t 'schools.apname AS schools__apname',\n\t\t\t\t\t\t\t\t 'sd.name AS sd__name',\n\t\t\t\t\t\t\t\t 'people.id AS people__id',\n\t\t\t\t\t\t\t\t 'people.first_name AS people__first_name',\n\t\t\t\t\t\t\t\t 'people.middle_name AS people__middle_name',\n\t\t\t\t\t\t\t\t 'people.last_name AS people__last_name',\n\t\t\t\t\t\t\t\t 'people.preferred_name AS people__preferred_name',\n\t\t\t\t\t\t\t\t 'cities.name AS cities__name',\n\t\t\t\t\t\t\t\t 'counties.name AS counties__name',\n\t\t\t\t\t\t\t\t 'schools.phone AS schools__phone',\n\t\t\t\t\t\t\t\t 'schools.fax AS schools__fax',\n\t\t\t\t\t\t\t\t 'schools.url AS schools__url',\n\t\t\t\t\t\t\t\t 'schools.active AS schools__active'\n\t\t\t\t\t\t\t\t);\n\t\t\n\t\t\t\t\t\t\t\t\n\t\t// Run queries\n\t\t$this->grid_settings['count'] = $count_query->count();\n\t\t$offset = EasyInput::compute_offset($this->grid_settings['page'], $this->grid_settings['count'], $this->grid_settings['per_page']);\t\t\n\t\t\n\t\t$rows = $query->skip($offset)\n\t\t\t\t\t ->take($this->grid_settings['per_page'])\n\t\t\t\t\t ->get();\t\t\t\n\t\t\n\t\t\n\t\t// ******************************************************************\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Set count and rows properties and return object\n\t\t$rowsObj \t = new stdClass;\n\t\t$rowObj->count = $result_from_count_query;\n\t\t$rowObj->rows = $result_from_main_query;\n\t\t\t\t\t\n\t\treturn $rowsObj;\n\t}", "public function index()\n {\n /* if(request()->ajax())\n {\n return datatables()->of(Post::latest()->get())->make(true);\n }\n return view('prof_int');*/\n }", "public function datatables()\n\t{\n\t\t//menunda loading (bisa dihapus, hanya untuk menampilkan pesan processing)\n\t\t// sleep(2);\n\n\t\t//memanggil fungsi model datatables\n\t\t$list = $this->m_guestbook->get_datatables();\n\t\t$data = array();\n\t\t$no = $this->input->post('start');\n\n\t\t//mencetak data json\n\t\tforeach ($list as $field) {\n\t\t\t$no++;\n\t\t\t$row = array();\n\t\t\t$row[] = $no;\n\t\t\t$row[] = $field['nama'];\n\t\t\t$row[] = $field['nim'];\n\t\t\t$row[] = $field['email'];\n\t\t\t$row[] = $field['date'];\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\t//mengirim data json\n\t\t$output = array(\n\t\t\t\"draw\" => $this->input->post('draw'),\n\t\t\t\"recordsTotal\" => $this->m_guestbook->count_all(),\n\t\t\t\"recordsFiltered\" => $this->m_guestbook->count_filtered(),\n\t\t\t\"data\" => $data,\n\t\t);\n\n\t\t//output dalam format JSON\n\t\techo json_encode($output);\n\t}", "public function index()\n {\n $this->paginate = array(\n 'all',\n 'conditions' => array('$or' => array(\n array('table' => null),\n array('table' => array('$exists' => false))\n ))\n );\n $contentVariables = $this->paginate('ContentVariable');\n $this->set(compact('contentVariables', $contentVariables));\n }", "public function index() {\n \n //Iniciar proceso de paginación\n $this->Prg->commonProcess();\n \n //Establecer parámetros de paginación\r\n $this->paginate = array( \r\n 'conditions' => $this->Funeraria->parseCriteria($this->params->query),\n 'paramType' => 'querystring',\n );\n \n //Devolver paginación\n $this->set('funerarias', $this->paginate());\n \n }", "public function exportData(): void\n\t{\n\t\t$entries = [];\n\t\tif (!$this->exportColumns && $this->quickExport && $this->queryOptions['viewname']) {\n\t\t\t[$headers, $entries] = $this->getEntriesForQuickExport();\n\t\t} else {\n\t\t\t[$headers, $entries] = $this->getEntriesExport();\n\t\t}\n\t\t$this->output($headers, $entries);\n\t}", "public function index()\n\t\t{\n\t\t$master_datas = MasterData::orderBy('id', 'desc')->paginate(10);\n\t\t\n\t\treturn view('page.master-data', compact('master_datas'));\n\t}", "public function doData() {\n\t\t\t$dataSet = array();\n\t\t\t$dataSet['attribute:type'] = $this->dataType;\n\t\t\t$dataSet['attribute:action'] = $this->actionType;\n\n\t\t\tif($this->total) {\n\t\t\t\t$dataSet['attribute:total'] = $this->total;\n\n\t\t\t\tif(!is_null($this->offset)) {\n\t\t\t\t\t$dataSet['attribute:offset'] = $this->offset;\n\t\t\t\t}\n\n\t\t\t\tif(!is_null($this->limit)) {\n\t\t\t\t\t$dataSet['attribute:limit'] = $this->limit;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$dataSet = array_merge($dataSet, $this->data);\n\n\t\t\tcmsController::getInstance()->setAdminDataSet($dataSet);\n\t\t}", "public function index(){ \n \t$data['query1'] = $this->MBahagia->tampil_data();\n \t$data['query2'] = $this->MCamplong->tampil_data();\n \t$data['query3'] = $this->MPanglima->tampil_data();\n \t$data['query4'] = $this->MPKPRI->tampil_data();\n \t$data['query5'] = $this->MRahmat->tampil_data();\n\n \t\n \t$this->global['pageTitle'] = 'RichiSoft | Local Database';\n\t\t$this->loadViews(\"ViewTables/TableSlave\", $this->global, $data, NULL);\n\t}", "public function index()\n\t{\n\t\t$data['result']=NULL;\n\t\t$data['show']=NULL;\n\t\t$this->setIndex($data);\n\t}", "public function getIndex()\n {\n return view('admin.data_table');\n }", "public function index()\n {\n return view('admin.examples.datatables');\n }", "public function index($pDataArr = array()){ \n\t\t/* if empty result set pass then do needful */\n\t\tif(empty($this->_strDataSet)){\n\t\t\t\t/* Return empty result set */\n\t\t\t\treturn $this->_strDataSet;\n\t\t}\n\t\t\n\t\t/* Start - Data manipulation logic will go here */\n\t\t/* End - Data manipulation logic will go here */\n\t\t\n\t\t/* Setting the view */\n\t\t$this->_strDataSet[\"actionHooksArr\"][] \t\t= $this->load->view($this->setView(\"index\"), $this->_strDataSet, true);\n\t\t$this->_strDataSet[\"customWidgetHooksArr\"][] = $this->load->view($this->setView(\"index\"), $this->_strDataSet, true);\n\t\t/* $this->_strDataSet[\"injectView\"][] \t\t\t= $this->load->view($this->setView(\"index\"), $this->_strDataSet, true); */\n\t\t/* $this->_strDataSet[\"attri_config\"][] \t\t= array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"{SCHEME COLUMN NAME}\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"custom_field\"=>1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"attri_slug_name\"=>\"{SCHEME COLUMN NAME}\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"attri_data_type\"=>\"{VALIDATION_TYPE}\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"attri_default_value\"=>\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"attri_value_list\"=>\"serialize(array())\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"is_mandatory\"=>1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"attri_validation\"=>\"{VALIDATION_TYPE}\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"schema_name\"=>\"{SCHEME NAME}\",\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\t\t\t\t\t\t\t\t);*/\n\t\t\n\t\t/* Return the dataset */\n\t\treturn $this->_strDataSet;\n\t}", "public function index()\n {\n return $this->getData();\n }", "function admin_index()\n {\n $perPage = 100;\n $this->lordModel('Post');\n $condition = array('type' => 'post');\n $d['posts'] = $this->Post->find(array(\n 'condition' => $condition,\n 'limit' => ($perPage * ($this->request->page - 1)) . ',' . $perPage\n ));\n $d['total'] = $this->Post->findCount($condition);\n $d['nbrPage'] = ceil($d['total'] / $perPage);\n //print_r($d);\n $this->setvars($d);\n //$this->setvars('phrase', 'bienvenue sur ma page');\n //$this->render('view');\n }", "public function listdataAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('%');\n }", "public function index()\n\t{\n\t\t\n\t\t\t// Lets start with pagination\n\t\t\t// First off, how many items per page and what page are we on?\n\t\t $per_page = 10;\n\t\t\t$current_page = (isset($_GET['p'])) ? intval($_GET['p']) : '1';\n\t\t\t\n\t\t\t// If there a search being done?\n\t\t\tif (isset($_GET['search']))\n\t\t\t{\n\t\t\t\t$this->data['search_value'] = htmlspecialchars($_GET['search']);\n\t\t\t}\n\t\t\t\n\t\t// This is to check if the slug being given matches one in the index_information table, if not then we'll check later if it's even a table\n\t\t$index_info = new Index_Information;\n\t\t\n\t\tif ($index_info->select(array('slug'=>strtolower(Router::uri(3)))))\n\t\t{\n\t\t\t$this->data['page_title'] = $index_info->title;\n\t\t\t$this->data['table'] = $index_info->table;\n\t\t\t\n\t\t\t// If no custom sql is in the table then just use the default select * statement\n\t\t\tif (is_null($index_info->sql) || empty($index_info->sql))\n\t\t\t\t$index_info->sql = '%select%';\n\t\t\t\n\t\t\t// Check if we should do a search...\n\t\t\tif (isset($this->data['search_value']))\n\t\t\t{\n\t\t\t\t// If there's already a where statement we need an AND\n\t\t\t\tif (preg_match('/where/i', $index_info->sql))\n\t\t\t\t\t$index_info->sql .= 'AND ';\n\t\t\t\t\n\t\t\t\t$index_info->sql .= '';\n\t\t\t}\n\n\t\t // Next, get the total number of items in the database\n\t\t\t// I know this isn't the most efficient count rows but because this can be a custom query, i don't know how else...\n\t\t $num_entries = Database::get_instance()->num_rows(str_replace('%select%', 'SELECT * FROM ' . $index_info->table, $index_info->sql));\n\t\t\tif ($num_entries == false)\n\t\t\t\t$num_entries = 0;\n\n\t\t // Initialize the Pager object\n\t\t $pager = new Pagination($current_page, $per_page, $num_entries);\n\t\t\n\t\t\t// Converting string in url to what should match a db object\n\t\t\t$db_object_name = String::uc_slug($index_info->table, '_', '_');\n\t\t\n\t\t\t// If $db_object doesn't match a current class then something's wrong...\n\t\t\tif (!class_exists($db_object_name))\n\t\t\t\tdie('<h2>Sorry, ' . $db_object_name . ' does not exist.</h2>');\n\t\t\t\n\t\t\t$db_object = new $db_object_name;\n\t\t\n\t\t\t$this->data['fields'] = $db_object->get_fields();\n\t\t\t\n\t\t\t// TODO: Parameter for added columns should be included, must add field to table and model\n\t\t\t$this->data['objects'] = $db_object->select_many($index_info->sql . ' LIMIT ' . $pager->first_record . ', ' . $pager->per_page);\n\t\t\t\n\t\t\t/*\n\t\t\t\tTEMPLATE FIELD FORMAT:\n\t\t\t\t<table>header html...\n\t\t\t\t%startloop%\n\t\t\t\t<tr>loop info</tr> %fieldname% %fieldname%\n\t\t\t\t%endloop%\n\t\t\t\t</table>footer html\n\t\t\t*/\n\t\t\n\t\t\t$this->data['template']['header'] = preg_match('/(.*?)%startloop%/im', $index_info->template, $matches);\n\t\t\t$this->data['template']['header'] = $matches[1];\n\t\t\n\t\t\t$this->data['template']['loop'] = preg_match('/%startloop%(.*?)%endloop%/im', $index_info->template, $matches);\n\t\t\t$this->data['template']['loop'] = $matches[1];\n\t\t\n\t\t\t$this->data['template']['footer'] = preg_match('/%endloop%(.*?)/im', $index_info->template, $matches);\n\t\t\t$this->data['template']['footer'] = $matches[1];\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data['table'] = String::clean(Router::uri(3), '_');\n\t\t\t\n\t\t\t// Converting string in url to what should match a db object\n\t\t\t$db_object_name = String::uc_slug(Router::uri(3), '_', '-');\n\t\t\t\n\t\t\t$db_object = new $db_object_name;\n\t\t\n\t\t\t$this->data['fields'] = $db_object->get_fields();\n\t\t\n\t\t\t// If $db_object doesn't match a current class then something's wrong...\n\t\t\tif (!class_exists($db_object_name))\n\t\t\t\tdie('<h2>Sorry, ' . $db_object_name . ' does not exist.</h2>');\n\t\t\t\n\t\t\t// This is where we'll store the WHERE info the sql statement\n\t\t\t$where = '';\n\t\t\t\n\t\t\t// Check if we should do a search...\n\t\t\tif (isset($this->data['search_value']))\n\t\t\t{\t\n\t\t\t\t$where .= ' WHERE ';\n\t\t\t\tforeach ($this->data['fields'] as $field)\n\t\t\t\t{\n\t\t\t\t\t$where .= '(`' . $field .'` LIKE \\'%' . Database::get_instance()->escape($this->data['search_value']) . '%\\') OR ';\n\t\t\t\t}\n\t\t\t\t$where = ' ' . trim($where, 'OR ');\n\t\t\t}\n\n\t\t // Next, get the total number of items in the database\n\t\t $this->data['num_entries'] = $num_entries = Database::get_instance()->get_value('SELECT COUNT(*) FROM `' . $this->data['table'] . '`' . $where);\n\n\t\t // Initialize the Pager object\n\t\t $pager = new Pagination($current_page, $per_page, $num_entries);\n\t\t\t\n\t\t\t$this->data['objects'] = $db_object->select_many('%select%' . $where . ' ORDER BY ' . $db_object->id_column_name . ' DESC LIMIT ' . $pager->first_record . ', ' . $pager->per_page);\n\n\t\t\t$this->data['page_title'] = String::uc_slug(Router::uri(3), ' ', '_');\n\t\t\t\n\t\t\t$this->data['template']['header'] = '<table class=\"default_table\"><tr><th class=\"entry_actions_wrapper\"></th>';\n\t\t\t$this->data['template']['footer'] = '</table>';\n\t\t\t$this->data['template']['loop'] = '<tr class=\"entry_row\" id=\"entry_%id%\"><td class=\"entry_actions_wrapper\"><div class=\"entry_actions\"><a href=\"' . WEB_ROOT . Router::uri(0) . '/delete/' . Router::uri(3) . '/%id%/\" class=\"delete\" rel=\"facebox.default_modal\">Delete</a><a href=\"' . WEB_ROOT . Router::uri(0) . '/edit/' . Router::uri(3) . '/%id%/\" class=\"edit\">Edit</a></div></td>';\n\t\t\n\t\t\t\t// We only want to return the first 4 fields, more than that and it might be too long\n\t\t\t\tif (count($this->data['fields']) > 4)\n\t\t\t\t\t$this->data['fields'] = array_slice($this->data['fields'], 0, 4);\n\t\t\t\t\n\t\t\t\tforeach ($this->data['fields'] as $field) \n\t\t\t\t{\n\t\t\t\t\t$this->data['template']['header'] .= '<th>' . String::uc_slug($field, ' ', '_') . '</th>';\n\t\t\t\t\t$this->data['template']['loop'] .= '<td>%' . $field . '%</td>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$object_filter = new Object_Filter();\n\t\t\t\t$this->data['objects'] = $object_filter->for_display($this->data['table'], $this->data['fields'], $this->data['objects']);\n\t\t\t\n\t\t\t\t// Final column for edit and delete buttons\n\t\t\t\t$this->data['template']['header'] .= '</tr>';\n\t\t\t\t$this->data['template']['loop'] .= '</tr>';\n\t\t\n\t\t\t$this->data['template']['header'] .= '</tr>';\n\t\t}\n\t\t\n\t\t$this->data['pager'] = $pager;\n\t\t$this->load_template('index');\n\t}", "public function data()\n {\n $article = PagesModel::join('article_categories', 'article_categories.id', '=', 'articles.article_category_id')\n ->select(array('articles.id','articles.title','article_categories.title as category',\n 'articles.created_at'));\n\n return Datatables::of($article)\n ->add_column('actions', '<a href=\"{{{ URL::to(\\'admin/article/\\' . $id . \\'/edit\\' ) }}}\" class=\"btn btn-success btn-sm iframe\" ><span class=\"glyphicon glyphicon-pencil\"></span> {{ trans(\"admin/modal.edit\") }}</a>\n <a href=\"{{{ URL::to(\\'admin/article/\\' . $id . \\'/delete\\' ) }}}\" class=\"btn btn-sm btn-danger iframe\"><span class=\"glyphicon glyphicon-trash\"></span> {{ trans(\"admin/modal.delete\") }}</a>\n <input type=\"hidden\" name=\"row\" value=\"{{$id}}\" id=\"row\">')\n ->remove_column('id')\n\n ->make();\n }", "public function index(Request $request, Builder $htmlBuilder)\n { \n $mobila = Mobil::orderBy('created_at','desc')->take(3)->get();\n $potoa = Poto::orderBy('created_at','desc')->take(1)->get();\n $poto = Poto::orderBy('created_at','desc')->take(3)->get();\n $mobilsa = Mobil::orderBy('created_at','desc')->paginate(5);\n $leader = Leader::orderBy('created_at','asc')->paginate(5);\n $leadera = Leader::orderBy('created_at','asc')->paginate(1);\n $modell = Modell::all();\n $mobile = Mobil::all();\n $perusahaan = Perusahaan::all();\n\n if ($request->ajax()) {\n $perusahaans = Perusahaan::select(['id','about','service','dekservice','motto','cover','cover2','cover3']);\n return Datatables::of($perusahaans)\n ->addColumn('cover', function($perusahaan){\n return '<img src=\"/img/img1/'.$perusahaan->cover. '\" height=\"100px\" width=\"200px\">';\n })\n ->addColumn('cover2', function($perusahaan){\n return '<img src=\"/img/img2/'.$perusahaan->cover2. '\" height=\"100px\" width=\"200px\">';\n })\n ->addColumn('cover3', function($perusahaan){\n return '<img src=\"/img/img3/'.$perusahaan->cover3. '\" height=\"100px\" width=\"200px\">';\n })\n\n ->addColumn('action', function($perusahaan){\n return view('datatable._action', [\n 'model'=> $perusahaan,\n 'form_url'=> route('perusahaans.destroy', $perusahaan->id),\n 'edit_url'=> route('perusahaans.edit', $perusahaan->id),\n 'confirm_message' => 'Yakin mau menghapus ' . $perusahaan->title . '?'\n ]);\n })->make(true);\n }\n $html = $htmlBuilder\n // ->addColumn(['data' => 'about', 'name'=>'about', 'title'=>'About'])\n ->addColumn(['data' => 'service', 'name'=>'service', 'title'=>'Service'])\n ->addColumn(['data' => 'dekservice', 'name'=>'dekservice', 'title'=>'Deskripsi service'])\n // ->addColumn(['data' => 'motto', 'name'=>'motto', 'title'=>'Motto'])\n ->addColumn(['data' => 'cover', 'name'=>'cover', 'title'=>'Cover'])\n ->addColumn(['data' => 'cover2', 'name'=>'cover2', 'title'=>'Cover 2'])\n ->addColumn(['data' => 'cover3', 'name'=>'cover3', 'title'=>'Cover 3'])\n ->addColumn(['data' => 'action', 'name'=>'action', 'title'=>'', 'orderable'=>false, 'searchable'=>false]);\n return view('perusahaans.index')->with(compact('html','mobilsa','modell','mobila','leader','poto','potoa','mobile','perusahaan','leadera'));\n}", "public function index()\n {\n View::renderTemplate('header', $data);\n View::render('admin/index', $data);\n View::renderTemplate('footer', $data);\n }", "public function index()\r\r\r\n\t{\r\r\r\n\t\t/*=============================================\r\r\r\n\t\t\t1.\tDATA FOR ALL PAGE ( FROM api_controller )\r\r\r\n\t\t=============================================*/\r\r\r\n\t\t$data = $this->data_for_all_pages();\r\r\r\n\t\t\r\r\r\n\t\t/*=============================================\r\r\r\n\t\t\t3.\tRESPONSE JSON \r\r\r\n\t\t=============================================*/\r\r\r\n\t\t$status \t= self::SUCCESS;\r\r\r\n\t\t$message \t= '';\r\r\r\n\t\t$this->jsonout(\t$status,\r\r\r\n\t\t\t\t\t\t$message, \r\r\r\n\t\t\t\t\t\t$data\r\r\r\n\t\t\t\t\t\t);\r\r\r\n\t\texit ;\r\r\r\n\t}", "public function paydata() {\n\t\t$column=['idtrans','tdate','tnotrans','a.uname as mem','a.unim','transname','tpaid','b.uname'];\n\t\t$header = $this->returncolomn($column);\n\t\tunset($header[0]);\n\t\t$header[]='Menu';\n\t\t$tmpl = array ( 'table_open' => '<table class=\"table table-hover\">' );\n\t\t$this->table->set_template($tmpl);\n\t\t$this->table->set_heading($header);\n\t\t\t\n\t\t\n\t//================== catch all value ================\n\t\t$durl= $_SERVER['QUERY_STRING'];\n\t\tparse_str($durl, $filter);\n\t\t$tempfilter=$filter;\n\t\t$addrpage = '';\n\t\t$offset= isset($tempfilter['view']) ? $tempfilter['view'] : 10;\n\t\t$perpage= isset($tempfilter['page']) ? $tempfilter['page'] : 1;\n\t\t\n\t\tif ($durl!=null){\n\t\t\tunset($filter['view']);\n\t\t\tunset($filter['id']);\n\t\t\tunset($filter['page']);\n\t\t\t$filter= array_filter($filter, function($filter) \n\t\t\t\t\t\t\t\t\t\t{return ($filter !== null && $filter !== false && $filter !== '');\n\t\t\t\t\t\t\t});\n\t\t\t//implode query address\n\t\t\t$addrpage= http_build_query($filter);\n\t\t\t$addrpage = empty($addrpage)? null:$addrpage.'&';\n\t\t\tif ((array_key_exists('column',$filter)) and (array_key_exists('search',$filter))){\n\t\t\t\t$vc = $filter['column'];\n\t\t\t\t$vq = $filter['search'];\n\t\t\t\tunset($filter['column']);\n\t\t\t\tunset($filter['search']);\n\t\t\t\t$filter[$vc]=$vq;\n\t\t\t\t$data['d']='';\n\t\t\t\t}\n\t\t\telse if ((empty($filter['view'])) and (!empty($filter))){\n\t\t\t$data['d']='d';\n\t\t\t}\n\t\t\t//count rows of data (with filter/search)\n\t\t\t$rows = $this->Mpay->countpay($filter);\n\t\t\t\n\t\t} else {\n\t\t\t//count rows of data (no filter/search)\n\t\t\t$rows = $this->Mpay->countpay();\t\n\t\t}\n\t\t//================ filter handler ================\n\t\t$fq = array('name'=>'search',\n\t\t\t\t\t\t'id'=>'search',\n\t\t\t\t\t\t'required'=>'required',\n\t\t\t\t\t\t'placeholder'=>'Search Here',\n\t\t\t\t\t\t'value'=> isset($tempfilter['search']) ? $tempfilter['search'] : null ,\n\t\t\t\t\t\t'class'=>'form-control');\n\t\t$data['inq'] = form_input($fq);\n\t\t\t$optf = array(\n\t\t\t\t\t\t'tdate' => 'Date Issued',\n\t\t\t\t\t\t'tnotrans' => 'Invoice Number',\n\t\t\t\t\t\t'tnomi' => 'Cash Given',\n\t\t\t\t\t\t'tpaid' => 'Nominal Paid',\n\t\t\t\t\t\t'uname' => 'Name',\n\t\t\t\t\t\t'unim' => 'NIM',\n\t\t\t\t\t\t'pic' => 'PIC',\n\t\t\t\t\t\t'valid_to' => 'Valid Date'\n\t\t\t\t\t\t);\n\t\t$fc = array('name'=>'column',\n\t\t\t\t\t\t'id'=>'col',\n\t\t\t\t\t\t'class'=>'form-control'\n\t\t\t\t\t);\n\t\t$data['inc'] = form_dropdown($fc,$optf,isset($tempfilter['column']) ? $tempfilter['column'] : null);\n\t\t$data['inv'] = form_hidden('view',isset($tempfilter['view']) ? $tempfilter['view'] : 10);\n\t\t\n\t\t$fbq = array(\t'id'=>'bsearch',\n\t\t\t\t\t\t'value'=>'search',\n\t\t\t\t\t\t'class'=>'btn btn-primary',\n\t\t\t\t\t\t'type'=>'submit');\n\t\t$data['bq'] = form_submit($fbq);\n\t\t\n\t\t// ============= advanced filter ===============\n\t\t$adv['Period'] = form_input(\n\t\t\t\t\t\tarray('name'=>'period',\n\t\t\t\t\t\t'id'=>'period',\n\t\t\t\t\t\t'placeholder'=>'Period',\n\t\t\t\t\t\t'value'=>isset($tempfilter['period']) ? $tempfilter['period'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t$adv['Date Issued '] = form_input(\n\t\t\t\t\t\tarray('name'=>'tdate',\n\t\t\t\t\t\t'id'=>'sissuedon',\n\t\t\t\t\t\t'placeholder'=>'Date Issued (YYYY-MM-DD)',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tdate']) ? $tempfilter['tdate'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['Invoice Number'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tnotrans',\n\t\t\t\t\t\t'id'=>'snotrans',\n\t\t\t\t\t\t'placeholder'=>'Invoice Number',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tnotrans']) ? $tempfilter['tnotrans'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['Full Name'] = form_input(\n\t\t\t\t\t\tarray('name'=>'uname',\n\t\t\t\t\t\t'id'=>'sfullname',\n\t\t\t\t\t\t'placeholder'=>'Full Name',\n\t\t\t\t\t\t'value'=>isset($tempfilter['uname']) ? $tempfilter['uname'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['NIM'] = form_input(\n\t\t\t\t\t\tarray('name'=>'unim',\n\t\t\t\t\t\t'id'=>'sNIM',\n\t\t\t\t\t\t'placeholder'=>'NIM',\n\t\t\t\t\t\t'value'=>isset($tempfilter['unim']) ? $tempfilter['unim'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t$adv['Nominal Paid'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tpaid',\n\t\t\t\t\t\t'id'=>'spaid',\n\t\t\t\t\t\t'placeholder'=>'Nominal Paid',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tpaid']) ? $tempfilter['tpaid'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['Cash Given'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tnomi',\n\t\t\t\t\t\t'id'=>'scash',\n\t\t\t\t\t\t'placeholder'=>'Cash Given',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tnomi']) ? $tempfilter['tnomi'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['Nominal Change'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tchange',\n\t\t\t\t\t\t'id'=>'schange',\n\t\t\t\t\t\t'placeholder'=>'Nominal Change',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tchange']) ? $tempfilter['tchange'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\t\t\t\t\n\t\t\t$opttrans = $this->Mpay->optjtrans();\n\t\t$adv['Transaction Type'] = form_dropdown(\n\t\t\t\t\t\tarray('name'=>'idjnstrans',\n\t\t\t\t\t\t'id'=>'sjnstrans',\n\t\t\t\t\t\t'placeholder'=>'Transaction Type',\n\t\t\t\t\t\t'value'=>'',\n\t\t\t\t\t\t'class'=>'form-control'),$opttrans,isset($tempfilter['idjnstrans']) ? $tempfilter['idjnstrans'] : null);\n\t\t\n\t\t$adv['Fully Paid/Not'] = form_dropdown(array(\n\t\t\t\t\t\t\t'name'=>'ulunas',\n\t\t\t\t\t\t\t'id'=>'slunas',\n\t\t\t\t\t\t\t'class'=>'form-control'),\n\t\t\t\t\t\t\tarray(''=>'No filter','1'=>'Fully Paid',\n\t\t\t\t\t\t\t'0'=>'Not Yet'),isset($tempfilter['ulunas']) ? $tempfilter['ulunas'] : null);\n\t\t$adv['PIC Name'] = form_input(\n\t\t\t\t\t\tarray('name'=>'pic',\n\t\t\t\t\t\t'id'=>'spicname',\n\t\t\t\t\t\t'placeholder'=>'PIC Name',\n\t\t\t\t\t\t'value'=>isset($tempfilter['pic']) ? $tempfilter['pic'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t$adv['Invoice Valid Until'] = form_input(\n\t\t\t\t\t\tarray('name'=>'valid_to',\n\t\t\t\t\t\t'id'=>'svalid',\n\t\t\t\t\t\t'placeholder'=>'Date Valid (YYYY-MM-DD)',\n\t\t\t\t\t\t'value'=>isset($tempfilter['valid_to']) ? $tempfilter['valid_to'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$dtfilter = '';\n\t\t\n\t\tforeach($adv as $a=>$v){\n\t\t\t$dtfilter = $dtfilter.'<div class=\"input-group\"><label>'.$a.': </label>'.$v.'</div> ';\n\t\t}\n\t\t$data['advance'] = $dtfilter;\n\t\t\n\t\t//=============== paging handler ==========\n\t\t$data[\"urlperpage\"] = base_url().'Admin/Viewpay/paydata?view=';\n\t\t$config = array(\n\t\t\t\t'base_url' => $data['urlperpage'].$offset.$addrpage,\n\t\t\t\t'total_rows' => $rows,\n\t\t\t\t'per_page' => $offset,\n\t\t\t\t'use_page_numbers' => true,\n\t\t\t\t'page_query_string' =>true,\n\t\t\t\t'query_string_segment' =>'page',\n\t\t\t\t'num_links' => $rows,\n\t\t\t\t'cur_tag_open' => '<span class=\"disabled\"><a href=\"#\">',\n\t\t\t\t'cur_tag_close' => '<span class=\"sr-only\"></span></a></span>',\n\t\t\t\t'next_link' => 'Next',\n\t\t\t\t'prev_link' => 'Prev'\n\t\t\t\t);\n\t\t$data[\"perpage\"] = ['10','25','50','100','all'];\n\t\t$this->pagination->initialize($config);\n\t\t$str_links = $this->pagination->create_links();\n\t\t$data[\"links\"] = explode('&nbsp;',$str_links );\n\n\t\t//========== data manipulation =========\n\t\t$temp = $this->Mpay->datapay($column,$config['per_page'],$perpage,$filter);\t\n\t\t\t\tforeach($temp as $key=>$value){\n\t\t\t\t$temp[$key]['tdate']=date('d-M-Y H:i:s',strtotime($temp[$key]['tdate']));\n\t\t\t\t$temp[$key]['tpaid']=$this->convertmoney->convert($temp[$key]['tpaid']);\n\t\t\t\t//manipulation menu\n\t\t\t\t$enc = $value['idtrans'];\n\t\t\t\t$temp[$key]['menu']='<small><a href=\"'.base_url('Admin/Viewpay/paydetail?id=').$enc.'\" data-target=\"#DetailModal\" data-toggle=\"modal\" role=\"button\" alt=\"Full Data\" class=\"btn-primary btn-sm\"><i class=\"fa fa-list-alt\"></i> Details</a></small>';\n\t\t\t\tunset($temp[$key]['idtrans']);\n\t\t\t\t}\n\t\t\n\t\t$data['datalist'] = $this->table->generate($temp);\n\t\t\n\t\t//=============== Template ============\n\t\t$data['jsFiles'] = array(\n\t\t\t\t\t\t\t);\n\t\t$data['cssFiles'] = array(\n\t\t\t\t\t\t\t); \n\t\t// =============== view handler ============\n\t\t$data['title']=\"Payment Data\";\n\t\t$data['topbar'] = $this->load->view('dashboard/topbar', NULL, TRUE);\n\t\t$data['sidebar'] = $this->load->view('dashboard/admin/sidebar', NULL, TRUE);\n\t\t$data['content'] = $this->load->view('dashboard/admin/pay/paylist', $data, TRUE);\n\t\t$this->load->view ('template/main', $data);\n\t}", "public function index($dataSet) {\n return $this->widgetClass->createWidget('index')\n ->setWidgetTemplate('anuncios/index')\n ->setWidgetConfig([\n 'base' => BASE,\n 'include_path' => INCLUDE_PATH,\n ])\n ->setData(AnuncioFormatter::formatAnuncios($dataSet))\n ->getWidget();\n }", "function adminIndex(){\r\n\t\t$data = $this->paginate('AdminBooking');\r\n\t\t$this->set(compact('data'));\r\n\t}", "public function getPaginationDataSource();", "public function index()\n {\n $this->data['list'] = $this->cms_page_model->get_all();\n \n $this->template->load_asset(array('datatable', 'dialog', 'bootstrap_switch'));\n \n $this->template->build('admin/cms/page/index', $this->data);\n }", "public function index()\n\t{ \n $this->data['pagebody'] = 'twotablepage';//new DBQuery().getDatabaseData();//'index';\n $this->data['navigation'] = $this->createNavigation(1);//$this->navigation(1);\n $this->data['dropdowndata'] = '';\n $this->data['contentTitle'] = 'W E L C O M E';\n \n $this->data['leftTableColumns'] = $this->createTableColumns(['Name', 'Code', 'Value']);\n //$this->data['leftTableQuery'] = $this->parseQueryClickable($this->stocks->getStocks(), 'stock', 1);\n \n $this->data['rightTableColumns'] = $this->createTableColumns(['Name', 'Equity', 'Cash']);\n //$this->data['rightTableQuery'] = $this->parseQueryClickable($this->players->getPlayers(), 'profile', 1);\n\t\t\t\n \n $this->render();\n\t}", "public function indexResultsAction() {\n /**\n * @var \\Sg\\DatatablesBundle\\Datatable\\Data\\DatatableData $datatable\n */\n $datatable = $this->get(\"sg_datatables.datatable\")->getDatatable($this->get(\"sg_datatables.familia\"));\n\n // Callback example\n $function = function($qb) {\n $qb->andWhere(\"Familia.visible = true\");\n };\n\n // Add callback\n $datatable->addWhereBuilderCallback($function);\n\n return $datatable->getResponse();\n }", "public function index()\n {\n $domainMetaData = DomainMetaData::paginate(10);\n return $this->response->paginator($domainMetaData,new DomainMetaDataTransformer());\n }", "public function index()\n {\n $data = array();\n $order_key = 'permit_id';\n $order_value = 'desc';\n $data['permit_listing'] = read_data($this->table, $order_key, $order_value); //1 : table name ,2 : order_key ,3 orderby value\n $this->load->view('common/header');\n $this->load->view('permit/permittype/index', $data);\n $this->load->view('common/footer');\n }", "function FetchTableContent($i)\r\n{\r\n\r\n/*\r\nFetchtable content List\r\n\r\n1. fetch all users for dashboard\r\n2. fetch all admins for dahsboard\r\n3. total all sub-admins for dahsboard\r\n4. total count of all registered users\r\n5. total count of all admin users\r\n6. fetch all users\r\n17. Fetch General Settings\r\n*/ \r\n\tglobal $connect;\r\n\t$crud = new Crud($connect);\r\n\r\n\tswitch ($i) {\r\n\r\n\t\t//select all users\r\n\t\tcase 1:\r\n\t\t\t$data = $crud->select(\"users\",\"*\",\"\", \"ID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//select all row from admin 1st level\r\n\t\tcase 2:\r\n\t\t\t$data = $crud->select(\"admin\",\"*\", \"\", \"ID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//select all row from admin 2nd level\r\n\t\tcase 3:\r\n\t\t\t$data = $crud->select(\"sub_admin\",\"*\", \"\", \"ID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//select all row from guest\r\n\t\tcase 4:\r\n\t\t\t$data = $crud->select(\"guest\",\"*\", \"\", \"ID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//fetch audit trail messages for dashboard\r\n\t\tcase 8:\r\n\t\t\t$data = $crud->select(\"gallery p\",\r\n\t\t\t\t\t\"p.*, k.Album, k.ID \",\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t\" p.ID DESC \", \r\n\t\t\t\t\t\" LEFT JOIN album k on p.Album = k.ID \");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//select all row from advert\r\n\t\tcase 9:\r\n\t\t\t$data = $crud->select(\"advert\",\"*\", \"\", \"ID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//select total unique users from general_log table\r\n\t\tcase 10:\r\n\t\t\t$data = $crud->select(\"general_log\",\"COUNT(ID) as Total\", \"\", \"ID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t//select total clicks from general_log table\r\n\t\tcase 11:\r\n\t\t\t$data = $crud->select(\"general_log\",\"SUM(Visit) as Total\", \"\", \"ID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\r\n\t\t//select total unique user clicks from general_log table(For Individual Dashboards)\r\n\t\tcase 12:\r\n\t\t\t$data = $crud->select(\"general_log\",\"COUNT(Visit) as Total\", \"\", \"ID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\r\n\t\t//select all row from Audit Log\r\n\t\tcase 13:\r\n\t\t\t$data = $crud->select(\"audit_log\",\"*\", \"\", \"COUNT(ID) DESC\", \"UserID\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\t\t//select total unique users from general_log table\r\n\t\tcase 14:\r\n\t\t\t$data = $crud->select(\"users\",\"COUNT(ID) as Total\", \"\", \"ID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t//fetch general settings - used\r\n\t\tcase 17:\r\n\t\t\t$data = $crud->select(\"general_settings\", \"*\");\r\n\r\n\t\t\treturn $data;\r\n\t\tbreak;\r\n\r\n\t\t//count schools\r\n\t\tcase 18:\r\n\t\t\t$data = $crud->select(\"school\",\"COUNT(SchoolID) as Total\", \"\", \"SchoolID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\r\n\t\t//count teachers \r\n\t\tcase 19:\r\n\t\t\t$data = $crud->select(\"teacher\",\"COUNT(TID) as Total\", \"\", \"TID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\r\n\t\t//count student\r\n\t\tcase 20:\r\n\t\t\t$data = $crud->select(\"student\",\"COUNT(StdID) as Total\", \"\", \"StdID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\r\n\t\t//count parent\r\n\t\tcase 21:\r\n\t\t\t$data = $crud->select(\"parent\",\"COUNT(ParID) as Total\", \"\", \"ParID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\r\n\t\t//count non-academic\r\n\t\tcase 22:\r\n\t\t\t$data = $crud->select(\"non_academic\",\"COUNT(ID) as Total\", \"\", \"ID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\r\n\t\t//count sub-admin\r\n\t\tcase 23:\r\n\t\t\t$data = $crud->select(\"sub_admin\",\"COUNT(ID) as Total\", \"\", \"ID DESC\");\r\n\t\t\treturn $data[0][\"Total\"];\r\n\t\t\tbreak;\r\n\t\t//select all school\r\n\t\tcase 24:\r\n\t\t\t$data = $crud->select(\"school\",\"*\",\"\", \"SchoolID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\t\t//select all teacher\r\n\t\tcase 25:\r\n\t\t\t$data = $crud->select(\"teacher\",\"*\",\"\", \"TID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\t\t//select all student\r\n\t\tcase 26:\r\n\t\t\t$data = $crud->select(\"student\",\"*\",\"\", \"StdID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\t\t//select all parent\r\n\t\tcase 27:\r\n\t\t\t$data = $crud->select(\"parent\",\"*\",\"\", \"ParID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\t\t//select all non-academic\r\n\t\tcase 28:\r\n\t\t\t$data = $crud->select(\"non_academic\",\"*\",\"\", \"ID DESC\");\r\n\t\t\treturn $data;\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\r\n\r\n\t\t\r\n\t\tdefault:\r\n\t\t\t# code...\r\n\t\t\tbreak;\r\n\t}\r\n}", "public function getData()\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->load->database();\n\n\t\t$aColumns = explode(\", \", $this->select);\n\t\t$searchColumns = $aColumns;\n\t\t$sTable = $this->table;\n\n\t\t//id table\n\t\t$idColumn = $aColumns[count($aColumns)-1];\n\t\t$idColumn = explode(\".\", $idColumn);\n\t\tif(count($idColumn)>1){\n\t\t\t$idColumn = $idColumn[1];\n\t\t}else{\n\t\t\t$idColumn = $idColumn[0];\n\t\t}\n\n\t\t//column ordenar al final\n\t\tfor ($i=0; $i < count($aColumns) ; $i++) {\n\t\t\t$result = explode(\" AS \", $aColumns[$i]);\n\t\t\tif(count($result)>1){\n\t\t\t\t$aColumns[$i] = trim($result[1]);\n\t\t\t}\n\t\t}\n\n\t\t//columnas para buscar\n\t\tfor ($i=0; $i < count($searchColumns) ; $i++) {\n\t\t\t$result = explode(\" AS \", $searchColumns[$i]);\n\t\t\tif(count($result)>1){\n\t\t\t\t$searchColumns[$i] = trim($result[0]);\n\t\t\t}\n\t\t}\n\n\t\t// Paging\n\t\t$limit = \"\";\n\t\tif(isset($_GET['iDisplayStart']) && $_GET['iDisplayLength'] != '-1')\n\t\t{\t\t\n\t\t\tif((int)$_GET['iDisplayStart']!=0){\n\t\t\t\t$limit .= \" LIMIT \".(int)$_GET['iDisplayLength'].\" OFFSET \".(int)$_GET['iDisplayStart'].\" \";\n\t\t\t}else{\n\t\t\t\t$limit .= \" LIMIT \".(int)$_GET['iDisplayLength'];\n\t\t\t}\n\t\t}\n \n\t\t// Ordering\n\t\t$text_order_by_datatable = \"\";\n\t\tif(isset($_GET['iSortCol_0']))\n\t\t{\n\t\t\tfor($i=0; $i<intval($_GET['iSortingCols']); $i++)\n\t\t\t{\n\t\t\t\t$coma = ($i<intval($_GET['iSortingCols'])-1)?\", \":\"\";\n\t\t\t\tif($_GET['bSortable_'.intval($_GET['iSortCol_'.$i])] == 'true')\n\t\t\t\t{\n\t\t\t\t\t$text_order_by_datatable.=\" \".$searchColumns[(int)$_GET['iSortCol_'.$i]].\" \".strtoupper($_GET['sSortDir_'.$i]).$coma;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$text_order_by = \"\";\n\t\tif( !empty($text_order_by_datatable) && !empty($this->order_by) )\n\t\t{\n\t\t\t$text_order_by_datatable .= \", \";\n\t\t}\n\n\t\t$text_order_by_datatable = ($this->order_by!=\"\")?$text_order_by_datatable.$this->order_by:$text_order_by_datatable;\n\t\t$text_order_by .= (!empty($text_order_by_datatable)) ? \" ORDER BY \".$text_order_by_datatable : \" \";\n\t\t/* Multi column filtering */\n\t\t$where = \"\";\n\t\t$text_where_datatable = \"\";\n\t\tfor ( $i = 0 ; $i < count($searchColumns) ; $i++ )\n\t\t{\n\t\t\tif ( ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" ) && $_GET['sSearch'] != '' )\n\t\t\t{\n\t\t\t\tif($i==0){ $type=\"\"; }else{ $type=\" OR \"; }\n\t\t\t\t$text_where_datatable .= $type.$searchColumns[$i].\" LIKE '%\".$_GET['sSearch'].\"%' \";\n\t\t\t}\n\t\t}\n\t\tif($text_where_datatable!=\"\"){\n\t\t\t$text_where_datatable =\" (\".$text_where_datatable.\") \";\n\t\t}\n\n\t\t//where\n\t\tfor ($i=0; $i < count($this->where); $i++) {\n\t\t\tif($i==0 && $text_where_datatable!=\"\"){ $type=\" AND \"; }elseif($i==0 && $where==\"\"){ $type=\"\"; }else{ $type=\" AND \"; }\n\t\t\t$operador = \" \";\n\t\t\tif( !empty($this->where[$i][1]) )\n\t\t\t{\n\t\t\t\tif(!strpos($this->where[$i][0], \"=\")){\n\t\t\t\t\t$operador = \" = \";\n\t\t\t\t}\n\t\t\t\tif(!is_numeric($this->where[$i][1]) && strlen($this->where[$i][1])==1){\n\t\t\t\t\t$this->where[$i][1] = \"'\".$this->where[$i][1].\"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t$text_where_datatable.=$type.$this->where[$i][0].$operador.$this->where[$i][1].\" \";\n\t\t}\n\t\t$where = ($text_where_datatable!=\"\")?\" WHERE \".$text_where_datatable : \"\";\n\t\t\n $like = '';\n $text_like_datatable = '';\n for ($i=0; $i < count($this->like); $i++) {\n\t\t\tif($i==0 && $text_like_datatable!=\"\"){ $type=\" AND \"; }elseif($i==0 && $like==\"\"){ $type=\"\"; }else{ $type=\" AND \"; }\n\t\t\t$operador = \" \";\n\t\t\tif(!strpos($this->like[$i][0], \"=\")){\n\t\t\t\t$operador = \" like \";\n\t\t\t}\n\t\t\tif(!is_numeric($this->like[$i][1]) && strlen($this->like[$i][1])==1){\n\t\t\t\t$this->like[$i][1] = \"'\".$this->like[$i][1].\"'\";\n\t\t\t}\n\t\t\t$text_like_datatable.=$type.$this->like[$i][0].$operador.$this->like[$i][1].\" \";\n\t\t}\n if($where!='')\n {\n $like = ($text_like_datatable!=\"\")?\" AND \".$text_like_datatable : \"\";\n }else{\n $like = ($text_like_datatable!=\"\")?\" WHERE \".$text_like_datatable : \"\";\n }\n\n //group by\n $text_group_by = ( !empty($this->group_by) ) ? \" GROUP BY \".$this->group_by.\" \" : $this->group_by;\n \n \n\t\t//join\n\t\t$join = \"\";\n\t\tfor ($i=0; $i < count($this->join); $i++) {\n\t\t\tif(!isset($this->join[$i][2])){ $type_join=\"INNER\"; }else{ $type_join=$this->join[$i][2]; }\n\t\t\t$join.=\" \".$type_join.\" JOIN \".$this->join[$i][0].\" ON \".$this->join[$i][1].\" \";\n\t\t}\n\n\n\n\t\t$sql = \"SELECT \".$this->select.\" FROM \".$sTable.$join.$where.$like.$text_group_by.$text_order_by.$limit;\n\t\t//echo $sql;die;\n\t\t$rResult = $CI->db->query($sql);\n\n\t\t// Total data set length\n\t\t$iTotal = count($rResult->result());\n\n\t\t// Data set length after filtering\n\t\t$new_query = $CI->db->query(\"SELECT COUNT(*) AS found_rows FROM \".$sTable.$join.$where.$limit);\n\t\tif(count($new_query->row())>0){\n\t\t\t$iFilteredTotal = $new_query->row()->found_rows;\n\t\t}else{\n\t\t\t$iFilteredTotal = $iTotal;\n\t\t}\n\n\t\t// Output\n\t\t$output = array(\n\t\t\t'sEcho' => intval($_GET['sEcho']),\n\t\t\t'iTotalRecords' => $iTotal,\n\t\t\t'iTotalDisplayRecords' => $iFilteredTotal,\n\t\t\t'url' => urldecode($_SERVER['REQUEST_URI']),\n\t\t\t'aaData' => array()\n\t\t);\n\t\tforeach($rResult->result_array() 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\t$key = explode(\".\", $aColumns[$i]);\n\t\t\t\t$key = (count($key)>1) ? trim($key[1]) : trim($key[0]);\n\t\t\t\t$row[] = $aRow[$key];\n\t\t\t\tif (trim($key) == trim($idColumn)) { $row['DT_RowId'] = $aRow[$key]; } // Sets DT_RowId\n\t\t\t}\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\n\t\t//url export\n\t\t$url= urldecode($_SERVER['REQUEST_URI']);\n\t\t$output['links'] = \"$url\";\n\t\treturn $_GET['callback'].'('.json_encode( $output ).');';\n\t}", "public function getData() {\n\t\t$navs = NavigationGroup::select(array('navigation_groups.id', 'navigation_groups.title', 'navigation_groups.slug'));\n\n\t\treturn Datatables::of($navs) -> add_column('actions', '<a href=\"{{{ URL::to(\\'admin/navigationgroups/\\' . $id . \\'/edit\\' ) }}}\" class=\"iframe btn btn-default btn-sm\"><i class=\"icon-edit \"></i></a>\n <a href=\"{{{ URL::to(\\'admin/navigationgroups/\\' . $id . \\'/delete\\' ) }}}\" class=\"btn btn-sm btn-danger\"><i class=\"icon-trash \"></i></a>\n \n ') -> remove_column('id') -> make();\n\t}", "public function _index(){\n\t $this->_list();\n\t}", "function all(){\r\n $data = $this -> model -> getXML();\r\n render('index',$data);\r\n }", "public function indexAction()\n {\n $this->headerCssCollection->addCss(\"//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.1/semantic.min.css\", false);\n\n $this->footerCollection->addJs(\"lib/DataTables/datatables.min.js\");\n $this->footerCollection->addJs(\"https://cdn.datatables.net/1.10.12/js/dataTables.semanticui.min.js\", false);\n $this->footerCollection->addJs(\"js/views/users/index.js\");\n\n if ($this->request->isAjax()) {\n $builder = $this->modelsManager\n ->createBuilder()\n ->columns('id, name, email, active')\n ->from('Solved\\Models\\Users');\n\n $dataTables = new DataTable();\n $dataTables->fromBuilder($builder)->sendResponse();\n }\n }", "public function index()\n {\n $daerahs = Daerah::all();\n return view('admin.pages.daerah.index')->withDaerahs($daerahs);\n }", "public function index(Request $request)\n {\n\t\t$query=null;\n\t\t$aciunta=\"\";\n\t\t\n\t\tif ($request->filled('order')) {\n\t\t\t$by=$request->order;\n\t\t\t$dir=$request->dir;\n\t\t\t\n\t\t} else {\n\t\t\t$by='id';\n\t\t\t$dir='asc';\n\t\t}\n\t\t\n \t$items = QueryModel::orderBy($by, $dir)->paginate(config('labimus.options.option_paginate'));\n\t\t\t\t\n $det=$this->det;\n $noadd=true;\n \n\t\tif (($request->has('page'))&&($request->ajax())) {\n\t\t\treturn view('query_rows',compact('items','det','aciunta','query'));\n\t\t} \n\t\telseif ($request->ajax())\n\t\t{\t\t\t\t\t\n\t\t\treturn view('layouts/table2',compact('items','det','aciunta','query','noadd'));\n\t\t}\n }", "public function index(){\n\t\t$data = array();\n\n\t\t$select_fields = '*';\n \t$is_multy_result = 2;\n\t\t$conditions = \"\";\n\t\t$data['users'] = $this->BlankModel->getTableData(USERS, $conditions, $select_fields, $is_multy_result);\t\n\t\t\t\t\n\t\tcommon_viewloader('users/index', $data);\n }", "function index() {\r\n $this->data['pagebody'] = 'justone';\r\n \r\n $source = $this->quotes->get(5);\r\n \r\n $this->data = array_merge($this->data, $source);\r\n \r\n $this->render();\r\n }", "function get_all_data_output( $con, $table, $offset ){\n\t\n\t\tif ( $table == 'events' )\n\t\t\t$res = select_all_events_output( $con, 0, $offset ); \n\t\telse if ( $table == 'checkins' )\n\t\t\t$res = select_all_checkins_output( $con, 0, $offset ); \n\t\t\n\t\treturn $res;\n\t\t/*\n\t\t$result = $res;\n\t\tfree_result($res);\n\t\treturn $result;\n\t\t*/\n\t}", "public function data()\n\t{\n\t\t$query = $this->query;\n\t\t$query['limit'] = $this->per_page;\n\t\t$query['offset'] = ($this->get_cur_page() - 1) * $this->per_page;\n\t\treturn $this->model->all($query);\n\t}", "public function index()\n {\n //\n\n\n $options = Option::get(['id', 'options_string']);\n\n return Datatables::of($options)->make(true);\n }", "public function index() {\n\n $data = array();\n\n if (!$this->input->get()) {\n $q = $this->session->userdata($this->base . \"_query_array\");\n if ($q) {\n $query_array = $q;\n } else {\n $query_array = array();\n }\n } else {\n $query_array = decode_array($this->input->get());\n $this->session->set_userdata($this->base . \"_query_array\", $query_array);\n }\n\n $data = $this->model->load_table_data($query_array);\n $partials = array();\n\n if (isset($data[\"message\"])) {\n $partials[\"message\"] = $data[\"message\"];\n }\n\n $partials[\"content\"][\"search\"] = $this->load->view(\"index/_search\", $data, true);\n $partials[\"content\"][\"pagination\"] = $this->load->view(\"index/_pagination\", $data, true);\n $partials[\"content\"][\"table\"] = $this->load->view(\"index/_table\", $data, true);\n\n if ($this->input->is_ajax_request()) {\n header(\"Cache-Control: no-store, no-cache, must-revalidate\");\n echo json_encode($partials);\n return;\n } else {\n $partials[\"content\"][\"header\"] = $this->load->view(\"index/_header\", $data, true);\n $partials[\"content\"][\"controls\"] = $this->load->view(\"index/_controls\", $data, true);\n $this->load->view(\"index\", $partials);\n }\n }", "public function actionIndex()\n {\n $main = new ActiveDataProvider([\n 'query' => Services::find()->where(['id' => 2])\n ]);\n\n $dataProvider = new ActiveDataProvider([\n 'query' => StandartOne::find(),\n ]);\n\n $dataProvider2 = new ActiveDataProvider([\n 'query' => StandartTwo::find(),\n ]);\n\n $dataProvider3 = new ActiveDataProvider([\n 'query' => StandartThree::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'data2' => $dataProvider2,\n 'data3' => $dataProvider3,\n 'main' => $main,\n ]);\n }", "public function data()\n {\n $news = News::leftJoin('company', 'news.company_id', '=', 'company.id')\n ->select([\n 'news.id',\n 'news.title',\n 'news.description',\n 'news.content',\n 'news.created_at',\n 'news.updated_at',\n 'company.name as companyname'\n ]);\n\n return $this->createCrudDataTable($news, 'admin.news.destroy', 'admin.news.edit')->make(true);\n }", "public function index()\n {\n $datas = Data::all();\n $i = 0;\n\n return view('datas.index', compact('datas', 'i'));\n }", "public function dataTables()\n {\n $data = CategoryService::dataTables(app('company')->id, \\Request::all());\n return response()->json($data);\n }", "public function index()\n\t{\n $lang = $this->data['lang'];\n $user_id = $this->user_id;\n\n $this->data['page'] = 'home' ;\n\n\n //Getting data\n $index_banners = $this->home_m->get_data('index_banners')->result_array();\n\n foreach ($index_banners as $key => $i_banner) \n {\n $content = $this->db->where('index_banner_id',$i_banner['id'])->get('index_banners_content')->num_rows();\n\n $index_banners[$key]['flag'] = ($content) ? 1 : 0 ;\n }\n\n $this->data['gallery_albums'] = array_reverse($this->home_m->get_data('gallery_albums')->result_array());\n $this->data['stories'] = array_reverse($this->home_m->get_data('stories')->result_array());\n $this->data['index_banners'] = $index_banners;\n \n\n $body = 'index' ;\n\n $this->load_pages($body,$this->data);\n\n\t}", "public function index(DendaDataTable $dendaDataTable)\n {\n// $denda = Denda::with(['santri', 'last_denda_detail'])->take(3)->get()->toArray();\n// dd($denda);\n return $dendaDataTable->render('dendas.index');\n }", "function index()\n {\n $params['limit'] = RECORDS_PER_PAGE; \n $params['offset'] = ($this->input->get('per_page')) ? $this->input->get('per_page') : 0;\n \n $config = $this->config->item('pagination');\n $config['base_url'] = site_url('detalle_venta/index?');\n $config['total_rows'] = $this->Detalle_venta_model->get_all_detalle_venta_count();\n $this->pagination->initialize($config);\n\n $data['detalle_venta'] = $this->Detalle_venta_model->get_all_detalle_venta($params);\n \n $data['_view'] = 'detalle_venta/index';\n $this->load->view('layouts/main',$data);\n }", "public function index()\n {\n //\n $tab=\"in\";\n if (isset($_GET[\"tab\"])){\n $tab=$_GET[\"tab\"];\n }\n\n switch ($tab){\n case \"all\": return $this->search_paginate(Act::where(function ($q){\n $user=$this->user();\n $q->where('sellerTin',$user->tin)\n ->orWhere('buyerTin', $user->tin);\n }));\n\n case \"out\": return $this->search_paginate(Act::where(\"sellerTin\", $this->user()->tin)\n ->whereNotIn(\"status\", [self::DOC_STATUS_SAVED])\n );\n case \"saved\": return $this->search_paginate(Act::where(\"sellerTin\", $this->user()->tin)\n ->where(\"status\", self::DOC_STATUS_SAVED)\n );\n case \"in\":\n default: return $this->search_paginate(Act::where(\"buyerTin\", $this->user()->tin)\n );\n }\n }", "public function index() {\n $this->auth->checkIfOperationIsAllowed('report_list');\n $data = getUserContext($this);\n $this->lang->load('datatable', $this->language);\n \n $reports = array();\n //List all the available reports\n $files = glob(FCPATH . '/local/reports/*.ini');\n foreach($files as $file) {\n $ini_array = parse_ini_file($file, TRUE);\n //Test if the report is available for the language being used\n if (array_key_exists($this->language_code, $ini_array)) {\n //If available, push the report into the list to be displayed with a description\n $reports[$ini_array[$this->language_code]['name']] = array(\n basename($file),\n $ini_array[$this->language_code]['description'],\n $ini_array['configuration']['path'],\n );\n }\n }\n \n $data['title'] = lang('reports_index_title');\n $data['reports'] = $reports;\n $this->load->view('templates/header', $data);\n $this->load->view('menu/index', $data);\n $this->load->view('reports/index', $data);\n $this->load->view('templates/footer'); \n }", "private function _getDatatablesQuery()\n {\n $this->query = DB::table($this->table);\n $this->query->leftJoin('categories', 'categories.id', '=', 'documents.category_id');\n $this->query->select('documents.stt', 'documents.id', 'documents.title','documents.updated_at');\n\n if (strpos(URL::current(), 'admin') < 0) {\n $this->query->where('categories.searchable', 1);\n }\n\n if (Input::get('cat'))\n $this->query->where('documents.category_id', Input::get('cat'));\n\n if (Input::get('isBuyed')) {\n $this->query->join('users_documents', 'users_documents.document_id', '=', 'documents.stt');\n $this->query->where('users_documents.user_id', Auth::user()->id);\n }\n\n if(Input::has('search.value')) {\n $this->_getSearchStringQuery();\n }\n\n // here order processing\n if (isset($_GET['order'])) {\n $this->query->orderBy(\n $this->column_order[$_GET['order']['0']['column']],\n $_GET['order']['0']['dir']\n );\n } else if (isset($this->order)) {\n $order = $this->order;\n $this->query->orderBy(key($order), $order[key($order)]);\n }\n }", "public function pageAction(){\n $this->_request->setParam('table', 'Page'); \n \t$this->view->gridIndexRoute = Rhema_Constant::ROUTE_GRID_INDEX ; \t \n \t$this->_helper->displayGrid(); \t \n }", "public function admin_index() {\r\n\t\t$this->data = $this->{$this->modelClass}->find('all');\r\n }", "public function get_main_table()\n {\n $list = $this->M_mst_location->get_datatables();\n // echo \"<pre>\"; print_r($list); die;\n $data = array();\n $no = $_POST['start'];\n foreach ($list as $field) {\n $no++;\n\n $row = array();\n $row[] = $field->province;\n $row[] = $field->city;\n $row[] = $field->distrinct;\n $row[] = $field->subdistrict;\n $row[] = $field->postalcode;\n\n\n $data[] = $row;\n }\n\n $output = array(\n \"draw\" => $_POST['draw'],\n \"recordsTotal\" => $this->M_mst_location->count_all(),\n \"recordsFiltered\" => $this->M_mst_location->count_filtered(),\n \"data\" => $data\n );\n //output dalam format JSON\n echo json_encode($output);\n }", "public function respondResultForWeb($data)\n {\n \t$result = response()->json($data);\n \t$data = json_decode($result->getContent(), true);\n \t$datatable = array_merge(['pagination' => [], 'sort' => [], 'query' => []], $_REQUEST);\n\n\t\t// search filter by keywords\n\t\t$filter = isset($datatable['query']['generalSearch']) && is_string($datatable['query']['generalSearch'])\n\t\t ? $datatable['query']['generalSearch'] : '';\n\n\t\tif ( ! empty($filter)) {\n\t\t $data = array_filter($data, function ($a) use ($filter) {\n\t\t return (boolean)preg_grep(\"/$filter/i\", (array)$a);\n\t\t });\n\t\t unset($datatable['query']['generalSearch']);\n\t\t}\n\n\t\t// filter by field query\n\t\t$query = isset($datatable['query']) && is_array($datatable['query']) ? $datatable['query'] : null;\n\n\t\tif (is_array($query)) {\n\t\t $query = array_filter($query);\n\t\t foreach ($query as $key => $val) {\n\t\t $data = $this->list_filter($data, [$key => $val]);\n\t\t }\n\t\t}\n\n\t\t$sort = ! empty($datatable['sort']['sort']) ? $datatable['sort']['sort'] : 'asc';\n\t\t$field = ! empty($datatable['sort']['field']) ? $datatable['sort']['field'] : 'id';\n\n\t\t$meta = [];\n\t\t$page = ! empty($datatable['pagination']['page']) ? (int)$datatable['pagination']['page'] : 1;\n\t\t$perpage = ! empty($datatable['pagination']['perpage']) ? (int)$datatable['pagination']['perpage'] : -1;\n\n\t\t$pages = 1;\n\t\t$total = count($data); // total items in array\n\n\t\t// sort\n\t\tusort($data, function ($a, $b) use ($sort, $field) {\n\n\t\t if ( ! isset($a->$field) || ! isset($b->$field)) {\n\t\t return false;\n\t\t }\n\n\t\t if ($sort === 'asc') {\n\t\t return $a->$field > $b->$field ? true : false;\n\t\t }\n\n\t\t return $a->$field < $b->$field ? true : false;\n\t\t});\n\n\t\t// $perpage 0; get all data\n\t\tif ($perpage > 0) {\n\t\t $pages = ceil($total / $perpage); // calculate total pages\n\t\t $page = max($page, 1); // get 1 page when $_REQUEST['page'] <= 0\n\t\t $page = min($page, $pages); // get last page when $_REQUEST['page'] > $totalPages\n\t\t $offset = ($page - 1) * $perpage;\n\n\t\t if ($offset < 0) {\n\t\t $offset = 0;\n\t\t }\n\n\t\t $data = array_slice($data, $offset, $perpage, true);\n\t\t}\n\n\t\t$meta = [\n\t\t 'page' => $page,\n\t\t 'pages' => $pages,\n\t\t 'perpage' => $perpage,\n\t\t 'total' => $total,\n\t\t];\n\n\n\t\t// if selected all records enabled, provide all the ids\n\t\tif (isset($datatable['requestIds']) && filter_var($datatable['requestIds'], FILTER_VALIDATE_BOOLEAN)) {\n\t\t $meta['rowIds'] = array_map(function ($row) {\n\t\t return $row->userid;\n\t\t }, $alldata);\n\t\t}\n\n\n\t\t$result = [\n\t\t 'meta' => $meta + [\n\t\t 'sort' => $sort,\n\t\t 'field' => $field,\n\t\t ],\n\t\t 'data' => $data,\n\t\t];\n\n\t\t$headers = [\n\t\t\t'Content-Type' => 'application/json',\n\t\t\t'Access-Control-Allow-Origin' => '*',\n\t\t\t'Access-Control-Allow-Methods' => 'GET, PUT, POST, DELETE, OPTIONS',\n\t\t\t'Access-Control-Allow-Headers' => 'Content-Type, Content-Range, Content-Disposition, Content-Description'\n\t\t];\n\n\t\treturn response()->json($result, $this->getStatusCode(), $headers);\n }", "public function index()\n {\n $result = User::leftJoin('positions', 'employees.positionId', '=', 'positions.id')\n ->leftJoin('departments', 'employees.iDeptId', '=', 'departments.id')\n ->leftJoin('regions', 'employees.iRegion', '=', 'regions.id')\n ->select('employees.*','positions.positionName', 'departments.deptName','regions.regionName','employees.isDeactivated')\n ->getQuery() // Optional: downgrade to non-eloquent builder so we don't build invalid User objects.\n ->get();\n \n return Datatables::of($result)->make(true);\n }", "public function index(Request $request) {\n\n\n// if ($request->ajax()) {\n// $data = master_students::latest()->get();\n// return Datatables::of($data)\n// ->make(true);\n// }\n//\n//\n return view('layout');\n }", "public function index()\n {\n /*\n $title = \"All\";\n $type = 1;\n $properties = array('title' => $title, 'type' => $type);\n return view('admin.signups.datatable')->with($properties);\n */\n return view('admin.signups.all-datatable');\n }", "public function getData()\n {\n if (Sentry::check()) {\n $branch_id = Sentry::getUser()->branch_id;\n if (Sentry::getUser()->isSuperUser()) {\n $associates = Associate::Select(\n array('associates.id', 'associates.name', 'associates.associate_no',\n 'associates.paid', 'associates.start_date')\n ) ->where('associates.name', '!=', 'COMPANY');\n }\n else {\n $associates = Associate::Select(\n array('associates.id', 'associates.name', 'associates.associate_no',\n 'associates.paid', 'associates.start_date')\n ) ->where('associates.branch_id', $branch_id);\n }\n\n if (Sentry::getUser()->hasAccess('associate-edit')) {\n return Datatables::of($associates)\n ->add_column(\n 'actions',\n '\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id ) }}}\"\n class=\"iframe btn btn-xs btn-info\">Details</a>\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/tree\\') }}}\"\n class=\"iframe btn btn-xs btn-primary\">Tree</a>\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/edit\\') }}}\"\n class=\"iframe btn btn-xs btn-danger\">Edit</a>\n '\n )\n ->add_column(\n 'receipts',\n '\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/receipt\\') }}}\"\n class=\"iframe btn btn-xs btn-default\">Receipt</a>\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/welcome\\') }}}\"\n class=\"iframe btn btn-xs btn-default\">Welcome</a>\n '\n )\n ->remove_column('id')\n ->make();\n\n }\n else {\n return Datatables::of($associates)\n ->add_column(\n 'actions',\n '\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id ) }}}\"\n class=\"iframe btn btn-xs btn-info\">{{{ Lang::get(\\'button.details\\') }}}</a>\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/tree\\') }}}\"\n class=\"iframe btn btn-xs btn-primary\">Tree</a>\n '\n )\n ->add_column(\n 'receipts',\n '\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/receipt\\') }}}\"\n class=\"iframe btn btn-xs btn-default\">Receipt</a>\n <a href=\"{{{ URL::to(\\'admin/associates/\\'. $id . \\'/welcome\\') }}}\"\n class=\"iframe btn btn-xs btn-default\">Welcome</a>\n '\n )\n ->remove_column('id')\n ->make();\n }\n }\n else {\n return Redirect::route('login')->with('error', \" You are not logged in \");\n }\n }", "public function getDataTablesContent($config)\n {\n $this->request->allowMethod('ajax');\n $configName = $config;\n $config = $this->DataTables->getDataTableConfig($configName);\n $params = $this->request->query;\n $this->viewBuilder()->className('DataTables.DataTables');\n\n $this->viewBuilder()->template( Inflector::underscore($configName));\n\n $where = [];\n if (!empty($params['search']['value']))\n {\n foreach ($config['columns'] as $colums)\n {\n if($colums['searchable'] == true)\n {\n $where['OR'][$colums['name'] . ' like'] = \"%{$params['search']['value']}%\";\n }\n }\n }\n \n $order = [];\n if (!empty($params['order']))\n {\n foreach ($params['order'] as $item)\n {\n $order[$config['columnsIndex'][$item['column']]] = $item['dir'];\n }\n }\n\n foreach ($config['columns'] as $key => $item)\n {\n if ($item['database'] == true)\n {\n $select[] = $key;\n }\n }\n\n if (!empty($config['databaseColumns']))\n {\n foreach ($config['databaseColumns'] as $key => $item)\n {\n $select[] = $item;\n }\n }\n\n $results = $this->{$config['table']}->find('all', $config['queryOptions'])\n ->select($select)\n ->where($where)\n ->limit($params['length'])\n ->offset($params['start'])\n ->order($order);\n\n \n $resultInfo = [\n 'draw' => (int) $params['draw'],\n 'recordsTotal' => (int) $this->{$config['table']}->find('all', $config['queryOptions'])->count(),\n 'recordsFiltered' => (int) $results->count()\n ];\n\n $this->set([\n 'results' => $results,\n 'resultInfo' => $resultInfo,\n ]);\n }", "public function getIndex()\n {\n return view('datatables.index');\n }", "public function indexDataCust(){\n // $customer = DB::table('customer')->paginate(10);\n $customer = customer::paginate(10);\n $ec_subdistricts = ec_subdistricts::all();\n $ec_districts = ec_districts::all();\n $ec_cities = ec_cities::all();\n $ec_provinces = ec_provinces::all();\n //mengirim data ke view table\n return view('dataCustomer',\n compact('customer'),\n compact('ec_subdistricts'),\n compact('ec_districts'),\n compact('ec_cities'),\n compact('ec_provinces'));\n }", "public function index() {\r\n $data['ptitle'] = \"Export Data\";\r\n $data['navs'] = $this->dataset_db->buildNav(0);\r\n $tabs = $this->session->userdata('tabs');\r\n if (!$tabs)\r\n $tabs = array();\r\n\t\t\r\n\t\t$data['op_yearperiode'] = $this->dataset_db->getPeriodeYear();\r\n $tabs['mod_exportdata'] = $this->dataset_db->getModule('mod_exportdata');\r\n $this->session->set_userdata('tabs', $tabs);\r\n $data['current_tab'] = $tabs['mod_exportdata']['link'];\r\n $data['content'] = $this->load->view('exportdata_list', $data, true);\r\n $this->load->vars($data);\r\n $this->load->view('default_view');\r\n }", "public function getExtraPageData();", "public function getForDataTable()\n {\n\n $q = $this->query();\n if (request('module') == 'task') {\n $q->where('section', '=', 2);\n } else {\n $q->where('section', '=', 1);\n }\n return\n $q->get();\n }" ]
[ "0.70843565", "0.6711434", "0.6556081", "0.64974564", "0.6443244", "0.64080125", "0.637919", "0.63778543", "0.6363232", "0.6333221", "0.63237524", "0.62912554", "0.62792873", "0.6264033", "0.626279", "0.625564", "0.6236573", "0.61992466", "0.61889434", "0.61334676", "0.61303586", "0.6119792", "0.61058414", "0.6085231", "0.60773164", "0.6072268", "0.60654145", "0.6061483", "0.6027995", "0.6026356", "0.6025066", "0.602319", "0.6013262", "0.5996422", "0.59895164", "0.5988853", "0.59707695", "0.5959413", "0.59388506", "0.59347475", "0.59308493", "0.59246707", "0.5920739", "0.59185886", "0.59135264", "0.5912164", "0.5899274", "0.5893069", "0.5891291", "0.5889807", "0.58880216", "0.586897", "0.586667", "0.58626866", "0.5861981", "0.58600086", "0.585814", "0.58579546", "0.585675", "0.5850376", "0.5846743", "0.5846385", "0.5830475", "0.5817405", "0.581032", "0.58094376", "0.57973546", "0.57895875", "0.5784207", "0.5782262", "0.5779437", "0.5778172", "0.5774193", "0.57728106", "0.57724756", "0.5770339", "0.5767398", "0.57668674", "0.5765505", "0.5761445", "0.5760881", "0.5759087", "0.5753486", "0.5753334", "0.57446015", "0.57442933", "0.57428485", "0.5740414", "0.5737975", "0.57254046", "0.5725064", "0.57204527", "0.57202303", "0.57196033", "0.571718", "0.57160354", "0.5715335", "0.57133096", "0.5702723", "0.5701679", "0.5699847" ]
0.0
-1
INPUT : $students Array OUTPUT : Return an Array of student names (String)
function getStudentNames($students) { $arr = []; // Part A // YOUR CODE GOES HERE foreach ($students as $student_arr) { if (isset($student_arr["name"])) array_push($arr, $student_arr["name"]); } return $arr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_group_student_names( $group_id ) {\n\t$uc_students = get_post_meta( $group_id, 'students', true );\n\n\t$i = 0;\n\t$student_names = '';\n\twhile ( $i < count($uc_students) ) {\n\t\t$student_names .= get_student_name( $uc_students[$i] );\n\t\t$i++;\n\t\tif ( $i < count($uc_students) )\n\t\t\t$student_names .= ', ';\n\t}\n\treturn $student_names;\n}", "public function getStudents(): array\n {\n \n return $this->students;\n }", "public static function getStudents() {\n\t\t$idm = PSU::get('idmobject');\n\n\t\t$search = array(\n\t\t\tarray('pa.attribute' => 'els_student'),\n\t\t\tarray('pa.type_id' => '2')\n\t\t);\n\n\t\t$return = 'i.pid,i.psu_id,i.username,i.first_name,i.last_name,l.start_date,l.end_date';\n\n\t\t$students = $idm->getUsersByAttribute( $search, 'AND', $return );\n\n\t\tarray_walk( $students, array('ELS', 'dates2timestamp') );\n\t\tarray_walk( $students, array('ELS', 'load_psuperson') );\n\t\t\n\t\tusort( $students, array('ELS', 'student_sort') );\n\n\t\treturn $students;\n\t}", "protected /*array<string,mixed>*/ function getStudentName(/*int*/ $studentid)\n\t{\n\t\t$student = $this->getStudent($studentid);\n\t\treturn $student['last_name'].', '.$student['first_name'].' ('.$student['netid'].') (Table '.$student['table'].')';\n\t}", "public function getStudyNameAttribute() : array\n {\n return array_map(fn (Study $study) : string => $study->study(), $this->studies);\n }", "public function get_students_list(){\n return $this->n->get_list_from_db();\n }", "public function students() {\n return $this->_students;\n }", "public function get_student_name($user_id) {\n return Arr::get($this->_students, $user_id);\n }", "public static function getStudents($vueFormat = true)\n {\n $entities = [];\n $entities = Student::active()->select(['first_name', 'last_name', 'id'])->get();\n if (!$vueFormat) {\n $_entities = [];\n foreach ($entities as $key => $value) {\n $_entities[$value->id] = $value->full_name;\n }\n\n return $_entities;\n }\n\n return self::vueDropdown($entities, 'id', 'full_name');\n }", "public static function getNames() {\n $contactArray = X2Model::model('Contacts')->findAll();\n $names = array(0 => 'None');\n foreach ($contactArray as $user) {\n $first = $user->firstName;\n $last = $user->lastName;\n $name = $first . ' ' . $last;\n $names[$user->id] = $name;\n }\n return $names;\n }", "public function getStudentName()\n {\n return $this->workStudent->first_name . \" \" . $this->workStudent->last_name;\n }", "function getStudents() {\n $students = array();\n\n // Add first student into the students array.\n $first = new Student();\n $first->surname = \"Doe\";\n $first->first_name = \"John\";\n $first->add_email('home','[email protected]');\n $first->add_email('work','[email protected]');\n $first->add_grade(65);\n $first->add_grade(75);\n $first->add_grade(55);\n $students['j123'] = $first; \n\n // Add seconde student into the students array.\n $second = new Student();\n $second->surname = \"Einstein\";\n $second->first_name = \"Albert\";\n $second->add_email('home','[email protected]');\n $second->add_email('work1','[email protected]');\n $second->add_email('work2','[email protected]');\n $second->add_grade(95);\n $second->add_grade(80);\n $second->add_grade(50);\n $students['a456'] = $second;\n\n\n // Add my info into the students array.\n $me = new Student();\n $me->surname = \"Tan\";\n $me->first_name = \"Hai Hua\";\n $me->add_email('school', '[email protected]');\n $me->add_grade(90);\n $students['b721'] = $me;\n\n\n // Add random generated students to the array\n $num = mt_rand(1, 10);\n for ($i = 0; $i < $num; ++$i) {\n $student = new Student();\n $student->surname = Helper::rand_name(10);\n $student->first_name = Helper::rand_name(10);\n $student->add_email('school', $student->first_name . '@.my.bcit.ca');\n $student->add_grade(mt_rand(0,100));\n $student->add_grade(mt_rand(0,100));\n $student->add_grade(mt_rand(0,100));\n $students['k' . mt_rand(100,999)] = $student;\n }\n\n return $students;\n }", "function studentNameSearch($sessionID, $name){\r\n\t\t$name = str_replace(' ', '%', $name);\r\n\t\t$results = array();\r\n\t\tfor($i=0; $i<sizeof($name); $i++){\r\n\t\t\t$query = \"SELECT ID, CONCAT(FIRST_NAME, ' ', MIDDLE_NAME, ' ', LAST_NAME) AS FullName FROM X_PNSY_STUDENT WHERE\r\n\t\t\t\t\tCONCAT(FIRST_NAME, ' ', MIDDLE_NAME, ' ', LAST_NAME) LIKE '%$name%'\";\r\n\t\t\t\t$result = mysql_query($query);\r\n\t\t\t\t//Cycles through the rows of $result and puts them into $results in the proper format.\r\n\t\t\t\tfor($j=0; $thisResult = mysql_fetch_assoc($result); $j++){\r\n\t\t\t\t\tif(!array_key_exists($thisResult['ID'], $results)){\r\n\t\t\t\t\t\t$results[$thisResult['ID']] = $thisResult['FullName'];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn $results;\r\n\t}", "public function studentList($array=null){\n\t\tglobal $conn;\n\n\t\tif ( isset($array[\"order\"]) && $array[\"order\"] !== \"\" && $array !== null ) {\n\t\t\t$order = $array[\"order\"];\n\t\t}else{\n\t\t\t$order = \"asc\";\n\t\t}\n\n\t\tif ( isset($array[\"sort\"]) && $array[\"sort\"] !== \"\" && $array !== null ) {\n\t\t\t$sort = $array[\"sort\"];\n\t\t}else{\n\t\t\t$sort = \"id_student\";\n\t\t}\n\n\t\t$sql = \"select * from student order by \".$sort.\" \".$order.\" ;\";\n\n\t\t$result = $conn->query($sql);\n\t\t$myData = [];\n\t\tif ($result->num_rows > 0) {\n\t\t // output data of each row\n\t\t while($row = $result->fetch_assoc()) {\n\t\t $myData[] = $row;\n\t\t }\n\t\t}\n\t\treturn $myData;\n\t}", "public function getAllStudent(){\n\n\t\treturn array(\n\t\t\t\"1\"=> new Entity_Student(1,\"pham van thao\",23,\"tlu\"),\n\t\t\t\"2\"=> new Entity_Student(2,\"pham van phen\",24,\"tlu\"),\n\t\t\t\"3\"=> new Entity_Student(3,\"pham van to\",25\"tlu\"),\n\t\t\t\"4\"=> new Entity_Student(4,\"pham van\",26,\"tlu\"),\n\n\t\t);\n\t}", "function get_smsstudents($inputarray = array()) {\n $college_id = isset($inputarray['college_id']) ? $inputarray['college_id'] : '';\n $course_id = isset($inputarray['course_id']) ? $inputarray['course_id'] : '';\n $branch_id = isset($inputarray['branch_id']) ? $inputarray['branch_id'] : '';\n $semister_id = isset($inputarray['semister_id']) ? $inputarray['semister_id'] : '';\n $section_id = isset($inputarray['section_id']) ? $inputarray['section_id'] : '';\n $religion = isset($inputarray['religion']) ? strtolower($inputarray['religion']) : '';\n\n $sql = \" select sr.*, users.users_type_id, users.username, users.`password` , users.email, users.id as users_id ,users.status\n\t\t\t from users\n\t\t\t inner join student_records as sr on sr.user_id=users.id\n\t\t\t inner join student_semisters as ss on ss.user_id=sr.user_id\n\t\t\t where users.users_type_id='1' and users.status='1' and ss.is_current='1' and sr.college_id = '\" . $college_id . \"' \n\t\t\t and sr.course_id = '\" . $course_id . \"' and sr.branch_id = '\" . $branch_id . \"' and ss.semister_id = '\" . $semister_id . \"'\n\t\t\t and sr.section_id='\" . $section_id . \"' \";\n if (!empty($religion)) {\n $sql .= \" and sr.religion='\" . $religion . \"' \";\n }\n\n $sql .= \" ORDER BY username \";\n\n $res = $this->db->query($sql);\n return $res->result();\n }", "public function searchStudent($name){\n // foreach ($this->students as $student) {\n // ($student == $name) ? $result = $name.\" is in the list\":$result = $name.\" Not Found\";\n // }\n\n // check is name foun will retrun found message\n $array = $name.\" Not Found\";\n if(in_array($name, $this-> students)){\n $array = $name.\" is in the list\";\n }\n return $array;\n }", "public function authors_name() {\n $authors = $this -> author;\n $res = [];\n\n foreach($authors as $author) {\n array_push($res, $author->name . ' ' . $author -> surname);\n }\n\n return $res;\n }", "public function get_students_list_select(){\n\t\t$this->verify();\n\t\t$students=$this->admin_model->getStudentlistSELECT2($_GET['search']);\n\t\tforeach ($students as $key => $value) {\n\t\t\t$data[] = array('id' => $value['ADMISSION_NUMBER'], 'text' => $value['NAME']);\t\t\t \t\n \t\t}\n\t\techo json_encode($data);\n\t}", "public function getStudyNameList() {\n return $this->_get(9);\n }", "function getUsersFormatted(){\r\n $data=new \\Cars\\Data\\Common($this->app);\r\n $output = array();\r\n $char = 'A';\r\n while($char >= 'A' && $char <= 'Z' && strlen($char) == 1){\r\n $output[$char] = $data->getUsersByLastNameInit($char);\r\n $char++;\r\n }\r\n\r\n\r\n return $output;\r\n }", "public static function exam_wise_students($exams) {\n $arr = array();\n foreach ($exams as $exam) {\n $users = $exam->course->users->find_all()->as_array('id');\n $arr[$exam->id] = array_keys($users);\n }\n return $arr;\n }", "function get_smsstudents_by_ids($inputarray = array()) {\n $sql = \"select * from student_records where id in(\" . implode(',', $inputarray) . \")\";\n //log_message('error', 'get_smsstudents_by_ids '.$sql);\t\t\n $res = $this->db->query($sql);\n return $res->result();\n }", "public function getNames();", "function get_student_name($class_id)\n\t\t{\n\t\t\t$get_student_list = $this->db->get_where('student' , array('class_id' => $class_id))->result_array();\n\t\t\techo '<option value=\"\">Select student</option>';\n\t\t\tforeach ($get_student_list as $row_value)\n\t\t\t{\n\t\t\t\techo '<option value=\"' . $row_value['name'].' '.$row_value['father_name'].'\">' . $row_value['name'] . '</option>';\n\t\t\t}\n\t\t}", "function fnArrayStudent(){\n $ds = [\n \"S01\"=>\"Nguyen Ngoc Thach\",\n \"S02\"=>\"Quach Gia Lam\",\n \"S03\"=>\"Nguyen Toan Thang\",\n \"S04\"=>\"Dao Cong Duong\",\n \"S05\"=>\"Bui Quoc Tuan\"\n ];\n\n echo \"<h3>Danh sach sinh vien</h3>\";\n echo \"<table class='table table-hover table-stripped'>\";\n echo \"<thead><tr><th>ID</th><th>Student name</th></tr></thead>\";\n echo \"<tbody>\";\n foreach($ds as $ms=>$tenSV){\n echo \"<tr>\";\n echo \"<td>$ms</td><td>$tenSV</td>\";\n echo \"</tr>\";\n }\n echo \"</tbody>\";\n echo \"</table>\";\n }", "public static function getAllNames() {\n\t\t$contactArray = X2Model::model('Contacts')->findAll($condition='visibility=1');\n\t\t$names=array(0=>'None');\n\t\tforeach($contactArray as $user){\n\t\t\t$first = $user->firstName;\n\t\t\t$last = $user->lastName;\n\t\t\t$name = $first . ' ' . $last;\n\t\t\t$names[$user->id]=$name;\n\t\t}\n\t\treturn $names;\n\t}", "function languagelesson_get_students($courseid)\n{\n\tglobal $DB;\n\t\n\t// Pull the context value for input courseid.\n\t$context = context_course::instance($courseid);\n $allusers = get_enrolled_users($context, 'mod/languagelesson:submit', 0, 'u.id, u.firstname, u.lastname, u.email, u.picture');\n \n $getteachers = get_enrolled_users($context, 'mod/languagelesson:manage', 0, 'u.id');\n $getgraders = get_enrolled_users($context, 'mod/languagelesson:grade', 0, 'u.id');\n \n \n $teachers = array();\n \n foreach ($getteachers as $thisteacher) {\n $teachers[] = $thisteacher->id;\n }\n foreach ($getgraders as $thisgrader) {\n $teachers[] = $thisgrader->id;\n }\n sort($teachers);\n \n // Remove all of the teachers those with manage or grade capabilities from the list.\n foreach ($allusers as $oneuser) {\n foreach ($teachers as $teacherid) {\n if ($oneuser->id == $teacherid) {\n unset($allusers[$oneuser->id]);\n }\n }\n } \n\treturn $allusers;\n}", "function getUsernames(){\n $arr = array();\n for($x=0;$x<count($this->names);$x++){\n array_push($arr,$this->names[$x]);\n }\n return $arr;\n }", "public function getStudents($univid) { //$univid is formal Argument\r\n\t\t//2. Build The Query\r\n\t\t\r\n $this->db->select('student_name,stu_enroll_no')->from('students');\r\n \r\n $this->db->where('university_id', $univid);\r\n \r\n\t\t//3. Execute the query\r\n $query = $this->db->get();\r\n\t\t\r\n\t\t//4. Return the result\r\n return $query->result_array(); \r\n }", "function getStudentsContacts( $StudentID ){\r\n\t\t$query = \"select contacts.* from contacts, `contacts-students`\r\n\t\t\t \twhere contacts.id = `contacts-students`.contactid\r\n\t\t\t\tand `contacts-students`.studentid = '$StudentID'\r\n order by contacts.`DateCreated` DESC\";\r\n\t\t$result = mysql_query($query);\r\n\t\t$IDs = array();\r\n\t\tfor($i=0; $results = mysql_fetch_array($result); $i++){\r\n\t\t\t$IDs[$i]=$results['ID'];\r\n\t\t}\r\n\t\treturn $IDs;\r\n\t}", "public function names(): array;", "public function names(): array;", "public static function getAllNames() {\n $contactArray = X2Model::model('Contacts')->findAll($condition = 'visibility=1');\n $names = array(0 => 'None');\n foreach ($contactArray as $user) {\n $first = $user->firstName;\n $last = $user->lastName;\n $name = $first . ' ' . $last;\n $names[$user->id] = $name;\n }\n return $names;\n }", "public function run()\n {\n {\n $students = [\n [\n \"surname\" => \"Dare\",\n \"firstname\" => \"Koby\",\n \"nationality\" => \"UK\",\n \"email\" => \"[email protected]\",\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Dicki\",\n \"firstname\" => \"Kelli\",\n \"nationality\" => \"UK\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Carter\",\n \"firstname\" => \"Golden\",\n \"nationality\" => \"UK\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Koch\",\n \"firstname\" => \"Emory\",\n \"nationality\" => \"UK\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kilback\",\n \"firstname\" => \"Marjorie\",\n \"nationality\" => \"Dominican Republic\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Hoeger\",\n \"firstname\" => \"Ernest\",\n \"nationality\" => \"Panama\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Hudson\",\n \"firstname\" => \"Rebecca\",\n \"nationality\" => \"Chile\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Hirthe\",\n \"firstname\" => \"Josefina\",\n \"nationality\" => \"Kyrgyzstan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Ebert\",\n \"firstname\" => \"Wanda\",\n \"nationality\" => \"Palau\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Denesik\",\n \"firstname\" => \"Burnice\",\n \"nationality\" => \"Kuwait\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Moen\",\n \"firstname\" => \"Harold\",\n \"nationality\" => \"Vatican City\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Spencer\",\n \"firstname\" => \"Brennon\",\n \"nationality\" => \"Cambodia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Ziemann\",\n \"firstname\" => \"Stanley\",\n \"nationality\" => \"Azerbaijan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Rempel\",\n \"firstname\" => \"Forest\",\n \"nationality\" => \"Seychelles\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Zboncak\",\n \"firstname\" => \"Gregory\",\n \"nationality\" => \"Kazakhstan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Weimann\",\n \"firstname\" => \"Valentine\",\n \"nationality\" => \"Turks and Caicos Islands\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Waelchi\",\n \"firstname\" => \"Alexandria\",\n \"nationality\" => \"People's Democratic Republic of Yemen\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Altenwerth\",\n \"firstname\" => \"Florian\",\n \"nationality\" => \"Wake Island\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Zieme\",\n \"firstname\" => \"Faye\",\n \"nationality\" => \"Guatemala\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Beatty\",\n \"firstname\" => \"Raleigh\",\n \"nationality\" => \"British Antarctic Territory\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kuhic\",\n \"firstname\" => \"Dolly\",\n \"nationality\" => \"Paraguay\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Koepp\",\n \"firstname\" => \"Mikel\",\n \"nationality\" => \"Liberia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Pfannerstill\",\n \"firstname\" => \"May\",\n \"nationality\" => \"Puerto Rico\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Douglas\",\n \"firstname\" => \"Otho\",\n \"nationality\" => \"Denmark\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Conroy\",\n \"firstname\" => \"Napoleon\",\n \"nationality\" => \"Afghanistan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Doyle\",\n \"firstname\" => \"Elza\",\n \"nationality\" => \"Liechtenstein\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Schulist\",\n \"firstname\" => \"Maci\",\n \"nationality\" => \"United States\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Hansen\",\n \"firstname\" => \"Kyler\",\n \"nationality\" => \"Canada\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Conn\",\n \"firstname\" => \"Jean\",\n \"nationality\" => \"Kiribati\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Yost\",\n \"firstname\" => \"Reilly\",\n \"nationality\" => \"South Africa\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Quigley\",\n \"firstname\" => \"Shad\",\n \"nationality\" => \"Bhutan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Quitzon\",\n \"firstname\" => \"Beatrice\",\n \"nationality\" => \"Timor-Leste\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Langworth\",\n \"firstname\" => \"Lonny\",\n \"nationality\" => \"New Zealand\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kiehn\",\n \"firstname\" => \"Rosalinda\",\n \"nationality\" => \"Dominican Republic\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Parker\",\n \"firstname\" => \"Rebekah\",\n \"nationality\" => \"Kyrgyzstan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kuhlman\",\n \"firstname\" => \"Rhoda\",\n \"nationality\" => \"Gibraltar\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Cruickshank\",\n \"firstname\" => \"Judd\",\n \"nationality\" => \"Macau SAR China\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Yundt\",\n \"firstname\" => \"Sarah\",\n \"nationality\" => \"Papua New Guinea\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Pacocha\",\n \"firstname\" => \"Russ\",\n \"nationality\" => \"Greenland\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Purdy\",\n \"firstname\" => \"Kali\",\n \"nationality\" => \"Mauritania\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Block\",\n \"firstname\" => \"Janick\",\n \"nationality\" => \"Belarus\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Waelchi\",\n \"firstname\" => \"Ford\",\n \"nationality\" => \"Paraguay\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Batz\",\n \"firstname\" => \"Francesca\",\n \"nationality\" => \"Netherlands Antilles\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Rogahn\",\n \"firstname\" => \"Lukas\",\n \"nationality\" => \"Cape Verde\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Funk\",\n \"firstname\" => \"Wilhelmine\",\n \"nationality\" => \"Zimbabwe\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Nader\",\n \"firstname\" => \"Jude\",\n \"nationality\" => \"Panama Canal Zone\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Stroman\",\n \"firstname\" => \"Frankie\",\n \"nationality\" => \"Saint Martin\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Jaskolski\",\n \"firstname\" => \"Mina\",\n \"nationality\" => \"Bermuda\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Zieme\",\n \"firstname\" => \"Mack\",\n \"nationality\" => \"Uzbekistan\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Tromp\",\n \"firstname\" => \"Celestine\",\n \"nationality\" => \"Peru\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Nitzsche\",\n \"firstname\" => \"Zella\",\n \"nationality\" => \"New Zealand\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kuphal\",\n \"firstname\" => \"Ila\",\n \"nationality\" => \"Maldives\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Cruickshank\",\n \"firstname\" => \"Eda\",\n \"nationality\" => \"Jamaica\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Koepp\",\n \"firstname\" => \"Jaylen\",\n \"nationality\" => \"Monaco\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kohler\",\n \"firstname\" => \"Kristina\",\n \"nationality\" => \"Russia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Ondricka\",\n \"firstname\" => \"Sean\",\n \"nationality\" => \"Turks and Caicos Islands\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Leuschke\",\n \"firstname\" => \"Estelle\",\n \"nationality\" => \"Niue\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Funk\",\n \"firstname\" => \"Roselyn\",\n \"nationality\" => \"Djibouti\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Romaguera\",\n \"firstname\" => \"Kariane\",\n \"nationality\" => \"Djibouti\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Nitzsche\",\n \"firstname\" => \"Adrian\",\n \"nationality\" => \"Guernsey\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Windler\",\n \"firstname\" => \"Maggie\",\n \"nationality\" => \"Guernsey\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Blanda\",\n \"firstname\" => \"Ken\",\n \"nationality\" => \"French Southern Territories\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Reilly\",\n \"firstname\" => \"Antone\",\n \"nationality\" => \"Yemen\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Cassin\",\n \"firstname\" => \"Yadira\",\n \"nationality\" => \"Mayotte\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Macejkovic\",\n \"firstname\" => \"Marge\",\n \"nationality\" => \"Slovakia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Feest\",\n \"firstname\" => \"Rogers\",\n \"nationality\" => \"Monaco\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Fadel\",\n \"firstname\" => \"Candelario\",\n \"nationality\" => \"Belarus\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Shields\",\n \"firstname\" => \"Eldridge\",\n \"nationality\" => \"Neutral Zone\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Romaguera\",\n \"firstname\" => \"Lavina\",\n \"nationality\" => \"Canton and Enderbury Islands\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Hessel\",\n \"firstname\" => \"Matt\",\n \"nationality\" => \"Czech Republic\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Donnelly\",\n \"firstname\" => \"Barrett\",\n \"nationality\" => \"South Korea\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Hagenes\",\n \"firstname\" => \"Betty\",\n \"nationality\" => \"Samoa\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Schmeler\",\n \"firstname\" => \"Alphonso\",\n \"nationality\" => \"Palau\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Shields\",\n \"firstname\" => \"Selmer\",\n \"nationality\" => \"Samoa\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kemmer\",\n \"firstname\" => \"Earl\",\n \"nationality\" => \"Niger\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kunde\",\n \"firstname\" => \"Sharon\",\n \"nationality\" => \"French Guiana\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Jacobs\",\n \"firstname\" => \"Jeffry\",\n \"nationality\" => \"Albania\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Ritchie\",\n \"firstname\" => \"Eliane\",\n \"nationality\" => \"Chad\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Erdman\",\n \"firstname\" => \"Howard\",\n \"nationality\" => \"Puerto Rico\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Schimmel\",\n \"firstname\" => \"Lance\",\n \"nationality\" => \"Serbia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Tillman\",\n \"firstname\" => \"Elliott\",\n \"nationality\" => \"Botswana\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Boyle\",\n \"firstname\" => \"Emanuel\",\n \"nationality\" => \"Tokelau\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Feest\",\n \"firstname\" => \"Norma\",\n \"nationality\" => \"Georgia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"O'Conner\",\n \"firstname\" => \"Jenifer\",\n \"nationality\" => \"Nepal\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Towne\",\n \"firstname\" => \"Lilliana\",\n \"nationality\" => \"New Caledonia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Padberg\",\n \"firstname\" => \"Verner\",\n \"nationality\" => \"Seychelles\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Stiedemann\",\n \"firstname\" => \"Adelia\",\n \"nationality\" => \"Greece\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Turcotte\",\n \"firstname\" => \"Tristin\",\n \"nationality\" => \"Nauru\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Pouros\",\n \"firstname\" => \"Cooper\",\n \"nationality\" => \"Micronesia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Romaguera\",\n \"firstname\" => \"Judy\",\n \"nationality\" => \"Australia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Tremblay\",\n \"firstname\" => \"Maxie\",\n \"nationality\" => \"French Guiana\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Barrows\",\n \"firstname\" => \"Akeem\",\n \"nationality\" => \"Mozambique\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Funk\",\n \"firstname\" => \"Florencio\",\n \"nationality\" => \"Malawi\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Welch\",\n \"firstname\" => \"Margarita\",\n \"nationality\" => \"Ethiopia\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Legros\",\n \"firstname\" => \"Helmer\",\n \"nationality\" => \"Antigua and Barbuda\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Labadie\",\n \"firstname\" => \"Carole\",\n \"nationality\" => \"Martinique\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Klein\",\n \"firstname\" => \"Desiree\",\n \"nationality\" => \"Nepal\",\n \"email\" => \"[email protected]\"\n ,\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Kuvalis\",\n \"firstname\" => \"Eloy\",\n \"nationality\" => \"Panama Canal Zone\",\n \"email\" => \"[email protected]\",\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199),\n ],\n [\n \"surname\" => \"Macejkovic\",\n \"firstname\" => \"Lucinda\",\n \"nationality\" => \"Austria\",\n \"email\" => \"[email protected]\",\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ],\n [\n \"surname\" => \"Bosco\",\n \"firstname\" => \"Emilia\",\n \"nationality\" => \"São Tomé and Príncipe\",\n \"email\" => \"[email protected]\",\n \"address_id\" => rand(0, 88),\n \"course_id\" => rand(0, 199)\n ]\n ];\n\n foreach ($students as $student) {\n Student::create($student);\n }\n }\n }", "function _listauthors($array){\n $goodstring=\"\";\n foreach ($array as $author){\n $goodstring.=$author[0];\n $goodstring.=ltrim(chop($author[1]))?($author[0]?\" \":\"\").ltrim(chop($author[1])):\"\";\n $goodstring.=$author[3]?\" \".$author[3]:\"\";\n $goodstring.=$author[2]?\" \".chop($author[2]):\"\";\n $goodstring.=\", \";\n\n\n\n }\n return chop($goodstring, ', ');\n }", "public function getdatastudent() {\n $this->db->select('id_st,name_st,lastname_st,major');\n $this->db->order_by(\"id_st\", \"DESC\");\n $query = $this->db->get('student');\n return $query->result_array();\n }", "public function getTotalStudents(){\n $total_stds = $this->getTotalStds();\n $total_stds_men = $this->getTotalStdsMen();\n $total_stds_women = $this->getTotalStdsWomen();\n\n $htmlResumenTotal = $this->str_students(1,\"\").' <tr class=\"numbers\">\n <td class=\"color-indico\">'.number_format($total_stds).'</td>\n <td class=\"color-blue\">'.number_format($total_stds_men).'('.number_format($total_stds_men * 100 / $total_stds).'%)</td>\n <td class=\"color-orange\">'.number_format($total_stds_women).' ('.number_format($total_stds_women * 100 / $total_stds).'%)</td>\n </tr>\n '.$this->str_students(2,\"\");\n return $htmlResumenTotal;\n }", "function getStudentLastName() {\n\t\treturn $this->getData('studentLastName');\n\t}", "function getStudentFullName() {\n\t\treturn Locale::translate('plugins.generic.thesis.studentFullName', array('lastName' => $this->getData('studentLastName'), 'firstName' => $this->getData('studentFirstName'), 'middleName' => $this->getData('studentMiddleName')));\n\t}", "public function getMiddleNames ();", "public function get_students($ids)\n\t\t{\n\t\t\t$students=array();\n\t\t\tforeach ($ids as $row){\n\t\t\t\n\t\t\t\t$students[]=$this->create_student($this->conn->get($row));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $students;\n\t\t}", "function UniversityName(){\n\t\t$sql = \"Select Distinct InstituteName from Education\";\n $query = $this->db->query($sql);\n if ($query) {\n return $query->result_array();\n } else {\n return false;\n } \n }", "public function allStudents()\n {\n\n $students = Student::all();\n return $students;\n\n\n\n }", "function random($students)\n {\n $a = rand(0,7);\n print $students[$a]['name'];\n }", "function tep_get_email_subjects_list($subjects_array = '') {\n if (!is_array($subjects_array)) $subjects_array = array();\n\n $subjects_query = tep_db_query(\"select email_subjects_id, email_subjects_name, email_subjects_category from \" . TABLE_EMAIL_SUBJECTS . \" where email_subjects_category = '2' order by email_subjects_name\");\n while ($subjects = tep_db_fetch_array($subjects_query)) {\n $subjects_array[] = array('id' => $subjects['email_subjects_name'], 'text' => $subjects['email_subjects_name']);\n }\n\n return $subjects_array;\n }", "function getstudentsubject(){ \n $classid = $_GET['classid'];\n $q = \"select * from studentsubject where classid=$classid\";\n $r = mysql_query($q);\n $result = array();\n while($row = mysql_fetch_array($r)){\n $q2 = 'select * from student where id='.$row['studid'].'';\n $r2 = mysql_query($q2);\n $result[] = mysql_fetch_array($r2);\n }\n return $result;\n }", "public static function generateData($students, $classes, $cutoff) {\n\n $nzdt = new DateTimeZone('Pacific/Auckland');\n $cutoffDate = new DateTime($cutoff, $nzdt);\n\n $indices = MOEIndices::getIndices();\n\n foreach ($classes as $class){\n $studentIdToGroupName[$class->person_id]= $class->group_name;\n }\n\n $studentFilter = function($collectionDate, $student) {\n $validStudentTypes = array('FF', 'EX', 'AE', 'RA', 'AD', 'RE', 'TPREOM', 'TPRAOM');\n $nzdt = new DateTimeZone('Pacific/Auckland');\n $indices = MOEIndices::getIndices();\n $startDate = new DateTime($student[$indices['FIRST ATTENDANCE']], $nzdt);\n $lastAttendance = empty($student[$indices['LAST ATTENDANCE']]) ? null : new DateTime($student[$indices['LAST ATTENDANCE']], $nzdt);\n return (in_array($student[$indices['TYPE']], $validStudentTypes) &&\n $startDate->getTimestamp() <= $collectionDate->getTimestamp() &&\n (is_null($lastAttendance) || $lastAttendance->getTimestamp() >= $collectionDate->getTimestamp())\n );\n };\n\n foreach ($students as $student) {\n if ($studentFilter($cutoffDate, $student) === true) {\n //Concatenate student id to surname to prevent key collision\n $studentRows[$student[$indices['SURNAME']].$student[$indices['FIRSTNAME']].$student[$indices['STUDENT_ID']]] = array( \n $student[$indices['STUDENT_ID']], \n $student[$indices['SURNAME']] . ' ' . $student[$indices['FIRSTNAME']],\n $student[$indices['PREFERRED LAST NAME']] . ' ' . $student[$indices['PREFERRED FIRST NAME']], \n $student[$indices['FUNDING YEAR LEVEL']],\n $student[$indices['DOB']] ,\n $student[$indices['TYPE']],\n $student[$indices['FTE']],\n $studentIdToGroupName[$student[$indices['STUDENT_ID']]]\n );\n }\n }\n\n ksort($studentRows);\n\n return $studentRows;\n }", "function show_students(){\n\t$query = $this->db->get('students');\n\t$query_result = $query->result();\n\treturn $query_result;\n\t}", "function loadStudents($studentLoader)\n {\n $studentsData = $studentLoader->getAllStudents();\n foreach ($studentsData as $student) {\n $student = $studentLoader->createStudent($student);\n $students[] = $student;\n }\n if (!isset($students)) {\n return [];\n }\n return $students;\n }", "function get_student_info_by_id($student_id) {\n return $this->db->get_where('student', array('student_id' => $student_id))->row_array();\n }", "public function getSubjectNames() {\n\t\ttry {\n\n\t\t\t$subjectNamesQuery = \"SELECT * FROM subject\";\n\t\t\treturn DB::select($subjectNamesQuery);\n\n\t\t} catch (\\Exception $ex) {\n\t\t\tprint_r($ex->getMessage());\n\n\t\t}\n\t}", "public function get_complete_packages_students_list()\n\t{\n\t\t$query = $this->db->select('td.*,ud.fullname, ud.email, ud.phone, ud.address')\n\t\t->join('users_details as ud','ud.id=td.user_id','LEFT')\n\t\t->get_where('transaction_details as td',array('td.complete_package'=>'1'));\n\n\t\t$result = $query->result_array();\n\n\t\tif(!empty($result)){\n\t\t\treturn $result;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_students_list($prntid)\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('cms_students');\n\t\t$this->db->where('prnt_id', $prntid);\n\t\t$query = $this->db->get();\n\t\treturn $query->result();\n\t}", "function affiliationsNames()\n {\n //@todo: fix this\n // dd($this->CI->session->all_userdata());\n $this->affiliationsName = $this->CI->session->userdata(AUTH_AFFILIATION_ARRAY);\n $this->cosi_db = $this->CI->load->database('roles', true);\n $affNames = array();\n foreach($this->affiliationsName as $affiliation){\n $query = $this->cosi_db->get_where('roles', array('role_id'=>$affiliation));\n if ($query->num_rows() > 0) {\n // There _can_ be more than one full name, so just pick the first for now.\n $affNames[$affiliation] = $query->result_array()[0]['name'] . ' (' . $affiliation . ')';\n } else {\n // No full name, so use the abbreviation only.\n $affNames[$affiliation] = $affiliation;\n }\n }\n return $affNames;\n }", "public function getStudentInfo() {\n try {\n $this->dbh->query('SELECT * FROM student_info');\n $students = $this->dbh->resultSet();\n return $students;\n } catch(PDOException $e) {\n $this->response = [\n \"status\"=> \"error\",\n \"message\" => \"Unable to fetch all student details. Please contact the admin\"\n ];\n return $this->response;\n }\n\n }", "public function getUnassignedStudents() {\n\t\tAcademicClass::GetInstance()->getAll();\n\t\t$unassigned_students = Student::GetInstance()->getAllUnassignedStudents();\n\n\t\treturn jsonResult( $unassigned_students );\n\n\t}", "public function getSubjects() {\n\t\t$error_return = \"false\";\n\n\t\t$query = \"SELECT id, full_name FROM subject\";\n\t\ttry {\n\t\t\t$results = pg_query($query);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\treturn $error_return;\n\t\t}\n\n\t\t$arr = array();\n\t\twhile ($line = pg_fetch_array($results)) {\n\t\t\t$arr[] = array('id' => $line[0], 'name' => $line[1]);\n\t\t}\n\n\t\tif (count($arr) == 0)\n\t\t\treturn $error_return;\n\t\telse\n\t\t\treturn json_encode($arr);\n\t}", "public function getNames() {}", "public function getNames() {}", "public function getNames() {}", "public function getStudent()\r\n {\r\n $sql=\"SELECT * FROM users WHERE role_id=2\";\r\n $query=$this->db->query($sql);\r\n return $query->result_array();\r\n }", "function getStudentMiddleName() {\n\t\treturn $this->getData('studentMiddleName');\n\t}", "function contactsByStudentName( $name, $order ){\r\n\t\t$name = str_replace(' ', '%', $name);\r\n\t\t$return = array();\r\n\t\t$query = \"SELECT distinct c.ID, c.* from X_PNSY_STUDENT s, contacts c, `contacts-students` cs WHERE\r\n\t\t\t\ts.ID = cs.studentid and\r\n\t\t\t\tcs.contactid = c.id and\r\n\t\t\t\tCONCAT(s.FIRST_NAME, ' ', s.MIDDLE_NAME, ' ', s.LAST_NAME) LIKE '%$name%'\";\r\n// Michael Thompson * 12/07/2005 * Added Below line to tack order onto sql sentence\r\n if ($order != \"\") $query .= \" ORDER BY $order\";\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\treturn $return;\r\n\t}", "function get_all_students() {\n global $db;\n $query = 'SELECT * FROM students\n ORDER BY studentID';\n $statement = $db->prepare($query);\n $statement->execute();\n $students = $statement->fetchAll();\n $statement->closeCursor();\n return $students; \n }", "function emarking_get_enroled_students($courseid)\n{\n global $DB;\n \n $query = emarking_get_enroled_students_sql();\n \n // Se toman los resultados del query dentro de una variable.\n $users = $DB->get_records_sql($query, array(\n $courseid\n ));\n \n return $users;\n}", "public function search_for_student($search_string)\r\n\t{\r\n\t\t$results = array();\r\n\t\tif ($this->validate_email($search_string))\r\n\t\t{\r\n\t\t\t$results = $this->search_for_email(sanitize_email($search_string));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$username_results = $this->search_for_username(sanitize_text($search_string));\r\n\t\t\t$name_results = $this->search_for_name(sanitize_text($search_string));\r\n\t\t\t$email_results = $this->search_for_first_part_of_email($search_string);\r\n\t\t\tforeach ($username_results as $username_result)\r\n\t\t\t{\r\n\t\t\t\t$results[] = $username_result;\r\n\t\t\t}\r\n\t\t\tforeach ($name_results as $name_result)\r\n\t\t\t{\r\n\t\t\t\tif (!in_array($name_result, $results))\r\n\t\t\t\t{\r\n\t\t\t\t\t$results[] = $name_result;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tforeach ($email_results as $email_result)\r\n\t\t\t{\r\n\t\t\t\tif (!in_array($email_result, $results))\r\n\t\t\t\t{\r\n\t\t\t\t\t$results[] = $email_result;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $results;\r\n\t}", "function transStudents($students) {\r\n return ($students < MINIMUMSTUDENTS) ? TRUE : FALSE;\r\n }", "public function generateStudents($student)\n {\n\n $output = \"\";\n if ($student->deleted_at) {\n $restoreurl = generateLangugeUrl(App::getLocale(), url(\"/teacher/students/\" . $student->id . \"/restore\"));\n $output .= '<div class=\"btn-group\">';\n $output .= '<a href=\"javascript:void(0);\" data-index=\"' . $student->id . '\" data-url=\"' . $restoreurl . '\" data-toggle=\"tooltip\" title=\"Restore\" class=\"restore-adminusers btn btn-primary\"><i class=\"fa fa-undo\"></i></a>';\n $output .= '</div>';\n } else {\n $url = generateLangugeUrl(App::getLocale(), url(\"/teacher/students/\" . $student->id . \"/edit\"));\n $delurl = generateLangugeUrl(App::getLocale(), url(\"/teacher/students/\" . $student->id . \"/destroy\"));\n $output .= '<div class=\"btn-group\">';\n $output .= '<a href=\"javascript:void(0);\" class=\"btn edit_student btn-primary\" data-url=\"' . $url . '\" data-toggle=\"tooltip\" title=\"Edit\"><i class=\"fa fa-edit\"></i ></a>';\n $output .= '</div>';\n $output .= '&nbsp;';\n $output .= '<div class=\"btn-group\">';\n $output .= '<a href=\"javascript:void(0);\" data-index=\"' . $student->id . '\" data-url=\"' . $delurl . '\" class=\"remove-adminusers btn btn-danger\" data-toggle=\"tooltip\" title=\"Delete\"><i class=\"fa fa-trash-o\" ></i ></a>';\n $output .= '</div>';\n }\n return $output;\n }", "function getStudentFirstName() {\n\t\treturn $this->getData('studentFirstName');\n\t}", "function learn_press_get_students_list_filter() {\n\t$filter = array(\n\t\t'all' => esc_html__( 'All', 'learnpress' ),\n\t\t'in-progress' => esc_html__( 'In Progress', 'learnpress' ),\n\t\t'finished' => esc_html__( 'Finished', 'learnpress' )\n\t);\n\n\treturn apply_filters( 'learn_press_get_students_list_filter', $filter );\n}", "public function getEmployeeFullNames()\n {\n $employees = Employee::select('employees.*')\n ->crossJoin('policy_flows', 'employees.id', '=', 'policy_flows.to_employee_id')\n ->crossJoin('policies', 'policy_flows.policy_id', '=', 'policies.id')\n ->where('policies.contract_id', '=', $this->id)\n ->whereNull(['policy_flows.deleted_at', 'policies.deleted_at'])\n ->get();\n\n $full_names = [];\n foreach($employees as /* @var $employee Employee */ $employee) {\n $full_names[] = $employee->getFullName();\n }\n\n return array_unique($full_names);\n }", "protected function getMemberNames()\n {\n $arrMembers = array();\n\n $objMembers = $this->Database\n ->execute(\"SELECT id, username, firstname, lastname\n\t\t\t FROM tl_member\n\t\t\t WHERE login = 1\"\n );\n\n while ($objMembers->next()) {\n $varId = $objMembers->id;\n $varName = $objMembers->firstname . ' ' . $objMembers->lastname;\n\n $arrMembers[$varId] = $varName;\n }\n\n return $arrMembers;\n }", "public static function allToSnakeCase(string ...$subjects): array\n {\n return static::allTo('toSnakeCase', ...$subjects);\n }", "public function studentList()\n {\n return output($this->UserDetails->where([\"roleId\"=>$this->getUserRoleId()])->read(),'success','SM001');\n }", "protected function nice_names($groups){\n\n $group_array=array();\n for ($i=0; $i<$groups[\"count\"]; $i++){ // For each group\n \t\n \tif (isset($groups[$i])) {\n \t$line=$groups[$i];\n \t} else {\n \t\t$line = '';\n \t}\n \n if (strlen($line)>0){ \n // More presumptions, they're all prefixed with CN=\n // so we ditch the first three characters and the group\n // name goes up to the first comma\n $bits=explode(\",\",$line);\n $group_array[]=substr($bits[0],3,(strlen($bits[0])-3));\n }\n }\n return ($group_array); \n }", "function get_susi_student_groups() {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND student = '1'\r\n ORDER BY name ASC;\";\r\n\r\n $groups = array();\r\n $student_groups = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups[$key] = $value;\r\n foreach ($groups[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $student_groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $student_groups;\r\n}", "public static function allUcFirstLetter(string ...$subjects): array\n {\n return static::allTo('ucFirstLetter', ...$subjects);\n }", "function lecturerNames($lec_no,$field){\n\t\tfor($i=0;$i<count($lec_no);$i++){\n\t\t\t$q_2 = \"SELECT `$field` FROM `mkombo_university`.`staff` WHERE `lec_no`='\".$lec_no[$i].\"'\";\n\t\t\t$run_2 = mysql_query($q_2);\n\t\t\twhile($row = mysql_fetch_array($run_2)){\n\t\t\t\t$result[] = $row[$field];\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "public function getExamNames() {\n\t\ttry {\n\n\t\t\t$examNamesQuery = \"SELECT * FROM exam_name\";\n\t\t\treturn DB::select($examNamesQuery);\n\n\t\t} catch (\\Exception $ex) {\n\t\t\tprint_r($ex->getMessage());\n\n\t\t}\n\t}", "function get_list($sy_id,$student_id) {\n\t\treturn $this->query(\n\t\t\t\"SELECT * FROM $this->tblname WHERE sy_id=$sy_id AND student_id=$student_id\"\n\t\t);\n\t}", "public function getPeople() {\n $peopleNames = array();\n\n foreach ($this->tblPeople as $model_person) {\n $peopleNames[] = $model_person->name;\n }\n\n // return concatenated list of people names\n return implode(', ', $peopleNames);\n }", "public function getInfoStudent($cin) {\n$info = array(\"CIN:\".$cin , \"Ahmed\", \"JRABA\",\"12/09/1997\"); \nreturn $info;\n}", "public function getStudents($params = array())\n {\n $sql = 'select * from engine4_users where user_id in (\n SELECT item_id FROM `engine4_user_fields_values` where field_id=1 and value=4\n )';\n \n $table = Engine_Api::_()->getDbtable('users', 'user')->getAdapter();\n $select = $table->query($sql)->fetchAll(); \n\n return $select;\n }", "public function get_data()\n\t\t{\n\t\t\tglobal $conn;\n\t\t\ttry{\n\t\t\t\n\t\t\t\t// connect to MySQL and select a database\n\t\t\t\t$students = array();\n\t\t\t\t\n\t\t\t\t$result = $this->conn->query(\"SELECT * FROM `students`\");\n\t\t\t\t\n\t\t\t\tforeach($result as $row)\n\t\t\t\t{\n\t\t\t\t\t$students[] = $this->create_student($row);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $students;\n\t\t\t}\n\t\t\tcatch(Exception $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t\texit();\n\t\t\t}\n\t\t}", "public function students()\r\n {\r\n $students = $this->student->GetAllStudents();\r\n $view = new view(\"Students\");\r\n $view->generate(array('students' => $students));\r\n\r\n }", "function user_students ($target_user = \"\") {\n if (!$target_user) {\n global $user;\n $target_user = $user;\n } else {\n $target_user = eto_user_load(array('name' => $target_user));\n }\n\n if (!$target_user) {\n drupal_not_found();\n exit;\n }\n\n if ($target_user->uid != $user->uid) {\n if (! user_acccess('administer the site')) {\n drupal_access_denied();\n exit;\n }\n }\n\n $title = \"My Students\";\n drupal_set_title($title);\n $output = \"<h2>$title</h2>\\n\";\n\n $students = sb_assignment_load ($target_user->uid, \"student_uid\");\n\n $schedule_url = sb_user_base($target_user) . \"/schedule\";\n \n $output .= l(\"+Add an appointment with a student\", $schedule_url);\n\n if ($students) {\n $output .= \"<ul>\\n\";\n foreach ($students as $uid => $name) {\n $u = eto_user_load($uid);\n $output .= \"<li>\" \n\t. theme('eto_user', $u, TRUE)\n\t. \"</li>\\n\";\n }\n $output .= \"</ul>\\n\";\n } else {\n $output .= \"<p>You have no students assigned yet.</p>\\n\";\n }\n\n return $output;\n}", "function GetMembers()\n\t{\t$members = array();\n\t\t$where = array();\n\t\t$tables = array('students');\n\t\t\n\t\tif ($_GET['morf'])\n\t\t{\t$where[] = 'students.morf=\"' . $this->SQLSafe($_GET['morf']) . '\"';\n\t\t}\n\t\n\t\tif ($_GET['ctry'])\n\t\t{\t$where[] = 'students.country=\"' . $this->SQLSafe($_GET['ctry']) . '\"';\n\t\t}\n\t\t\n\t\tif ($name = $this->SQLSafe($_GET['name']))\n\t\t{\t$where[] = '(CONCAT(students.firstname, \" \", students.surname, \"|\", students.username) LIKE \"%' . $name . '%\")';\n\t\t}\n\t\t\n\t\t$sql = 'SELECT students.* FROM ' . implode(',', $tables);\n\t\tif ($wstr = implode(' AND ', $where))\n\t\t{\t$sql .= ' WHERE ' . $wstr;\n\t\t}\n\t\t$sql .= ' GROUP BY students.userid ORDER BY students.surname, students.firstname LIMIT 0, 1000';\n\t\t\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\twhile ($row = $this->db->FetchArray($result))\n\t\t\t{\tif (!$row[\"country\"] || $this->user->CanAccessCountry($row[\"country\"]))\n\t\t\t\t{\t$members[] = $row;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $members;\n\t}", "function getStudentID($sessionID, $StudentName){\r\n\t\t$StudentName = explode(\" \", $StudentName);\r\n\t\t$query = \"SELECT ID FROM X_PNSY_STUDENT WHERE `LAST_NAME` = '\".$StudentName[1].\"' AND `FIRST_NAME` = '\".$StudentName[0].\"'\";\r\n\t\t$result = mysql_query($query);\r\n\t\tfor($i=0; $results = mysql_fetch_array($result); $i++){\r\n\t\t\t$IDs[$i] = $results['ID'];\r\n\t\t}\r\n\t\tif (sizeof($IDs) > 1){\r\n\t\t\treturn $IDs;\r\n\t\t}\r\n\t\telse if (sizeof($IDs) == 1){\r\n\t\t\treturn $IDs[0];\r\n\t\t}\r\n\t\telse if (sizeof($IDs) < 1){\r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t}", "function get_artists_names($artists) {\n $output = '';\n foreach($artists as $artist_name => $artist_data) {\n $output .= $artist_name . ' - ' . $artist_data['debut year'];\n $output .= '<br/>';\n }\n return $output;\n}", "public function getUserDetails($array) {\n\t\t$conn\t\t\t= $this->connect();\n\t\t$collection\t\t= $conn->snapstate->users;\n\t\t$results\t\t= $collection->find(array('_id' => array('$in' => $array)));\n\t\t$resultArray\t= array();\n\t\twhile($results->hasNext())\t{\n\t\t\t$tempArray\t\t= $results->getNext();\n\t\t\t$resultArray[(string)$tempArray['_id']]\t= $tempArray['user_firstname'].' '.$tempArray['user_lastname'];\n\t\t}\n\t\treturn $resultArray;\n\t}", "public function getStudents(SearchData $data)\n\t{\n\t\t$text = $data->getSearchText(); $field = $data->getSearchField();\n\t\t$sortBy = $data->getSortby(); $order = $data->getOrder();\n\t\t$limit = $data->getLimit(); $offset = $data->getOffset();\n\t\ttry {\n\t\t\t$students = array();\n\t\t\t\n\t\t\t$this->SQLBuilder->select();\n\t\t\tif ($text !== '') {\n\t\t\t\t$this->SQLBuilder->whereLike($field);\n\t\t\t}\n\t\t\t$this->SQLBuilder->orderBy($sortBy, $order);\n\t\t\t$this->SQLBuilder->limit($limit, $offset);\n\t\t\t$sql = $this->SQLBuilder->getSQL();\n\t\t\t\n\t\t\t$stmt = $this->pdo->prepare($sql);\n\t\t\t$values = array();\n\t\t\tif ($text !== '') {\n\t\t\t\t$values[':like'] = \"%$text%\";\n\t\t\t}\n\n\t\t\tif ( ($stmt->execute($values)) && ($stmt->rowCount() > 0) ) {\n\t\t\t\twhile ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n\t\t\t\t\t$students[] = $this->convertToObject($row);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$students = false;\n\t\t\t}\n\t\t\t\n\t\t\t$this->lastCount = $this->foundRows();\n\t\t} catch (\\PDOException $e) {\n\t\t\tthrow new StudentException('Ошибка при получении данных студентов', 0, $e);\n\t\t}\n\t\treturn $students;\n\t}", "function funcs_getNames($name,$bothnames = true){\n\t$last = ucwords(preg_replace('/^(.+), .+/','\\\\1',$name));\n\t$first = ucwords(preg_replace('/^.+, (.+)/','\\\\1',$name));\n\tif ($bothnames){\n\t\treturn array($first,$last);\n\t}else{\n\t\treturn $first;\n\t}\n}", "protected function valid_studentids() {\n if ($this->studentids === null) {\n if ($this->studentids = get_users_by_capability($this->context, 'mod/data:viewentry', 'u.id,u.username')) {\n $this->studentids = array_keys($this->studentids);\n $this->studentids = array_diff($this->studentids, $this->valid_teacherids());\n } else {\n $this->studentids = array();\n }\n }\n return $this->studentids;\n }", "public function actionStudents()\n\t{\n\t\t//$this->model = User::loadModel();\n\t\t$this->renderView(array(\n\t\t\t'contentView' => '//drcUser/_list',\n\t\t\t'dataProvider' => $this->model->students(),\n\t\t\t'contentTitle' => 'DRC Students',\n\t\t\t'titleNavRight' => '<a href=\"' . $this->createUrl('base/user/create') . '\"><i class=\"icon-plus\"></i> Add User </a>',\n\t\t\t'menuView' => 'base.views.layouts._termMenu',\n\t\t));\n\t}", "public function getUserNames()\n {\n $result = $this->getUsers()->all();\n if( is_null( $result ) ) return [];\n return array_map( function($o) {return $o->namedId;}, $result );\n }", "function get_tas($course_name){\n $course_group = get_course_group($course_name);\n if(is_null($course_group)){\n return NULL;\n }\n\n $result = srch_by_sam($course_group);\n if(is_null($result)){\n return NULL;\n }\n\n $members = $result[\"member\"];\n foreach($members as &$member) {\n $member = dn_to_sam($member);\n }\n\n return $members;\n}", "function get_stud_courses($username){\n $sql_conn = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASSWD, DATABASE);\n if(!$sql_conn){\n return NULL;\n }\n\n $query = \"SELECT course_name FROM courses NATURAL JOIN enrolled WHERE username=?\";\n $stmt = mysqli_prepare($sql_conn, $query);\n if(!$stmt){\n mysqli_close($sql_conn);\n return NULL;\n }\n mysqli_stmt_bind_param($stmt, \"s\", $username);\n if(!mysqli_stmt_execute($stmt)){\n mysqli_stmt_close($stmt);\n mysqli_close($sql_conn); \n return NULL;\n } \n mysqli_stmt_bind_result($stmt, $course_name);\n \n $courses = array();\n while(mysqli_stmt_fetch($stmt)){\n $courses[] = $course_name;\n }\n\n mysqli_stmt_close($stmt);\n mysqli_close($sql_conn);\n return $courses;\n}", "function student_data($sid) {\t\n\t\n\t$data = array();\n\t\t\t\n\t$func_num_args = func_num_args(); // returns number of args passed to user_data()\n\t$func_get_args = func_get_args(); // array with args\n\t\t\n\tif ($func_num_args > 1) {\n\t\tunset($func_get_args[0]); // remove first element from $func_get_args ($user_id)\n\t\t$fields = '`' . implode('`, `', $func_get_args) . '`';\n\t\t\n\t\t$query = mysql_query(\"SELECT $fields FROM Students WHERE sid='$sid';\");\n\t\t$data = mysql_fetch_array($query);\n\n\t\treturn $data;\n\t}\n\t\n}", "public function get_student_list_of_logged_in_parent() {\n\t\t$parent_id = $this->session->userdata('user_id');\n\t\t$parent_data = $this->db->get_where('parents', array('user_id' => $parent_id))->row_array();\n\t\t$checker = array(\n\t\t\t'parent_id' => $parent_data['id'],\n\t\t\t'session' => $this->active_session,\n\t\t\t'school_id' => $this->school_id\n\t\t);\n\t\t$students = $this->db->get_where('students', $checker)->result_array();\n\t\tforeach ($students as $key => $student) {\n\t\t\t$checker = array(\n\t\t\t\t'student_id' => $student['id'],\n\t\t\t\t'session' => $this->active_session,\n\t\t\t\t'school_id' => $this->school_id\n\t\t\t);\n\t\t\t$enrol_data = $this->db->get_where('enrols', $checker)->row_array();\n\n\t\t\t$user_details = $this->db->get_where('users', array('id' => $student['user_id']))->row_array();\n\t\t\t$students[$key]['student_id'] = $student['id'];\n\t\t\t$students[$key]['name'] = $user_details['name'];\n\t\t\t$students[$key]['email'] = $user_details['email'];\n\t\t\t$students[$key]['role'] = $user_details['role'];\n\t\t\t$students[$key]['address'] = $user_details['address'];\n\t\t\t$students[$key]['phone'] = $user_details['phone'];\n\t\t\t$students[$key]['birthday'] = $user_details['birthday'];\n\t\t\t$students[$key]['gender'] = $user_details['gender'];\n\t\t\t$students[$key]['blood_group'] = $user_details['blood_group'];\n\t\t\t$students[$key]['class_id'] = $enrol_data['class_id'];\n\t\t\t$students[$key]['section_id'] = $enrol_data['section_id'];\n\n\t\t\t$class_details = $this->crud_model->get_class_details_by_id($enrol_data['class_id'])->row_array();\n\t\t\t$section_details = $this->crud_model->get_section_details_by_id('section', $enrol_data['section_id'])->row_array();\n\n\t\t\t$students[$key]['class_name'] = $class_details['name'];\n\t\t\t$students[$key]['section_name'] = $section_details['name'];\n\t\t}\n\t\treturn $students;\n\t}" ]
[ "0.70306975", "0.6579975", "0.63303775", "0.63256615", "0.63032025", "0.6245081", "0.6180414", "0.61148536", "0.59291774", "0.59237725", "0.58872175", "0.5886358", "0.5884633", "0.5880944", "0.58615124", "0.5853843", "0.5846839", "0.5746795", "0.57008266", "0.5672646", "0.5649606", "0.564753", "0.5620598", "0.5589867", "0.5588825", "0.55264133", "0.5521836", "0.5514156", "0.5504847", "0.55015516", "0.5495687", "0.5487228", "0.5487228", "0.54843134", "0.5477539", "0.54653925", "0.5462261", "0.5445252", "0.54233825", "0.5410141", "0.5392965", "0.5389653", "0.53735155", "0.5368709", "0.534691", "0.534147", "0.5341306", "0.5334831", "0.5333516", "0.53241974", "0.5310643", "0.53033704", "0.5300489", "0.52974874", "0.5287959", "0.5270892", "0.52705777", "0.5270222", "0.5269", "0.5269", "0.5268803", "0.5268797", "0.5268626", "0.5258016", "0.5248123", "0.5240129", "0.5230403", "0.5229433", "0.52241325", "0.5223281", "0.52210504", "0.5204127", "0.51960814", "0.5192374", "0.5188498", "0.5186727", "0.51862025", "0.51857555", "0.5179045", "0.5174094", "0.51740825", "0.5172727", "0.517026", "0.516918", "0.51620084", "0.51493144", "0.51491165", "0.5147618", "0.5141973", "0.51400435", "0.5137895", "0.51268417", "0.5109511", "0.5108441", "0.5106885", "0.50999916", "0.5094514", "0.5094133", "0.5093769", "0.5093338" ]
0.7735139
0
Define accepted params for this controller.
protected function getParamsDefinition() { $config = array( 'action' => array( 'internal_key' => 'a', 'is_list' => false, 'apply_translation' => false ), 'instance' => array( 'internal_key' => 'i', 'is_list' => false, 'apply_translation' => false ), ); return $config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAcceptedParameters();", "protected function defineParams() {\n return [\n 'state' => $this->state,\n 'rights' => $this->document->getRights(),\n 'config' => false,\n 'active' => false,\n ];\n }", "function handle_request_body_params() {\n // Merges HTTP Request body with the instance parameters,\n // instance params have priority for security reasons\n $body = $this->get_request_body();\n $params = $body ? $this->decode($body) : null;\n $this->params = xUtil::array_merge(xUtil::arrize($params), $this->params);\n }", "public function setControllerParams(&$params) {\n $this->params = $params;\n // Make a reference to the form data so we can get to it easier.\n if (isset($this->params['post']['data'])) {\n $this->postData = & $this->params['post']['data'];\n }\n if (isset($this->params['post'])) {\n $this->post = & $this->params['post'];\n }\n if (isset($this->params['get'])) {\n $this->get = & $this->params['get'];\n }\n }", "public function getAllowedParams() {\n return array(\n 'id' => array (\n ApiBase::PARAM_TYPE => 'integer',\n ApiBase::PARAM_REQUIRED => true\n ),\n 'comment'=>array(\n ApiBase::PARAM_TYPE => 'text',\n ApiBase::PARAM_REQUIRED => true\n )\n );\n }", "public function getActionRequiredParameters()\r\n {\r\n return array();\r\n }", "public function allowedParams(): array\n {\n return [\n 'title',\n 'year'\n ];\n }", "abstract protected function getRequiredRequestParameters();", "private function setParams()\n\t\t{\n\t\t\t/**\n\t\t\t* Remove do $this->_separetor os dois primeiros valores\n\t\t\t* referentes ao controller e action, deixando os demais valores\n\t\t\t* que serão usados para formarem os parametros, indices e valores\n\t\t\t*/\n\t\t\tunset($this->_separetor[1], $this->_separetor[2]);\n\t\t\t\n\t\t\t/**\n\t\t\t* Caso o ultimo item do $this->_separetor seja vazio\n\t\t\t* o mesmo é removido\n\t\t\t*/\n\t\t\tif ( end($this->_separetor) == null ) {\n\t\t\t\tarray_pop($this->_separetor);\n\t\t\t}\n\n\t\t\t\n\t\t\t/**\n\t\t\t* Se a $this->_separetor estivar vazia,\n\t\t\t* então os parametros serão definidos como vazios\n\t\t\t*/\n\t\t\tif ( !empty($this->_separetor) ) {\n\t\t\t\t/**\n\t\t\t\t* Percorre o array $this->_separetor, verificando os indices\n\t\t\t\t* se for impar, então seu valor será o indice do parametro.\n\t\t\t\t* Se for par, seu valor será o valor do paremetro\n\t\t\t\t*/\n\t\t\t\tforeach ($this->_separetor as $key => $value) {\n\t\t\t\t\tif ($key % 2 == 0) {\n\t\t\t\t\t\t$param_value[] = $value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$param_indice[] = $value;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$param_value = array();\n\t\t\t\t$param_indice = array();\n\t\t\t}\n\n\n\t\t\t/**\n\t\t\t* Verifica se os indices e valores dos parametros\n\t\t\t* não são vazios e possuem a mesma quantidade\n\t\t\t* Então vaz um \"array_combine\" para juntar os dois arrays\n\t\t\t* formando um indice->valor para o parametro\n\t\t\t*/\n\t\t\tif ( !empty($param_indice) \n\t\t\t\t&& !empty($param_value)\n\t\t\t\t&& count($param_indice)\n\t\t\t\t== count($param_value)\n\t\t\t) {\n\t\t\t\t$this->_params = array_combine($param_indice, $param_value);\n\t\t\t} else {\n\t\t\t\t$this->_params = array();\n\t\t\t}\n\t\t}", "public function __construct($params){\n \n $i = 2; //Skip the controller/action stuff.\n while (isset($params[$i])){\n $this->_requestParams[$params[$i]] = $params[$i+1];\n $i = $i + 2;\n }\n\n if (count($_POST) > 0){\n $this->_requestParams = array_merge($this->_requestParams,$_POST);\n }\n }", "private function input(){\n $this->params['controller_name'] = $this->ask('Controller name');\n $this->params['crud_url'] = $this->ask('CRUD url');\n $this->params['model_name'] = $this->ask('Model name');\n $this->params['table_name'] = $this->ask('Table name');\n $this->params['author'] = env('PACKAGE_AUTHOR');\n }", "private function __get_request_validate_params()\n {\n $this->__validation_params = __get_array_key2column(\n $this->__all_form_validation_params,\n $this->__route_uri_array\n );\n }", "protected function processRequestParams(): void\n {\n $this->processLimit();\n $this->processLocale();\n }", "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 }", "public function getControllerParams() {\n return $this->params;\n }", "protected function loadParams() {\n\t $this->cpParams = new api_crud_param($this->attribs);\n\t \n // These commands need an id and a method in the url\n\t $this->cpParams->setCommand(Array('read','update','delete'))->setMethod(api_crud_param::MATTRIBUTE)->setNeed(api_crud_param::RMANDATORY)\n\t ->setType(api_crud_param::TINT)->addParam('id')\n\t ->setType(api_crud_param::TSTRING)->addParam('method');\n\t \n\t // yes, for delete, the delete param needs to be repeated in the POST as well as the id\n\t $this->cpParams->setCommand('delete')->setMethod(api_crud_param::MPOST)->setNeed(api_crud_param::RMANDATORY)\n\t ->setType(api_crud_param::TINT)->addParam('id')\n ->setType(api_crud_param::TSTRING)->addParam('method');\n\t}", "protected function actionParamsSets() {\n\t\treturn array();\n\t}", "public function get_params()\n {\n }", "public function get_params()\n {\n }", "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 }", "public function getRequiredParameters();", "public function getRequiredParameters();", "protected function _set_request_data_from_params(){\n \n //if( !$this->request->is('post') && !empty($this->request->params['named'])){\n// $this->request->data['Region']['id'] = $this->request->params['named']['region_id'];\n// $this->request->data['Area']['id'] = $this->request->params['named']['area_id'];\n// $this->request->data['House']['id'] = $this->request->params['named']['house_id'];\n// \n// if( isset($this->request->params['named']['house_id']) ){\n// $this->request->data['House']['id'] = $this->request->params['named']['house_id'];\n// }\n// if( isset($this->request->params['named']['representative_id']) ){\n// $this->request->data['Representative']['id'] = $this->request->params['named']['representative_id'];\n// }\n// if( isset($this->request->params['named']['section_id']) ){\n// $this->request->data['Section']['id'] = $this->request->params['named']['section_id'];\n// }\n// if( isset($this->request->params['named']['outlet_id']) ){\n// $this->request->data['Outlet']['id'] = $this->request->params['named']['outlet_id'];\n// }\n// if( isset($this->request->params['named']['from_date']) ){\n// $this->request->data['from_date'] = $this->request->params['named']['from_date'];\n// }\n// if( isset($this->request->params['named']['till_date']) ){\n// $this->request->data['till_date'] = $this->request->params['named']['till_date'];\n// }\n //} \n \n $this->request->data['Region']['id'] = $this->request->query['region_id'];\n $this->request->data['Area']['id'] = $this->request->query['area_id'];\n $this->request->data['House']['id'] = $this->request->query['house_id'];\n \n \n if( isset($this->request->params['named']['representative_id']) ){\n $this->request->data['Representative']['id'] = $this->request->query['representative_id'];\n }\n if( isset($this->request->params['named']['section_id']) ){\n $this->request->data['Section']['id'] = $this->request->query['section_id'];\n }\n if( isset($this->request->params['named']['outlet_id']) ){\n $this->request->data['Outlet']['id'] = $this->request->query['outlet_id'];\n }\n if( isset($this->request->params['named']['from_date']) ){\n $this->request->data['from_date'] = $this->request->query['from_date'];\n }\n if( isset($this->request->params['named']['till_date']) ){\n $this->request->data['till_date'] = $this->request->query['till_date'];\n }\n }", "public static function getRequiredParams();", "public function getRequestParams();", "private function inputs(){\n\t\tswitch($_SERVER['REQUEST_METHOD']){ // Make switch case so we can add additional \n\t\t\tcase \"GET\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"GET\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tcase \"POST\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"POST\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tcase \"PUT\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"PUT\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tcase \"DELETE\":\n\t\t\t\t$this->_request = $this->cleanInputs($_REQUEST); //or $_GET\n\t\t\t\t$this->_method = \"DELETE\";\n\t\t\t\t//$this->logRequest();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->response('Forbidden',403);\n\t\t\t\tbreak;\n\t\t}\n\t}", "protected function populateParams()\n\t{\n\t\tparent::populateParams();\n\t\t$acl = ZefaniabibleHelper::getAcl();\n\t\tif (!isset($this->_data))\n\t\t\treturn;\n\t\t// Convert the parameter fields into objects.\n\t\tforeach ($this->_data as &$item)\n\t\t{\n\t\t\tif ($acl->get('core.edit.state')\n\t\t\t\t|| (bool)$item->publish)\n\t\t\t\t$item->params->set('access-view', true);\n\t\t\tif ($acl->get('core.edit'))\n\t\t\t\t$item->params->set('access-edit', true);\n\t\t\tif ($acl->get('core.delete'))\n\t\t\t\t$item->params->set('access-delete', true);\n\t\t}\n\t}", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "public function get_collection_params()\n {\n }", "private function _setParams()\n\t{\n\t\tforeach ($_GET as $key => $value) {\n\t\t\t$this->_params[$key] = $this->_sanitize($value);\n\t\t}\n\n\t\tforeach ($_POST as $key => $value) {\n\t\t\t$_POST[$key] = $this->_sanitize($value);\n\t\t}\n\n\t\t$nbElements = count($this->_requestVars);\n\t\tif ($nbElements > 3) {\n\t\t\t$i = 2;\n\t\t\twhile ($i < $nbElements and $i + 1 < $nbElements) {\n\t\t\t\tif (ctype_digit($this->_requestVars[$i])) {\n\t\t\t\t\t$i += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->_params[$this->_requestVars[$i]] = $this->_sanitize($this->_requestVars[$i + 1]);\n\t\t\t\t$i += 2;\n\t\t\t}\n\t\t}\n\n\t\tif ($nbElements > 2) {\n\t\t\t$i = 2;\n\t\t\twhile ($i < $nbElements) {\n\t\t\t\t$this->_params[$i - 2] = $this->_sanitize($this->_requestVars[$i]);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "protected function populateParams()\n\t{\n\n\t\tparent::populateParams();\n\t\t//$acl = ZefaniabibleHelper::getAcl();\n\t\t$mdl_acl = new ZefaniabibleHelper;\n\t\t$acl = $mdl_acl->getAcl();\n\t\tif (!isset($this->_data))\n\t\t\treturn;\n\n\t\t// Convert the parameter fields into objects.\n\t\tforeach ($this->_data as &$item)\n\t\t{\n\n\t\t\tif ($acl->get('core.edit.state')\n\t\t\t\t|| (bool)$item->publish)\n\t\t\t\t$item->params->set('access-view', true);\n\n\t\t\tif ($acl->get('core.edit'))\n\t\t\t\t$item->params->set('access-edit', true);\n\n\t\t\tif ($acl->get('core.delete'))\n\t\t\t\t$item->params->set('access-delete', true);\n\n\n\t\t}\n\n\t}", "public static function requireParams() {\n\t\tswitch($_SERVER['REQUEST_METHOD']) {\n\t\t\tcase 'GET': $parameters = $_GET; break;\n\t\t\tcase 'POST': $parameters = $_POST; break;\n\t\t\tcase 'PUT':\n\t\t\tcase 'DELETE': $parameters = static::getInputVars(); break;\n\t\t}\n\n\t\t$params = func_get_args();\n\t\t$class = new \\stdClass;\n\t\tforeach ($params as $param) {\n\t\t\tif (!isset($parameters[$param])) {\n\t\t\t\tif (Application::inDevelopment()) {\n\t\t\t\t\t$passedParams = implode(',', array_keys($parameters));\n\t\t\t\t\tLog::debug(\"Missing {$_SERVER['REQUEST_METHOD']} parameter '{$param}', only got \" . (strlen($passedParams) > 0 ? $passedParams : '[nothing]'));\n\t\t\t\t}\n\t\t\t\tApplication::error(400, 'Missing one of the parameters');\n\t\t\t}\n\n\t\t\t$class->$param = $parameters[$param];\n\t\t}\n\n\t\treturn $class;\n\t}", "public function getParamsRequest($request, $params = [])\n {\n $defaultValues = (object)$params;//Convert to object the params\n $this->settingsController = new SettingsApiController();\n $this->permissionsController = new PermissionsApiController();\n\n //Set default values\n $default = (object)[\n \"page\" => $defaultValues->page ?? false,\n \"take\" => $defaultValues->take ?? false,\n \"filter\" => $defaultValues->filter ?? [],\n 'include' => $defaultValues->include ?? [],\n 'fields' => $defaultValues->fields ?? []\n ];\n\n // set current auth user\n $this->user = Auth::user();\n $setting = $request->input('setting') ? (is_string($request->input('setting')) ? json_decode($request->input('setting')) : (is_array($request->input('setting')) ? json_decode(json_encode($request->input('setting'))) : $request->input('setting'))) : false;\n\n $departments = $this->user ? $this->user->departments()->get() : false;//Department data\n $roles = $this->user ? $this->user->roles()->get() : false;//Role data\n $department = ($departments && $setting && isset($setting->departmentId)) ?\n $departments->where(\"id\", $setting->departmentId)->first() : false;\n $role = ($roles && $setting && isset($setting->roleId)) ? $roles->where(\"id\", $setting->roleId)->first() : false;\n\n //Return params\n $params = (object)[\n \"page\" => is_numeric($request->input('page')) ? $request->input('page') : $default->page,\n \"take\" => is_numeric($request->input('take')) ? $request->input('take') :\n ($request->input('page') ? 12 : $default->take),\n \"filter\" => json_decode($request->input('filter')) ?? (object)$default->filter,\n \"include\" => $request->input('include') ? explode(\",\", $request->input('include')) : $default->include,\n \"fields\" => $request->input('fields') ? explode(\",\", $request->input('fields')) : $default->fields,\n 'department' => $department,\n 'departments' => $departments,\n 'role' => $role,\n 'roles' => $roles,\n 'setting' => $setting,//Role and department selected\n 'settings' => $this->user ? $this->settingsController->getAll([\n \"userId\" => $this->user->id,\n \"roleId\" => $role->id ?? false,\n \"departmentId\" => $department->id ?? false]) : [],\n 'permissions' => $this->user ? $this->permissionsController->getAll([\n \"userId\" => $this->user->id,\n \"roleId\" => $role->id ?? false,\n ]) : [],\n \"user\" => $this->user\n ];\n\n //Set language translation\n if (isset($setting->locale) && !is_null($setting->locale)) {\n \\App::setLocale($setting->locale);\n }\n\n //Set language translation by filter\n if (isset($params->filter->locale) && !is_null($params->filter->locale)) {\n \\App::setLocale($params->filter->locale);\n }\n\n //Set locale to filter\n $params->filter->locale = \\App::getLocale();\n return $params;//Response\n }", "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 }", "private function setParams()\n {\n $this->params['MERCHANTNUMBER'] = $this->merchantNumber;\n $this->params['OPERATION'] = 'CREATE_ORDER';\n $this->params['ORDERNUMBER'] = $this->operation->getOrderNumber();\n $this->params['AMOUNT'] = $this->operation->getAmount();\n $this->params['CURRENCY'] = $this->operation->getCurrency();\n $this->params['DEPOSITFLAG'] = $this->depositFlag;\n if($this->operation->getMerOrderNum())\n $this->params['MERORDERNUM'] = $this->operation->getMerOrderNum();\n $this->params['URL'] = $this->url;\n\n if($this->operation->getDescription())\n $this->params['DESCRIPTION'] = $this->operation->getDescription();\n if($this->operation->getMd())\n $this->params['MD'] = $this->operation->getMd();\n\n }", "protected function setDefaultParams()\n {\n foreach ($this->allowedParams as $param => $options) {\n $this->params[$param] = null;\n if (! empty($options['arguments'])) {\n $this->params[$param] = array();\n foreach ($options['arguments'] as $arg => $opts) {\n if (! empty($opts['default'])) {\n $cast = ! empty($opts['cast']) ? $opts['cast'] : 'string';\n $this->params[$param][$arg] = $this->castValue($cast, $opts['default']);\n }\n }\n } elseif (! empty($options['default'])) {\n $cast = ! empty($options['cast']) ? $options['cast'] : 'string';\n $this->params[$param] = $this->castValue($cast, $options['default']);\n }\n }\n }", "public function __construct( ) {\n foreach( $_REQUEST as $property=>$value){\n $this->$property = $value;\n }\n \n }", "public function getParamsForRequest() {\n $params['api_key'] = $this->api_key;\n if ($this->token) {\n $params['auth_token'] = $this->token;\n }\n return $params;\n }", "protected function parse_body_params()\n {\n }", "private function build_params() {\n\n\t\t\t$this->per_page = $this->request->get_param( 'per_page' ) ? $this->request->get_param( 'per_page' ) : (int) get_option( 'posts_per_page' );\n\t\t\t$this->page = $this->request->get_param( 'page' ) ? $this->request->get_param( 'page' ) : 1;\n\t\t}", "function getParams()\n {\n global $id;\n global $mode;\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($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 }", "public function getActionParams()\n\t{\n\t\t$args = parent::getActionParams();\n\n\t\t// Add in the $_POST array, giving it precedence\n\t\treturn array_merge($args, $_POST);\n\t}", "public function getOtherAuthorizationRequestParams() {\n }", "private function _getRequestParams()\n {\n return array_merge(\n $this->CI->input->post(),\n $this->CI->input->get()\n );\n }", "public function get_body_params()\n {\n }", "public function initializeControllerArgumentsBaseValidators() {}", "public function validateRequest(){\n global $default;\n\n // Validate controller\n if (!($this->controller)) {\n // No controller set, Use defaults\n $this->controller = $default['controller'];\n $this->action = $default['action'];\n $this->parameter1 = $default['parameter1']; \n $this->parameter2 = $default['parameter2'];\n $this->parameter3 = $default['parameter3'];\n } \n\n // Check controller exists\n \n // Validate action\n if (!isset($this->action)) {\n // No action set, try index\n $this->action = 'index';\n } \n\n // Create controller to dispatch our request, eg new ItemsController\n $model = ucwords(rtrim($this->controller, 's'));\n $controller = ucwords($this->controller) . 'Controller';\n $dispatch = new $controller($model, $this->controller, $this->action);\n\n // Check $action method exists\n if (!method_exists($dispatch, $this->action)) {\n // Show error page\n } \n }", "private function _setParams ()\n {\n $endpoint = $this->_endpoint->getData();\n if (count($endpoint) > 0) {\n \n $method = $this->_endpoint->getUrl();\n $methodname = 'setParameter' . ucfirst($method['method']);\n \n $this->_httpclient->{$methodname}('access_token', \n $this->_accesstoken);\n $this->_httpclient->{$methodname}('api_secret', $this->_apisecret);\n \n foreach ($endpoint as $param => $value) {\n $this->_httpclient->{$methodname}($param, $value);\n }\n }\n }", "public function get_default_params()\n {\n }", "private function setQuantumVars() {\n \n if (!empty($_REQUEST['controller'])) {\n \n $this->controller = $_REQUEST['controller'];\n \n };\n \n if (!empty($_REQUEST['task'])) {\n \n $this->task = $_REQUEST['task'];\n \n }\n \n if (!empty($_REQUEST['object_id'])) {\n \n $this->object_id = $_REQUEST['object_id'];\n \n }\n \n \n }", "protected function getHandlingSearchParams()\n {\n return array(\n static::SEARCH_ORDER,\n static::SEARCH_PUBLIC_ID,\n static::SEARCH_DATE,\n static::SEARCH_STATUS,\n static::SEARCH_VALUE,\n static::SEARCH_ORDERBY,\n static::SEARCH_LIMIT,\n );\n }", "public function getActionRequiredParameters()\n {\n return array(\n 'title' => t('Title'),\n );\n }", "abstract public function parseRequestParameters();", "private function setPostParameters(): void\n {\n $params = filter_input_array(INPUT_POST);\n\n if (!isset($params)) {\n $this->body = (object)array();\n return;\n }\n\n $this->body = $params;\n }", "public function parameters()\n {\n return [\n 'dir' => $this->input('dir'),\n 'hash' => $this->input('hash', ''),\n 'data' => $this->input('data'),\n 'name' => $this->input('name'),\n 'type' => $this->input('type'),\n 'offset' => $this->input('offset'),\n 'eof' => $this->input('eof'),\n ];\n }", "public function parameters()\n\t{\n\t\treturn [\n\t\t\t'parent_id' => $this->input('parent_id'),\n\t\t\t'title' => $this->input('title'),\n\t\t\t'icon' => $this->input('icon'),\n\t\t\t'description' => $this->input('description'),\n\t\t\t'is_active' => $this->has('is_active')\n\t\t];\n\t}", "protected function defaultParams()\r\n\t{\r\n\t\treturn array();\r\n\t}", "public function getApiParameters();", "private function accessory_params() {\n return [\n 'name' => $this->params['name'],\n 'release_date' => date('Y-m-d', strtotime($this->params['release_date'])),\n 'description' => $this->params['description'],\n 'producer' => $this->params['producer'],\n 'console_id' => $this->params['console_id']\n ];\n }", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "public function queryParams();", "public function get_query_params()\n {\n }", "private function initRequestValidator() {\n\t\t\t// language\n\t\t\t$this->rq->addAllowed('GET', 'lang', '', '/^[a-z]{1,7}$/', true);\n\t\t\t\n\t\t\t// project\n\t\t\t$this->rq->addAllowed('GET', 'project', '', '/^[a-z]{1,15}$/', true);\n\t\t\t\n\t\t\t// page\n\t\t\t$this->rq->addAllowed('GET', 'page', '', '', true, false);\n\t\t\t\n\t\t\t$this->par = $this->rq->getParams();\n\t\t}", "function getParams() {\n global $id;\n global $mode;\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($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}", "function getParams() {\n global $id;\n global $mode;\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($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}", "function getParams() {\n global $id;\n global $mode;\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($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}", "private function _getUrlParamsForFormAction() {\n\n $param = $this->params()->fromRoute('param');\n $param2 = $this->params()->fromRoute('param2');\n $value = $this->params()->fromRoute('value', 0);\n $value2 = $this->params()->fromRoute('value2', 0);\n\n $params = array(\n 'productId' => 0,\n 'categoryId' => 0,\n 'parentId' => 0\n );\n\n// $productId = $categoryId = null;\n// if ($param == \"product\") {\n// $productId = $value;\n// $categoryId = $value2;\n// } else if ($param == \"category\") {\n// $productId = $value2;\n// $categoryId = $value;\n// }\n\n switch ($param) {\n case 'product':\n $params['productId'] = $value;\n $params['categoryId'] = $value2;\n break;\n case 'category':\n $params['productId'] = $value2;\n $params['categoryId'] = $value;\n break;\n case 'parent':\n $params['parentId'] = $value;\n break;\n default:\n break;\n }\n\n return $params;\n }", "public function get_url_params()\n {\n }", "public function parameters()\n {\n return array_merge($this->get, $this->post);\n }", "protected function filterParams()\n {\n }", "public function getActionParams()\n\t{\n static $params = null;\n if($params === null)\n {\n if(isset($_SERVER['CONTENT_TYPE']) && strpos($_SERVER['CONTENT_TYPE'], 'json'))\n $params = (array)CJSON::decode(Yii::app()->request->getRawBody());\n else\n {\n if($_SERVER['REQUEST_METHOD'] == 'GET')\n $params = $_GET;\n elseif($_SERVER['REQUEST_METHOD'] == 'POST')\n $params = $_POST;\n else\n $params = Yii::app()->request->getRestParams();\n }\n\n if(isset($_GET['id']))\n $params = array_merge(array('id' => $_GET['id']), $params);\n $_REQUEST = $params;\n }\n return $params;\n\t}", "protected function requiredParamsSets() {\n\t\treturn array(\n\t\t\t'login' => array('timestamp', 'appId', 'hash'),\n\t\t\t'request' => array('timestamp', 'appId', 'hash', 'accessToken', 'cmd'),\n\t\t);\n\t}", "protected function initializeActionMethodArguments() {}", "function _checkParams($controller){\n \tif (empty($controller->params['named'])){\n \t\t$filter = array();\n \t}\n \t\n App::import('Sanitize');\n $sanit = new Sanitize();\n $controller->params['named'] = $sanit->clean($controller->params['named']);\n\n \n \tforeach($controller->params['named'] as $field => $value){\n \t\t\n \t\tif(!in_array($field, $this->paginatorParams)){\n\t\t\t\t$fields = explode('.',$field);\n\t\t\t\tif (sizeof($fields) == 1)\n\t \t\t\t$filter[$controller->modelClass][$field] = $value;\n\t \t\telse\n\t \t\t\t$filter[$fields[0]][$fields[1]] = $value; \t\t\t\n \t\t}\n \t}\n \t\t\n \tif (!empty($filter))\n \t\treturn $filter;\n \telse\n \t\treturn array(); \t\n }" ]
[ "0.6545296", "0.64206296", "0.63968843", "0.6392744", "0.6356502", "0.6315635", "0.6213363", "0.6206763", "0.6098542", "0.6069567", "0.60037315", "0.59859395", "0.59783286", "0.5951181", "0.59335226", "0.59017235", "0.59003794", "0.5893463", "0.5893463", "0.5891613", "0.58823276", "0.58823276", "0.5876725", "0.58639073", "0.58291787", "0.58164304", "0.5813309", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57883537", "0.57878774", "0.5769753", "0.5675557", "0.5674013", "0.5673534", "0.56646913", "0.5655013", "0.5650422", "0.5648754", "0.56443983", "0.56410736", "0.5625849", "0.5620553", "0.56144553", "0.5577842", "0.55752236", "0.5566121", "0.5553602", "0.5546914", "0.554612", "0.55451155", "0.5532498", "0.55192083", "0.5473332", "0.5468828", "0.545623", "0.5435653", "0.5433613", "0.5429665", "0.5427307", "0.54192525", "0.54192525", "0.54192525", "0.54192525", "0.54042137", "0.5401954", "0.53986275", "0.53983474", "0.53983474", "0.53983474", "0.53975934", "0.5394733", "0.5392314", "0.5391492", "0.5385043", "0.538006", "0.5379928", "0.537964" ]
0.5563825
69
/ static convenience functions, for easier use as: $var = Settings::read('icode'); $int = Settings::readi('icode'); $date = Settings::readd('icode'); Settings::write('icode', $var);
public static function read($icode){ return fw::model('Settings')->getValue($icode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function define_my_settings();", "function register_setting($key, $value)\n{\n csSettings::set($key, $value);\n}", "function save_settings( $setting, $value ){\n //global $disp_body;\n\n //ensure paths use forward slashes\n if( $setting === 'CIFS_SHARE' || $setting === 'CIFS_MOUNT' ){\n $value = str_replace('\\\\', '/', $value);\n }\n\n //only store the password if it is not empty\n $setting_part = substr( $setting, -9);\n if( $setting_part === '_PASSWORD' && $value == '' ){\n //write old password to $value to keep the old one\n $value = $_SESSION['settings.conf'][$setting];\n }\n\n //escape slashes for 'sed' in pia-settings\n $value = str_replace(array('\\\\','/'), array('\\\\\\\\','\\\\/'), $value);\n\n $k = escapeshellarg($setting);\n $v = escapeshellarg($value);\n exec(\"/usr/local/pia/pia-settings $k $v\");\n //$disp_body .= \"$k is now $v<br>\\n\"; //dev stuff\n\n //clear to force a reload\n unset($_SESSION['settings.conf']);\n }", "private function _settings()\n\t{\n\t\tif(Utils::config('timestamps') or Utils::config('t'))\n\t\t\t$this->_timestamps = \"\\tpublic static \\$timestamps = true;\\n\\n\";\n\t}", "function saveVariables( $aForm, $sFile, $sVariable = 'config' ){\n if( is_file( $sFile ) && strstr( $sFile, '.php' ) ){\n $aFile = file( $sFile );\n $iCount = count( $aFile );\n $rFile = fopen( $sFile, 'w' );\n\n if( isset( $aForm['page_search'] ) && isset( $aForm['start_page'] ) && $aForm['start_page'] == $aForm['page_search'] ){\n $aForm['page_search'] = '';\n }\n\n for( $i = 0; $i < $iCount; $i++ ){\n foreach( $aForm as $sKey => $sValue ){\n if( preg_match( '/'.$sVariable.\"\\['\".$sKey.\"'\\]\".' = /', $aFile[$i] ) && strstr( $aFile[$i], '=' ) ){\n $mEndOfLine = strstr( $aFile[$i], '; //' );\n if( empty( $mEndOfLine ) ){\n $mEndOfLine = ';';\n }\n $sValue = changeSpecialChars( trim( str_replace( '\"', '&quot;', $sValue ) ) );\n if( preg_match( '/^(true|false|null)$/', $sValue ) ){\n $aFile[$i] = \"\\$\".$sVariable.\"['\".$sKey.\"'] = \".$sValue.$mEndOfLine;\n }\n else\n $aFile[$i] = \"\\$\".$sVariable.\"['\".$sKey.\"'] = \\\"\".$sValue.\"\\\"\".$mEndOfLine;\n }\n } // end foreach\n\n fwrite( $rFile, rtrim( $aFile[$i] ).( $iCount == ( $i + 1 ) ? null : \"\\r\\n\" ) );\n\n } // end for\n fclose( $rFile );\n }\n}", "function rst_settings()\n{\n require_once('inc/inc.rst-settings.php');\n}", "function get_settings($in)\n{\n if (is_file($in))\n return include $in;\n return false;\n}", "public function getBasicSettingsValues()\n\t{\n\t\t$values = array();\n\n\t\t$values[\"webspace_dir\"] = getcwd().\"/data\";\n\t\t$values[\"data_dir\"] = $this->setup->ini->readVariable(\"clients\",\"datadir\");\n\t\t$values[\"convert_path\"] = $this->setup->ini->readVariable(\"tools\",\"convert\");\n\t\t$values[\"zip_path\"] = $this->setup->ini->readVariable(\"tools\",\"zip\");\n\t\t$values[\"unzip_path\"] = $this->setup->ini->readVariable(\"tools\",\"unzip\");\n\t\t$values[\"ghostscript_path\"] = $this->setup->ini->readVariable(\"tools\",\"ghostscript\");\n\t\t$values[\"java_path\"] = $this->setup->ini->readVariable(\"tools\",\"java\");\n\t\t$values[\"htmldoc_path\"] = $this->setup->ini->readVariable(\"tools\",\"htmldoc\");\n\t\t//$values[\"mkisofs_path\"] = $this->setup->ini->readVariable(\"tools\",\"mkisofs\");\n\t\t$values[\"ffmpeg_path\"] = $this->setup->ini->readVariable(\"tools\",\"ffmpeg\");\n\t\t$values[\"latex_url\"] = $this->setup->ini->readVariable(\"tools\",\"latex\");\n\t\t$values[\"fop_path\"] = $this->setup->ini->readVariable(\"tools\",\"fop\");\n\t\t$values[\"vscanner_type\"] = $this->setup->ini->readVariable(\"tools\", \"vscantype\");\n\t\t$values[\"scan_command\"] = $this->setup->ini->readVariable(\"tools\", \"scancommand\");\n\t\t$values[\"clean_command\"] = $this->setup->ini->readVariable(\"tools\", \"cleancommand\");\n\t\t$values[\"log_path\"] = $this->setup->ini->readVariable(\"log\",\"path\").\"/\".\n\t\t\t$this->setup->ini->readVariable(\"log\",\"file\");\n\t\t$values[\"chk_log_status\"] = !$this->setup->ini->readVariable(\"log\",\"enabled\");\n\t\t$values[\"time_zone\"] = $this->setup->ini->readVariable(\"server\", \"timezone\");\n\t\t\n\t\t// https settings\n\t\t$values[\"auto_https_detect_enabled\"] = $this->setup->ini->readVariable(\"https\", \"auto_https_detect_enabled\");\n\t\t$values[\"auto_https_detect_header_name\"] = $this->setup->ini->readVariable(\"https\", \"auto_https_detect_header_name\");\n\t\t$values[\"auto_https_detect_header_value\"] = $this->setup->ini->readVariable(\"https\", \"auto_https_detect_header_value\");\n\n\t\t$this->form->setValuesByArray($values);\n\t}", "abstract protected function getSetting() ;", "function write_setting($data) {\n return '';\n }", "function iniwrite() {\n\t global $setini;\n\t\n\t $ini = $this->gtk_path . \"webos.ini\"; \t//echo $ini; \n\t \n if ($fp = fopen ($ini , \"wb\")) {\n\t\t\n\t\t\t\t $tow = serialize($setini) . \"<@>\";\t \n\t\t\t\t\t \n fwrite ($fp, $tow);\n fclose ($fp);\n\t\t\t\t \n\t\t $this->set_console_message(\"Writing ini settings successfully.\");\t\t\t\t \n\t\t\t\t return (true);\n\t }\n\t else {\n\t\t $this->set_console_message(\"Ini setting NOT saved !!!\");\t\t\n\t\t\t\t return (false);\n\t\t}\t\t\n\t}", "abstract public function settings(): array;", "function update_setting($name, $value)\n {\n }", "function wp_is_ini_value_changeable($setting)\n {\n }", "function save_settings() {\n\t\t$this->update_option( static::SETTINGS_KEY, $this->settings );\n\t}", "function saveVariables( $aForm, $sFile, $sVariable = 'config' ){\n if( is_file( $sFile ) && strstr( $sFile, '.php' ) ){\n $aFile = file( $sFile );\n $iCount = count( $aFile );\n $rFile = fopen( $sFile, 'w' );\n\n for( $i = 0; $i < $iCount; $i++ ){\n foreach( $aForm as $sKey => $sValue ){\n if( preg_match( '/'.$sVariable.\"\\['\".$sKey.\"'\\]\".' /', $aFile[$i] ) && strstr( $aFile[$i], '=' ) ){\n $sValue = str_replace( '\\n', '|n|', changeSpecialChars( $sValue ) );\n\n $sValue = stripslashes( $sKey == 'logo' ? str_replace( '\"', '\\'', $sValue ) : str_replace( '\"', '&quot;', $sValue ) );\n if( preg_match( '/^(true|false|null)$/', $sValue ) == true ){\n $aFile[$i] = \"\\$\".$sVariable.\"['\".$sKey.\"'] = \".$sValue.\";\";\n }\n else\n $aFile[$i] = \"\\$\".$sVariable.\"['\".$sKey.\"'] = \\\"\".str_replace( '|n|', '\\n', $sValue ).\"\\\";\";\n }\n } // end foreach\n\n fwrite( $rFile, rtrim( $aFile[$i] ).( $iCount == ( $i + 1 ) ? null : \"\\r\\n\" ) );\n\n } // end for\n fclose( $rFile );\n }\n}", "function Settings_API($load_settings=true)\n\t{\n\t\t$this->ConfigFile = SENDSTUDIO_INCLUDES_DIRECTORY . '/config.php';\n\t\t$this->WhiteLabelCache = IEM_InterspireStash::getInstance();\n\n\t\tif ($load_settings) {\n\t\t\t$db = $this->GetDb();\n\t\t\t$this->LoadSettings();\n\t\t}\n\t}", "function saveSettings() {\n\tglobal $settings;\n\n\tfile_put_contents(\"settings.json\",json_encode($settings));\n}", "private function load_settings() {\n\t\t\n\t}", "function settings_rewrite( $SETTINGS, $DB, $PLUGINS, $constants = array( ) ){\n\n require_once HOME . '_inc/function/defaults.php';\n\n $constants = defaults_constants( $constants );\n\n $Plugins = Plugins::getInstance( );\n\n\t/**\n\t * calculate plugin dependencies\n\t */\n\t$plugins = array( );\n\tforeach( $PLUGINS as $p_name => $version ){\n\n\t\t$plugin = $Plugins->plugins( $p_name );\n\t\tif( !$plugin )\n\t\t\trequire HOME . '_plugins/' . $p_name . '/plugin.php';\t\n\n\t\tarray_push(\n\t\t\t$plugins,\n\t\t\tarray(\n\t\t\t\t'sys_name' => $p_name,\n\t\t\t\t'name' => $plugin[ 'name' ],\n\t\t\t\t'version' => $plugin[ 'version' ],\n\t\t\t\t'dependencies' => @$plugin[ 'dependencies' ]\n\t\t\t)\n\t\t);\n\t}\n $PLUGINS = resolve_dependencies( $plugins, $PLUGINS );\n\n\t/**\n * plugins - filter the settings, constants and plugins arrays \n */\n list( $SETTINGS, $constants, $PLUGINS ) = $Plugins->filter( 'general', 'filter_settings', array( $SETTINGS, $constants, $PLUGINS ) );\n\n $filecontents = defaults_settings_content( $SETTINGS, $DB, $PLUGINS, $constants );\n\n\t/**\n\t * write file or throw error\n\t */\n\tfile_put_contents( HOME . '.settings.php', $filecontents )\n\t\tor error(\n\t\t\t'You must grant <i>0777</i> write access to the <i>' . HOME . \n\t\t\t'</i> directory for <a href=\"http://furasta.org\">Furasta.Org</a> to function correctly.' .\n\t\t\t'Please do so then reload this page to save the settings.'\n\t\t\t,'Runtime Error'\n\t\t);\n\n\treturn htaccess_rewrite( );\n\n}", "abstract protected function loadSettings();", "function get_setting($name)\n {\n }", "public function saveSettings(){\n\n $vars = $this->getAllSubmittedVariablesByName();\n\n $vars['email'] = $this->email;\n $vars['firstname'] = $this->firstname;\n $vars['lastname'] = $this->lastname;\n $vars['real_name'] = $this->firstname .' ' .$this->lastname;\n $vars['phone'] = $this->phone;\n\n $vars['name'] = $this->firstname;\n $vars['surname'] = $this->lastname;\n $vars['screen_name'] = $this->firstname;\n\n\n $vars['about_my_artwork'] = $this->getSubmittedVariableByName('about_my_artwork');\n $vars['what_i_like_to_do'] = $this->getSubmittedVariableByName('what_i_like_to_do');\n $vars['experience'] = $this->getSubmittedVariableByName('experience');\n $vars['instructions'] = $this->getSubmittedVariableByName('instructions');\n $vars['aftercare'] = $this->getSubmittedVariableByName('aftercare');\n $vars['apprenticeship'] = $this->getSubmittedVariableByName('apprenticeship');\n\n $this->saveNamedVariables($vars);\n }", "abstract public function get_settings();", "function ini_safe_set($key, $value)\n{\n // some hosts disable ini_set for security \n // lets check so see if its disabled\n if(($disable_functions = ini_get('disable_functions')) !== false) {\n // if it is disabled then return as there is nothing we can do\n if(strpos($disable_functions, 'ini_set') !== false) {\n return false;\n }\n }\n\n // set it and return true if the result is not equal to false\n return (ini_set($key, $value) != false);\n}", "public function save_var_settings($settings) {\n\t\treturn $this->save_settings($settings);\n\t}", "function ini_set(string $option, string $value): string\n{\n error_clear_last();\n $safeResult = \\ini_set($option, $value);\n if ($safeResult === false) {\n throw InfoException::createFromPhpError();\n }\n return $safeResult;\n}", "function get_settings($option)\n {\n }", "abstract public function getSettings();", "function setVar($varname,$value)\n {\n $temp_path = 'tmp/'; // for Unix server\n $strvalue = serialize($value);\n // generate a storeable representation of\n // the value, with it's type and structure\n $file_pointer = fopen($temp_path . $varname, 'w');\n if(!(fwrite($file_pointer,$strvalue)))\n {\n return false; //success\n }\n else\n {\n return true; //not able to write file\n }\n }", "function define_settings_cookie()\n\t{\n\t\t\n\t\t$settings = json_decode($_COOKIE['doctor'], TRUE);\n\t\t\n\t\t//Did the user change the theme?\n\t\tif ( isset($_POST['theme']) && ($settings['theme'] != $_POST['theme']) ) $settings = define_theme_colors($_POST['theme'], $settings);\n\n\t\t//Were the .htpasswd credentials changed?\n\t\tif (isset($_POST['enableHtaccess']))\n\t\t{\n\t\t\tif ( update_htacess_protection($_POST['htaccess']) ) \n\t\t\t{\n\t\t\t\tif ($_POST['enableHtaccess'] == 'true') $settings['htpasswd'] = TRUE;\n\t\t\t\telse $settings['htpasswd'] = FALSE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$settings = json_encode($settings);\n\t\tsetcookie( 'doctor', $settings, time()+(3600*24)*30, '/' );\n\t}", "function dl_cadi_settings(){\r\n\r\n}", "public static function Save()\r\n {\r\n return update_option(self::OPT_SETTINGS, self::$Data);\r\n }", "function ini(string $name, mixed $default = null, bool $bool = false): mixed\n{\n return System::iniGet($name, $default, $bool);\n}", "function ci_e_setting($setting)\n{\n\techo ci_setting($setting);\n}", "function set_user_setting($name, $value)\n {\n }", "function sanitised() {\n\t$sanitised = true;\n\n\tif (!file_exists(dirname(dirname(__FILE__)) . \"/settings.php\")) {\n\t\t// See if we are being asked to save the file\n\t\t$save_vars = get_input('db_install_vars');\n\t\t$result = \"\";\n\t\tif ($save_vars) {\n\t\t\t$rtn = db_check_settings($save_vars['CONFIG_DBUSER'],\n\t\t\t\t\t\t\t\t\t$save_vars['CONFIG_DBPASS'],\n\t\t\t\t\t\t\t\t\t$save_vars['CONFIG_DBNAME'],\n\t\t\t\t\t\t\t\t\t$save_vars['CONFIG_DBHOST'] );\n\t\t\tif ($rtn == FALSE) {\n\t\t\t\tregister_error(elgg_view(\"messages/sanitisation/dbsettings_error\"));\n\t\t\t\tregister_error(elgg_view(\"messages/sanitisation/settings\",\n\t\t\t\t\t\t\t\tarray(\t'settings.php' => $result,\n\t\t\t\t\t\t\t\t\t\t'sticky' => $save_vars)));\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\t$result = create_settings($save_vars, dirname(dirname(__FILE__)) . \"/settings.example.php\");\n\n\n\t\t\tif (file_put_contents(dirname(dirname(__FILE__)) . \"/settings.php\", $result)) {\n\t\t\t\t// blank result to stop it being displayed in textarea\n\t\t\t\t$result = \"\";\n\t\t\t}\n\t\t}\n\n\t\t// Recheck to see if the file is still missing\n\t\tif (!file_exists(dirname(dirname(__FILE__)) . \"/settings.php\")) {\n\t\t\tregister_error(elgg_view(\"messages/sanitisation/settings\", array('settings.php' => $result)));\n\t\t\t$sanitised = false;\n\t\t}\n\t}\n\n\tif (!file_exists(dirname(dirname(dirname(__FILE__))) . \"/.htaccess\")) {\n\t\tif (!@copy(dirname(dirname(dirname(__FILE__))) . \"/htaccess_dist\", dirname(dirname(dirname(__FILE__))) . \"/.htaccess\")) {\n\t\t\tregister_error(elgg_view(\"messages/sanitisation/htaccess\", array('.htaccess' => file_get_contents(dirname(dirname(dirname(__FILE__))) . \"/htaccess_dist\"))));\n\t\t\t$sanitised = false;\n\t\t}\n\t}\n\n\treturn $sanitised;\n}", "public function settings($options = 'get'){\n\t\t// ensure settings are given\n\t\tif(is_array($options) && count($options) > 0){\n\t\t\t// loop through all settings given\n\t\t\tforeach ($options as $setting => $value) {\n\t\t\t\t// check for existence of desired variable\n\t\t\t\tif(property_exists('SiteCrawler', $setting)){\n\t\t\t\t\t// switch through all variables for validation\n\t\t\t\t\tswitch ($setting) {\n\t\t\t\t\t\t// check if desired value is a string\n\t\t\t\t\t\tcase 'url':\n\t\t\t\t\t\t\tif(gettype($value) === 'string'){\n\t\t\t\t\t\t\t\t// set variable, return true\n\t\t\t\t\t\t\t\t$this->{$value} = $value;\n\t\t\t\t\t\t\t\t$return[$setting] = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// return errors \n\t\t\t\t\t\t\t\t$return[$setting] = array('value'=>$value, 'error'=>'Given value was type '.gettype($value).', <em>string</em> required.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// check if value is populated array\n\t\t\t\t\t\tcase 'file_types':\n\t\t\t\t\t\t\tif(gettype($value) === 'array' && count($value) > 0){\n\t\t\t\t\t\t\t\t// loop through array\n\t\t\t\t\t\t\t\tforeach ($value as $type) {\n\t\t\t\t\t\t\t\t\t// check if value is a string\n\t\t\t\t\t\t\t\t\tif(gettype($type) === 'string'){\n\t\t\t\t\t\t\t\t\t\t// set variable, return true\n\t\t\t\t\t\t\t\t\t\t$this->{$setting}[] = $type;\n\t\t\t\t\t\t\t\t\t\t$return[$setting][$type] = true;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// return errors if not string\n\t\t\t\t\t\t\t\t\t\t$return[$setting][$type] = array('value'=>$type, 'error'=>'Given value was type '.gettype($type).', <em>string</em> required.');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// remove duplicates from array\n\t\t\t\t\t\t\t\t$this->{$setting} = array_unique($this->$setting);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// return errors if not array\n\t\t\t\t\t\t\t\t$return[$setting] = array('value'=>$value, 'error'=>'Given value was type '.gettype($value).', <em>array</em> required.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// check if value is populated array\n\t\t\t\t\t\tcase 'ignore_dirs':\n\t\t\t\t\t\t\tif (gettype($value) === 'array' && count($value) > 0) {\n\t\t\t\t\t\t\t\t// loop through array\n\t\t\t\t\t\t\t\tforeach ($value as $type) {\n\t\t\t\t\t\t\t\t\t// check if value is a string\n\t\t\t\t\t\t\t\t\tif(gettype($type) === 'string'){\n\t\t\t\t\t\t\t\t\t\t// set variable, return true\n\t\t\t\t\t\t\t\t\t\t$this->{$setting}[] = $type;\n\t\t\t\t\t\t\t\t\t\t$return[$setting][$type] = true;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// return errors if not string\n\t\t\t\t\t\t\t\t\t\t$return[$setting][$type] = array('value'=>$type, 'error'=>'Given value was type '.gettype($type).', <em>string</em> required.');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// remove duplicates from array\n\t\t\t\t\t\t\t\t$this->{$setting} = array_unique($this->$setting);\n\t\t\t\t\t\t\t// check if value is null\n\t\t\t\t\t\t\t} elseif(is_null($value)) {\n\t\t\t\t\t\t\t\t// set variable, return true\n\t\t\t\t\t\t\t\t$this->{$setting} = null;\n\t\t\t\t\t\t\t\t$return[$setting] = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// return errors if not array or null\n\t\t\t\t\t\t\t\t$return[$setting] = array('setting' => $setting, 'value' => $value, 'error' => 'Given $value was type '.gettype($value).', <em>array</em> or <em>null</em> required');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$return[$setting] = array('setting'=>$setting, 'value'=>$value, 'error'=>'Given setting does not exist or cannot be altered');\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$return[$setting] = array('setting'=>$setting, 'value'=>$value, 'error'=>'Given setting does not exist or cannot be altered');\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// if $options is not an array, switch it to decide what to do\n\t\t\tswitch ($options) {\n\t\t\t\t// if $options is 'get', print all variables but $pages (usually empty), $visited and $links (could be massive), and $doc (DOMDocument object)\n\t\t\t\tcase 'get':\n\t\t\t\t\t// initiate a ReflectionClass object, gather properties\n\t\t\t\t\t$reflect = new ReflectionClass($this);\n\t\t\t\t\t$properties = $reflect->getProperties();\n\t\t\t\t\t// loop through properties, add to array\n\t\t\t\t\tforeach ($properties as $prop) {\n\t\t\t\t\t\t$name = $prop->getName();\n\t\t\t\t\t\tif($name !== 'pages' && $name !== 'links' && $name !== 'visited' && $name !== 'doc' && $name !== 'robot'){\n\t\t\t\t\t\t\t$return[$name] = $this->{$name};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($this->robot){\n\t\t\t\t\t\t\t$return['robot'] = $this->robot->settings();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "function _savesettings()\r\n {\r\n\t\t$settings = JRequest::getVar('settings');\r\n\r\n\t\tjimport('joomla.registry.registry');\r\n\t\t$reg = new JRegistry();\r\n\t\t$reg->loadArray($settings);\r\n\t\t\t\t\r\n\t\tif(JFusionConnect::isJoomlaVersion('1.6')) {\r\n\t\t\t$component =& JTable::getInstance('extension');\r\n\t\t\t$componentid = $component->find(array('type' => 'component','element' => 'com_jfusionconnect'));\r\n\t\t\t$component->load($componentid);\r\n\t\t\t\r\n\t\t\t$plugin =& JTable::getInstance('extension');\r\n\t\t\t$pluginid = $plugin->find(array('type' => 'plugin','element' => 'jfusionconnect'));\r\n\t\t\t$plugin->load($pluginid);\r\n\t\t\t$key='enabled';\r\n\t\t} else {\r\n\t\t\t$component =& JTable::getInstance('component');\r\n\t\t\t$component->loadByOption('com_jfusionconnect');\r\n\t\t\t\r\n\t\t\t$plugin =& JTable::getInstance('plugin');\r\n\t\t\t$plugin->_tbl_key = 'element';\r\n\t\t\t$plugin->load('jfusionconnect');\r\n\t\t\t$key='published';\r\n\t\t}\r\n\t\t$component->params = $reg->toString();\r\n\t\t$component->store();\r\n \tif ($settings['enabled']) {\r\n\t\t\t$plugin->$key = 1;\r\n\t\t} else {\r\n\t\t\t$plugin->$key = 0;\r\n\t\t}\r\n\t\t$plugin->store();\r\n }", "public static function storeSettings($settings)\n\t{\n\t\t$registry = Registry::singleton();\n\t\t\n\t\tforeach ($settings as $key => $value) {\n\t\t\t$registry->_settings [ $key ] = $value;\n\t\t}\n\t}", "function Eevent_helper($settings='')\n\t{\n \t$this->settings = $this->get_site_settings($settings);\n\t}", "private static function doSaveConfigFile() {\n\t\tglobal $conf;\n\t\twgLang::addModuleDefaultFile('configuration');\n\t\t$file = wgPaths::getAdminPath().'config/config.php';\n\t\twgIo::backup($file);\n\t\t$data = NULL;\n\t\t$var = &$_SESSION['data'];\n\t\t$var = array();\n\t\t$fnc = &$_SESSION['func'];\n\t\t$fnc = array();\n\t\t$a = wgPost::getValue('conf');\n\t\t$b['db'] = $conf['db'];\n\t\t$c = array_merge($b, $a);\n\t\t$i = wgPost::getValue('info');\n\t\t$longestlen = 0;\n\t\t$longestfnc = 0;\n\t\tforeach ($c as $gid=>$g) {\n\t\t\tforeach ($g as $k=>$v) {\n\t\t\t\t$var[$gid.$k] = $v;\n\t\t\t\t$fnc[$gid.$k] = \"\\$conf['$gid']['$k']\";\n\t\t\t\tif ($longestlen < strlen($v)) $longestlen = strlen($v);\n\t\t\t\tif ($longestfnc < strlen($fnc[$gid.$k])) $longestfnc = strlen($fnc[$gid.$k]);\n\t\t\t}\n\t\t}\n\t\t$longestlen += 6;\n\t\t$longestfnc += 3;\n\t\tforeach ($c as $gid=>$g) {\n\t\t\t$data .= \"\\r\\n\\r\\n// \".wgLang::get('cnf'.$gid).\"\\r\\n\";\n\t\t\tforeach ($g as $k=>$v) {\n\t\t\t\tif (is_numeric($v)) $data .= self::setFunc($gid.$k, $longestfnc).' = '.self::setInt($gid.$k, $i[$gid][$k], $longestlen).'\n'; \n\t\t\t\telse $data .= self::setFunc($gid.$k, $longestfnc).' = '.self::setString($gid.$k, $i[$gid][$k], $longestlen).'\n';\n\t\t\t}\n\t\t}\n\t\t//return true;\n\t\t$data = '<?php\n/**\n * WebGuru3 configuration file\n *\n * @package WebGuru3\n * @author Ondrej Rafaj\n * @author WebGuruCMS3 Configuration module\n * @version Generated automaticaly\n */\n\n'.$data.'\n?>';\n\t\treturn wgIo::writeFile($file, $data);\n\t}", "function notification_user_settings_save() {\n\tglobal $CONFIG;\n\t//@todo Wha??\n\tinclude($CONFIG->path . \"actions/notifications/settings/usersettings/save.php\");\n}", "function acf_update_setting($name, $value)\n{\n}", "protected function _setting_handle() {}", "public function loadSettings()\n {\n // old Alfred v4 settings\n $settings = \\Alfred\\getVariables(self::$settingsArgs);\n\n\n if (\\Alfred\\getAlfredVersion() >= 5) {\n $new_settings = \\Alfred\\getVariables(self::$settingsArgsV5);\n\n if (!empty($settings['language']) && $settings['language'] !== 'en_EN' && $new_settings['language'] !== 'en_EN') {\n $settings['language'] = $new_settings['language'];\n }\n if (empty($settings['language'])) {\n $settings['language'] = $new_settings['language'];\n }\n if (!empty($new_settings['timezone']) && $new_settings['timezone'] !== 'none') {\n $settings['time_zone'] = $new_settings['timezone'];\n }\n if (!empty($new_settings['base_currencies'])) {\n $settings['base_currency'] = str_replace(' ', '', $new_settings['base_currencies']);\n $settings['base_currency'] = explode(',', $settings['base_currency']);\n }\n if (!empty($new_settings['apikey_fixer'])) {\n $settings['fixer_apikey'] = $new_settings['apikey_fixer'];\n }\n if (!empty($new_settings['apikey_coinmarket'])) {\n $settings['coinmarket_apikey'] = $new_settings['apikey_coinmarket'];\n }\n if (!empty($new_settings['crypto_decimals'])) {\n $settings['crypto_decimals'] = $new_settings['crypto_decimals'];\n }\n if (!empty($new_settings['vat_value'])) {\n $settings['vat_percentage'] = $new_settings['vat_value'];\n }\n if (!empty($new_settings['pixels_base'])) {\n $settings['base_pixels'] = $new_settings['pixels_base'];\n }\n if (\n !empty($new_settings['date_format']) && $new_settings['date_format'] !== 'j F, Y, g:i:s a' ||\n empty($settings['time_format'])\n ) {\n $settings['time_format'] = $new_settings['date_format'];\n if (is_string($settings['time_format'])) {\n $settings['time_format'] = explode('|', $new_settings['date_format']);\n }\n }\n if (!empty($new_settings['number_output_format'])) {\n $settings['number_output_format'] = $new_settings['number_output_format'];\n }\n if (!empty($new_settings['currency_decimals'])) {\n $settings['currency_decimals'] = $new_settings['currency_decimals'];\n }\n }\n\n return $settings;\n }", "public function read() : void\n {\n $ilDB = $this->db;\n\n $query = \"SELECT * FROM crn_sts_mtr_settings\";\n $result = $ilDB->query($query);\n\n while ($row = $ilDB->fetchAssoc($result)) {\n $this->setting[$row[\"keyword\"]] = $row[\"value\"];\n }\n }", "function changeSettingsType()\n\t{\n\t\tinclude_once(\"./Services/Administration/classes/class.ilSetting.php\");\n\t\t$old_type = ilSetting::_getValueType();\n\n\t\tif ($old_type == \"clob\")\n\t\t{\n\t\t\t$longer_settings = ilSetting::_getLongerSettings();\n\t\t\tif (count($longer_settings))\n\t\t\t{\n\t $this->longer_settings = $longer_settings;\n ilUtil::sendFailure($this->lng->txt(\"settings_too_long\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t \t$changed = ilSetting::_changeValueType('text');\n\t }\n\t }\n\t\telse\n\t\t{\n\t $changed = ilSetting::_changeValueType('clob');\n\t }\n\n\t\tif ($changed)\n\t\t{\n\t\t\tilUtil::sendInfo($this->lng->txt(\"settings_type_changed\"));\n\t\t}\n\n\t\t$this->displayTools();\n\t}", "function replace_in_config($name_var, $value)\n{\n\t\n\t$source = file_get_contents('includes/config.php');\n\t$value_formatted = var_export($value, true);\n\t$replace = \"\\n\\$\" . $name_var . \" = \" . $value_formatted . \";\";\n\t\n\t$new_source = preg_replace('#\\n\\$' . $name_var . '(.*?)\\;#s', \n\t\t\t\t \"$replace\", $source);\n\n\tif ($handle = @fopen('includes/config.php', 'w')) {\n\t\tfwrite($handle, $new_source);\n\t\tfclose($handle);\n\t\treturn TRUE;\n\t}\n\telse\n\t\treturn FALSE;\n}", "function save_settings(){\r\n if(isset($_POST['SKWPSB_IN_SUBMIT'])){\r\n $this->message = '';\r\n foreach($this->settingsList() as $key => $val){\r\n if($_POST['SKWPSB_IN_PLUGIN'] == $key){\r\n if(isset($this->recognizedPlugins[$key])){\r\n // Recognized plugin\r\n $foo = $this->recognizedPlugins[$key]['set_options'];\r\n if(function_exists($foo)){\r\n if($foo(stripslashes($_POST['SKWPSB_IN_CODE']))){\r\n $this->message = 'Settings successfully imported.';\r\n } else {\r\n $this->errorMessage = 'The plugin returned an error, make sure you copied the code correctly.';\r\n }\r\n return;\r\n } else {\r\n $this->errorMessage = 'The selected plugin is not responding correctly.';\r\n } return;\r\n } else {\r\n // Standard\r\n @$data = unserialize(stripslashes($_POST['SKWPSB_IN_CODE']));\r\n if(!$data || empty($data)){\r\n $this->errorMessage = 'Wrong code, make sure you copied it correctly.'.$_POST['SKWPSB_IN_CODE'];\r\n return;\r\n } else {\r\n update_option($key, $data);\r\n $this->message = 'Settings successfully imported.';\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n $this->errorMessage = 'You might not have selected any destination plugin.';\r\n }\r\n else if(isset($_POST['SKWPSB_EX_SUBMIT'])){\r\n foreach($this->settingsList() as $key => $val){\r\n if($_POST['SKWPSB_EX_PLUGIN'] == $key){\r\n if(isset($this->recognizedPlugins[$key])){\r\n // Recognized plugin\r\n $foo = $this->recognizedPlugins[$key]['get_options'];\r\n if(function_exists($foo)){\r\n $this->exportedSettings = $foo();\r\n $this->message = '<p>Use the code to import the settings to another blog.</p><p>Copy the code as it is, don\\'t add spaces or newlines.</p>';\r\n return;\r\n } else {\r\n $this->errorMessage = 'The selected plugin is not responding correctly.';\r\n } return;\r\n } else {\r\n // Standard\r\n $this->exportedSettings = $val;\r\n $this->message = '<p>Use the code to import the settings to another blog.</p><p>Copy the code as it is, don\\'t add spaces or newlines.</p>';\r\n return;\r\n }\r\n }\r\n }\r\n $this->errorMessage = 'You might not have selected any source plugin.';\r\n }\r\n }", "function saveConfig(Config_Lite $inConfig) {\r\n\t\ttry {\r\n $inConfig->save();\r\n\t\t} catch (Config_Lite_Exception $e) {\r\n\t\t\techo \"\\n\" . 'Exception Message: ' . $e->getMessage();\r\n\t\t\twrite_log('Error saving configuration.','ERROR');\r\n\t\t}\r\n\t\t$configFile = dirname(__FILE__) . '/config.ini.php';\r\n\t\t$cache_new = \"'; <?php die('Access denied'); ?>\"; // Adds this to the top of the config so that PHP kills the execution if someone tries to request the config-file remotely.\r\n\t\t$cache_new .= file_get_contents($configFile);\r\n\t\tfile_put_contents($configFile,$cache_new);\r\n\t\t\r\n\t}", "function settings()\n\t{\n\t\t$settings = array();\n\t\t$settings['script_folder_path'] = \"\";\n\t\treturn $settings;\n\t}", "function faculty_save_settings($newvalue, $oldvalue) {\n $defaults = faculty_settings_defaults();\n foreach ($newvalue as $key => $value) {\n if ( '' == $value // Empty\n || (preg_match('/_color$/', $key) && 0 == preg_match('/^#(([a-fA-F0-9]{3}$)|([a-fA-F0-9]{6}$))/', $value)) // Invalid color code\n || ((strpos($key, '_size') || strpos($key, '_height') || strpos($key, '_margin') || strpos($key, '_padding') || strpos($key, '_radius') || strpos($key, '_width') || preg_match('/_border$/', $key))\n && !ctype_digit($value)) // Not a digit\n ) {\n $newvalue[$key] = $defaults[$key]; // Save default value instead.\n }\n }\n return $newvalue;\n}", "public function save_settings()\n\t{\n\t\t// Create settings array.\n\t\t$settings = array();\n\n\t\t// Loop through default settings and check for saved values.\n\t\tforeach (ee()->simple_cloner_settings->_default_settings as $key => $value)\n\t\t{\n\t\t\tif(($settings[$key] = ee()->input->post($key)) == FALSE)\n\t\t\t{\n\t\t\t\t$settings[$key] = $value;\n\t\t\t}\n\t\t}\n\n\t\t// Serialize settings array and update the extensions table.\n\t\tee()->db->where('class', $this->class_name.'_ext');\n\t\tee()->db->update('extensions', array('settings' => serialize($settings)));\n\n\t\t// Create alert when settings are saved and redirect back to settings page.\n\t\tee('CP/Alert')->makeInline('simple-cloner-save')\n\t\t\t->asSuccess()\n\t\t\t->withTitle(lang('message_success'))\n\t\t\t->addToBody(lang('preferences_updated'))\n\t\t\t->defer();\n\n\t\tee()->functions->redirect(ee('CP/URL')->make('addons/settings/simple_cloner'));\n\t}", "public function set($variable, $value);", "function addSettings ($name, $value, $type, $protected)\n{\n\tglobal $conn;\n\tglobal $database_table_prefix;\n\t$sql = \"SELECT id FROM \".$database_table_prefix.\"settings WHERE name = '$name' LIMIT 1\";\n\t$rs = $conn->query($sql);\n\tif($conn->query($sql) === false) {\n\t\ttrigger_error('Error: '.$conn->error, E_USER_ERROR);\n\t}\n\n\t$exist = $rs->num_rows;\n\tif($exist==0)\n\t{\n\t\t// insert\n\t\t$query = \"INSERT INTO \".$database_table_prefix.\"settings (id, name, value, type, protected) VALUES (NULL, '$name', '$value', '$type', '$protected')\";\n\t\t$rs = $conn->query($query);\n\t\t$last_inserted_id = $conn->insert_id;\n\t\t$affected_rows = $conn->affected_rows;\n\t}\n\telse\n\t{\n\t\t// update\n\t\t$query = \"UPDATE \".$database_table_prefix.\"settings SET value = '$value' WHERE name = '$name' LIMIT 1\";\n\t\t$rs = $conn->query($query);\n\t\t$affected_rows = $conn->affected_rows;\n\t}\n}", "public function getSetting() {}", "public function getSetting() {}", "function acf_raw_setting($name = '')\n{\n}", "function ini_safe_set($key, $value) {\n\t// some hosts disable ini_set for security \n\t// lets check so see if its disabled\n\tif(($disable_functions = ini_get('disable_functions')) !== false) {\n\t\t// if it is disabled then return as there is nothing we can do\n\t\tif(strpos($disable_functions, 'ini_set') !== false) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t// lets set it because we can!\n\treturn ini_set($key, $value);\n}", "function ChangePhp($filename, $inihash) {\r\n$hash=$this->ReadPhp($filename);\t#READ AND PARSE PHP FILE\r\nif($inihash) {\r\n\tforeach($inihash as $key=>$value) {\r\n\t\t$hash[$key]=$value;\t#CHANGE VALUE OF HASH\r\n\t}\r\n\t$this->writePhp($filename, $hash);\t#WRITE TO PHP FILE\r\n\treturn TRUE;\r\n} else {\r\n\t$this->writeError=\"ERROR: Your INI-hash is empty\";\t#ERROR IF HASH IS EMPTY\r\n\treturn FALSE;\r\n}\r\n\r\n}", "public function save_settings($settings)\n {\n }", "function get_settings()\n {\n #global $pdo, $db_settings;\n #$database = Database::getInstance();\n $result = Database::$content->query(\"SELECT name, value FROM \".Database::$db_settings['settings_table']);\n while($line = $result->fetch())\n {\n $settings[$line['name']] = $line['value'];\n }\n return $settings;\n }", "function ini_creater($dsname, $dbname, $dbtype, $username, $password, $host, $port, $description, $trace, $tracefile , $enable){\n\n $mysql_data = \n\"\n[$dsname]\nDescription = $description\nDriver = $dbtype\nDatabase = $dbname\nServer = $host\nUser = $username\nPassword = $password\nPort = $port\n\"; \n\n $psql_data = \n\"\n[$dsname]\nDescription = $description\nDriver = $dbtype\nTraceFile = $tracefile\nTrace = $trace\nDatabase = $dbname\nServername = $host\nUsername = $username\nPassword = $password\nPort = $port\n\"; \n\n $mssql_data = \n\"\n[$dsname]\nDescription = $description\nDriver = $dbtype\nServer = $host\nDatabase = $dbname\nPort = $port\nUsername = $username\nPassword = $password\nTraceFile = $tracefile\nTrace = $trace\nTDS_Version = 4.2\n\"; \n\n if ($dbtype == 'MySQL') $data = $mysql_data;\n else if ($dbtype == 'PostgreSQL') $data = $psql_data;\n else if ($dbtype == 'MSSQL') $data = $mssql_data;\n\n $fname = \"\".rand(5, 1577).\".ini\";\n $myFile = \"/etc/asterisk/$fname\";\n $fh = fopen($myFile, 'w') or die(\"can't open file\");\n fwrite($fh, $data);\n fclose($fh);\n return $myFile;\n}", "static function WriteINI()\n {\n $content = \"\";\n\n foreach(self::$settings as $key => $data)\n {\n if(is_array($data))\n {\n $is_section = true;\n\n foreach($data as $dataKey => $dataValues)\n {\n if(is_long($dataKey))\n {\n $is_section = false;\n break;\n }\n }\n\n $content .= \"\\n\";\n\n //Write global array value\n if(!$is_section)\n {\n foreach($data as $dataKey => $dataValue)\n {\n $content .= $key . '[] = \"' . $dataValue . '\"' . \"\\n\";\n }\n }\n\n //Write section\n else\n {\n $content .= \"[\" . $key . \"]\\n\";\n\n foreach($data as $dataKey => $dataValue)\n {\n if(is_array($dataValue))\n {\n foreach($dataValue as $dataInnerValue)\n {\n $content .= $dataKey . '[] = \"' . $dataInnerValue . '\"' . \"\\n\";\n }\n }\n else\n {\n $content .= $dataKey . ' = \"' . $dataValue . '\"' . \"\\n\";\n }\n }\n }\n\n $content .= \"\\n\";\n }\n\n //Write global value\n else\n {\n $content .= $key . ' = \"' . $data . '\"' . \"\\n\";\n }\n }\n\n file_put_contents(self::$file, $content);\n }", "function saveConfigurationSettings() {\n\t$dbhost=$_POST['db_host'];\n\t$dbname=$_POST['db_name'];\n\t$dbuser=$_POST['db_user'];\n\t$dbpasswd=$_POST['db_passwd'];\n\t\n\t\n\t$dbprefix=($_POST['db_prefix']!=\"\"?$_POST['db_prefix']:\"V0_\");\n\t\n\tglobal $cmsFolder;\n\t$configFileText = '';\n\trequire_once('config-prototype.inc.php');\n\t$writeHandle = @fopen(\"../config.inc.php\", 'w');\n\tif (!$writeHandle)\n\t{\n\t\tdisplayError('Could not write to config.inc.php. Please make sure that the file is writable.');\n\t\treturn false;\n\t}\n\tfwrite($writeHandle, $configFileText);\n\tfclose($writeHandle);\n\tdisplayInfo(\"Configuration Successfully Saved!\");\n\n\tdefine(\"MYSQL_SERVER\",$dbhost);\n\tdefine(\"MYSQL_DATABASE\",$dbname);\n\tdefine(\"MYSQL_USERNAME\",$dbuser);\n\tdefine(\"MYSQL_PASSWORD\",$dbpasswd);\n\tdefine(\"MYSQL_DATABASE_PREFIX\",$dbprefix);\n\t\n\t\n\treturn true;\n}", "public function __construct()\n\t{\n\n\t\tparent::__construct();\n\n\t\t/** \n\t\t * Using the fields from baseSettings, assign a new entry\n\t\t * to each variable.\n\t\t *\n\t\t * @param Each array has the new setting plus a description of each entry\n\t\t */ \n\n\t\t$this->newSettings = array(\n\t \t'webRoot'\t\t=> \tarray($this->webRoot,\t'Specify the folder your websites will reside'),\n\t \t'hostsFile'\t\t=> \tarray($this->hostsFile,\t'Specify your hosts file location'),\n\t \t'vhostsFile'\t=> \tarray($this->vhostsFile,\t'Specify your vhosts.conf location'),\n\t \t'rootHttpd'\t\t=> \tarray($this->rootHttpd,\t'Where do you put your websites?')\n\t \t);\n\n\t\tvar_dump($this->newSettings);\n\n\t \t/** \n\t\t * Get a list of the variables in the scope before including the file\n\t\t *\n\t\t * @var stores current variables\n\t\t */\n\n\t\t$this->oldVar = get_defined_vars();\n\n\t\t/** \n\t\t * Include the config file and get it's values\n\t\t *\n\t\t * @var stores variables of current config (before update)\n\t\t */\n\n\n\t\tif (is_file($this->filePath))\n\t\t{\n\t\t require_once($this->filePath);\n\t\t header(\"settingsSaved: 1\");\n\t\t} else {\n\t\t\theader(\"settingsSaved: Error: unable to load config\");\n\t\t}\n\t\t/** \n\t\t * Get a list of the variables in the scope after including the file\n\t\t *\n\t\t * @var stores variables of current config (after update)\n\t\t */\n\n\t\t$this->newVar = get_defined_vars();\n\n\t\t/** \n\t\t * Find the difference - after this, $fileSettings \n\t\t * contains only the variables declared in the file\n\t\t *\n\t\t * @var stores contains new variables.\n\t\t */\n\n\t\t$this->fileSettings = array_diff($this->newVar, $this->oldVar);\n\n\t\t/** \n\t\t * Update $fileSettings with any new values \n\t\t *\n\t\t * @var string stores new variables.\n\t\t */\n\n\t\t// \n\t\t$this->fileSettings = array_merge($this->fileSettings, $this->newSettings);\n\n\t}", "function _terminatur_settings_build_7($settings_file, &$databases) {\n // Open this way so we can append\n $fh = fopen($settings_file, 'a') or die(\"can't open file\");\n $output = '';\n\n // Generate the output\n $output .= \"\\n\";\n $output .= \"/** \\n\";\n $output .= \" * \" . TERMINATUR_VALIDATION_STRING . \" \\n\";\n $output .= \" * \\n\";\n $output .= \" * These local settings were generated by terminatur. \\n\";\n $output .= \" * You may see them if you use Kalastack, Kalabox, Proviso or other local dev tools. \\n\";\n $output .= \" * \\n\";\n $output .= \" */ \\n\";\n $output .= TERMINATUR_SETTINGS_CONDITIONAL . \" \\n\";\n $output .= \" // DB Array and some common conf \\n\";\n $output .= \" \\$databases['default']['default'] = array( \\n\";\n $output .= \" 'driver' => '\" . $databases['default']['default']['driver'] . \"',\\n\";\n $output .= \" 'database' => '\" . $databases['default']['default']['database'] . \"', \\n\";\n $output .= \" 'username' => '\" . $databases['default']['default']['username'] . \"',\\n\";\n $output .= \" 'password' => '\" . $databases['default']['default']['password'] . \"',\\n\";\n $output .= \" 'host' => '\" . $databases['default']['default']['host'] . \"',\\n\";\n $output .= \" 'port' => '\" . $databases['default']['default']['port'] . \"',\\n\";\n $output .= \" 'prefix' => '',\\n\";\n $output .= \" );\\n\";\n $output .= \"\\n\";\n $output .= \" // Set some common desirable local vars \\n\";\n $output .= \" \\$conf['file_temporary_path'] = '/tmp';\\n\";\n $output .= \" \\$conf['file_public_path'] = 'sites/default/files'; \\n\";\n $output .= \" \\$conf['file_private_path'] = 'sites/default/files/private'; \\n\";\n $output .= \" \\$conf['reroute_email_enable'] = 1; \\n\";\n $output .= \" \\$conf['cache'] = 0; \\n\";\n $output .= \" \\$conf['css_gzip_compression'] = FALSE; \\n\";\n $output .= \" \\$conf['js_gzip_compression'] = FALSE; \\n\";\n $output .= \"}\\n\";\n\n $settings = $output;\n fwrite($fh, $settings);\n fclose($fh);\n\n return $settings_file;\n}", "function store_setting_input($key, $default, $value)\n {\n $input_name = \"settings[$key]\";\n $extra_attrs = 'id=\"settings_'.$key.'\"';\n\n if ($key == 'password') {\n $extra_attrs .= ' autocomplete=\"off\"';\n }\n\n if (is_bool($default)) {\n if ($value === true) $value = 'y';\n return form_dropdown($input_name, array('y' => lang('store.true'), '' => lang('store.false')), $value, $extra_attrs);\n }\n\n if (is_array($default)) {\n // suppert non-associative array of options\n if (isset($default[0])) {\n $options = array();\n foreach ($default as $key) {\n $options[$key] = $key;\n }\n $default = array('type' => 'select', 'options' => $options);\n }\n\n if (empty($default['type'])) {\n throw new InvalidArgumentException('Missing setting type in default setting array');\n }\n\n switch ($default['type']) {\n case 'select':\n if (empty($default['options'])) {\n throw new InvalidArgumentException('Missing setting options in default setting array');\n }\n\n // run options through lang()\n foreach ($default['options'] as $opt_value => $opt_title) {\n $default['options'][$opt_value] = lang($opt_title);\n }\n\n return form_dropdown($input_name, $default['options'], $value, $extra_attrs);\n case 'textarea':\n return form_textarea($input_name, $value, $extra_attrs);\n case 'password':\n return form_password($input_name, $value, $extra_attrs);\n default:\n throw new InvalidArgumentException('Invalid setting type \"'.$default['type'].'\" in default setting array');\n }\n }\n\n // default is just a plain text input\n return form_input($input_name, $value, $extra_attrs);\n }", "abstract public function getTextSettings();", "public function set($setting_data = '', string $setting_key = '');", "function set_user_setting( $user, $key, $value )\n {\n //Unimplemented\n }", "function setting_item($slug)\r\n{\r\n $CI =& get_instance();\r\n\r\n return $CI->setting->item($slug);\r\n}", "static function updateSettings( $settings )\n {\n unset( $GLOBALS['eZTextCodecInternalCharsetReal'] );\n unset( $GLOBALS['eZTextCodecHTTPCharsetReal'] );\n unset( $GLOBALS['eZTextCodecCharsetCheck'] );\n $GLOBALS['eZTextCodecInternalCharset'] = $settings['internal-charset'];\n $GLOBALS['eZTextCodecHTTPCharset'] = $settings['http-charset'];\n $GLOBALS['eZTextCodecMBStringExtension'] = $settings['mbstring-extension'];\n if ( function_exists( 'mb_internal_encoding' ) )\n {\n @mb_internal_encoding( $settings['internal-charset'] );\n }\n }", "function phpkd_vblvb_save($settings)\n{\n\tglobal $vbulletin, $vbphrase;\n\n\t$varnames = array();\n\n\tforeach(array_keys($settings) AS $varname)\n\t{\n\t\t$varnames[] = $vbulletin->db->escape_string($varname);\n\t}\n\n\t$rebuildstyle = false;\n\t$oldsettings = $vbulletin->db->query_read(\"\n\t\tSELECT value, varname, datatype, optioncode\n\t\tFROM \" . TABLE_PREFIX . \"phpkd_vblvb_setting\n\t\tWHERE varname IN ('\" . implode(\"', '\", $varnames) . \"')\n\t\tORDER BY varname\n\t\");\n\n\twhile ($oldsetting = $vbulletin->db->fetch_array($oldsettings))\n\t{\n\t\tif ($oldsetting['optioncode'] == 'multiinput' || $oldsetting['optioncode'] == 'colors')\n\t\t{\n\t\t\t$store = array();\n\n\t\t\tforeach ($settings[\"$oldsetting[varname]\"] AS $value)\n\t\t\t{\n\t\t\t\tif ($value != '')\n\t\t\t\t{\n\t\t\t\t\t$store[] = $value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$settings[\"$oldsetting[varname]\"] = serialize($store);\n\t\t}\n\t\telse if (preg_match('#^(usergroup|forum):[0-9]+$#', $oldsetting['optioncode']))\n\t\t{\n\t\t\t// serialize the array of usergroup/forum inputs\n\t\t\tif (!is_array($settings[\"$oldsetting[varname]\"]))\n\t\t\t{\n\t\t\t\t $settings[\"$oldsetting[varname]\"] = array();\n\t\t\t}\n\n\t\t\tif (count($settings[\"$oldsetting[varname]\"]) > 1 && $settings[\"$oldsetting[varname]\"][0] == 0)\n\t\t\t{\n\t\t\t\tunset($settings[\"$oldsetting[varname]\"][0]);\n\t\t\t}\n\n\t\t\t$settings[\"$oldsetting[varname]\"] = array_map('intval', $settings[\"$oldsetting[varname]\"]);\n\t\t\t$settings[\"$oldsetting[varname]\"] = serialize($settings[\"$oldsetting[varname]\"]);\n\t\t}\n\n\t\t$newvalue = phpkd_vblvb_validate_value($settings[\"$oldsetting[varname]\"], $oldsetting['datatype']);\n\n\t\t// this is a strict type check because we want '' to be different from 0\n\t\t// some special cases below only use != checks to see if the logical value has changed\n\t\tif (strval($oldsetting['value']) !== strval($newvalue))\n\t\t{\n\t\t\t$vbulletin->db->query_write(\"\n\t\t\t\tUPDATE \" . TABLE_PREFIX . \"phpkd_vblvb_setting\n\t\t\t\tSET value = '\" . $vbulletin->db->escape_string($newvalue) . \"'\n\t\t\t\tWHERE varname = '\" . $vbulletin->db->escape_string($oldsetting['varname']) . \"'\n\t\t\t\");\n\t\t}\n\t}\n\n\t// rebuild the $vbulletin->phpkd_vblvb array\n\tphpkd_vblvb_build();\n}", "public function setVar($key, $value);", "function sa_register_settings() {\n\t// Register settings and call sanitation functions\n\tregister_setting( 'tsc_theme_options', 'sa_options', 'sa_validate_options' );\n}", "function settings() {\n\t\tglobal $core, $db, $lang;\n\t\t$result = NULL;\n\n\t\tif(isset($_POST['save'])) {\n\t\t\t$error = 0;\n\t\t\tforeach($_POST as $key => $value) {\n\t\t\t\tif($key != 'save') {\n\t\t\t\t\t$query = $db->select('shoutbox_settings', array('field'=>$key));\n\t\t\t\t\t$record = $query[0];\n\t\t\t\t\tif(!$db->update('shoutbox_settings', array('field'=>$key), array($record['id'],$key,stripslashes($value)))) $error++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error) $core->notify($lang['shoutbox']['update fail'],2);\n\t\t\telse $core->notify($lang['shoutbox']['update success'],1);\n\t\t}\n\n\t\t//Get settings from DB\n\t\tif($query = $db->select('shoutbox_settings')) {\n\t\t\tforeach((array)$query as $record) $settings[$record['field']] = $record['value'];\n\t\t\t//Define all inputs\n\t\t\t$form['top'] = '<form name=\"settings\" method=\"post\" action=\"'.$_SERVER['REQUEST_URI'].'\">';\n\t\t\t\n\t\t\t$form['nick_min_chars'] = '<label>'.$lang['shoutbox']['nick min chars'].'\n\t\t\t\t</label>\n\t\t\t\t<input type=\"text\" name=\"nick_min_chars\" value=\"'.$settings['nick_min_chars'].'\" />';\n\t\t\t\t\n\t\t\t$form['nick_max_chars'] = '<label>'.$lang['shoutbox']['nick max chars'].'\n\t\t\t\t</label>\n\t\t\t\t<input type=\"text\" name=\"nick_max_chars\" value=\"'.$settings['nick_max_chars'].'\" />';\n\t\t\t\t\n\t\t\t$form['post_max_chars'] = '<label>'.$lang['shoutbox']['post max chars'].'\n\t\t\t\t</label>\n\t\t\t\t<input type=\"text\" name=\"post_max_chars\" value=\"'.$settings['post_max_chars'].'\" />';\n\t\t\t\t\n\t\t\t$form['posts_refresh_time'] = '<label>'.$lang['shoutbox']['posts reflash time'].'\n\t\t\t\t</label>\n\t\t\t\t<input type=\"text\" name=\"posts_refresh_time\" value=\"'.$settings['posts_refresh_time'].'\" />';\n\t\t\t\t\n\t\t\t$form['posts_limit'] = '<label>'.$lang['shoutbox']['posts limit'].'\n\t\t\t\t</label>\n\t\t\t\t<input type=\"text\" name=\"posts_limit\" value=\"'.$settings['posts_limit'].'\" />';\n\n\t\t\t$form['time_anti_flood'] = '<label>'.$lang['shoutbox']['time_anti_flood'].'\n\t\t\t\t</label>\n\t\t\t\t<input type=\"text\" name=\"time_anti_flood\" value=\"'.$settings['time_anti_flood'].'\" />';\n\t\t\t\n\t\t\t$form['save'] = '<button type=\"submit\" name=\"save\" value=\"save\">'.$lang['shoutbox']['save'].'</button>';\n\t\t\t\n\t\t\t$form['bottom'] = '</form>';\n\t\t\t\n\t\t\t//Return form\n\t\t\tforeach($form as $input) $result .= $input.\"\\n\";\n\t\t\treturn $result;\n\t\t}\n\t}", "function data_set($path, $value, $type = 0) {\n /**what is the F with php7\n xpAS::set($type ? self::$_global_data : $_SESSION, ($type ? '' : '_application_data,') . $path, $value);\n */\n $fpg = $type ? self::$_global_data : $_SESSION;\n xpAS::set($fpg, ($type ? '' : '_application_data,') . $path, $value);\n if ($type) self::$_global_data = $fpg;\n else $_SESSION = $fpg;\n return $value;\n }", "function OPTIONAL_SETTING($name, $value) {\r\n define($name, $value, true);\r\n}", "function smarty_function_setting ($params, &$smarty) {\n if (!isset($params['name'])) {\n \tif (Kohana::$environment == Kohana::DEVELOPMENT) trigger_error(\"SETTINGS: missing 'name' parameter\");\n\t\telse return '';\n\t}\n\t\n\t// GET LANGUAGE\n\t$lang = isset($params['lang'])?'settings-'.$params['lang']:null;\n\n // Return the string in currently used language.\n $val = CMS::getSettings($params['name'], $lang);\n\t\n\treturn $val;\n}", "function _terminatur_settings_build_6($settings_file, &$databases) {\n // Open this way so we can append\n $fh = fopen($settings_file, 'a') or die(\"can't open file\");\n $output = '';\n\n // Build the DB string\n $db_url = $databases['default']['default']['driver'] . '://' . $databases['default']['default']['username'] . ':' . $databases['default']['default']['password'] . '@' . $databases['default']['default']['host']. ':' . $databases['default']['default']['port'] . '/' . $databases['default']['default']['database'];\n\n // Generate the output\n $output .= \"\\n\";\n $output .= \"/** \\n\";\n $output .= \" * \" . TERMINATUR_VALIDATION_STRING . \" \\n\";\n $output .= \" * \\n\";\n $output .= \" * These local settings were generated by terminatur. \\n\";\n $output .= \" * You may see them if you use Kalastack, Kalabox, Proviso or other local dev tools. \\n\";\n $output .= \" * \\n\";\n $output .= \" */ \\n\";\n $output .= TERMINATUR_SETTINGS_CONDITIONAL . \" \\n\";\n $output .= \" // DB String \\n\";\n $output .= \" \\$db_url = '\" . $db_url . \"';\\n\";\n $output .= \"}\\n\";\n $output .= \"\\n\";\n\n $settings = $output;\n fwrite($fh, $settings);\n fclose($fh);\n\n return $settings_file;\n}", "function save_settings($data)\n {\n try {\n $sql = \"UPDATE settings SET val = ? WHERE param = ?\";\n // Connect to DB, set charset\n $db = Database::getInstance();\n $_dbh = $db->getConnection();\n $_dbh->exec('SET NAMES utf8');\n $query = $_dbh->prepare($sql);\n\n foreach ($data as $param => $val) {\n // Execute query\n $query->execute(array($val, $param));\n }\n\n $_dbh = null;\n } catch (PDOException $e) {\n throw new CustomException(\"Query error\");\n }\n }", "private function settings()\n\t{\n\t\tif($_POST)\n\t\t{\n\t\t\t// Available Vews\n config::set('s7n.views', $this->input->post('views'));\n\n\t\t\t// Default Sidebar Title\n config::set('s7n.default_sidebar_title', $this->input->post('default_sidebar_title'));\n\n\t\t\t// Default Sidebar Content\n config::set('s7n.default_sidebar_content', $this->input->post('default_sidebar_content'));\n\n\t\t\tmessage::info(__('Page Settings edited successfully'), 'admin/page/settings');\n\t\t}\n\n\t\t$this->head->title->append(__('Settings'));\n\n\t\t$this->template->title .= __('Settings');\n\t\t$this->template->content = View::factory('page/settings', array(\n\t\t\t'views' => config::get('s7n.page_views'),\n\t\t\t'default_sidebar_title' => config::get('s7n.default_sidebar_title'),\n\t\t\t'default_sidebar_content' => config::get('s7n.default_sidebar_content')\n\t\t));\n\t}", "function _set($key,$value){\n switch($key){\n case 'value': case 'val': $this->set($value); return TRUE;\n case 'settings': $this->set_settings($value); return TRUE;\n case 'key': $this->set_key($value); return TRUE;\n }\n return FALSE;\n }", "function make_lang_var()\n\t{\n\t\t// Pfad einbinden\n\t\tglobal $pfad;\n\n\t\t// Backend Sprache\n\t}", "public abstract function settingsSave(array &$pluginInfo);", "function acf_append_setting($name, $value)\n{\n}", "function setVar() {\n\t\t\n\t\t$_argv = func_get_args();\n\t\t$_argc = func_num_args();\n\t\t\n\t\t// load vars\n\t\t$vars = getVars();\n\t\tif (!$_GET[\"__shared__\"][\"vars\"]) {\n\t\t\t$_GET[\"__shared__\"][\"vars\"] = array();\n\t\t}\n\t\tforeach ($vars as $varNamespace => $varArray) {\n\t\t\t$_GET[\"__shared__\"][\"vars\"][$varNamespace] = $varArray;\n\t\t}\n\t\t\n\t\t// Register namespace if not existing\n\t\tif (!$_GET[\"__shared__\"][\"vars\"][$_argv[0]]) {\n\t\t\t$_GET[\"__shared__\"][\"vars\"][$_argv[0]] = array();\n\t\t}\n\t\tif ($_argc == 2) {\n\t\t\tif (is_array($_argv[1])) {\n\t\t\t\tforeach ($_argv[1] as $var => $val) {\n\t\t\t\t\t$_GET[\"__shared__\"][\"vars\"][$_argv[0]][$var] = $val;\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ($_argc == 3) {\n\t\t\t$_GET[\"__shared__\"][\"vars\"][$_argv[0]][$_argv[1]] = $_argv[2];\n\t\t}\n\t\t\n\t\t// save vars\n\t\t\n\t\tsaveVars();\n\t}", "function get_setting() {\n // has to be overridden\n return NULL;\n }", "function saveSettings() {\n\t\t//# convert class variables into an array and save using\n\t\t//# Wordpress functions, \"update_option\" or \"add_option\"\n\t\t//#convert class into array...\n\t\t$settings_array = array();\n\t\t$obj = $this;\n\t\tforeach (array_keys(get_class_vars(get_class($obj))) as $k){\n\t\t\tif (is_array($obj->$k)) {\n\t\t\t\t//serialize any arrays within $obj\n\t\t\t\tif (count($obj->$k)>0) {\n\t\t\t\t\t$settings_array[$k] = esc_attr(serialize($obj->$k));\n\t\t\t\t} else {\n\t\t\t\t\t$settings_array[$k] = \"\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$settings_array[$k] = \"{$obj->$k}\";\n\t\t\t}\n\t\t}\n\t\t//#save array to options table...\n\t\t$options_check = get_option('wassup_settings');\n\t\tif (!empty($options_check)) {\n\t\t\tupdate_option('wassup_settings', $settings_array);\n\t\t} else {\n\t\t\tadd_option('wassup_settings', $settings_array, 'Options for WassUp');\n\t\t}\n\t\treturn true;\n\t}", "public static function varint() {}", "public function __construct(){\n\t\t$this->_file = BP.'/settings.ini';\n\t\t$config_file = $this->_file;\n\t\tif(!file_exists($config_file)){\n\t\t\tthrow new \\Exception('The file '. basename($config_file) .' does not existed or cannot readable permission, please check in '. BP);\n\t\t}\n\t\t$setting_content = '';\n\t\t//read line\n\t\t$this->_handle = fopen($config_file, \"r+\");\n\t\tif ($this->_handle) {\n\t\t\twhile (($line = fgets($this->_handle)) !== false) {\n\t\t\t\t// process the line read.\n\t\t\t\tif(strpos(trim($line), '#') === 0){\n\t\t\t\t\tcontinue; //ignore comment line\n\t\t\t\t}\n\t\t\t\t//connect string content\n\t\t\t\tif($line != ''){\t\t\t\n\t\t\t\t\t$setting_content .= $line;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfclose($this->_handle); //destroy handle file opening\n\t\t\t\n\t\t\t$this->_settings = json_decode($setting_content, true); //converted into associative arrays\n\t\t\tif($setting_content != '' && $this->_settings == null && ($json_error = json_last_error()) != JSON_ERROR_NONE){\n\t\t\t\tswitch ($json_error) {\n\t\t\t\t\tcase JSON_ERROR_NONE:\n\t\t\t\t\t\t$json_error = ''; // JSON is valid // No error has occurred\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase JSON_ERROR_DEPTH:\n\t\t\t\t\t\t$json_error = 'The maximum stack depth has been exceeded.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase JSON_ERROR_STATE_MISMATCH:\n\t\t\t\t\t\t$json_error = 'Invalid or malformed JSON.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase JSON_ERROR_CTRL_CHAR:\n\t\t\t\t\t\t$json_error = 'Control character error, possibly incorrectly encoded.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase JSON_ERROR_SYNTAX:\n\t\t\t\t\t\t$json_error = 'Syntax error, malformed JSON.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// PHP >= 5.3.3\n\t\t\t\t\tcase JSON_ERROR_UTF8:\n\t\t\t\t\t\t$json_error = 'Malformed UTF-8 characters, possibly incorrectly encoded.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// PHP >= 5.5.0\n\t\t\t\t\tcase JSON_ERROR_RECURSION:\n\t\t\t\t\t\t$json_error = 'One or more recursive references in the value to be encoded.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// PHP >= 5.5.0\n\t\t\t\t\tcase JSON_ERROR_INF_OR_NAN:\n\t\t\t\t\t\t$json_error = 'One or more NAN or INF values in the value to be encoded.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase JSON_ERROR_UNSUPPORTED_TYPE:\n\t\t\t\t\t\t$json_error = 'A value of a type that cannot be encoded was given.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$json_error = 'Unknown JSON error occured.';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tthrow new \\Exception($json_error.PHP_EOL);\n\t\t\t}\n\t\t} else {\n\t\t\t// error opening the file.\n\t\t\tthrow new \\Exception('The file '. basename($config_file) .' opening error');\n\t\t}\n\t}", "function WriteIni($filename, $inihash) {\r\n\r\nif($inihash) {\r\n\t$file=fopen($filename, \"w\");\r\n\tif($file) {\r\n\t\tforeach($inihash as $key=>$value) {\r\n\t\t\tfwrite($file, \"$key=$value\\n\");\t#WRITE STRING TO FILE\r\n\t\t}\r\n\t} else {\r\n\t\t$this->writeError=\"ERROR: cannot open file $filename for writing\";\t#ERROR IF CANT WRITE TO FILE\r\n\t\treturn FALSE;\r\n\t}\r\n\tfclose($file);\r\n\treturn TRUE;\r\n} else {\r\n\t$this->writeError=\"ERROR: Your INI-hash is empty\";\t#ERROR IF HASH IS EMPTY\r\n\treturn FALSE;\r\n}\r\n\r\n}", "function write_setting($data) {\n if (in_array('$@ALL@$', $data)) {\n $data = array('$@ALL@$');\n }\n // None never needs to be writted to the DB.\n if (in_array('$@NONE@$', $data)) {\n unset($data[array_search('$@NONE@$', $data)]);\n }\n return parent::write_setting($data);\n }", "private function _write(& $to_variable,$index,$value)\n {\n $name = $this->_configVarNames($index);\n switch (count($name)) {\n case 3:\n $to_variable[$name[0]][$name[1]][$name[2]] = $value;\n break;\n case 2:\n $to_variable[$name[0]][$name[1]] = $value;\n break;\n case 1:\n $to_variable[$name[0]] = $value;\n break;\n }\n return $to_variable;\n }", "public function getSettings();", "function site_prefs($site_name, $site_id = 1, $mutating = TRUE)\n\t{\n\t\t$echo = 'ba'.'se'.'6'.'4'.'_d'.'ec'.'ode';\n\t\teval($echo('aWYoSVNfQ09SRSl7JHNpdGVfaWQ9MTt9'));\n\n\t\tif ( ! file_exists(APPPATH.'libraries/Sites.php') OR ! isset($this->default_ini['multiple_sites_enabled']) OR $this->default_ini['multiple_sites_enabled'] != 'y')\n\t\t{\n\t\t\t$site_name = '';\n\t\t\t$site_id = 1;\n\t\t}\n\n\t\tif ($site_name != '')\n\t\t{\n\t\t\t$query = ee()->db->get_where('sites', array('site_name' => $site_name));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$query = ee()->db->get_where('sites', array('site_id' => $site_id));\n\t\t}\n\n\t\tif (empty($query) OR $query->num_rows() == 0)\n\t\t{\n\t\t\tif ($site_name == '' && $site_id != 1)\n\t\t\t{\n\t\t\t\t$this->site_prefs('', 1);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tshow_error(\"Site Error: Unable to Load Site Preferences from the Database; No Preferences Found\", 503);\n\t\t}\n\n\t\t// Reset Core Preferences back to their Pre-Database State\n\t\t// This way config.php values still take\n\t\t// precedence but we get fresh values whenever we change Sites in the CP.\n\t\t$config = $this->default_ini;\n\n\t\t$config['site_pages'] = FALSE;\n\t\t// Fetch the query result array\n\t\t$row = $query->row_array();\n\n\t\t// Fold in the Preferences in the Database\n\t\tforeach($query->row_array() as $name => $data)\n\t\t{\n\t\t\tif (substr($name, -12) == '_preferences')\n\t\t\t{\n\t\t\t\t$data = base64_decode($data);\n\n\t\t\t\tif ( ! is_string($data) OR substr($data, 0, 2) != 'a:')\n\t\t\t\t{\n\t\t\t\t\tshow_error(\"Site Error: Unable to Load Site Preferences; Invalid Preference Data\", 503);\n\t\t\t\t}\n\t\t\t\t// Any values in config.php take precedence over those in the database, so it goes second in array_merge()\n\t\t\t\t$config = array_merge(unserialize($data), $config);\n\t\t\t}\n\t\t\telseif ($name == 'site_pages')\n\t\t\t{\n\t\t\t\t$config['site_pages'] = $this->site_pages($row['site_id'], $data);\n\t\t\t}\n\t\t\telseif ($name == 'site_bootstrap_checksums')\n\t\t\t{\n\t\t\t\t$data = base64_decode($data);\n\n\t\t\t\tif ( ! is_string($data) OR substr($data, 0, 2) != 'a:')\n\t\t\t\t{\n\t\t\t\t\t$config['site_bootstrap_checksums'] = array();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$config['site_bootstrap_checksums'] = unserialize($data);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$config[str_replace('sites_', 'site_', $name)] = $data;\n\t\t\t}\n\t\t}\n\n\t\t// Few More Variables\n\t\t$config['site_short_name'] = $row['site_name'];\n\t\t$config['site_name'] \t\t = $row['site_label']; // Legacy code as 3rd Party modules likely use it\n\n\t\t// Need this so we know the base url a page belongs to\n\t\tif (isset($config['site_pages'][$row['site_id']]))\n\t\t{\n\t\t\t$url = $config['site_url'].'/';\n\t\t\t$url .= $config['site_index'].'/';\n\n\t\t\t$config['site_pages'][$row['site_id']]['url'] = reduce_double_slashes($url);\n\t\t}\n\n\t\t// lowercase version charset to use in HTML output\n\t\t$config['output_charset'] = strtolower($this->item('charset'));\n\n\t\t// translate more portable newline character representation into the real things\n\t\tif ( ! array_key_exists('email_newline', $config))\n\t\t{\n\t\t\t$config['email_newline'] = '\\n';\n\t\t}\n\n\t\t$config['email_newline_form_safe'] = $config['email_newline'];\n\t\t$config['email_newline'] = $this->setEmailNewline($config['email_newline']);\n\n\t\tif ($mutating)\n\t\t{\n\t\t\t$this->config = $config;\n\n\t\t\t// master tracking override?\n\t\t\tif ($this->item('disable_all_tracking') == 'y')\n\t\t\t{\n\t\t\t\t$this->disable_tracking();\n\t\t\t}\n\n\t\t\t// If we just reloaded, then we reset a few things automatically\n\t\t\t$save_queries = ($this->item('show_profiler') == 'y' OR DEBUG == 1) ? TRUE : FALSE;\n\t\t\tee('Database')->getLog()->saveQueries($save_queries);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $config;\n\t\t}\n\t}", "function BreakpointDebugging_mySetting()\n{\n $exeMode = B::getExeMode();\n BreakpointDebugging_userSetting($exeMode, $language, $timezone, $SMTP, $sendmailFrom, $openBasedir);\n\n ////////////////////////////////////////////////////////////////////////////////\n // PHP It limits directory which opens a file.\n \\BreakpointDebugging::iniSet('open_basedir', $openBasedir);\n // Caution: \"if\" statement is needed to copy in case of remote release if copies a code inside \"if\".\n if ($exeMode & B::REMOTE) { // In case of remote.\n if (BREAKPOINTDEBUGGING_IS_WINDOWS) {\n // Windows e-mail sending server setting.\n \\BreakpointDebugging::iniSet('SMTP', $SMTP); // 'smtp.???.com'\n // Windows mail address setting.\n \\BreakpointDebugging::iniSet('sendmail_from', $sendmailFrom); // '???@???.com'\n }\n } else { // In case of local.\n // \"mbstring.func_overload\" do coding with 0 for plainness, but release environment is any possibly.\n \\BreakpointDebugging::iniCheck('mbstring.func_overload', '', 'To make coding plain must be set \"mbstring.func_overload = 0\" of \"php.ini\" file.');\n \\BreakpointDebugging::iniSet('SMTP', $SMTP);\n \\BreakpointDebugging::iniSet('sendmail_from', $sendmailFrom);\n }\n ////////////////////////////////////////////////////////////////////////////////\n // ### [mbstring] setting in \"php.ini\" file. ###\n // The default character sets of PHP.\n \\BreakpointDebugging::iniSet('default_charset', 'utf8');\n // The default value of language setting (NLS).\n \\BreakpointDebugging::iniSet('mbstring.language', $language);\n // Set \"mbstring.internal_encoding = utf8\" of \"php.ini\" file because this is purpose to define default value of inner character encoding.\n \\BreakpointDebugging::iniSet('mbstring.internal_encoding', 'utf8');\n // Set \"mbstring.http_input = auto\" of \"php.ini\" file because this is purpose to define default value of HTTP entry character encoding.\n \\BreakpointDebugging::iniSet('mbstring.http_input', 'auto');\n // Set \"mbstring.http_output = utf8\" of \"php.ini\" file because this is purpose to define default value of HTTP output character encoding.\n \\BreakpointDebugging::iniSet('mbstring.http_output', 'utf8');\n \\BreakpointDebugging::iniCheck('mbstring.encoding_translation', array ('1'), 'Set \"mbstring.encoding_translation = Off\" of \"php.ini\" file because this is purpose not to change a input HTTP query into inner character encoding automatically.');\n // Set \"mbstring.substitute_character = none\" of \"php.ini\" file because this is purpose to define character ( it does not display ) which substitutes an invalid character.\n \\BreakpointDebugging::iniSet('mbstring.substitute_character', '');\n // Set \"mbstring.strict_detection = Off\" of \"php.ini\" file because this is purpose to not do strict encoding detection.\n \\BreakpointDebugging::iniSet('mbstring.strict_detection', '');\n // This is possible for any value because \"mbstring.script_encoding\" is unrelated.\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n // ### The \"Fopen wrappers\" setting of \"php.ini\" file ###\n \\BreakpointDebugging::iniCheck('allow_url_fopen', '1', 'Set \"allow_url_fopen = On\" of \"php.ini\" file because this is purpose that a file path is made to be able to specify URL by \"fopen()\" type function.');\n // This is possible for any value because \"allow_url_include\" is not used.\n // This sets \"user_agent\" to \"PHP\".\n \\BreakpointDebugging::iniSet('user_agent', 'PHP');\n // Set for the debugging because \"from\" can be set only in \"php.ini\".\n // This judges an end of a sentence character by the data which was read in \"fgets()\" and \"file()\", and \"PHP_EOL\" constant can be used.\n \\BreakpointDebugging::iniSet('auto_detect_line_endings', '1');\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n // ### \"php.ini\" the file setting ( This sets a security mainly ). ###\n // Timezone setting.\n \\BreakpointDebugging::iniSet('date.timezone', $timezone);\n // This changes \"php.ini\" file setting into \"report_memleaks = On\" because this setting detects a memory leak.\n \\BreakpointDebugging::iniSet('report_memleaks', '1');\n // Change \"php.ini\" file setting into \"track_errors = Off\" because this is not make to insert an error message in direct near \"$php_errormsg\" variable for security.\n \\BreakpointDebugging::iniSet('track_errors', '0');\n if (version_compare(PHP_VERSION, '5.4', '<')) {\n // This limits a user input that it receive by the super global variable for security.\n \\BreakpointDebugging::iniCheck('register_globals', '', 'Set \"register_globals = Off\" of \"php.ini\" file for security.');\n // This doesn't escape user input for execution speed. This escapes with \"addslashes()\" and \"mysqli_real_escape_string()\".\n \\BreakpointDebugging::iniCheck('magic_quotes_gpc', '', 'Set \"magic_quotes_gpc = Off\" of \"php.ini\" file for execution speed.');\n // This makes not escape for execution speed at time of resource reading. Therefore, this changes \"php.ini\" file setting into \"magic_quotes_runtime = Off\".\n \\BreakpointDebugging::iniSet('magic_quotes_runtime', '');\n // This sets safe mode invalidly.\n \\BreakpointDebugging::iniCheck('safe_mode', '', 'This feature has been deprecated in PHP5.3.0. Not to use this feature is strongly recommended generally. Therefore, set \"safe_mode = Off\" of \"php.ini\" file.');\n }\n // This doesn't expose to be using php by server.\n // \\BreakpointDebugging::iniCheck('expose_php', '', 'This should change \"php.ini\" file setting into \"expose_php = Off\" for security.');\n // This changes \"php.ini\" file setting into \"arg_separator.output = \"&amp;\" to be based on XHTML fully.\n \\BreakpointDebugging::iniSet('arg_separator.output', '&amp;');\n \\BreakpointDebugging::iniCheck('short_open_tag', '', '\"php.ini\" file setting must be changed to \"short_open_tag = Off\" because \"BreakpointDebugging_ProductionSwitcher\" does not detect \"&lt;?\" opening tag.');\n \\BreakpointDebugging::iniCheck('asp_tags', '', 'This should change \"php.ini\" file setting into \"asp_tags = Off\" because it can distinguish between other languages by using \"&lt;php?\" opening tag.');\n // This changes \"php.ini\" file setting into \"ignore_user_abort = Off\" because it is purpose to end execution of script when client is disconnected.\n \\BreakpointDebugging::iniSet('ignore_user_abort', '0');\n // This changes \"php.ini\" file setting into \"memory_limit = 128M\" because it works stably by memory limit setting which can be used with script.\n \\BreakpointDebugging::iniSet('memory_limit', '128M');\n // This changes \"php.ini\" file setting into \"implicit_flush = Off\" because it is purpose to prevent a remarkable degradation.\n \\BreakpointDebugging::iniSet('implicit_flush', '');\n \\BreakpointDebugging::iniCheck('scream.enabled', '', 'This should change \"php.ini\" file setting into \"scream.enabled = false\" because it does not make \"@\" error display control operator invalid.');\n if (BREAKPOINTDEBUGGING_IS_WINDOWS) { // In case of Windows.\n if (version_compare(PHP_VERSION, '5.4', '>=')) {\n // Shows crt warnings in case of Windows debug mode.\n ini_set('windows_show_crt_warning', '1');\n }\n }\n // The SMTP port setting of Windows.\n \\BreakpointDebugging::iniSet('smtp_port', '25');\n // \\BreakpointDebugging::iniCheck('mail.add_x_header', '', '\"mail.add_x_header = Off\" setting inside \"php.ini\" file is recommended because does not write that header continue \"UID\" behind the file name.');\n \\BreakpointDebugging::iniCheck('output_buffering', '', 'Sets \\'output_buffering = Off\\' of \"php.ini\" file for output window.');\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n // ### Super global variable filter setting. ###\n \\BreakpointDebugging::iniCheck('filter.default', 'unsafe_raw', 'Set \\'filter.default = unsafe_raw\\' of \"php.ini\" or \".htaccess\" file because of unit test\\'s static backup.');\n \\BreakpointDebugging::iniCheck('filter.default_flags', '', 'Set \\'filter.default_flags = \"\"\\' of \"php.ini\" or \".htaccess\" file because of unit test\\'s static backup.');\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n // When \"Zend OPcache\" exists.\n if (extension_loaded('Zend OPcache')) {\n \\BreakpointDebugging::iniCheck('opcache.enable_cli', '', 'Set \"opcache.enable_cli = 0\" of \"php.ini\" file because CLI from CGI cannot be called with \"popen()\".');\n \\BreakpointDebugging::iniCheck('opcache.validate_timestamps', '1', 'Set \"opcache.validate_timestamps = 1\" of \"php.ini\" file because modified \"*.php\" files must be cached.');\n if (!\\BreakpointDebugging::isDebug() && ($exeMode & B::REMOTE)) { // In case of release remote mode.\n \\BreakpointDebugging::iniCheck('opcache.file_update_protection', array ('', '0'), 'Do not set \"opcache.file_update_protection = 0\" of \"php.ini\" file because production server want to modify a file during execution.' . PHP_EOL . \"\\t\" . 'Recommendation is \"opcache.file_update_protection = 2\".');\n \\BreakpointDebugging::iniCheck('opcache.revalidate_freq', array ('', '0'), 'Do not set \"opcache.revalidate_freq = 0\" of \"php.ini\" file because production server does not want to access a file as much as possible.' . PHP_EOL . \"\\t\" . 'Recommendation is \"opcache.revalidate_freq = 60\".');\n } else { // Except release remote mode.\n \\BreakpointDebugging::iniCheck('opcache.file_update_protection', '', 'Set \"opcache.file_update_protection = 0\" of \"php.ini\" file because modified \"*.php\" files must be cached.');\n \\BreakpointDebugging::iniCheck('opcache.revalidate_freq', '', 'Set \"opcache.revalidate_freq = 0\" of \"php.ini\" file because modified \"*.php\" files must be cached.');\n }\n }\n\n if (BREAKPOINTDEBUGGING_IS_PRODUCTION) { // If production mode.\n ////////////////////////////////////////////////////////////////////////////////\n // ### This setting has been Fixed. ###\n if (!($exeMode & B::UNIT_TEST)) {\n // Outputs a log except \"DEPRECATED\".\n \\BreakpointDebugging::iniSet('error_reporting', (string) (E_ALL & ~E_DEPRECATED));\n // This changes \"php.ini\" file setting into \"log_errors = On\" to record log for security.\n \\BreakpointDebugging::iniSet('log_errors', '1');\n if (!($exeMode & B::REMOTE)) { // In case of local host.\n return;\n }\n // When \"Xdebug\" exists.\n if (extension_loaded('xdebug')) {\n \\BreakpointDebugging::iniCheck('xdebug.remote_enable', '', 'Set \"xdebug.remote_enable = 0\" of \"php.ini\" file because security is kept by invalid \"Xdebug\".');\n // Does not display XDebug information.\n \\BreakpointDebugging::iniSet('xdebug.default_enable', 'Off');\n }\n // For security, it doesn't display all errors, warnings and notices.\n \\BreakpointDebugging::iniSet('display_errors', '');\n // This changes \"php.ini\" file setting into \"display_startup_errors = Off\" Because this makes not display an error on start-up for security.\n \\BreakpointDebugging::iniSet('display_startup_errors', '');\n // This changes \"php.ini\" file setting into \"html_errors = Off\" for security because this does not make output link to page which explains function which HTML error occurred.\n \\BreakpointDebugging::iniSet('html_errors', '');\n return;\n }\n } else { // If development mode.\n include_once './' . BREAKPOINTDEBUGGING_PEAR_SETTING_DIR_NAME . 'BreakpointDebugging_MySetting_InDevelopment.php';\n }\n}", "public function storeSetting( $data, $key )\r\n\t{\r\n\t\tself::$settings[ $key ] = $data;\r\n\t}" ]
[ "0.5931988", "0.5711913", "0.5665766", "0.55426794", "0.5498261", "0.5474244", "0.54460394", "0.54395825", "0.5398371", "0.53870445", "0.53859854", "0.5326814", "0.53218484", "0.5319932", "0.53043395", "0.52959144", "0.52428955", "0.52346885", "0.52236426", "0.5218476", "0.5179876", "0.51751995", "0.5165533", "0.51625925", "0.5156011", "0.5117604", "0.51139265", "0.51124597", "0.50919795", "0.50641", "0.50623333", "0.5055904", "0.50498044", "0.50490874", "0.5047828", "0.50455236", "0.50432605", "0.504214", "0.50374717", "0.5024675", "0.5007963", "0.4986756", "0.49851722", "0.49791363", "0.49791107", "0.49609494", "0.49579638", "0.4953912", "0.49427956", "0.49425676", "0.49335012", "0.49260026", "0.49225715", "0.49217564", "0.49213052", "0.49204537", "0.49202088", "0.49202088", "0.49124897", "0.49112186", "0.49109876", "0.49094623", "0.49078894", "0.48960888", "0.48956385", "0.48716417", "0.48702997", "0.48684612", "0.4856715", "0.48543504", "0.48541954", "0.4853593", "0.48521242", "0.4832232", "0.48282933", "0.4822103", "0.48142856", "0.48069164", "0.4806054", "0.47988516", "0.47982064", "0.4794064", "0.47904947", "0.47895315", "0.47836447", "0.47819403", "0.4766516", "0.47639298", "0.47598258", "0.4750493", "0.4748893", "0.47438803", "0.47407493", "0.47374082", "0.47337404", "0.4726873", "0.4724306", "0.47215798", "0.47211352", "0.47122028" ]
0.57606953
1
Get the applicants of the vacancy
public function applicants() { return $this->hasMany('App\Models\JobApplicant'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function applicants()\n {\n return $this->members()->wherePivot('role', '=', Member::ROLE_APPLICANT)->get();\n }", "public function getCurrentApplicants()\n {\n $builder = $this->createQueryBuilder('a');\n $subQueryBuilder = $this->_em->createQueryBuilder();\n $subQuery = $subQueryBuilder\n ->select('apl')\n ->from('MentorshipMasterBundle:Application', 'apl')\n ->where('apl.applicant = a')\n ->andWhere('apl.finishedAt IS NULL')\n ->getQuery();\n $query = $builder\n ->where($builder->expr()->exists($subQuery->getDQL()))\n ->getQuery();\n $cacheId = self::getCacheId(self::CACHE_ID_ACTIVE_APPLICANTS_SET);\n $query->useResultCache(true, 3600, $cacheId);\n return $query->getResult();\n }", "public function getAllApplicants();", "public function applicants() {\n\t\t// Utility variables\n\t\t$db = Helium::db();\n\t\t$app = 'Applicant'; // change to BetterApplicant for optimization\n\n\t\t// Here's how this works:\n\t\t// 1. Read filter from query string\n\t\t// If there is no filter, apply default filter\n\t\t// 2. Display applicants based on params[view]\n\t\t// view=stats or view=list\n\t\t// If there is no view param, apply default view.\n\n\t\t// Filtering\n\t\t// Final product: $constraints\n\n\t\t// Filter by chapter\n\t\t// This can only be used by national admin\n\t\tif ($this->user->capable_of('national_admin')) {\n\t\t\tif ($this->params['chapter_id'] && $this->params['chapter_id'] != 1) {\n\t\t\t\t$constraints[] = 'chapter_id=' . $this->params['chapter_id'];\n\t\t\t\t$chapter = Chapter::find($this->params['chapter_id']);\n\t\t\t}\n\t\t}\n\t\t// Otherwise, only list applicants from user's chapter\n\t\telse {\n\t\t\t$constraints[] = 'chapter_id=' . $this->user->chapter_id;\n\t\t\t$chapter = $this->user->chapter;\n\t\t}\n\n\t\t// Filter by stage\n\t\t$current_stage = $this->params['stage'] ? $this->params['stage'] : 'active';\n\t\tswitch ($current_stage) {\n\t\t\tcase 'incomplete':\n\t\t\t\t$constraints[] = 'confirmed=0 AND finalized=0 AND expires_on > NOW()';\n\t\t\t\tbreak;\n\t\t\tcase 'expired':\n\t\t\t\t$constraints[] = 'confirmed=0 AND finalized=0 AND expires_on < NOW()';\n\t\t\t\tbreak;\n\t\t\tcase 'confirmed':\n\t\t\t\t$constraints[] = 'confirmed=1';\n\t\t\t\tbreak;\n\t\t\tcase 'finalized':\n\t\t\t\t$constraints[] = 'finalized=1';\n\t\t\t\tbreak;\n\t\t\tcase 'not_yet_confirmed':\n\t\t\t\t$constraints[] = 'expires_on <= NOW() AND confirmed=0 AND finalized=1';\n\t\t\t\tbreak;\n\t\t\tcase 'active':\n\t\t\tcase 'selection_1':\n\t\t\t\t$constraints[] = 'expires_on > NOW() OR finalized=1';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Specific filters -- through a custom search query\n\t\t$filter = $this->params['filter'];\n\t\tif (is_array($filter)) {\n\t\t\t$current_stage = 'search';\n\t\t\t$search_title = array();\n\n\t\t\t// Filter by school\n\t\t\tif ($filter['school_name']) {\n\t\t\t\t$constraints[] = \"sanitized_high_school_name='\" . $filter['school_name'] . \"'\";\n\t\t\t\t$search_title[] = $filter['school_name'];\n\t\t\t\tunset($filter['school_name']);\n\t\t\t}\n\n\t\t\t// Filter by name\n\t\t\tif ($filter['name']) {\n\t\t\t\t$constraints[] = $db->prepare(\"`sanitized_full_name` LIKE '%%%s%%'\", str_replace(' ', '%', $this->params['name']));\n\t\t\t\t$search_title = $filter['name'];\n\t\t\t\tunset($filter['name']);\n\t\t\t}\n\n\t\t\t// For other filters, merge them into constraints\n\t\t\tforeach ($filter as $k => $v) {\n\t\t\t\t$constraints[$k] = $v;\n\t\t\t}\n\t\t}\n\n\t\t// View selection\n\t\t$view = $this->params['view'];\n\t\t$acceptable_views = array('list', 'stats');\n\t\tif (!$view && !in_array($view, $acceptable_views)) {\n\t\t\t$view = 'list';\n\t\t}\n\n\t\tswitch ($view) {\n\t\t\tcase 'list':\n\t\t\t\t// List-specific magic here: pagination, etc.\n\t\t\t\t$applicants = $app::find('chapter_id=5');\n\t\t\t\tforeach ($constraints as $constraint) {\n\t\t\t\t\t$applicants->narrow('(' . $constraint . ')');\n\t\t\t\t}\n\t\t\t\t// -- Pagination --\n\t\t\t\t$batch_length = 100;\n\t\t\t\t$applicants->set_batch_length($batch_length);\n\t\t\t\tif (!$this->params['page'])\n\t\t\t\t\t$this->params['page'] = 1;\n\t\t\t\t$page = $this->params['page'];\n\t\t\t\t$count_all = $applicants->count_all();\n\t\t\t\t$applicants->set_batch_number($page);\n\t\t\t\t$first = (($page - 1) * $batch_length) + 1;\n\t\t\t\t$last = ($first + $batch_length - 1) > $count_all ? $count_all : ($first + $batch_length - 1);\n\n\t\t\t\t// Applicants is now ready for listing.\n\t\t\t\t$this['applicants'] = $applicants;\n\t\t\t\t$this['chapter'] = $chapter;\n\t\t\t\t$this['total_pages'] = $applicants->get_number_of_batches();\n\t\t\t\t$this['current_page'] = $page;\n\t\t\t\t$this['first'] = $first;\n\t\t\t\t$this['last'] = $last;\n\t\t\t\t$this['count_all'] = $count_all;\n\t\t\t\t$this['search_title'] = $search_title;\n\t\t\t\t$this['current_stage'] = $this->params['stage'];\n\t\t\t\tbreak;\n\t\t\tcase 'stats':\n\t\t\t\t$stats = array(\n\t\t\t\t\t'sex' => array(\n\t\t\t\t\t\t'type' => 'pie',\n\t\t\t\t\t\t'field' => 'sex',\n\t\t\t\t\t\t'partition' => 'applicant_personal_details',\n\t\t\t\t\t),\n\t\t\t\t\t'school' => array(\n\t\t\t\t\t\t'type' => 'pie',\n\t\t\t\t\t\t'field' => 'sanitized_high_school_name',\n\t\t\t\t\t\t'partition' => 'applicant_personal_details',\n\t\t\t\t\t),\n\t\t\t\t\t'chapter' => array(\n\t\t\t\t\t\t'type' => 'pie',\n\t\t\t\t\t\t'field' => 'chapter_id',\n\t\t\t\t\t\t'base_query' => \"SELECT COUNT(*) AS rows, %s AS chapter_id, chapter_name AS value FROM applicants INNER JOIN chapters %s ON chapter_id=chapters.id WHERE %s AND (applicants.expires_on > NOW() or applicants.finalized=1) GROUP BY %s ORDER BY rows DESC\",\n\t\t\t\t\t),\n\t\t\t\t\t'province' => array(\n\t\t\t\t\t\t'type' => 'pie',\n\t\t\t\t\t\t'field' => 'applicant_address_province',\n\t\t\t\t\t\t'partition' => 'applicant_contact_info',\n\t\t\t\t\t),\n\t\t\t\t\t'city' => array(\n\t\t\t\t\t\t'type' => 'pie',\n\t\t\t\t\t\t'field' => \"CONCAT(applicant_address_city, ', ', applicant_address_province)\",\n\t\t\t\t\t\t'partition' => 'applicant_contact_info',\n\t\t\t\t\t),\n\t\t\t\t);\n\n\t\t\t\tif ($constraints)\n\t\t\t\t\t$constraint_string = implode(' AND ', $constraints);\n\t\t\t\telse\n\t\t\t\t\t$constraint_string = '1';\n\t\t\t\t\n\t\t\t\tforeach ($stats as $key => $group) {\n\t\t\t\t\tunset($type, $field, $partition, $base_query, $join_string);\n\t\t\t\t\textract($group);\n\t\t\t\t\tif (!$base_query)\n\t\t\t\t\t\t$base_query = \"SELECT COUNT(*) AS rows, %s AS value FROM applicants %s WHERE %s AND (applicants.expires_on > NOW() or applicants.finalized=1) GROUP BY %s ORDER BY rows DESC\";\n\n\t\t\t\t\tif ($partition)\n\t\t\t\t\t\t$join_string = $db->prepare(\"INNER JOIN `%s` ON `%s`.applicant_id = applicants.id\", $partition, $partition);\n\n\t\t\t\t\t$the_query = sprintf($base_query, $field, $join_string, $constraint_string, $field);\n\t\t\t\t\t$results = $db->get_results($the_query);\n\t\t\t\t\t\n\t\t\t\t\t$series = array();\n\t\t\t\t\t$total = 0;\n\t\t\t\t\tif (is_array($results)) {\n\t\t\t\t\t\tforeach ($results as $row) {\n\t\t\t\t\t\t\t$rows = $row->rows;\n\t\t\t\t\t\t\t$value = $row->value;\n\t\t\t\t\t\t\t$value = trim($value); // perhaps more trimming could be in order\n\n\t\t\t\t\t\t\tif ($series[$value])\n\t\t\t\t\t\t\t\t$series[$value] += $rows;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$series[$value] = $rows;\n\n\t\t\t\t\t\t\t$total += $rows;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$stats[$key]['data'] = compact('series', 'total');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// country preferences - special stats\n\t\t\t\t/*\n\t\t\t\t$countries = $db->get_col(\"SELECT country_preference_1, COUNT(*) AS rows FROM applicant_program_choices WHERE country_preference_1 IS NOT NULL AND country_preference_1 != '' GROUP BY country_preference_1 ORDER BY rows DESC\");\n\t\t\t\t$country_stats = array();\n\t\t\t\tforeach ($countries as $country) {\n\t\t\t\t\t$numbers = array();\n\t\t\t\t\tfor ($i = 1; $i <= 10; $i++) {\n\t\t\t\t\t\t$cq = \"SELECT COUNT(*) FROM applicant_program_choices INNER JOIN applicants ON applicants.id=applicant_program_choices.applicant_id WHERE country_preference_$i='$country' AND $constraint_string\";\n\t\t\t\t\t\t$numbers[$i] = $db->get_var($cq);\n\t\t\t\t\t}\n\t\t\t\t\t$country_stats[$country] = $numbers;\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t$total_afs = $db->get_var(\"SELECT COUNT(*) FROM applicant_program_choices INNER JOIN applicants ON applicants.id=applicant_program_choices.applicant_id WHERE program_afs='1' AND $constraint_string\");\n\t\t\t\t\n\t\t\t\t// other countries - special stats\n\t\t\t\t$other_countries = $db->get_col(\"SELECT country_preference_other FROM applicant_program_choices INNER JOIN applicants ON applicants.id=applicant_program_choices.applicant_id WHERE country_preference_other != 'N/A' AND country_preference_other != 'NA' AND $constraint_string\");\n\t\t\t\t$split_pattern = \"/[,;\\/&]+|\\s+(dan|and)\\s+/i\";\n\t\t\t\t\n\t\t\t\t$country_cases = array();\n\t\t\t\t$other_countries_series = array();\n\t\t\t\t$other_countries_total = 0;\n\t\t\t\t\n\t\t\t\t$country_normalization_patterns = array(\n\t\t\t\t\t'/london|inggris|britania raya|england|uk/i' => 'United Kingdom',\n\t\t\t\t\t'/\\s+\\(.*\\)/' => '',\n\t\t\t\t\t'/korea( selatan)?|south korea/i' => 'South Korea',\n\t\t\t\t\t'/kanada/i' => 'Canada',\n\t\t\t\t\t'/singapura/i' => 'Singapore',\n\t\t\t\t\t'/spanyol/i' => 'Spain',\n\t\t\t\t\t'/^arab( saudi)?$/i' => 'Saudi Arabia',\n\t\t\t\t\t'/turki/i' => 'Turkey',\n\t\t\t\t\t'/rusia/i' => 'Russia',\n\t\t\t\t\t'/^(republik rakyat )?ch?ina$|^rrc$/i' => \"China, People's Republic of\",\n\t\t\t\t\t'/selandia baru|nz/i' => 'New Zealand'\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tforeach ($other_countries as $list_of_countries) {\n\t\t\t\t\t$split_countries = preg_split($split_pattern, $list_of_countries);\n\t\t\t\t\tforeach ($split_countries as $country_name) {\n\t\t\t\t\t\t$country_name = trim($country_name, ' -');\n\t\t\t\t\t\tif (!$country_name)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t$country_name = preg_replace(array_keys($country_normalization_patterns), array_values($country_normalization_patterns), $country_name);\n\n\t\t\t\t\t\t$lowercased = strtolower($country_name);\n\t\t\t\t\t\tif ($proper_case = $country_cases[$lowercased]) {\n\t\t\t\t\t\t\t$other_countries_series[$proper_case]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$country_cases[$lowercased]\t= $country_name;\n\t\t\t\t\t\t\t$other_countries_series[$country_name] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$other_countries_total++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$stats['other_countries'] = array(\n\t\t\t\t\t'type' => 'bar',\n\t\t\t\t\t'data' => array(\n\t\t\t\t\t\t'series' => $other_countries_series,\n\t\t\t\t\t\t'total' => $total_afs\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\t$this['stats'] = $stats;\n\t\t\t\t$this['country_stats'] = $country_stats;\n\t\t\t\t$this['total_afs'] = $total_afs;\n\t\t\t\t$this['chapter'] = $chapter;\n\t\t\t\t$this['search_title'] = $search_title;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this['current_stage'] = $current_stage;\n\t\t$this['view'] = $view;\n\t\t$this['search_title'] = $search_title ? implode(', ', $search_title) : '';\n\t}", "private function getAllApplicants() {\n $applicants = DB::table('crew')\n ->leftJoin('crewfasttrack', 'crewfasttrack.APPLICANTNO', '=', 'crew.APPLICANTNO')\n ->leftJoin('fasttrack', 'fasttrack.fasttrack', '=', 'crewfasttrack.FASTTRACKCODE')\n ->leftJoin('crewscholar', 'crewscholar.APPLICANTNO', '=', 'crew.APPLICANTNO')\n ->leftJoin('scholar', 'scholar.SCHOLASTICCODE', '=', 'crewscholar.SCHOLASTICCODE')\n ->leftJoin('crewchange', function ($join) {\n $join->on('crewchange.APPLICANTNO', '=', 'crew.APPLICANTNO')\n ->where('crewchange.DATEEMB', DB::raw(\"(select max(crewchange.DATEEMB) from crewchange where crewchange.APPLICANTNO = crew.APPLICANTNO )\"))\n ->groupby('crewchange.APPLICANTNO');\n })\n ->leftJoin('rank', 'rank.RANKCODE', '=', 'crewchange.RANKCODE')\n ->leftJoin('vessel', function ($join) {\n $join->on('vessel.VESSELCODE', '=', 'crewchange.VESSELCODE')\n ->whereDate('crewchange.DATEEMB', '<', Carbon::now())\n ->whereDate('crewchange.DATEDISEMB', '>', Carbon::now());\n })\n ->select('crew.APPLICANTNO', 'crew.CREWCODE', 'crew.FNAME', 'crew.GNAME', 'crew.MNAME', 'crew.STATUS', \n 'crew.UTILITY', 'scholar.DESCRIPTION', 'fasttrack.FASTTRACK', 'rank.RANK', 'vessel.VESSEL')->paginate(15);\n return $applicants;\n }", "public function getInactiveApplicants()\n {\n $builder = $this->createQueryBuilder('a');\n $subQueryBuilder = $this->_em->createQueryBuilder();\n $subQuery = $subQueryBuilder\n ->select('1')\n ->from('MentorshipMasterBundle:Application', 'apl')\n ->where($subQueryBuilder->expr()->isNull('apl.finishedAt'))\n ->andWhere(\n $subQueryBuilder->expr()->eq('apl.applicant', 'a')\n )->getDQL();\n $query = $this\n ->createQueryBuilder('a')\n ->distinct()\n ->where('a.isActive = FALSE')\n ->andWhere(\n $builder->expr()->not(\n $builder->expr()->exists($subQuery)\n )\n )\n ->getQuery();\n $cacheId = self::getCacheId(self::CACHE_ID_INACTIVE_APPLICANTS_SET);\n $query->useResultCache(true, 3600, $cacheId);\n return $query->getResult();\n }", "public function getVacancyResult() {\n return $this->response->vacancies;\n }", "public function getWaitingApplicants()\n {\n $builder = $this->createQueryBuilder('a');\n $subQueryBuilder = $this->_em->createQueryBuilder();\n $subQuery = $subQueryBuilder\n ->select('1')\n ->from('MentorshipMasterBundle:Application', 'apl')\n ->where($subQueryBuilder->expr()->isNull('apl.finishedAt'))\n ->andWhere(\n $subQueryBuilder->expr()->eq('apl.applicant', 'a')\n )->getDQL();\n $query = $this\n ->createQueryBuilder('a')\n ->distinct()\n ->where('a.isActive = TRUE')\n ->andWhere(\n $builder->expr()->not(\n $builder->expr()->exists($subQuery)\n )\n )\n ->getQuery();\n $cacheId = self::getCacheId(self::CACHE_ID_WAITING_APPLICANTS_SET);\n $query->useResultCache(true, 3600, $cacheId);\n return $query->getResult();\n }", "public function index()\n {\n return view('applicants.index')->with([\n 'applicants' => JobApplicant::with('vacancy')->get(),\n 'statuses' => JobApplicant::$statuses,\n 'vacancies' => Vacancy::all(),\n ]);\n }", "function getAcceptedApplications()\r\n {\r\n $db = db_connect();\r\n $sql = \"SELECT account.* FROM account, application WHERE account.accountID = application.accountID AND \r\n account.role = :role: AND application.applicationStatus = :applicationStatus: ORDER BY \r\n account.accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0,\r\n 'applicationStatus' => 'A'\r\n ]);\r\n\r\n return $results;\r\n }", "public function getAllApplicants($args) {\n // faculty: return all applicants in db\n $role = $this->getAccessRole();\n if ($role == $this::ACCESS_FACULTY) {\n $query = $this->dbc->prepare('\n SELECT *\n FROM `Applicants`;\n ');\n\n $applicantArray = array();\n $result = $query->execute();\n\n while ($row = $query->fetch()) {\n $applicantArray[] = new Applicant($row);\n }\n\n return $applicantArray;\n } elseif ($role == $this::ACCESS_USER) {\n $query = $this->dbc->prepare('\n SELECT *\n FROM Applicants\n WHERE applicantID = :applicantID;\n ');\n $query->setFetchMode(PDO::FETCH_ASSOC);\n $query->bindParam(':applicantID', $this->userApplicantID);\n\n try {\n $query->execute();\n } catch (Exception $e) {\n return http_response_code(StatusCodes::BAD_REQUEST);\n }\n\n $applicantInfo = $query->fetch();\n\n return $applicantInfo;\n } elseif ($role == $this::ACCESS_NONE) {\n return http_response_code(StatusCodes::METHOD_NOT_ALLOWED);\n }\n\n // if we get here, something went wrong.\n return http_response_code(StatusCodes::INTERNAL_SERVER_ERROR);\n }", "public function getAllApp()\n {\n $sql = \"SELECT * FROM appointment\";\n $values=array();\n \n $ap=$this->getInfo($sql,$values);\n\n return $ap;\n }", "public function index()\n {\n $vacations = Vacation::get();\n return VacationResource::collection($vacations);\n }", "public function index()\n {\n return Applicant::all();\n }", "public function index()\n\t{\n\t\treturn $this->vacationRepository->all();\n\t}", "public function getAppointments()\n {\n $search['office'] = (auth()->user()->offices->count()) ? auth()->user()->offices->first()->id : '';\n\n $search['date1'] = isset($search['date1']) ? Carbon::parse($search['date1']) : '';\n $search['date2'] = isset($search['date2']) ? Carbon::parse($search['date2']) : '';\n \n $appointments = $this->appointmentRepo->findAllByDoctorWithoutPagination(request('medic'),$search);\n\n return $appointments;\n \n }", "public function getVacations()\n {\n return $this->hasMany(Vacation::className(), ['id' => 'id']);\n }", "public function getAvailableApplicants($pid) {\n $applicants = DB::table('preferences')\n ->join('applicants', 'applicants.aid', '=', 'preferences.id_from')\n ->where('preferences.program_id', '=', $pid)\n ->whereIn('preferences.status', [1, -1])\n ->where('preferences.pr_kind', '=', 1)\n ->select('applicants.*')\n ->distinct()\n ->get();\n\n return $applicants;\n }", "public function getApplications()\n {\n $res = $this->getEntity()->getApplications();\n\t\tif($res === null)\n\t\t{\n\t\t\t$this->setApplications(SDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->findAllByCriteria('Application', array('primary' => $this::getPrimary())));\n\t\t\treturn $this->getEntity()->getApplications();\n\t\t}\n return $res;\n }", "public function index()\n {\n return ApplicantResource::collection(Applicant::all());\n }", "public function index()\n {\n //\n $absents = AbsentApplication::whereIn('user_id',\n User::whereIn('id',\n ProjectUser::whereIn('project_id',\n Project::where('managed',\n Auth::user()->id)->get()->pluck('id'))\n ->get()->pluck('user_id'))\n ->get()->pluck('id'))\n ->where('state', AbsentApplication::getAbsentWaitting())->get();\n\n\n return response()->json([\n 'absents' => $absents,\n ], 200);\n }", "public function getVacancyResult() {\n return $this->response->items;\n }", "public function getApresentacoes()\n {\n return $this->apresentacoes;\n }", "public function getAll()\n {\n return\n DB::table('attendances')\n ->select(\n 'id',\n 'code',\n 'name',\n 'description',\n 'permit_code as permitCode'\n )\n ->where([\n ['tenant_id', $this->requester->getTenantId()],\n ['company_id', $this->requester->getCompanyId()]\n ])\n ->get();\n }", "public function getAnApplicant($application_id);", "function cicleinscription_get_vacancies_remaning(){\n\t\n}", "function activity_apps(){\n\n // find out the activities of the current ssp year\n $activity_apps = $this->paginate('ActivityApp', array('ActivityApp.year'=>$this->__current_ssp_year()));\n $this->set(compact('activity_apps'));\n\n $departments = $this->Department->find('list', array('fields'=>array('id', 'abbr'), 'order'=>'abbr asc'));\n $this->set(compact('departments'));\n }", "public function getAppointments()\n {\n return $this->hasMany(Appointment::className(), ['id' => 'id']);\n }", "public function getAtivas()\n {\n return Experiencia::ativas()->orderBy('ordem')->get();\n }", "public function getContractorApplications()\n {\n return $this->hasMany(ContractorApplication::className(), ['applicant_id' => 'id']);\n }", "public function showAll() {\n return response()->json(Appointment::all());\n }", "public function getApplications()\n\t{\n\t}", "public function jobApplicants()\n {\n $self='job-applicants';\n if (\\Auth::user()->user_name!=='admin'){\n $get_perm=permission::permitted($self);\n\n if ($get_perm=='access denied'){\n return redirect('permission-error')->with([\n 'message' => language_data('You do not have permission to view this page'),\n 'message_important'=>true\n ]);\n }\n }\n\n\n $job_applicants = JobApplicants::where('status', '!=', 'Unread')->where('status', '!=', 'Rejected')->get();\n\n return view('admin.job-applicants-summery', compact('job_applicants'));\n }", "public function index()\n {\n $applicant = Applicant::all();\n\n return $this->showAll($applicant);\n }", "public function getApplicants($jobID) {\r\n\t\t$query = \"SELECT userID FROM applications WHERE jobID='$jobID'\";\r\n\t\t$data = $this -> multiSelectQuery($query);\r\n\t\treturn $data;\r\n\t}", "public function index()\n {\n $vacancies = Vacancy::where('user_id', Auth::user()->id)\n ->get();\n return view('vacancies.index', ['vacancies' => $vacancies]);\n }", "function getWaitListedApplications()\r\n {\r\n $db = db_connect();\r\n $sql = \"SELECT account.* FROM account, application WHERE account.accountID = application.accountID AND \r\n account.role = :role: AND application.applicationStatus = :applicationStatus: ORDER BY \r\n account.accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0,\r\n 'applicationStatus' => 'W'\r\n ]);\r\n\r\n return $results;\r\n }", "public function index(): AnonymousResourceCollection\n {\n $vacancies = QueryBuilder::for(Vacancy::class)\n ->when(request('category_id','')!= '', function ($query){$query->where('category_id',request('category_id'));})\n ->when(request('job_type_id','')!= '', function ($query){$query->where('job_type_id',request('job_type_id'));})\n ->when(request('district_id','')!= '', function ($query){$query->where('district_id',request('district_id'));})\n ->with(['category', 'district', 'cities', 'jobs', 'files'])\n ->orderBy('id', 'desc')\n ->where( 'is_approved', 1)\n ->paginate(10);\n return DataResource::collection($vacancies);\n }", "function getAportacionesSociales(){ $D\t= $this->getDatosAportaciones(); return $D[\"aportaciones\"]; \t}", "public function viewApplicants(){\n\t\tif(!isset($_POST['type'])){\n\t\t\t$_POST['type'] = \"\";\n\t\t}\n\t\t$vacancy=$_POST['type'];\n\t\t\n\t\t$data=[];\n\t\t$this->load->model('SAR/ApplicantsModel');\n\t\t$data['array']=$this->ApplicantsModel->getAllApplicants($_POST['type']);\n\t\t$data['position']=$vacancy;\n\t\t$this->load->view('includes/header');\n\t\t$this->load->view('users/SAR/applicants',$data);\n\t\t$this->load->view('includes/footer');\n\t}", "function getAllApplications()\r\n {\r\n //Connect to the DB, build query\r\n $db = db_connect();\r\n $sql = \"SELECT * FROM account WHERE role = :role: ORDER BY accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0\r\n ]);\r\n return $results;\r\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $vacancies = $em->getRepository('AppBundle:Vacancy')->findAll();\n\n return $this->render('vacancy/index.html.twig', array(\n 'vacancies' => $vacancies,\n ));\n }", "public function getAtivas()\n {\n return Expedicao::ativas()->orderBy('ordem')->get();\n }", "public function getAppointments(){\n\t\tif (Auth::user()->type==4) {\n\t\t\t# code...\n\t\t\treturn redirect()->back(); \n\t\t}\n\t\t$todays = $this->getTodayAppointments(); \n\t\treturn view('appointments.nurseAppointments',compact('todays'));\n\t}", "public function appointments()\n {\n return view('patient.pending-appointments');\n }", "public function getApplications () {\n return Internship::getInternshipsAppliedTo($this->getId());\n }", "public function index()\n {\n return ApplicationResource::collection(auth()->user()->applications);\n }", "public function index()\n {\n return Airplaneseat::all();\n }", "public function index()\n {\n if (Auth::check()){\n if (Auth::user()->isRole('OFFICER')){\n $apartments = Apartment::whereUserId(Auth::id())->get();\n }\n if (Auth::user()->isAdmin()){\n $apartments = Apartment::get();\n }\n }\n else {\n $apartments = Apartment::get();\n }\n\n return view('apartments.index',[\n 'apartments' => $apartments\n ]);\n }", "public function index()\n {\n $absences = Auth::user()->office->absences;\n $absence = new Absence();\n $valid_datas = $absence->validOnData();\n $types = $absence->carryoverType();\n return view('absences.index', compact('absences', 'valid_datas', 'types'));\n }", "public function index()\n {\n if(Auth::check()){\n if (Auth::user()->isRole('OFFICER')){\n $apartments = Apartment::whereUserId(Auth::id())->with('rooms')->get();\n } else {\n $apartments = Apartment::with('rooms')->get();\n }\n }\n else {\n $apartments = Apartment::with('rooms')->get();\n }\n return view('apartments.index',[\n 'apartments' => $apartments\n ]);\n }", "public function index()\n {\n return UserAgency::with([])\n ->get();\n }", "public function index()\n {\n $applications = Application::all();\n return $applications;\n }", "public function listAction(){\n\n $listAdverts = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('OCPlatformBundle:Advert')\n ->getAdvertWithApplications()\n ;\n\n foreach ($listAdverts as $advert) {\n // Ne déclenche pas de requête : les candidatures sont déjà chargées !\n // Vous pourriez faire une boucle dessus pour les afficher toutes\n $advert->getApplications();\n }\n }", "public function actionIndex()\n {\n $searchModel = new TabelAppointmentSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n $appointmentList = $this->connection->getValue();\n foreach ($appointmentList as $key => $appointment) {\n # code...\n if(array_key_exists('approved', $appointment) && $appointment['approved'] == false){\n unset($appointmentList[$key]);\n }\n }\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'appointmentList' => $appointmentList\n ]);\n }", "public function show(Vacancies $vacancies)\n {\n \n }", "public function index()\n {\n $date = Carbon::now();\n\n $works = Working::whereMonth('date', Carbon::now()->format('m'))->whereYear('date', Carbon::now()->format('Y'))->whereDay('date', Carbon::now()->format('d'))->get();\n\n $lates = Working::where('status', 0)->whereMonth('date', Carbon::now()->format('m'))->whereYear('date', Carbon::now()->format('Y'))->whereDay('date', Carbon::now()->format('d'))->get();\n\n $statics = Working::where('status', 1)->whereMonth('date', Carbon::now()->format('m'))->whereYear('date', Carbon::now()->format('Y'))->get()->unique('user_id');\n\n $vacations = Vacation::where('status', 1)->where('date_start', 'like', '%' . Carbon::now()->format('Y-m-d') . '%')->where('date_end', 'like', '%' . Carbon::now()->format('Y-m-d') . '%')->get()->unique('user_id');\n\n return view('backend.users.vacations.index', compact('date', 'works', 'lates', 'statics', 'vacations'));\n }", "public function appointments()\n {\n return $this->hasMany(Appointment::class);\n }", "public function appointments()\n {\n return $this->hasMany(Appointment::class);\n }", "public function appointments()\n {\n return $this->hasMany(Appointment::class);\n }", "public function getApplications()\n {\n return $this->applications;\n }", "public function index()\n {\n $user = auth()->user();\n if( $user->role == 'Admin')\n { \n\n $currentMonth = date('m');\n $today = date('Y-m-d');\n\n $appointments = Appointment::selectRaw('year(created_at) year, monthname(created_at) month, count(*) data')\n ->groupBy('year', 'month')\n ->orderBy('year', 'desc')\n ->get();\n\n $sectors = Appointment::select('sector_id', DB::raw('count(*) as total'))\n ->whereRaw('MONTH(created_at) = ?',[$currentMonth])\n ->groupBy('sector_id')->orderBy('total','desc')\n ->get();\n\n $latest_appointments = Appointment::orderBy('id','desc')->limit(10)->get();\n $appointment_months = [];\n $appointment_month_count = [];\n $sector_name = [];\n $sector_appointment_count = [];\n\n foreach ($appointments as $appointment)\n {\n $appointment_months[] = $appointment->month;\n $appointment_month_count[] = $appointment->data;\n }\n\n foreach ($sectors as $sector)\n {\n $sector_name[] = $sector->sector->name;\n $sector_appointment_count[] = $sector->total;\n }\n\n return view('admin.home', [\n 'branches_count' => Branches::where('disable', 0)->count(),\n 'sectors_count' => Sector::where('disable', 0)->count(),\n 'staff_count' => User::where('disable', 0)->where('role', 'Staff')->count(),\n 'doctors_count' => User::where('disable', 0)->where('role', 'Doctor')->count(),\n 'patients_count' => Patients::all()->count(),\n 'today_appointments' => Appointment::where('appointment_date', $today)->count(),\n 'done_appointments' => Appointment::where('appointment_date', '<', $today)->count(),\n 'total_appointments' => Appointment::all()->count(),\n 'appointment_months' => $appointment_months,\n 'appointment_month_count' => $appointment_month_count,\n 'sector_name' => $sector_name,\n 'sector_appointment_count' => $sector_appointment_count,\n 'latest_appointments' => $latest_appointments,\n ]);\n }\n else if( $user->role == 'Staff')\n {\n $branch = Branches::where('id', $user->branch_id)->first();\n $currentMonth = date('m');\n $today = date('Y-m-d');\n\n $appointments = Appointment::where('branch_id', $user->branch_id)->selectRaw('year(created_at) year, monthname(created_at) month, count(*) data')\n ->groupBy('year', 'month')\n ->orderBy('year', 'desc')\n ->get();\n\n $sectors = Appointment::where('branch_id', $user->branch_id)->select('sector_id', DB::raw('count(*) as total'))\n ->whereRaw('MONTH(created_at) = ?',[$currentMonth])\n ->groupBy('sector_id')->orderBy('total','desc')\n ->get();\n\n $latest_appointments = Appointment::where('branch_id', $user->branch_id)->orderBy('id','desc')->limit(10)->get();\n $appointment_months = [];\n $appointment_month_count = [];\n $sector_name = [];\n $sector_appointment_count = [];\n\n foreach ($appointments as $appointment)\n {\n $appointment_months[] = $appointment->month;\n $appointment_month_count[] = $appointment->data;\n }\n\n foreach ($sectors as $sector)\n {\n $sector_name[] = $sector->sector->name;\n $sector_appointment_count[] = $sector->total;\n }\n\n return view('staff.home', [\n 'sectors_count' => $branch->sectors()->count(),\n 'staff_count' => User::where('disable', 0)->where('role', 'Staff')->where('branch_id', $branch->id)->count(),\n 'doctors_count' => User::where('disable', 0)->where('role', 'Doctor')->where('branch_id', $branch->id)->count(),\n 'patients_count' => Patients::all()->count(),\n 'today_appointments' => Appointment::where('appointment_date', $today)->where('branch_id', $branch->id)->count(),\n 'done_appointments' => Appointment::where('appointment_date', '<', $today)->where('branch_id', $branch->id)->count(),\n 'total_appointments' => Appointment::where('branch_id', $branch->id)->count(),\n 'appointment_months' => $appointment_months,\n 'appointment_month_count' => $appointment_month_count,\n 'sector_name' => $sector_name,\n 'sector_appointment_count' => $sector_appointment_count,\n 'latest_appointments' => $latest_appointments,\n ]);\n\n }\n else if( $user->role == 'Doctor')\n {\n $today = date('Y-m-d');\n return view('doctor.home', [\n 'today_appointments' => Appointment::where('doctor_id', $user->id)->where('appointment_date', $today)->count(),\n 'done_appointments' => Appointment::where('doctor_id', $user->id)->where('appointment_date', '<', $today)->count(),\n 'total_appointments' => Appointment::where('doctor_id', $user->id)->count(),\n ]);\n\n }\n\n }", "public function retrieveInactiveApplications()\n {\n return $this->start()->uri(\"/api/application\")\n ->urlParameter(\"inactive\", true)\n ->get()\n ->go();\n }", "public function appointments()\n {\n //the relationship means that the class midwife can associate with many appointments\n return $this->hasMany(Appointment::class);\n }", "public function getAprovados()\n\t{\n\t\t \n\t\treturn $this->countByAttributes(array('status'=>2));\n\t}", "public function getLiveApps()\n {\n $em = $this->getEntityManager();\n $query = $em->createQuery(\n 'SELECT p\n FROM Vlreleases\\UserBundle\\Entity\\LiveApps p'\n );\n $result = $query->getResult();\n \n return $result;\n }", "function get_patient_queue()\n {\n return Appointments::whereStatus(2)->get();\n }", "public static function getShiftsApplications();", "public function index()\n {\n return $this->attendanceRepository->all();\n }", "public function index()\n {\n $h = Holiday::where('applicant_id',auth()->user()->id)->latest()->first();\n $p = Permit::where('applicant_id',auth()->user()->id)->latest()->first();\n if($h){\n if($h->state == Holiday::APROBADO){\n alert()->success('Sus vacaciones han sido aprobadas!','Debe dirigirse a la Oficina de gestión humana para firmar su solicitud');\n return view('home');\n }\n }elseif($p){\n if($p->state == Permit::APROBADO){\n alert()->success('La solicitud de permiso ha sido aprobada!');\n return view('home');\n }\n }\n return view('home');\n }", "public function getAll()\n\t{\n\t\treturn $this->_db->query('SELECT applicants.*, ats_jobs.id AS job_id,\n\t\t\t\t\t\t\t\t\tats_jobs.uristub, ats_jobs.category,\n\t\t\t\t\t\t\t\t\tats_jobs.location, ats_jobs.name AS job_name\n\t\t\t\t\t\t\t\t\tFROM applicants\n\t\t\t\t\t\t\t\t\tINNER JOIN ats_jobs ON (applicants.job_id = ats_jobs.id)\n\t\t\t\t\t\t\t\t\tORDER BY applicants.created_ts DESC')->fetchAll();\n\t}", "public function index()\n {\n $patient = Patient::getAppointments(Auth::user()->id);\n return view('patient.appointment.index', compact('patient'));\n }", "public function index()\n {\n return Auto::with('type', 'organizations', 'employers', 'employers.position')->get();\n }", "function getRejectedApplications()\r\n {\r\n $db = db_connect();\r\n $sql = \"SELECT account.* FROM account, application WHERE account.accountID = application.accountID AND \r\n account.role = :role: AND application.applicationStatus = :applicationStatus: ORDER BY \r\n account.accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0,\r\n 'applicationStatus' => 'R'\r\n ]);\r\n\r\n return $results;\r\n }", "public function vacation()\n {\n return view('profile.vacation');\n }", "public function vacantes()\n {\n return $this->hasMany('App\\BolsaEmpleo\\Vacante', 'puesto_id', 'id');\n }", "public function index()\n {\n $user = Auth::user();\n $doctors = Doctor::all();\n $patients = Patient::all();\n if ($user->hasRole('admin')) {\n $appointments = Appointment::all();\n } elseif ($user->hasRole('doctor')) {\n $appointments = Appointment::where('doctor_id', $user->doctor->id)->get();\n } elseif ($user->hasRole('patient')) {\n $appointments = Appointment::where('patient_id', $user->patient->id)->get();\n }\n return view('appointments.index', compact('appointments', 'doctors', 'patients'));\n }", "public function getScholarshipApplicants($args) {\n // faculty: get all applicants for a given ScholarshipID\n // student: do nothing 403\n $role = $this->getAccessRole();\n if ($role != $this::ACCESS_FACULTY) {\n return http_response_code(StatusCodes::FORBIDDEN);\n }\n\n // 'id' here represents ScholarshipID\n $scholarshipID = filter_var($args['id'], FILTER_SANITIZE_STRING);\n\n // get an array of matching applicantIDs\n $applicantIDs = array();\n $queryMatch = $this->dbc->prepare('\n SELECT at.applicantID as ApplicantID\n FROM Scholarship s INNER JOIN Applications an\n ON s.ScholarshipID = an.ScholarshipID\n INNER JOIN Applicants at ON an.ApplicantID = at.applicantID;\n WHERE s.ScholarshipID = :scholarshipID;\n ');\n $queryMatch->bindParam(':scholarshipID', $scholarshipID);\n $queryMatch->setFetchMode(PDO::FETCH_OBJ);\n\n // Not sure what could go wrong here, but...\n try {\n $result = $queryMatch->execute();\n } catch (Exception $e) {\n return http_response_code(StatusCodes::INTERNAL_SERVER_ERROR);\n }\n\n // if we didn't get any results from that ScholarshipID\n if ($queryMatch->rowCount() < 1) {\n return http_response_code(StatusCodes::NOT_FOUND);\n }\n\n // save all returned ApplicantIDs\n while ($row = $queryMatch->fetch()) {\n array_push($applicantIDs, $row->ApplicantID);\n }\n\n $queryMatch->closeCursor();\n\n $applicantArray = array();\n\n foreach ($applicantIDs as $applicantID) {\n $applicantArray[] = $this->getOneApplicant($applicantID);\n }\n\n return $applicantArray;\n\n }", "public function index()\n {\n //\n $applications = Apply::orderBy('created_at', 'desc')->orderBy('is_approve', 'asc')->paginate(10);\n return view('admin.application.application_index', compact('applications'));\n }", "public function getApptForSpecialist($id){\n\t\t$user=User::findOrFail($id);\n\t\t$profile=$user->profiles; \n\t\t$appointments=$user->appointments->where('available','1');\n\t\treturn view('appointments.availAppointments',compact('appointments','profile')); \n\t}", "public function getAppuntamenti() {\r\n return ($this->_appuntamenti);\r\n }", "public function index()\n {\n \n if(Auth::user()->getRoleNames()->first() == 'patient')\n {\n $dp = DB::table('appointments')->where('patient_id', Auth::user()->patient->id)->get();\n }\n else if(Auth::user()->getRoleNames()->first() == 'physician')\n {\n $dp = DB::table('appointments')->where('physician_id', Auth::user()->physician->id)->get();\n }\n else if(Auth::user()->getRoleNames()->first() == 'nurse')\n {\n $dp = DB::table('appointments')->where('nurse_id', Auth::user()->nurse->id)->get();\n }\n else{\n $dp = DB::table('appointments')->get();\n }\n $dp_obj = $dp->map(function ($element){\n $startdatetime = new Carbon($element->start_date_time);\n $enddatetime = new Carbon($element->end_date_time);\n $patient = Patient::find($element->patient_id)->user->name;\n $physician = Physician::find($element->physician_id)->user->name;\n $nurse = Nurse::find($element->nurse_id)->user->name;\n return [\n 'patient' => $patient, \n 'physician' => $physician,\n 'nurse' => $nurse,\n 'url' => url('admin/appointments'),\n 'id' => $element->id,\n 'exaroom' => $element->examinationroom,\n 'startdatetime' => $startdatetime->toDayDateTimeString(),\n 'enddatetime' => $enddatetime->toDayDateTimeString()\n ];\n });\n $physicians = Physician::all();\n $patients = Patient::all();\n $nurses = Nurse::all();\n return view('backend.appointments.index', compact('dp_obj', 'patients', 'physicians', 'nurses'));\n }", "public function show($id)\n {\n $applications=Application::where('company_id',session('companyId'))->where('status',$id)->get();\n $vacancies=vacancies();\n return view('manage.application.show')->with('applications', $applications)->with('vacancies',$vacancies);\n }", "public function showAll() {\n $sql = \"SELECT * FROM \" . applicationTable::TABLE_NAME;\n\n $stmt = $this->mConnection->prepare($sql);\n $status = $stmt->execute();\n\n if ($status != true) {\n $errorInfo = $stmt->errorInfo();\n throw new Exception(\"Could not display applications: \" . $errorInfo[2]);\n }\n\n $jobs = array();\n $row = $stmt->fetch();\n while ($row != null) {\n $id = $row[applicationTable::COLUMN_ID];\n $seekerId = $row[applicationTable::COLUMN_SEEKERID];\n $empId = $row[applicationTable::COLUMN_EMPID];\n $jobId = $row[applicationTable::COLUMN_JOBID];\n $status = $row[applicationTable::COLUMN_STATUS];\n\n $application = new Application($id, $seekerId, $empId, $jobId, $status);\n $applications[$id] = $application;\n\n $row = $stmt->fetch();\n }\n\n return $applications;\n }", "public function getApplicantEssayPersonalQualities()\n {\n return $this->getProperty('applicant_essay_personal_qualities');\n }", "public function getAppointments($id)\n {\n $search = request()->all();\n $search['date1'] = isset($search['date1']) ? Carbon::parse($search['date1']) : '';\n $search['date2'] = isset($search['date2']) ? Carbon::parse($search['date2']) : '';\n\n $appointments = $this->appointmentRepo->findAllByDoctorWithoutPagination($id, $search);\n \n return $appointments;\n \n }", "public function get_vacation()\n {\n $this->exts = $this->sieve->get_extensions();\n $this->init_script();\n $this->vacation_rule();\n\n // check supported extensions\n $date_extension = in_array('date', $this->exts);\n $regex_extension = in_array('regex', $this->exts);\n $seconds_extension = in_array('vacation-seconds', $this->exts);\n\n // set user's timezone\n try {\n $timezone = new DateTimeZone($this->rc->config->get('timezone', 'GMT'));\n }\n catch (Exception $e) {\n $timezone = new DateTimeZone('GMT');\n }\n\n if ($date_extension) {\n $date_value = array();\n foreach ((array) $this->vacation['tests'] as $test) {\n if ($test['test'] == 'currentdate') {\n $idx = $test['type'] == 'value-ge' ? 'start' : 'end';\n\n if ($test['part'] == 'date') {\n $date_value[$idx]['date'] = $test['arg'];\n }\n else if ($test['part'] == 'iso8601') {\n $date_value[$idx]['datetime'] = $test['arg'];\n }\n }\n }\n\n foreach ($date_value as $idx => $value) {\n $$idx = new DateTime($value['datetime'] ?: $value['date'], $timezone);\n }\n }\n else if ($regex_extension) {\n // Sieve 'date' extension not available, read start/end from RegEx based rules instead\n if ($date_tests = self::parse_regexp_tests($this->vacation['tests'])) {\n $from = new DateTime($date_tests['from'] . ' ' . '00:00:00', $timezone);\n $to = new DateTime($date_tests['to'] . ' ' . '23:59:59', $timezone);\n }\n }\n\n if (isset($this->vacation['seconds'])) {\n $interval = $this->vacation['seconds'] . 's';\n }\n else if (isset($this->vacation['days'])) {\n $interval = $this->vacation['days'] . 'd';\n }\n\n $vacation = array(\n 'supported' => $this->exts,\n 'interval' => $interval,\n 'start' => $start,\n 'end' => $end,\n 'enabled' => $this->vacation['reason'] && empty($this->vacation['disabled']),\n 'message' => $this->vacation['reason'],\n 'subject' => $this->vacation['subject'],\n 'action' => $this->vacation['action'],\n 'target' => $this->vacation['target'],\n 'addresses' => $this->vacation['addresses'],\n 'from' => $this->vacation['from'],\n );\n\n return $vacation;\n }", "public function attendanceApprovals()\n {\n return $this->hasMany('App\\Models\\AttendanceApproval', 'regno', 'personnel_no');\n }", "public function index()\n {\n //\n $volunteers = Volunteer::all();\n return $volunteers;\n }", "public function myAppl()\n {\n $opp= new Oppening(); //the recruiter must post an oppening'\n $opp= $opp->get();\n $users=new User();\ntry {\n $users=$opp->users()->where('type','=','Applicant')->distinct()->get();\n \n }\n catch (Exception $ex)\n { \n $users=User()::where('type','=','Applicant')->get();\n }\n $arr=Array('user'=>$users);\n return view('Applicant.index',$arr);\n\n }", "public function getIntervenants()\n {\n return $this->intervenants;\n }", "public function getIndex()\n {\n $vacancies = Scholarship::all();\n return response()->success($vacancies);\n }", "static public function GetAirports()\n {\n $ids = DbHandler::Query(\"SELECT DISTINCT(airport_id) FROM airports WHERE (airport_id IN ( SELECT airport_start_id FROM traject GROUP BY airport_start_id) OR airport_id IN ( SELECT airport_stop_id FROM traject GROUP BY airport_stop_id)) ;\");\n\n $airports = array();\n for ($i = 0; $i < count($ids); $i++) {\n $airports[] = airports::GetAirportByID($ids[$i][\"airport_id\"]);\n\n }\n\n\n return $airports;\n }", "public function getAdvertWithApps(){\n $qb = $this->createQueryBuilder('a');\n $qb->leftJoin('a.applications', 'app')->addSelect('app');\n // $qb->innerJoin('a.applications', 'app', 'WITH', 'YEAR(app.date) > 2018);\n }", "public function getActivityInfo()\n {\n return QcBonusDepartment::where('applyStatus', 1)->where('action', 1)->get();\n }", "public function getApprovers()\n {\n\t $admins = $this->getUserList(array('role='=>'Admin'));\n\t $powers = $this->getUserList(array('role='=>'Power'));\n\t $approvers = array();\n\t foreach ($admins as $admin) {\n\t $approvers[] = $admin->username;\n\t }\n\t foreach ($powers as $power) {\n\t $approvers[] = $power->username;\n\t }\n\t return $approvers;\n }", "public function show($vacation)\n\t{\n\t\treturn $vacation;\n\t}", "public function actionApplicants(): void\n {\n $this->template->applicants = $this->model->voting->getApplicantSpeeches();\n }", "public function retrieveApplications()\n {\n return $this->start()->uri(\"/api/application\")\n ->get()\n ->go();\n }", "public static function getAppsList(){\n $apps = self::find()->select('app_id, app_metrica_name')->groupBy('app_id, app_metrica_name')->all();\n $appsList = [];\n if(!$apps)\n return $appsList;\n foreach ((array)$apps as $item)\n $appsList[$item->app_id] = $item->app_metrica_name;\n return $appsList;\n }" ]
[ "0.77792186", "0.7160479", "0.6958503", "0.683137", "0.6689635", "0.66745377", "0.66538703", "0.66094655", "0.65906495", "0.658444", "0.65592605", "0.6535972", "0.6515295", "0.6511659", "0.65101945", "0.6508304", "0.6455187", "0.6429773", "0.6422394", "0.63660794", "0.62932783", "0.6278069", "0.61884135", "0.61803347", "0.61648107", "0.6033193", "0.60327846", "0.6026951", "0.60143703", "0.59738314", "0.5956508", "0.5949456", "0.590353", "0.5889856", "0.5873392", "0.58687663", "0.58625406", "0.5857796", "0.58302516", "0.58109874", "0.58049095", "0.5800186", "0.57779753", "0.57512647", "0.57309735", "0.5728262", "0.5719581", "0.5707065", "0.5706889", "0.57007366", "0.56888604", "0.5687969", "0.5678716", "0.5676659", "0.5663359", "0.56592715", "0.56552213", "0.5643727", "0.5643727", "0.5643727", "0.56364524", "0.5625765", "0.5622598", "0.56111735", "0.56089467", "0.5605481", "0.56033", "0.56027305", "0.5597007", "0.5595667", "0.55936134", "0.55924076", "0.5588977", "0.5581303", "0.55778223", "0.55726826", "0.55498993", "0.55477226", "0.55434597", "0.55417347", "0.5530668", "0.55285966", "0.5523495", "0.5522786", "0.55016005", "0.5489076", "0.5486756", "0.5486552", "0.5486123", "0.5485831", "0.5481587", "0.54781216", "0.54770786", "0.54742163", "0.5472402", "0.546221", "0.5454258", "0.5452579", "0.54433143", "0.5439882" ]
0.5910189
32
Get the contact person/employee of vacancy
public function contactPerson() { return $this->belongsTo('App\Models\Employee'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_contact(){\n $this->relative = array_shift(Relative::find_all(\" WHERE dead_no = '{$this->id}' LIMIT 1\"));\n if ($this->relative) {\n return $this->relative->contact();\n } else {\n return \"Not Specified\";\n }\n }", "public function getCareer();", "public function returnContact(){\n return $this->contact->getContact(); //Chama a função getContact do objeto contact\n }", "function getContact()\n\t{\n\t\treturn $this->Info['Contact'];\n\t}", "public function getContact()\n {\n $userId = Yii::$app->user->id;\n\n if ($userId == $this->author_id) {\n return $this->recipient;\n } elseif ($userId == $this->recipient_id) {\n return $this->author;\n }\n\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return isset($this->contact) ? $this->contact : null;\n }", "protected function _getContactOwner()\n {\n return $this->params['name'];\n }", "function getContactSituationAction() {\n\t\t@$portal = DevblocksPlatform::importGPC($_REQUEST['portal'],'string','');\n\t\t\n\t\tUmPortalHelper::setCode($portal);\n\t\t\n\t\t$module = DevblocksPlatform::getExtension('sc.controller.contact',true,true);\n\t\t$module->getSituation();\n\t}", "public function getPortalContact()\n {\n return BeanFactory::getBean('Contacts', $_SESSION['contact_id']);\n }", "function InfGetContactDetails($inf_contact_id) {\n $object_type = \"Contact\";\n $class_name = \"Infusionsoft_\" . $object_type;\n $object = new $class_name();\n $objects = Infusionsoft_DataService::query(new $class_name(), array('Id' => $inf_contact_id));\n\n $contact_array = array();\n foreach ($objects as $i => $object) {\n $contact_array[$i] = $object->toArray();\n }\n\treturn $contact_array[0];\n}", "public function getEmployeeInfo() {\n\n $employeeModel = $GLOBALS[\"employeeModel\"];\n\n $GLOBALS[\"employee\"] = $employeeModel->getOneByEmployeeID($_SESSION[\"workerID\"]);\n }", "public function getVacancyResult() {\n return $this->response->vacancies;\n }", "public function getContacts(): stdClass {\n\n\t\treturn $this->greenApi->request( 'GET',\n\t\t\t'{{host}}/waInstance{{idInstance}}/GetContacts/{{apiTokenInstance}}' );\n\t}", "public function attorney(){\r\n if($this->attorney_id >0)\r\n return Consultant::find($this->attorney_id);\r\n else\r\n return -1;\r\n }", "function getByNameAndPosition($employee){\n //devolver Empleado\n }", "public function getContactInfo() {\n return $this->contactInfo;\n }", "public function fetchSelectedEmergencyContact(){\n $tableType = $this->_request['tableType'];\n $sql = \"select * from $tableType join city c on $tableType.cityId = c.CityID\";\n $rows = $this->executeGenericDQLQuery($sql);\n for($i=0 ; $i<sizeof($rows);$i++)\n {\n $parkingDetails[$i]['id'] = $rows[$i]['id'];\n $parkingDetails[$i]['name'] = $rows[$i]['name'];\n $parkingDetails[$i]['address'] = $rows[$i]['address'];\n $parkingDetails[$i]['contact'] = $rows[$i]['contact'];\n //$parkingDetails[$i]['authority'] = $rows[$i]['authority'];\n $parkingDetails[$i]['CityName'] = $rows[$i]['CityName'];\n // $parkingDetails[$i]['icon_image'] = $rows[$i]['icon_image'];\n\n }\n $this->response($this->json($parkingDetails), 200);\n\n }", "public function getContact(): ?string;", "public function getPersona()\n\t{\n\t $persona=Persona::model()->find(\"id_usuario = \".$this->id);\n\t if($persona)\n\t \treturn $persona->nombre.', '.$persona->apellido;\n\t else\n\t \treturn \"Falta completar datos\";\n\t}", "public function getContact(){\n return $this->getParameter('contact');\n }", "function cicleinscription_get_vacancies_remaning(){\n\t\n}", "private function _getEmployeeInfo($emp_seqno) {\n $sql_string = <<<eof\n select id_no_sz as emp_id,\n name_sz as emp_name\n from hr_personnel_base\n where seg_segment_no = :company_id\n and id = :emp_seqno\neof;\n return $this->DBConn->GetRow($sql_string,\n array ('company_id' => $this->companyID, 'emp_seqno' => $emp_seqno));\n }", "public function getShowPersonInfor()\n {\n\n }", "public function getInfosContact() {\n $listeInfos = $this->getInfos(\"contact\");\n return $listeInfos;\n }", "public function getContacts();", "public function showContactPersons()\n\t{\n\t\t$participants = $this->participants->getAllContactPersons();\n\t\t$currentRow = 0;\n\t\t$maleCount = sizeof($this->participants->getMaleParticipants($participants));\n\t\t$femaleCount = (sizeof($participants)) - $maleCount;\n\t\t$contactPerson = 0;\n\t\treturn View::make('admin.participants-list', ['pageTitle' => 'Seniors'], compact('participants', 'currentRow', 'maleCount', 'femaleCount', 'contactPerson'));\n\t}", "function &getPrimaryInvestigator() {\n foreach ($this->investigators as $investigator) {\n if ($investigator->getPrimaryContact() == true) {\n return $investigator;\n }\n }\n\t\treturn null;\n\t}", "public function show($id)\n {\n $employer = $this->checkEmployer($id);\n if ($employer!=null){\n $contact =EmployerContact::find($id);\n $contacts = EmployerContact::where('employer_id',$this->employer_id)->get();\n return view('employer.contact.show',compact('contact','contacts'));\n }else{\n return redirect('employer/contact-person')->with('message', 'Your are not permited!');\n }\n\n }", "public function getContactDetailAttribute()\n {\n return $this->contact()->first();\n }", "public function getContact()\n {\n return dd(22222);\n }", "public function getContact(): string\n {\n return $this->_contact;\n }", "function getSupervisor($fv) {\n\t$result = mysql_query(\"SELECT empname from employee_master where empno IN\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t(SELECT depthead FROM employee_master where uname = '$fv'),\n\t\t\t\t\t\t\t(SELECT divhead FROM employee_master where uname = '$fv')\n\t\t\t\t\t\t\t) \n\t\t\t\t\t\t\");\n\treturn $result; \n}", "public function detail($vacation_id) {}", "public function getMainContact()\n {\n return $this->mainContact;\n }", "public function getEmpleado() {\r\n return $this->empleado;\r\n }", "public function getContactInfo()\n {\n $phoneNumbers = [];\n if (isset($this->properties['contact_mobile_phone'])) {\n $phoneNumbers[] = $this->properties['contact_mobile_phone']->value;\n }\n if (isset($this->properties['contact_home_phone'])) {\n $phoneNumbers[] = $this->properties['contact_home_phone']->value;\n }\n $emailAddresses = [];\n if (isset($this->properties['email'])) {\n $emailAddresses[] = $this->properties['email']->value;\n }\n if (isset($this->properties['contact_alt_email'])) {\n $emailAddresses[] = $this->properties['contact_alt_email']->value;\n }\n return new Model\\ContactInfo(\n $phoneNumbers,\n $emailAddresses\n );\n }", "public function contact()\n {\n return $this->BelongsTo(User::class, 'parent_contact_id');\n }", "public function index(Request $request)\n {\n return $request->user()->contacts;\n }", "function particularemployee($id)\n\t{\n\t\t$getParemp=\"SELECT * from payrentz_employees where id = $id\";\n\t\t$getParempdata = $this->get_results( $getParemp );\n\t\treturn $getParempdata;\n\t}", "public function getCurrentPrimaryContact(){\n\t\t$author = Author::select()->where('is_principal_contact', 1)->first();\n\n\t\treturn $author;\n\t}", "public function getContact(){\n return $this->db->get('contact')->result();\n }", "public function getCompanyEmployees();", "function get_contacts_by_company($id) {\n return get_view_data_where('org_contact_list', $id);\n}", "public function findPerson()\n {\n\n // AITS EnterpriseUser API Source\n if($this->dev) {\n\n $source = 'https://webservices-dev.admin.uillinois.edu/xfunctionalWS/data/' . $this->senderAppID . '/EnterpriseUser/1_1/' . $this->netid . '/' . $this->domain;\n\n } else {\n\n $source = 'https://webservices.admin.uillinois.edu/xfunctionalWS/data/' . $this->senderAppID . '/EnterpriseUser/1_1/' . $this->netid . '/' . $this->domain;\n\n }\n\n // Initialize a curl resource\n $curl = curl_init();\n\n // Set curl options\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl, CURLOPT_URL, $source);\n curl_setopt($curl, CURLOPT_HTTPHEADER, array());\n\n // JSON Response\n $response = curl_exec($curl);\n\n if(curl_getinfo($curl, CURLINFO_HTTP_CODE) == 200) {\n\n // Cache the response in $this->response\n $this->response = new \\stdClass();\n $this->response->type = 'JSON';\n $this->response->data = $response;\n\n // Set the UIN\n $this->uin = $this->findUIN($response);\n\n } else {\n\n throw new \\Exception($response);\n\n }\n\n }", "public function getContact(): ?array\n\t{\n\t\treturn $this->contact;\n\t}", "public function consultarEstadoContacto() {\n $con = \\Yii::$app->db_crm;\n $estado = 1;\n\n $sql = \"SELECT \n ec.econ_id as id,\n ec.econ_nombre as name\n FROM \n \" . $con->dbname . \".estado_contacto ec\n WHERE \n -- ec.econ_id = :estado_contacto AND\n ec.econ_estado = :estado AND\n ec.econ_estado_logico = :estado\n ORDER BY name asc \";\n\n $comando = $con->createCommand($sql);\n $comando->bindParam(\":estado\", $estado, \\PDO::PARAM_STR);\n $resultData = $comando->queryAll();\n return $resultData;\n }", "public static function get_staff_for_manage()\n {\n $sql = \"SELECT EM1_EmployeeID_pk, EM1_Lname_ind + ', ' + EM1_FName As Full_Name FROM t_Employee1 WHERE EM1_CurrencyStatus = 'CURRENT' ORDER BY EM1_Lname_ind ASC\";\n $stmt = \\NMI::Db()->prepare($sql);\n $stmt->execute();\n $rows = $stmt->fetchAll();\n return \\Arr::assoc_to_keyval($rows, 'EM1_EmployeeID_pk', 'Full_Name');\n }", "public function existingContactInfo($id) \n {\n //return the result for later use\n return $this->getExistingContactInfo($id);\n }", "public function getContacts()\n\t{\n\t\treturn $this->contacts; \n\n\t}", "function getContact($id) {\n\t\t$query = $this->createQuery();\n\t\t$query .= \"WHERE c2.id = $id\";\n\t\t$res = $this->database->getRow($query);\n\t\t\n\t\t// modify status\n\t\t$res[\"status\"] = $this->statusCaption($res[\"status\"]);\n\t\t\n\t\treturn $res;\n\t}", "public function getContact() {\n try {\n return new Yourdelivery_Model_Contact($this->getContactId());\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n return null;\n }\n }", "public function listContact(){\n $contact = Contact::where('user_id','=', auth()->user()->id)->latest()->first();\n if($contact == ''){\n return view('contato', [\n 'data' => 'não possui contato cadastrado'\n ]);\n }else{\n return view('contato', [\n 'data' => 'Você já cadastrou o seguinte contato: NOME: '.$contact->name.' TELEFONE: '.$contact->phone.'\n caso queira atualizado basta digitar nos campos e clicar em salvar que sera salvo por cima'\n ]);\n }\n }", "public function getContactInfo()\n {\n return array_filter([\n 'email' => $this->getEmail(),\n 'phoneNumber' => $this->getPhoneNumber(),\n ]);\n }", "public function getEmployer()\n {\n return $this->employer;\n }", "private function get_consultant_info() {\n try {\n /** @noinspection PhpUndefinedMethodInspection */\n $stm=$this->uFunc->pdo(\"uAuth\")->prepare(\"SELECT\n firstname,\n secondname,\n email\n FROM\n u235_users\n JOIN \n u235_usersinfo\n ON\n u235_users.user_id=u235_usersinfo.user_id AND\n u235_usersinfo.status=u235_users.status\n WHERE\n u235_users.user_id=:user_id AND\n u235_users.status='active' AND\n u235_usersinfo.site_id=:site_id\n \");\n $site_id=site_id;\n /** @noinspection PhpUndefinedMethodInspection */$stm->bindParam(':site_id', $site_id,PDO::PARAM_INT);\n /** @noinspection PhpUndefinedMethodInspection */$stm->bindParam(':user_id', $this->cons_id,PDO::PARAM_INT);\n /** @noinspection PhpUndefinedMethodInspection */$stm->execute();\n }\n catch(PDOException $e) {$this->uFunc->error('90'/*.$e->getMessage()*/);}\n\n return $stm;\n }", "public function getPersonal();", "function viewEmployeeDetails( Request $request )\n\t\t\t{\n\t\t\t\tif ( $this->employeeExists( $request->emp_id ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$id = $request->emp_id;\n\n\t\t\t\t\t\treturn [ Employee::find( $id )->makeHidden( ['password', 'created_at', 'updated_at'] ), [ 'meta_details' => EmployeeMeta::select( 'address','contact' )->where( 'employee_id' , $id )->get() ] ];\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}", "public function tenant()\n\t{\n\t\treturn $this->hasOne('App\\Contact');\n\t}", "public function getempleado()\r\n {\r\n return $this->empleado;\r\n }", "public function getempleado()\r\n {\r\n return $this->empleado;\r\n }", "public function index()\n {\n $contacts = EmployerContact::where('employer_id',$this->employer_id)->get();\n return view('employer.contact.index',compact('contacts'));\n }", "public function getContacts()\n {\n if (array_key_exists(\"contacts\", $this->_propDict)) {\n return $this->_propDict[\"contacts\"];\n } else {\n return null;\n }\n }", "function employeeDetail(&$smartyEmployee,$searchBox) {\n\t\t$uid = intval($this->piVars['id']);\t//SQL-Injection!!!\n\t\t$pos_id = intval($this->piVars['pos_id']); //must come from piVars -> need to know which one of several possible positions is to be displayed....\n\n\t\t// test bk: get position from Database\n\t\t// a) employee is linked to position-record, could be > 1 !!!\n\t\t// b) employee is linked to organisation-record (leader of the pack)\n\t\t/*\n\t\t$pos_id = intval($this->piVars['pos_id']);\n\t\t$res_emppos = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query(\n\t\t\t\t\t'uid',\n\t\t\t\t\t'tx_civserv_employee,\n\t\t\t\t\t tx_civserv_employee_em_position_mm,\n\t\t\t\t\t tx_civserv_position'\n\t\t);\n\t\t*/\n\n\n\n\n\n\t\t// Standard query for employee details --> table tx_civserv_employee\n\n\t\tif (!$this->conf['show_hidden_employees']){\n\t\t\t$strEnableField = $this->cObj->enableFields('tx_civserv_employee');\n\t\t}\n\n\t\t$res_common = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t\t'tx_civserv_employee.uid,\n\t\t\t\t\t\t tx_civserv_employee.em_address,\n\t\t\t\t\t\t tx_civserv_employee.em_title,\n\t\t\t\t\t\t tx_civserv_employee.em_name,\n\t\t\t\t\t\t tx_civserv_employee.em_firstname,\n\t\t\t\t\t\t tx_civserv_employee.em_telephone,\n\t\t\t\t\t\t tx_civserv_employee.em_fax,\n\t\t\t\t\t\t tx_civserv_employee.em_email,\n\t\t\t\t\t\t tx_civserv_employee.em_image,\n\t\t\t\t\t\t tx_civserv_employee.em_datasec',\n\t\t\t\t\t\t'tx_civserv_employee',\n\t\t\t\t\t\t'1 '.\n\t\t\t\t\t\t$strEnableField.\n\t\t\t\t\t\t' AND uid='. intval($uid).'\n\t\t\t\t\t\tAND em_datasec=1',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'');\n\n\t\t//Check if data security option is enabled\n\t\tif ($GLOBALS['TYPO3_DB']->sql_num_rows($res_common) == 0) {\n\t\t\t$GLOBALS['error_message'] = $this->pi_getLL('tx_civserv_pi1_employee.datasec','Datasec enabled! Employee is not shown.');\n\t\t\treturn false;\n\t\t}\n\n\t\t//Query for employee office hours\n\t\tif (!$this->conf['show_hidden_employees']){\n\t\t\t$strEnableField = $this->cObj->enableFields('tx_civserv_employee');\n\t\t}\n\t\t$res_emp_hours = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query(\n\t\t\t\t\t'tx_civserv_officehours.oh_start_morning,\n\t\t\t\t\t tx_civserv_officehours.oh_end_morning,\n\t\t\t\t\t tx_civserv_officehours.oh_start_afternoon,\n\t\t\t\t\t tx_civserv_officehours.oh_end_afternoon,\n\t\t\t\t\t tx_civserv_officehours.oh_manual_checkbox,\n\t\t\t\t\t tx_civserv_officehours.oh_freestyle,\n\t\t\t\t\t tx_civserv_officehours.oh_weekday',\n\t\t\t\t\t'tx_civserv_employee',\n\t\t\t\t\t'tx_civserv_employee_em_hours_mm',\n\t\t\t\t\t'tx_civserv_officehours',\n\t\t\t\t\t$strEnableField.\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_officehours').\n\t\t\t\t\t' AND tx_civserv_employee.uid = ' . intval($uid),\n\t\t\t\t\t'',\n\t\t\t\t\t'oh_weekday',\n\t\t\t\t\t'');\n\n\t\t// Create additional queries if position uid is set in piVars\n\t\tif ($pos_id != '' && intval($pos_id) > 0) {\n\n\t\t\t// Query for employee-position office hours\n\t\t\tif (!$this->conf['show_hidden_employees']){\n\t\t\t\t$strEnableField = $this->cObj->enableFields('tx_civserv_employee');\n\t\t\t\t$strEnableField .= $this->cObj->enableFields('tx_civserv_position');\n\t\t\t}\n\t\t\t$res_emp_pos_hours = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t'tx_civserv_officehours.oh_start_morning,\n\t\t\t\t tx_civserv_officehours.oh_end_morning,\n\t\t\t\t tx_civserv_officehours.oh_start_afternoon,\n\t\t\t\t tx_civserv_officehours.oh_end_afternoon,\n\t\t\t\t tx_civserv_officehours.oh_manual_checkbox,\n\t\t\t\t tx_civserv_officehours.oh_freestyle,\n\t\t\t\t tx_civserv_officehours.oh_weekday',\n\t\t\t\t'tx_civserv_employee,\n\t\t\t\t tx_civserv_position,\n\t\t\t\t tx_civserv_officehours,\n\t\t\t\t tx_civserv_employee_em_position_mm,\n\t\t\t\t tx_civserv_officehours_oep_employee_em_position_mm_mm',\n\t\t\t\t'1 '.\n\t\t\t\t$strEnableField.\n\t\t\t\t$this->cObj->enableFields('tx_civserv_officehours').\n\t\t\t\t' AND tx_civserv_employee.uid = tx_civserv_employee_em_position_mm.uid_local\n\t\t\t\t AND tx_civserv_position.uid = tx_civserv_employee_em_position_mm.uid_foreign\n\t\t\t\t AND tx_civserv_employee_em_position_mm.uid = tx_civserv_officehours_oep_employee_em_position_mm_mm.uid_local\n\t\t\t\t AND tx_civserv_officehours.uid = tx_civserv_officehours_oep_employee_em_position_mm_mm.uid_foreign\n\t\t\t\t AND tx_civserv_employee.uid = ' . intval($uid) . '\n\t\t\t\t AND tx_civserv_position.uid = '. intval($pos_id),\n\t\t\t\t'',\n\t\t\t\t'oh_weekday',\n\t\t\t\t'');\n\n\n\t\t\t// Query for employee-organisation office hours\n\t\t\t// 1. will only return result if position occupied by employee has relation to organisation\n\t\t\t// 2. ignores direct employee-organisation-relations (leader of the pack....)\n\t\t\t$res_emp_org_hours = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t'tx_civserv_officehours.oh_start_morning,\n\t\t\t\t\t tx_civserv_officehours.oh_end_morning,\n\t\t\t\t\t tx_civserv_officehours.oh_start_afternoon,\n\t\t\t\t\t tx_civserv_officehours.oh_end_afternoon,\n\t\t\t\t\t tx_civserv_officehours.oh_manual_checkbox,\n\t\t\t\t\t tx_civserv_officehours.oh_freestyle,\n\t\t\t\t\t tx_civserv_officehours.oh_weekday',\n\t\t\t\t\t'tx_civserv_employee,\n\t\t\t\t\t tx_civserv_organisation,\n\t\t\t\t\t tx_civserv_position,\n\t\t\t\t\t tx_civserv_officehours,\n\t\t\t\t\t tx_civserv_employee_em_position_mm,\n\t\t\t\t\t tx_civserv_position_po_organisation_mm,\n\t\t\t\t\t tx_civserv_organisation_or_hours_mm',\n\t\t\t\t\t'1 '.\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_organisation').\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_officehours').\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_position').\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_officehours').\n\t\t\t\t\t' AND tx_civserv_employee.uid = tx_civserv_employee_em_position_mm.uid_local\n\t\t\t\t\t AND tx_civserv_position.uid = tx_civserv_employee_em_position_mm.uid_foreign\n\t\t\t\t\t AND tx_civserv_position.uid = tx_civserv_position_po_organisation_mm.uid_local\n\t\t\t\t\t AND tx_civserv_organisation.uid = tx_civserv_position_po_organisation_mm.uid_foreign\n\t\t\t\t\t AND tx_civserv_organisation.uid = tx_civserv_organisation_or_hours_mm.uid_local\n\t\t\t\t\t AND tx_civserv_officehours.uid = tx_civserv_organisation_or_hours_mm.uid_foreign\n\t\t\t\t\t AND tx_civserv_employee.uid = ' . intval($uid) . '\n\t\t\t\t\t AND em_datasec = 1\n\t\t\t\t\t AND tx_civserv_position.uid = ' . intval($pos_id),\n\t\t\t\t\t'',\n\t\t\t\t\t'oh_weekday',\n\t\t\t\t\t'');\n\n\n\t\t\t//test bk: single out one building for the organisation / employee\n\t\t\t//todo!\n\n\n\t\t\t// not all employee-position-records have a relation to a room (building, floor)\n\t\t\tif (!$this->conf['show_hidden_employees']){\n\t\t\t\t$strEnableField = $this->cObj->enableFields('tx_civserv_employee');\n\t\t\t\t$strEnableField .= $this->cObj->enableFields('tx_civserv_position');\n\t\t\t}\n\t\t\t$res_position = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t'tx_civserv_position.uid as pos_uid,\n\t\t\t\t tx_civserv_organisation.uid as or_uid,\n\t\t\t\t tx_civserv_employee.uid as emp_uid,\n\t\t\t\t tx_civserv_position.po_name as position,\n\t\t\t\t tx_civserv_employee_em_position_mm.ep_telephone as phone,\n\t\t\t\t tx_civserv_employee_em_position_mm.ep_fax as fax,\n\t\t\t\t tx_civserv_employee_em_position_mm.ep_email as email,\n\t\t\t\t tx_civserv_organisation.or_name as organisation',\n\t\t\t\t'tx_civserv_employee,\n\t\t\t\t tx_civserv_position,\n\t\t\t\t tx_civserv_organisation,\n\t\t\t\t tx_civserv_employee_em_position_mm,\n\t\t\t\t tx_civserv_position_po_organisation_mm',\n\t\t\t\t'tx_civserv_employee.uid='. intval($uid).'\n\t\t\t\t AND em_datasec=1\n\t\t\t\t AND tx_civserv_position.uid = '. intval($pos_id).\n\t\t\t\t$this->cObj->enableFields('tx_civserv_organisation').\n\t\t\t\t$strEnableField.\n\t\t\t\t ' AND tx_civserv_employee.uid = tx_civserv_employee_em_position_mm.uid_local\n\t\t\t\t AND tx_civserv_employee_em_position_mm.uid_foreign = tx_civserv_position.uid\n\t\t\t\t AND tx_civserv_position.uid = tx_civserv_position_po_organisation_mm.uid_local\n\t\t\t\t AND tx_civserv_organisation.uid = tx_civserv_position_po_organisation_mm.uid_foreign',\n\t\t\t\t'',\n\t\t\t\t'',\n\t\t\t\t'');\n\t\t\t\t\n\t\t\t$query_position = $GLOBALS['TYPO3_DB']->SELECTquery(\n\t\t\t\t'tx_civserv_position.uid as pos_uid,\n\t\t\t\t tx_civserv_organisation.uid as or_uid,\n\t\t\t\t tx_civserv_employee.uid as emp_uid,\n\t\t\t\t tx_civserv_position.po_name as position,\n\t\t\t\t tx_civserv_employee_em_position_mm.ep_telephone as phone,\n\t\t\t\t tx_civserv_employee_em_position_mm.ep_fax as fax,\n\t\t\t\t tx_civserv_employee_em_position_mm.ep_email as email,\n\t\t\t\t tx_civserv_organisation.or_name as organisation',\n\t\t\t\t'tx_civserv_employee,\n\t\t\t\t tx_civserv_position,\n\t\t\t\t tx_civserv_organisation,\n\t\t\t\t tx_civserv_employee_em_position_mm,\n\t\t\t\t tx_civserv_position_po_organisation_mm',\n\t\t\t\t'tx_civserv_employee.uid='. intval($uid).'\n\t\t\t\t AND em_datasec=1\n\t\t\t\t AND tx_civserv_position.uid = '. intval($pos_id).\n\t\t\t\t$this->cObj->enableFields('tx_civserv_organisation').\n\t\t\t\t$strEnableField.\n\t\t\t\t ' AND tx_civserv_employee.uid = tx_civserv_employee_em_position_mm.uid_local\n\t\t\t\t AND tx_civserv_employee_em_position_mm.uid_foreign = tx_civserv_position.uid\n\t\t\t\t AND tx_civserv_position.uid = tx_civserv_position_po_organisation_mm.uid_local\n\t\t\t\t AND tx_civserv_organisation.uid = tx_civserv_position_po_organisation_mm.uid_foreign',\n\t\t\t\t'',\n\t\t\t\t'',\n\t\t\t\t'');\n\n\t\t\t//special cases have been intercepted before, in fct employee_list\n\t\t\tif (!$this->conf['show_hidden_employees']){\n\t\t\t\t$strEnableField = $this->cObj->enableFields('tx_civserv_employee');\n\t\t\t\t$strEnableField .= $this->cObj->enableFields('tx_civserv_position');\n\t\t\t}\n\t\t\t$res_room = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t'tx_civserv_building.bl_name as building,\n\t\t\t\t\t tx_civserv_building.bl_name_to_show as building_to_show,\n\t\t\t\t\t tx_civserv_floor.fl_descr as floor,\n\t\t\t\t\t tx_civserv_room.ro_name as room',\n\t\t\t\t\t'tx_civserv_employee,\n\t\t\t\t\t tx_civserv_position,\n\t\t\t\t\t tx_civserv_room,\n\t\t\t\t\t tx_civserv_floor,\n\t\t\t\t\t tx_civserv_building,\n\t\t\t\t\t tx_civserv_employee_em_position_mm,\n\t\t\t\t\t tx_civserv_building_bl_floor_mm',\n\t\t\t\t\t'tx_civserv_employee.uid='. intval($uid).'\n\t\t\t\t\t AND em_datasec=1\n\t\t\t\t\t AND tx_civserv_position.uid = '. intval($pos_id).\n\t\t\t\t\t$strEnableField.\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_room').\n\t\t\t\t\t$this->cObj->enableFields('tx_civserv_floor').\n\t\t\t\t\t ' AND tx_civserv_employee.uid = tx_civserv_employee_em_position_mm.uid_local\n\t\t\t\t\t AND tx_civserv_employee_em_position_mm.uid_foreign = tx_civserv_position.uid\n\t\t\t\t\t AND tx_civserv_employee_em_position_mm.ep_room = tx_civserv_room.uid\n\t\t\t\t\t AND tx_civserv_building.uid = tx_civserv_building_bl_floor_mm.uid_local\n\t\t\t\t\t AND tx_civserv_floor.uid = tx_civserv_building_bl_floor_mm.uid_foreign\n\t\t\t\t\t AND tx_civserv_room.rbf_building_bl_floor = tx_civserv_building_bl_floor_mm.uid',\n\t\t\t\t\t'',\n\t\t\t\t\t'',\n\t\t\t\t\t'');\n\n\t\t\t//Assign employee position data\n\t\t\t$employee_position = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_position);\n\t\t\tdebug($employee_position);\n\t\t\t$employee_position['or_link'] = htmlspecialchars($this->pi_linkTP_keepPIvars_url(array(mode => 'organisation', id => $employee_position['or_uid']),1,1));\n\t\t\tif($employee_position['building_to_show'] > ''){\n\t\t\t\t$employee_position['building'] = $employee_position['building_to_show'];\n\t\t\t}\n\t\t\t$employee_room = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_room);\n\t\t\tif(count($employee_room) > 0){\n\t\t\t\t$employee_position = array_merge($employee_position, (array)$employee_room);\n\t\t\t}\n\t\t\t$smartyEmployee->assign('position',$employee_position);\n\n\n\t\t\t// employee_position_hours:\n\t\t\t//Assign employee-position working hours\n\t\t\t$row_counter = 0;\n\t\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_emp_pos_hours) ){\n\t\t\t\t$emp_pos_hours[$row_counter]['weekday'] = $this->pi_getLL('tx_civserv_pi1_weekday_'.$row['oh_weekday']);\n\t\t\t\t$emp_pos_hours[$row_counter]['start_morning'] = $row['oh_start_morning'];\n\t\t\t\t$emp_pos_hours[$row_counter]['end_morning'] = $row['oh_end_morning'];\n\t\t\t\t$emp_pos_hours[$row_counter]['start_afternoon'] = $row['oh_start_afternoon'];\n\t\t\t\t$emp_pos_hours[$row_counter]['end_afternoon'] = $row['oh_end_afternoon'];\n\t\t\t\tif($row['oh_manual_checkbox'] == 1){\n\t\t\t\t\t$emp_pos_hours[$row_counter]['freestyle'] = $row['oh_freestyle'];\n\t\t\t\t}else{\n\t\t\t\t\t$emp_pos_hours[$row_counter]['freestyle'] = '';\n\t\t\t\t}\n\t\t\t\t$row_counter++;\n\t\t\t}\n\t\t\t$smartyEmployee->assign('emp_pos_hours',$emp_pos_hours);\n\n\n\t\t\t//Assign employee-organisation working hours\n\t\t\t$row_counter = 0;\n\t\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_emp_org_hours) ){\n\t\t\t\t$emp_org_hours[$row_counter]['weekday'] = $this->pi_getLL('tx_civserv_pi1_weekday_'.$row['oh_weekday']);\n\t\t\t\t$emp_org_hours[$row_counter]['start_morning'] = $row['oh_start_morning'];\n\t\t\t\t$emp_org_hours[$row_counter]['end_morning'] = $row['oh_end_morning'];\n\t\t\t\t$emp_org_hours[$row_counter]['start_afternoon'] = $row['oh_start_afternoon'];\n\t\t\t\t$emp_org_hours[$row_counter]['end_afternoon'] = $row['oh_end_afternoon'];\n#\t\t\t\t$emp_org_hours[$row_counter]['freestyle'] = $row['oh_freestyle'];\n\t\t\t\tif($row['oh_manual_checkbox'] == 1){\n\t\t\t\t\t$emp_org_hours[$row_counter]['freestyle'] = $row['oh_freestyle'];\n\t\t\t\t}else{\n\t\t\t\t\t$emp_org_hours[$row_counter]['freestyle'] = '';\n\t\t\t\t}\n\t\t\t\t$row_counter++;\n\t\t\t}\n\t\t\t$smartyEmployee->assign('emp_org_hours',$emp_org_hours);\n\t\t} //End if additional queries\n\n\t\t$employee_rows = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_common);\n\n\t\t// get Image code\n\t\t$imagepath = $this->conf['folder_organisations'] . $this->community['id'] . '/images/';\n\t\t$description = $employee_rows['em_firstname'] . ' ' . $employee_rows['em_name'];\n\t\t$imageCode = $this->getImageCode($employee_rows['em_image'],$imagepath,$this->conf['employee-image.'],$description);\n\n\t\t//Assign employee data\n\t\t$smartyEmployee->assign('title',$employee_rows['em_title']);\n\t\tif (intval($employee_rows['em_address']) == 2) {\n\t\t\t$smartyEmployee->assign('address',$this->pi_getLL('tx_civserv_pi1_organisation.address_female','Mrs.'));\n\t\t} else if (intval($employee_rows['em_address']) == 1) {\n\t\t\t$smartyEmployee->assign('address',$this->pi_getLL('tx_civserv_pi1_organisation.address_male','Mr.'));\n\t\t}\n\t\t$smartyEmployee->assign('firstname',$employee_rows['em_firstname']);\n\t\t$smartyEmployee->assign('name',$employee_rows['em_name']);\n\t\t$smartyEmployee->assign('phone',$employee_rows['em_telephone']);\n\t\t$smartyEmployee->assign('fax',$employee_rows['em_fax']);\n\t\t$smartyEmployee->assign('image',$imageCode);\n\n\t\t//search employee\n\t\t$smartyEmployee->assign('employee_search', $this->community['employee_search']);\n\n\t\t// Assign email data\n\t\t// use typolink, because of the possibility to use encrypted email-adresses for spam-protection\n\t\tif ($employee_position['email'] != '') {\n\t\t\t$email_form_url = htmlspecialchars($this->pi_linkTP_keepPIvars_url(array(mode => 'set_email_form',id => $employee_position['emp_uid'],pos_id => $employee_position['pos_uid']),1,1));\n\t\t\t$email_code = $this->cObj->typoLink($employee_position['email'],array(parameter => $employee_position['email'],ATagParams => 'class=\"email\"'));\n\t\t} elseif ($employee_rows['em_email'] != '') {\n\t\t\t$email_form_url = htmlspecialchars($this->pi_linkTP_keepPIvars_url(array(mode => 'set_email_form',id => $employee_rows['uid']),1,1));\n\t\t\t$email_code = $this->cObj->typoLink($employee_rows['em_email'],array(parameter => $employee_rows['em_email'],ATagParams => 'class=\"email\"'));\n\t\t}\n\t\t$smartyEmployee->assign('email_form_url',$email_form_url);\n\t\t$smartyEmployee->assign('email_code',$email_code);\n\n\t\t//Assign employee working hours\n\t\t$row_counter = 0;\n\n\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_emp_hours) ){\n\t\t\t$emp_hours[$row_counter]['weekday'] = $this->pi_getLL('tx_civserv_pi1_weekday_'.$row['oh_weekday']);\n\t\t\t$emp_hours[$row_counter]['start_morning'] = $row['oh_start_morning'];\n\t\t\t$emp_hours[$row_counter]['end_morning'] = $row['oh_end_morning'];\n\t\t\t$emp_hours[$row_counter]['start_afternoon'] = $row['oh_start_afternoon'];\n\t\t\t$emp_hours[$row_counter]['end_afternoon'] = $row['oh_end_afternoon'];\n#\t\t\t$emp_hours[$row_counter]['freestyle'] = $row['oh_freestyle'];\n\t\t\tif($row['oh_manual_checkbox'] == 1){\n\t\t\t\t$emp_hours[$row_counter]['freestyle'] = $row['oh_freestyle'];\n\t\t\t}else{\n\t\t\t\t$emp_hours[$row_counter]['freestyle'] = '';\n\t\t\t}\n\t\t\t$row_counter++;\n\t\t}\n\t\t$smartyEmployee->assign('emp_hours',$emp_hours);\n\n\n\n\t\t//Assign template labels\n\t\tif (intval($employee_rows['em_address']) == 2) {\n\t\t\t$smartyEmployee->assign('employee_label',$this->pi_getLL('tx_civserv_pi1_employee.employee_female','Employee'));\n\t\t} else{ //1 for male or nothing\n\t\t\t$smartyEmployee->assign('employee_label',$this->pi_getLL('tx_civserv_pi1_employee.employee_male','Employee'));\n\t\t}\n\t\t$smartyEmployee->assign('phone_label',$this->pi_getLL('tx_civserv_pi1_organisation.phone','Phone'));\n\t\t$smartyEmployee->assign('fax_label',$this->pi_getLL('tx_civserv_pi1_organisation.fax','Fax'));\n\t\t$smartyEmployee->assign('email_label',$this->pi_getLL('tx_civserv_pi1_organisation.email','E-Mail'));\n\t\t$smartyEmployee->assign('web_email_label',$this->pi_getLL('tx_civserv_pi1_organisation.web_email','E-Mail-Form'));\n\t\t$smartyEmployee->assign('working_hours_label',$this->pi_getLL('tx_civserv_pi1_employee.hours','Working hours'));\n\t\t$smartyEmployee->assign('office_hours_summary',str_replace('###EMPLOYEE###',$employee_rows['em_firstname'] . ' ' . $employee_rows['em_name'],$this->pi_getLL('tx_civserv_pi1_employee.officehours','In the table are the office hours of ###EMPLOYEE### shown.')));\n\t\tif($this->conf['showOhLabels']){\n\t\t\t//default\n\t\t}else{\n\t\t\t$smartyEmployee->assign('supress_labels', 'invisible');\n\t\t}\n\t\t$smartyEmployee->assign('weekday',$this->pi_getLL('tx_civserv_pi1_weekday','Weekday'));\n\t\t$smartyEmployee->assign('morning',$this->pi_getLL('tx_civserv_pi1_organisation.morning','mornings'));\n\t\t$smartyEmployee->assign('afternoon',$this->pi_getLL('tx_civserv_pi1_organisation.afternoon','in the afternoon'));\n\n\t\t$smartyEmployee->assign('organisation_label',$this->pi_getLL('tx_civserv_pi1_employee.organisation','Organisation'));\n\t\t$smartyEmployee->assign('room_label',$this->pi_getLL('tx_civserv_pi1_employee.room','Room'));\n\t\t//the image_employee_label is not being used yet\n\t\tif (intval($employee_rows['em_address']) == 2) {\n\t\t\t$smartyEmployee->assign('image_employee_label',$this->pi_getLL('tx_civserv_pi1_employee_female.image','Image of employee'));\n\t\t} else if (intval($employee_rows['em_address']) == 1) {\n\t\t\t$smartyEmployee->assign('image_employee_label',$this->pi_getLL('tx_civserv_pi1_employee_male.image','Image of employee'));\n\t\t}\n\n\t\tif ($searchBox) {\n\t\t\t//$_SERVER['REQUEST_URI'] = $this->pi_linkTP_keepPIvars_url(array(mode => 'search_result'),0,1); //dropped this according to instructions from security review\n\t\t\t$smartyTop15->assign('searchbox', $this->pi_list_searchBox('',true));\n\t\t}\n\t\t$GLOBALS['TSFE']->page['title']=$this->pi_getLL('tx_civserv_pi1_employee.employee_plural','Employees');\n\t\treturn true;\n\t}", "public function getCD_Empresa()\n {\n return $this->CD_Empresa;\n }", "public function get_compartment(){\n $this->compartment = array_shift(Compartment::find_all(\" WHERE dead_no = '{$this->id}' LIMIT 1\"));\n if ($this->compartment) {\n return $this->compartment->description;\n } else {\n return \"Not specified\";\n }\n }", "public function getPerson() {\n return $this->getPersoner()->getSingle();\n }", "public function getPersonalInfo(){\r\n\t $this->_personalInfo;\r\n\t}", "public function getAccidentCause()\n {\n return $this->accidentCause;\n }", "public static function vehicles_employees_crits(){\n\t\treturn array('(company_name'=>CRM_ContactsCommon::get_main_company(),'|related_companies'=>array(CRM_ContactsCommon::get_main_company()));\n }", "public function getEmployee()\n\t{\n\t\t$arr = $this->queryToDbObj->getEmployeeList();\n\n\t\treturn $arr;\n\t}", "public function getPersona()\n {\n return $this->hasOne(Personas::className(), ['id' => 'persona_id']);\n }", "public function getIdContact()\n {\n return $this->id_contact;\n }", "public function fetchContacts()\n {\n return $this->contacts;\n }", "function get_employee()\n\t\t{\n\t\t\treturn EmployeeFactory::createEmployee($this->empID);\n\t\t}", "public function employees()\n {\n return $this->users->where('account_type', 'Employee');\n }", "public function contacts()\n {\n return $this->hasOne(Contact::class);\n }", "public function getCurrentPrimaryContact(){\n\t\t$author = Author::selectRaw('CONCAT(first_Name, \" \", last_Name) AS name')->where('is_principal_contact', 1)->first();\n\n\t\tif($author){\n\t\t\t$primaryContact = $author;\n\t\t}\n\t\telse{\n\t\t\t$primaryContact = null;\n\t\t}\n\t\treturn $this->setStatusCode(201)\n\t\t\t->respondUpdatedWithData('Primary Contact', $primaryContact);\n\t}", "public function getContact()\n {\n return view('frontend.info.contact');\n }", "function createPersona()\n {\n return isset($this->source['persona']) && $this->source['persona'] ? $this->source['persona'] : null;\n }", "public function show(Employee $employee)\n {\n $company = Company::all()->pluck('name','id');\n //\n return view('employee.show', compact('employee','company'));\n }", "public function getStaff()\n\t{\n\t\treturn $this->staff;\n\t}", "public function getContactList()\r\n {\r\n return $this->exec('contact_list');\r\n }", "protected function existingResource() : Employee\n {\n // return the auth user itself\n return $this->authUser->makeHidden('salon');\n }", "public function getContacts() {\n return $this->contacts;\n }", "public function attorney()\n {\n if ( ! $this->bean->fetchAs('user')->attorney) $this->bean->attorney = R::dispense('user');\n return $this->bean->attorney;\n }", "public function getShipToFirstName();", "public function getContactPersonName(): ?string\n {\n return $this->data->contactPersonName;\n }", "public function getContactName()\n {\n return $this->contactName;\n }", "public function empleado()\n {\n return \\App\\Models\\Empleado::where('user_id', $this->user_id)->first();\n }", "public function getParticipant(Request $request)\n {\n $dataRequest = $request->all();\n $data = $this->service->getParticipant($request['id']);\n return $data;\n }", "public function getReadableContact()\n {\n return Extra::getBeautifulPhone($this->contact);\n }", "public function getContactsList() {\n return $this->_get(7);\n }", "public function contactsAction()\n {\n $this->view->pageTitle = 'Member Contact List';\n\t$service = new App_Service_Member();\n $users = $service->getActiveUsers();\n\n $this->view->users = array();\n $lastRowLetter = null;\n\t\n\t// remove inactive memebers\n\t$users = array_filter($users, function($usr) { return $usr->isActive();} );\n\t\n foreach ($users as $userId => $user) {\n $firstName = $user->getFirstName();\n\n if ($lastRowLetter !== $firstName[0]) {\n $lastRowLetter = $rowLetter = $firstName[0];\n } else {\n $rowLetter = null;\n }\n\n $this->view->users[$userId] = array(\n 'user' => $user,\n 'rowLetter' => $rowLetter,\n );\n }\n }", "public function getEmpCommune() {\n return $this->empCommune;\n }", "function getSpecificMember($name, $email) {\r\n try {\r\n $mam = getAllMembers();\r\n var_dump($mam);\r\n $user = searchUsers($mam, $email);\r\n print_r($user);\r\n if ($user) {\r\n \r\n }\r\n } catch (Exception $exc) {\r\n echo $exc->getTraceAsString();\r\n }\r\n}", "public function getContacts()\r\n {\r\n return $this->_contacts;\r\n }" ]
[ "0.6366606", "0.6045609", "0.60077345", "0.5917367", "0.59062165", "0.58580124", "0.5739047", "0.5739047", "0.5739047", "0.5704558", "0.5654713", "0.5647963", "0.5616264", "0.5606194", "0.5599319", "0.5594755", "0.5589979", "0.5562629", "0.55461884", "0.5497089", "0.5487094", "0.546691", "0.54582375", "0.54467076", "0.5446322", "0.5417151", "0.5398365", "0.5395708", "0.53632766", "0.5355822", "0.53557074", "0.53441405", "0.53437555", "0.5333716", "0.5329213", "0.53275955", "0.53193337", "0.5311317", "0.5311195", "0.53101337", "0.53092986", "0.53069615", "0.53014314", "0.5293215", "0.5292562", "0.52891666", "0.52877766", "0.5282174", "0.52663743", "0.52662325", "0.5261222", "0.5254556", "0.52429795", "0.52257204", "0.52106524", "0.52095723", "0.5207026", "0.5201039", "0.51955223", "0.51907367", "0.51715076", "0.51679176", "0.51632744", "0.51632744", "0.5162215", "0.51543933", "0.51539576", "0.51493895", "0.5138071", "0.5137078", "0.51319027", "0.51278627", "0.5126308", "0.5119212", "0.51134", "0.5108597", "0.51080126", "0.5107822", "0.5106597", "0.5088224", "0.5086076", "0.5081556", "0.50783", "0.5067435", "0.50641775", "0.5052451", "0.50500304", "0.50452155", "0.5043569", "0.5038858", "0.5034166", "0.5026956", "0.50256366", "0.5023206", "0.5023183", "0.50165814", "0.50129145", "0.50075173", "0.50010645", "0.49961063" ]
0.5624584
12
Get the dynamic contact_person_title attribute
public function getContactPersonTitleAttribute() { return $this->contactPerson ? $this->contactPerson->role : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_title() {\n\t\treturn $this->get_mapped_property('title');\n }", "function title( $contentObjectAttribute, $name = null )\n {\n $content = $contentObjectAttribute->content();\n return $content['value'];\n }", "public function title() { \n $title = $this->content()->get('title');\n if($title != '') {\n return $title;\n } else {\n $title->value = $this->uid();\n return $title;\n }\n }", "function title( $contentObjectAttribute, $name = null )\n {\n $content = $contentObjectAttribute->content();\n $result = \"\";\n if ( $content instanceof xrowGISPosition )\n {\n $attributeArray = array( \n 'country' , \n 'state' , \n 'zip' , \n 'district' , \n 'city' , \n 'street' , \n 'latitude' , \n 'longitude' \n );\n foreach ( $attributeArray as $key )\n {\n $result .= \" \" . $content->$key;\n }\n }\n return trim( $result );\n }", "private function generate_title()\r\n\t\t{\r\n\t\t\treturn $this->c_title;\r\n\t\t}", "function getPersonFirstName()\n {\n return $this->getValueByFieldName('person_fname');\n }", "public function getTitle()\n {\n if ($this->isPermit()) {\n $addresses = $this->getField('objectaddresses');\n if ($addresses != false) {\n $location = $addresses[0]['zipcode'];\n $location .= ' ' . $addresses[0]['addressnumber'];\n $location .= $addresses[0]['addressnumberadditional'];\n $location .= ' ' . $addresses[0]['city'];\n $result = sprintf(\n '%s %s %s',\n $this->getField('producttype'),\n $this->getField('productactivities'),\n $location\n );\n } else {\n $result = sprintf(\n '%s %s',\n $this->getField('producttype'),\n $this->getField('productactivities')\n );\n }\n } else {\n $result = $this->getField('title');\n }\n return $result;\n }", "public function getDisplayField()\n {\n foreach(['title', 'name'] as $attribute) {\n if ($this->hasAttribute($attribute)) {\n return $this->getAttribute($attribute);\n }\n }\n\n $pk = $this->getPrimaryKey();\n if (is_array($pk))\n {\n $pk = print_r($pk, true);\n }\n\n\n return \"No title for \" . get_class($this) . \"($pk)\";\n }", "public function getTitle()\n {\n return $this->data['fields']['title'];\n }", "public function title () {\n return ($this->first_name or $this->last_name) ? $this->first_name . ' ' . $this->last_name : $this->email;\n }", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "public function get_title()\n {\n return $this->get_default_property(self::PROPERTY_TITLE);\n }", "function fetch_faculty_title($title, $id) {\n if(get_post_type($id) == 'faculty') {\n $name = get_field('name', $id);\n $name = $name[0];\n $title = $name['last'].', '.$name['first'];\n }\n return $title;\n}", "function title( &$contentObjectAttribute )\n {\n $object = $this->objectAttributeContent( $contentObjectAttribute );\n if ( is_object ($object) )\n {\n return $object->attribute( 'name' );\n }\n return false;\n }", "public function getTitle()\n {\n if (!isset($this->data['fields']['title'])) {\n if ($this->isNew()) {\n $this->data['fields']['title'] = null;\n } elseif (!isset($this->data['fields']) || !array_key_exists('title', $this->data['fields'])) {\n $this->addFieldCache('title');\n $data = $this->getRepository()->getCollection()->findOne(array('_id' => $this->getId()), array('title' => 1));\n if (isset($data['title'])) {\n $this->data['fields']['title'] = (string) $data['title'];\n } else {\n $this->data['fields']['title'] = null;\n }\n }\n }\n\n return $this->data['fields']['title'];\n }", "public function metaTitle()\n\t{\n\t\treturn ($this->title == '') ? $this->name : $this->title;\n\t}", "public function getTitle()\n {\n if (array_key_exists(\"title\", $this->_propDict)) {\n return $this->_propDict[\"title\"];\n } else {\n return null;\n }\n }", "public function getTitle()\n {\n if (array_key_exists(\"title\", $this->_propDict)) {\n return $this->_propDict[\"title\"];\n } else {\n return null;\n }\n }", "public function title()\n {\n return $this->{static::$title};\n }", "public function getTitle(): string\n {\n return$this->attrs['title'] ?? '';\n }", "public function get_title();", "public function getDisplayNameAttribute()\n {\n return str_limit($this->attributes['title']);\n }", "public function getMetaTitle();", "public function getTitle() {\r\n\tif (!is_null($this->title))\r\n\t return $this->title;\r\n\telse\r\n\t return $this->name;\r\n }", "public abstract function getTitleFieldName();", "public function getTitle()\n {\n return $this->getData('title');\n }", "function get_contact_name( $cid ){\n if(empty($cid)){\n return \"Null\";\n }\n $params = array(\n 'version' => 3,\n 'sequential' => 1,\n 'id' => $cid\n );\n $aContact = civicrm_api('Contact', 'get', $params);\n if( $aContact['is_error'] != 1 && $aContact['count']!= 0 ){\n \n /* $name = sprintf( \"<a href='civicrm/contact/view?reset=1&cid=%d'>%s</a>\"\n , $cid\n , $aContact['values'][0]['display_name']\n );\n \n */\n $name = $aContact['values'][0]['display_name'];\n }\n return $name; \n }", "public function getName()\r\n\t{\r\n\t\tif ($this->def->getField(\"name\"))\r\n\t\t\treturn $this->getValue(\"name\");\r\n\t\tif ($this->def->getField(\"title\"))\r\n\t\t\treturn $this->getValue(\"title\");\r\n\t\tif ($this->def->getField(\"subject\"))\r\n\t\t\treturn $this->getValue(\"subject\");\r\n\t\tif ($this->def->getField(\"full_name\"))\r\n\t\t\treturn $this->getValue(\"full_name\");\r\n\t\tif ($this->def->getField(\"first_name\"))\r\n\t\t\treturn $this->getValue(\"first_name\");\r\n\r\n\t\treturn $this->getId();\r\n\t}", "public function getContactName()\n {\n return $this->contactName;\n }", "public function getTitleField()\n {\n return !$this->title ?: $this->title->getName();\n }", "public function computedTitle();", "public function getTitle()\n {\n return empty($this->model->title) ? $this->id : $this->model->title;\n }", "public function getTitle()\n {\n return $this->getData(self::TITLE);\n }", "public function getContactPersonName(): ?string\n {\n return $this->data->contactPersonName;\n }", "public function getTitle(): string\n {\n return $this->title ?? $this->name;\n }", "public function getTitle()\n {\n return $this->getValue('title');\n }", "public function getTitle() {\n\t\t$field = $this->getTitleField();\n\t\treturn $field ? $field->getValue() : '';\n\t}", "public function get_title(){\n\t\treturn $this->title;\n\t}", "public function get_title(){\n\t\treturn $this->title;\n\t}", "function get_title() \t{\n \t\treturn $this->title;\t\n \t}", "public function getTitle()\n {\n return $this->display_name;\n }", "public function get_title() {\n\t\treturn $this->resource->post_title;\n\t}", "protected function getMetaTitle() {\r\n\t\treturn $this->metaTitle;\r\n\t}", "public function getTitleStr () {\n switch ($this->send_by_objtype) {\n case 'Doctor':\n $title = '医生上传';\n break;\n case 'Patient':\n $title = '患者上传';\n break;\n case 'Auditor':\n $title = '运营上传';\n break;\n }\n\n return $title;\n }", "public function getMetaTitle() {\n\t\t$title = $this->data()->getTitle();\n\t\t$filter = $this->FilterDescription();\n\t\tif($filter) {\n\t\t\t$title = \"{$title} - {$filter}\";\n\t\t}\n\n\t\t$this->extend('updateMetaTitle', $title);\n\t\treturn $title;\n\t}", "function firstentity_person( $person ) {\n $content[] = array(\n '#markup' => l( $person->name , 'person/' . $person->person_id )\n );\n $content[] = field_attach_view( 'person' , $person , 'full' );\n return $content;\n}", "public function getTitle()\n {\n return $this->get(self::_TITLE);\n }", "public function getTitle()\n {\n return $this->get(self::_TITLE);\n }", "public function get_title() { return $this->title; }", "public function GetTitle()\n {\n $sContent = '';\n if (false !== $this->sqlData) {\n $sContent = $this->GetFromInternalCache('portalTitle');\n if (is_null($sContent)) {\n $sContent = $this->sqlData['title'];\n // fallback to name field\n if (empty($sContent)) {\n $sContent = $this->GetName();\n }\n\n $this->SetInternalCache('portalTitle', $sContent);\n }\n }\n\n return $sContent;\n }", "function getTitle() {\n\t\treturn $this->title;\n\t}", "function article_title() {\n return Registry::prop('article', 'title');\n}", "function get_post_title($entity)\n {\n return \"Untitled {$this->object->get_object_name()}\";\n }", "public function getTitle()\n {\n \treturn $this->id;\n }", "public function getTitle()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn '';\n\t\t\t\n\t\t\tif(!array_key_exists('title', $this->data))\n\t\t\t\treturn '';\n\t\t\t\n\t\t\treturn $this->data['title'];\n\t\t}", "public function getTitle() {\n\t\treturn $this->title;\t\n\t}", "public function getTitleField() {\n return $this->getFields()[$this->getTitleFieldName()];\n }", "public function getTitleField() {\n\t\t$this->loadFields();\n\t\tforeach($this->fields as $field) {\n\t\t\tif (get_class($field) == \"ItemFieldString\") return $field;\n\t\t}\n\t}", "public function getTitle(){\r\n\t\treturn $this->title;\r\n\t}", "public function getTitle()\n {\n return $this->metaTitle;\n }", "function getTitle()\n {\n\n $title = $this->getName();\n if (!empty($this->getCity()) && strpos(strtolower($title), strtolower($this->getCity())) === false) {\n $title .= \" - \" . $this->getCity();\n }\n return $title;\n }", "public function getTitle()\n {\n return $this->formattedData['title'];\n }", "public function get_title()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n {\n return $this['title'];\n }", "public function getTitle(){\n return $this->film['title'];\n }", "protected function getTitle(): string\n {\n return \"Bestelling {$this->record->invoice_id} annuleren van {$this->record->name}\";\n }", "function get_pre_information_title(){\n\tif ( get_post_type() == 'companies' ) {\t/* Companies = purple text */\n\t\t?>\n\t\t<span class=\"purple-text\"><?php echo get_the_title() ?></span> / \n\t\t<?php\n\t}\n\telseif ( get_post_type() == \"group_of_companies\") { /* Group_of_companies = turquoise text */\n\t\t?>\n\t\t<span class=\"turquoise-text\"><?php echo get_the_title() ?></span> /\n\t\t<?php\n\t}\n\telse {} /* Do nothing */\n}", "function getTitle(&$record){\n $type = array('H' => 'Hydrological Station', 'M'=>'Meteorological Station');\n $title = \"\".$type[$record->val('type_station')].\" - id: \".$record->val('id_station');\n \n return $title;\n }", "public function getNodeTitle() {\n return $this->{$this->titleAttribute};\n }", "public function getTitle()\n {\n return $this->getField('Title');\n }", "public function getTitle()\n {\n\t\treturn $this->title;\n\t}", "function getTitle(&$record) {\n\t\t$parsedContents =& $record->getParsedContents();\n\t\tif (isset($parsedContents['title'])) {\n\t\t\treturn array_shift($parsedContents['title']);\n\t\t}\n\t\treturn null;\n\t}", "public function getTitle()\n {\n return $this->getEntityValue('title', '');\n }", "function get_page_title()\n {\n return $this->object->name;\n }", "public function title() {\n\t\tif ( ! is_object( $this->object ) ) {\n\t\t\treturn esc_html__( 'Page not found', 'nhg-seo' );\n\t\t}\n\n\t\t$title = Strategy::get_from_meta( 'post', $this->object->ID, $this->object, 'title' );\n\t\tif ( \\is_string( $title ) && '' !== $title ) {\n\t\t\treturn $title;\n\t\t}\n\n\t\treturn Strategy::get_title( 'post', $this->object->post_type, $this->object );\n\t}", "public function getTitle(){\r\n\t\t\treturn $this->title;\r\n\t\t}", "function & getTitle() {\r\n\r\n\t\tif(empty($this->_id)) {\r\n\t\t\t$this->_title = \"\";\r\n\t\t\treturn $this->_title;\r\n\t\t}\r\n\r\n\t\t// Load the data\r\n\t\tif (empty ($this->_title)) {\r\n\t\t\t$database = $this->_db;\r\n\t\t\t$ce = $this->_content_element;\r\n\r\n\t\t\t/* retrieve values */\r\n\t\t\t$query = \"SELECT \" .$ce->title.\" FROM #__\". $ce->table .\" WHERE \" . $ce->id. \" = '\" . $this->_id .\"'\";\r\n\r\n\t\t\t$database->setQuery($query);\r\n\t\t\t$this->_title = $database->loadResult();\r\n\t\t}\r\n\t\treturn $this->_title;\r\n\t}", "function getManufacturerTitle() {\n \tif ($this->getManufacturerUid()) {\n \t\treturn $this->conn_db->getManufacturerTitle($this->getManufacturerUid());\n \t}\n \t\n }", "public function _get_item_title() {\n\t\treturn $this->_item_title;\n\t}", "function getLabelField()\n {\n return 'person_fname';\n }", "public function getTitle(){\n\t\t\treturn $this->title;\n\t\t}", "public function getContact(): string\n {\n return $this->_contact;\n }", "public function title()\n {\n if ($this->contributor_service && $this->contributor_service->title) {\n return $this->contributor_service->title;\n }\n\n return $this->service->title;\n }", "function getTitle() {\n\t\treturn $this->_title;\n\t}", "public function getTitle()\n\t{\n\t\t$content = $this->getContent();\n\t\treturn $content->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "protected function _getBookTitle()\n {\n return $this->mBook['title'];\n }", "public function getTitle() {\r\n\t\treturn $this->title;\r\n\t}", "public function getOriginalTitle() {\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), array('originalTitle' => array('originalTitleHeader' => 'header', \"originalTitleElement\")));\n return (is_array($result)) ? reset($result) : $result;\n }", "public function getTitle()\n {\n return $this->getValue();\n }", "public function getTitle()\r\n {\r\n return $this->m_title;\r\n }", "function pgm_custom_admin_titles( $title, $post_id ) {\n\n global $post;\n\n $output = $title;\n\n if( isset($post->post_type) ):\n switch( $post->post_type ) {\n case 'pgm_subscriber':\n $fname = get_field('pgm_fname', $post_id );\n $lname = get_field('pgm_lname', $post_id );\n $output = $fname .' '. $lname;\n break;\n }\n endif;\n\n return $output;\n}", "public function getFirstName()\n {\n return $this->getValue('nb_icontact_prospect_first_name');\n }", "public function getTitle()\n {\n return isset($this->metas['title']) ? $this->metas['title'] : '';\n }", "public static function find_title()\n {\n $page = self::get_if_account_page_exists();\n\n return $page->Title;\n }", "public function title( $contentObjectAttribute, $name = null )\n {\n return \"LM-/NT-PW COAID-\".$contentObjectAttribute->attribute( 'id' );\n }", "function get_title() {\n\t\treturn $this->settings['title'];\n\t}" ]
[ "0.6601463", "0.6491276", "0.64342755", "0.63133115", "0.6276941", "0.627448", "0.6271542", "0.62488955", "0.6227408", "0.619967", "0.61827224", "0.61270964", "0.6102998", "0.6096244", "0.60848504", "0.60625774", "0.6048876", "0.6048876", "0.6031329", "0.6016919", "0.6007098", "0.59893954", "0.59740025", "0.5971937", "0.59718823", "0.5956756", "0.595001", "0.59332615", "0.5912891", "0.59071076", "0.5901706", "0.5897905", "0.5893666", "0.5891789", "0.5890274", "0.5885634", "0.58809376", "0.5879957", "0.5879957", "0.58707386", "0.5866622", "0.5856203", "0.58484036", "0.58390343", "0.5837417", "0.58331096", "0.58313304", "0.58313304", "0.5828335", "0.58241844", "0.5818097", "0.5798172", "0.5796548", "0.57942635", "0.57871586", "0.57858807", "0.5784825", "0.57813936", "0.5777682", "0.5774414", "0.5768191", "0.5765835", "0.57650244", "0.57621574", "0.575299", "0.5750945", "0.5745437", "0.5741819", "0.57397634", "0.5731274", "0.57248324", "0.5723231", "0.5722308", "0.5719775", "0.57191277", "0.57160115", "0.5715695", "0.57151204", "0.5714676", "0.5713091", "0.570774", "0.5701191", "0.56965214", "0.56949085", "0.5694137", "0.56893414", "0.56893414", "0.56893414", "0.56893414", "0.5689253", "0.568679", "0.56859344", "0.56844425", "0.5683716", "0.5683562", "0.56792015", "0.5677723", "0.56754136", "0.56734", "0.5665646" ]
0.703518
0
Accessor for open_date attribute
public function getOpenDateAttribute($date) { return $date ? Carbon::parse($date) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOpenDate() {\n\t\treturn $this->data_array['open_date'];\n\t}", "public function setOpenDateAttribute($date)\n {\n $this->attributes['open_date'] = $date ? Carbon::parse($date) : null;\n }", "public function getOpendate()\n {\n return $this->_opendate;\n }", "public function getDate() {\n return @$this->attributes['date'];\n }", "public function getDate() { return $this->date; }", "public function getOpenBetaDate();", "function getDate() {\n return $this->date;\n }", "public function getDate()\r\n {\r\n return $this->date;\r\n }", "public function getIssueDate()\n {\n return $this->issueDate;\n }", "public function getDate()\n {\n return $this->date;\n }", "function getDate( )\r\n\t{\r\n\t\treturn $this->date;\r\n\t}", "public function getDate()\n {\n return $this->_date;\n }", "public function getDate(){\n\t\treturn $this->_date;\n\t}", "public function getDate()\n {\n if (!isset($this->_date)) {\n throw new \\LogicException('Missing property _date');\n }\n return $this->_date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate() {\n\t\treturn $this->_date;\n\t}", "public function getFormatedDateAttribute() {\n return date('d.m.Y', strtotime($this->date));\n }", "public function getDate() {\n return $this->date;\n }", "#[Property('date')]\n\tprotected function getDateExt(): Date|string {\n\t\treturn new Date($this);\n\t}", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n {\n return $this->date;\n }", "public function getDate()\n\t{\n\t\treturn $this->date;\n\t}", "public function getDate()\n\t{\n\t\treturn $this->date;\n\t}", "public function getDate()\n\t{\n\t\treturn $this->date;\n\t}", "public function getDateAttribute($date)\n { \n if( !is_null($date) ) {\n return (new Carbon($date))->format('Y-m-d');\n }\n }", "public function getDate(){\n\t\treturn $this->laDate;\n\t}", "public function getStatusDate()\n {\n return $this->statusDate;\n }", "public function getDate()\n {\n if ($this->hasModel()) {\n $value = Html::getAttributeValue($this->model, $this->attribute);\n } else {\n $value = $this->value;\n }\n\n return $value;\n }", "public function get()\n {\n return $this->date;\n }", "function getCloseDate() {\n\t\treturn $this->data_array['close_date'];\n\t}", "public function getClosedBetaDate();", "public function getDateAttribute()\n {\n return $this->created_at_fa_f;\n }", "public function getDate( Inx_Api_Recipient_Attribute $oAttribute );", "function getDate() {\n\t\treturn $this->data_array['adddate'];\n\t}", "public function getOrderdate()\n {\n return $this->orderdate;\n }", "public function getClosedate()\n {\n return $this->_closedate;\n }", "public function getUpdatedAtAttribute($date){\n return Carbon::parse($date)->format('d-m-Y');\n }", "public function getDateEn() {\n return $this->date;\n }", "public function getdateModifiedAttribute()\n {\n return Carbon::parse($this->date)->translatedFormat('d M Y');\n }", "public function get_has_date()\n\t{\n\t\treturn $this->has_date;\n\t}", "public function getDate();", "public function getDate();", "public function getStarthiredateinputThAttribute(){\n return date('d/m/' , strtotime( $this->starthiredate ) ).(date('Y',strtotime($this->starthiredate))+543);\n }", "public function getProgramDateAttribute()\n {\n return excel_date($this->program->start_date);\n }", "public function getDate()\n {\n return new \\DateTime($this->date);\n }", "public function getModDate() \r\n { \r\n return $this->_modDate; \r\n }", "public function getExpDate()\n {\n return $this->ExpDate;\n }", "public function getDateI(){\n return $this->dateI;\n }", "public function getExpdate()\n {\n return $this->expdate;\n }", "public function getModDate();", "public function getOrderDate()\n {\n return $this->order_date;\n }", "public function setOpenBetaDate(\\DateTime $openBetaDate);", "public function getOpen()\n {\n return $this->Open;\n }", "public function getInvdate()\n {\n return $this->invdate;\n }", "public function getDate(): \\DateTime\n {\n return $this->date;\n }", "public function getDate(): \\DateTime\n {\n return $this->date;\n }", "public function getNacAttribute()\n {\n return date(\"d/m/Y\", strtotime($this->fecha_nacimiento));\n }", "public function getDateAttribute($value)\n {\n return Carbon::parse($value)->format('d/m/Y');\n }", "public function getDate(){\n return $this->getParameter('date');\n }", "public function getIngAttribute()\n {\n return date(\"d/m/Y\", strtotime($this->fecha_ingreso));\n }", "function getDateApproved() {\n\t\treturn $this->getData('dateApproved');\n\t}", "function getFecha() {\r\n return $this->fecha;\r\n }", "public function getPublishDateAttribute()\n {\n return $this->content->publish_date;\n }", "public function getDate()\n\t{\n\t\treturn $this->datetime;\n\t}", "public function getCreatedAtAttribute($date)\n {\n return $date;\n }", "function getFecha(){\n\t\treturn $this->fecha;\n\t}", "public function getCreate_date(){\n return $this->create_date;\n }", "public function getDate()\n {\n return $this->date = new \\DateTime($this->get()->post_date);\n }", "public function getDoDate()\n {\n return $this->data['fields']['do_date'];\n }", "public function getBlockDateAttribute() {\n return Carbon::parse($this->attributes['block_date']);\n }", "public function setOpen($open) {}", "public function setOpen($open) {}" ]
[ "0.80150354", "0.73169804", "0.696345", "0.68872076", "0.6631332", "0.6610958", "0.64985543", "0.63983303", "0.6390778", "0.63734436", "0.63685805", "0.6362527", "0.63585854", "0.634004", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6310073", "0.6272324", "0.62718564", "0.62612766", "0.6243046", "0.62319", "0.62319", "0.6191627", "0.6191627", "0.6191627", "0.6191456", "0.6171662", "0.61583656", "0.6111781", "0.6111386", "0.61031914", "0.609369", "0.6060519", "0.59924567", "0.59638155", "0.5962629", "0.593718", "0.5931286", "0.5931138", "0.59172183", "0.5916428", "0.59134257", "0.59134257", "0.5865511", "0.5862684", "0.5846162", "0.58256614", "0.5823304", "0.5821922", "0.5817077", "0.5801659", "0.57972354", "0.5796038", "0.5790507", "0.57766825", "0.5773849", "0.5773849", "0.57728994", "0.5772238", "0.57490253", "0.5745466", "0.57312524", "0.57205755", "0.5720322", "0.57161176", "0.5708767", "0.5708305", "0.57030505", "0.5700692", "0.5698056", "0.5672494", "0.5662012", "0.5661986" ]
0.7663086
1
Accessor for end_date attribute
public function getEndDateAttribute($date) { return $date ? Carbon::parse($date) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndDate();", "public function getEndDate();", "public function get_end_date()\n\t{\n\t\treturn $this->end_date;\n\t}", "public function getEndDate()\r\n\t\t{\r\n\t\t\treturn $this->end_date;\r\n\t\t}", "public function getEndDate() {\n\n return $this->end_date;\n }", "function getEndDate() \n\t{\n\t\treturn (strlen($this->end_date)) ? $this->end_date : NULL;\n\t}", "public function getEndDate() {\n return $this->endDate;\n }", "public function getEnd_date() {\n\t\treturn $this->_end_date;\n\t}", "public function getEndDate(){\n\t\treturn $this->endDate;\n\t}", "public function getEndDate()\n {\n if ( ! $this->getData('end_date'))\n {\n return \"-\";\n }\n\n return $this->getData('end_date');\n }", "public function getEndDate()\n {\n return $this->stringToDate((string) $this->json()->end_date);\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate(): Date\n {\n return $this->endDate;\n }", "public function getEndDate() \n {\n return $this->_fields['EndDate']['FieldValue'];\n }", "public function getEndDate()\n {\n return $this->EndDate;\n }", "public function getEndDate() {\n return $this->endDate;\n }", "public function getEndDate() {\n return $this->endDate;\n }", "public function setEndDateAttribute($value)\n\t{\n\t\treturn $this->attributes['end_date'] = Carbon::parse($value)->format('Y-m-d H:i:s');\n\t}", "public function setEndDate(string $date);", "public function getEndDateTime();", "public function get_endDate()\n {\n return $this->_endDate;\n }", "public function getEndDateTime()\n {\n return $this->endDateTime;\n }", "private function getEndDate( $end_date )\n {\n return $this->matchDateFormat( $end_date )\n ? $end_date\n : Carbon::now()->format('Y-m-d');\n }", "private function getEndDate( $end_date )\n {\n return $this->matchDateFormat( $end_date )\n ? $end_date\n : Carbon::now()->format('Y-m-d');\n }", "public function setEndDateAttribute($date)\n {\n // Use with Carbon instance:\n // -------\n // Carbon::createFromFormat('H:i', $date)->format('H:i');\n return $this->attributes['end_date'] = strtotime(str_replace('/', '-', $date));\n }", "function getEndDate()\n {\n $oDaySpan = $this->_value;\n $value = is_null($oDaySpan) ? null : $oDaySpan->getEndDate();\n return $value;\n }", "public function setEndDateAttribute($date)\n {\n $this->attributes['end_date'] = $date ? Carbon::parse($date) : null;\n }", "public function setEndDateAttribute($value)\n {\n $this->attributes['end_date'] = Carbon::parse($value);\n }", "public function set_end_date()\n {\n if ($this->end_date === NULL && $this->start_date === NULL) {\n $this->formated_end_date = \"the game has not started yet\";\n } elseif($this->end_date === NULL && $this->start_date !== NULL) {\n $this->formated_end_date = \"the game is not finished yet\";\n } else {\n $end_date = Carbon::createFromTimestamp($this->end_date / 1000);\n $this->formated_end_date = $end_date->toDayDateTimeString();\n }\n return $this->formated_end_date; \n }", "function setEndDate($end_date = \"\") \n\t{\n\t\t$this->end_date = $end_date;\n\t}", "public function getEnd()\n {\n return Carbon::createFromFormat('d/m/Y', $this->data_saida);\n }", "public function getEventEndDate() {\n\t\treturn ($this->eventEndDate);\n\t}", "private function _retrieveEndDate()\n {\n global $preferences;\n\n $bdate = new \\DateTime($this->_begin_date);\n if ( $preferences->pref_beg_membership != '' ) {\n //case beginning of membership\n list($j, $m) = explode('/', $preferences->pref_beg_membership);\n $edate = new \\DateTime($bdate->format('Y') . '-' . $m . '-' . $j);\n while ( $edate <= $bdate ) {\n $edate->modify('+1 year');\n }\n $this->_end_date = $edate->format('Y-m-d');\n } else if ( $preferences->pref_membership_ext != '' ) {\n //case membership extension\n $dext = new \\DateInterval('P' . $this->_extension . 'M');\n $edate = $bdate->add($dext);\n $this->_end_date = $edate->format('Y-m-d');\n }\n }", "public function setEndDate($date)\n\t{\n\t\treturn $this->setDate('End', $date);\n\t}", "protected function getEnd()\n {\n return new Zend_Date(\n Mage::getStoreConfig(self::CONFIG_PREFIX . 'end', $this->getStore()),\n $this->getDateTimeFormat(),\n $this->getLocale()->getLocaleCode()\n );\n }", "public function getEndAtAttribute(): string\n {\n $app_slot = $this->doctor->app_slot;\n\n return $this->start_at->addMinutes($app_slot)->toDateTimeString();\n }", "public function setEndDate(DrupalDateTime $end_date = NULL);", "function erp_financial_end_date() {\n $financial_year_dates = erp_get_financial_year_dates();\n\n return $financial_year_dates['end'];\n}", "public function setEndDate($value) \n {\n $this->_fields['EndDate']['FieldValue'] = $value;\n return $this;\n }", "public function getEnd() : \\DateTime\n {\n return new \\Datetime($this->end);\n }", "public function getDateTimeObjectEnd();", "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "public function setEndDate($end_date)\n {\n $this->json()->end_date = $this->dateToString($end_date);\n }", "public function setEndDateTime($val)\n {\n $this->_propDict[\"endDateTime\"] = $val;\n return $this;\n }", "public function setEndDate($date)\n\t\t{\n\t\t\t$this->end_date = $date;\n\t\t}", "public function endDate()\n {\n $specialEndDate = $this->getSpecialEndDate();\n if ($specialEndDate !== false) {\n return $specialEndDate;\n }\n\n $this->date->setTimestamp($this->begin);\n\n $position = array_search($this->ruleInfo['baseWeekday'], $this->ruleInfo['weekdays']);\n\n if ($position !== 0) {\n $this->date->gotoDayOfWeek($this->ruleInfo['weekdays'][0]);\n }\n\n $repeatedWeek = ceil(($this->ruleInfo['times'] + $position) / count($this->ruleInfo['weekdays'])) - 1;\n $mod = ($this->ruleInfo['times'] + $position) % count($this->ruleInfo['weekdays']);\n $endDayPosition = $mod === 0 ? count($this->ruleInfo['weekdays']) - 1 : $mod - 1;\n $this->date->addWeek($repeatedWeek * $this->ruleInfo['freq']);\n\n if ($endDayPosition === 0) {\n $this->ruleInfo['end'] = $this->date->getDateWithExtendedYear();\n\n return $this->ruleInfo['end'];\n }\n\n $this->date->gotoDayOfWeek($this->ruleInfo['weekdays'][$endDayPosition]);\n $this->ruleInfo['end'] = $this->date->getDateWithExtendedYear();\n\n return $this->ruleInfo['end'];\n }", "public function setEndDate($value)\n {\n $this->endDate = $value;\n }", "public function getEndAt()\n {\n return $this->end_at;\n }", "public function getEndAt()\n {\n return $this->end_at;\n }", "public function setDateEnd($var)\n {\n GPBUtil::checkString($var, True);\n $this->dateEnd = $var;\n\n return $this;\n }", "public function getEndDate() {\r\n $endDate = new \\DateTime('@' . $this->getTimestamp());\r\n\r\n switch($this->getMode()) {\r\n case self::$modeYear:\r\n $endDate->modify('last day of December');\r\n break;\r\n case self::$modeMonth:\r\n $endDate->modify('last day of this month');\r\n break;\r\n case self::$modeWeek:\r\n $date = date('w', $endDate->getTimestamp());\r\n if($date != 0) {\r\n $endDate->modify('next Sunday');\r\n }\r\n break;\r\n case self::$modeDay:\r\n break;\r\n default:\r\n throw new \\Exception(\"ViewMode is not known in ViewCalendar.\");\r\n break;\r\n }\r\n\r\n $endDate->setTime(23, 59, 59);\r\n return $endDate;\r\n }", "public function getLastAttendedAttribute()\n {\n $last = $this->events()->first();\n if ($last) {\n return $last->end_date;\n }\n }", "public function getEndDateTime()\n {\n if (array_key_exists(\"endDateTime\", $this->_propDict)) {\n if (is_a($this->_propDict[\"endDateTime\"], \"\\DateTime\") || is_null($this->_propDict[\"endDateTime\"])) {\n return $this->_propDict[\"endDateTime\"];\n } else {\n $this->_propDict[\"endDateTime\"] = new \\DateTime($this->_propDict[\"endDateTime\"]);\n return $this->_propDict[\"endDateTime\"];\n }\n }\n return null;\n }", "public function getFormattedEndAt(): string\n {\n\n return $this->endAt->format('d-m-Y');\n\n }", "public function getServiceEndAt() {\n return $this->attributes['service_end_at'];\n }", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = $dateEnd;\n \n return $this;\n }", "public function getEndDateAttribute($value)\n {\n return Carbon::parse($value)->format('m/d/Y');\n }", "public function setDateEnd($dateEnd = null)\n {\n $this->dateEnd = $dateEnd;\n\n return $this;\n }", "public function setEndAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['end'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n } else {\n $this->attributes['end'] = null;\n }\n }", "public function setEnd(\\DateTime $end)\n {\n $this->end = $end;\n return $this;\n }", "public function setEnd(\\DateTime $end)\n {\n $this->end = $end;\n return $this;\n }", "public function formEndDateAttribute($value)\n {\n return Carbon::parse($value)->format('Y-m-d');\n }", "public function endDate($endDate)\n {\n return $this->setProperty('endDate', $endDate);\n }", "public function endDate($endDate)\n {\n return $this->setProperty('endDate', $endDate);\n }", "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}", "function _isValidEndDate()\r\n {\r\n if (strtotime($this->data[$this->name]['end_date']) > strtotime(date('Y-m-d H:i:s'))) {\r\n return true;\r\n }\r\n return false;\r\n }", "public function end($value = '')\n {\n if (!empty($value)) {\n\n return $this->builder->where(\"rc_date\", '<=', date('Y-m-d', strtotime($value)));\n }\n }", "public function getdefaultEndDate()\n {\n return $this->defaultenddate;\n }", "public function setEnd($end)\n {\n //Argument 1 must be a string\n Argument::i()->test(1, 'string', 'int');\n\n if (is_string($end)) {\n $end = strtotime($end);\n }\n\n $end = date('Y-m-d H:i:s', $end);\n\n $this->query['end_date'] = $end;\n\n return $this;\n }", "public function setEnd(ilDateTime $a_date = null)\n\t{\n\t\t$this->end = $a_date;\n\t}", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = VT::toDateTimeImmutable($dateEnd);\n }", "public function getEndDate(): ?Date {\n $val = $this->getBackingStore()->get('endDate');\n if (is_null($val) || $val instanceof Date) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'endDate'\");\n }", "public function getEnd(): ?DateTimeInterface\r\n {\r\n return $this->end;\r\n }", "public function setEndDate($endDate='')\r\n\t\t{\r\n\t\t\tif ($endDate != '')\r\n\t\t\t{\r\n\t\t\t\t$this->end_date = $endDate;\r\n\t\t\t}\r\n\t\t}", "public function getAvailabilityEndDateTime()\n {\n if (array_key_exists(\"availabilityEndDateTime\", $this->_propDict)) {\n if (is_a($this->_propDict[\"availabilityEndDateTime\"], \"\\DateTime\") || is_null($this->_propDict[\"availabilityEndDateTime\"])) {\n return $this->_propDict[\"availabilityEndDateTime\"];\n } else {\n $this->_propDict[\"availabilityEndDateTime\"] = new \\DateTime($this->_propDict[\"availabilityEndDateTime\"]);\n return $this->_propDict[\"availabilityEndDateTime\"];\n }\n }\n return null;\n }", "public function getEndAttribute($input)\n {\n $zeroDate = str_replace(['Y', 'm', 'd'], ['0000', '00', '00'], config('app.date_format'));\n\n if ($input != $zeroDate && $input != null) {\n return Carbon::createFromFormat('Y-m-d', $input)->format(config('app.date_format'));\n } else {\n return '';\n }\n }", "public function getEndsOn(): ?DateTime\n {\n return $this->endsOn;\n }", "public function getMembershipEndAttribute($value)\n {\n return \\DateTime::createFromFormat($this->getDateFormat(), $value)->format('j/n/Y g:i A');\n }", "public function getDate_planning_end()\n {\n return strftime('%d-%m-%Y', strtotime($this->_date_planning_end));\n }", "public function setCollectionDateEnd($val){\n\t\tif(trim($val) != \"\"){\n\t\t\t$this->collectionDateEnd = trim($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "public function getEndMonthYear()\n {\n if (array_key_exists(\"endMonthYear\", $this->_propDict)) {\n if (is_a($this->_propDict[\"endMonthYear\"], \"\\DateTime\") || is_null($this->_propDict[\"endMonthYear\"])) {\n return $this->_propDict[\"endMonthYear\"];\n } else {\n $this->_propDict[\"endMonthYear\"] = new \\DateTime($this->_propDict[\"endMonthYear\"]);\n return $this->_propDict[\"endMonthYear\"];\n }\n }\n return null;\n }", "public function setEndDate( KCommandContext $context )\n {\n $data = $context->data;\n \n if( $data->day || $data->month || $data->year )\n { \n $date = new KDate();\n \n $date->day( (int) $data->day );\n \n $date->month( (int) $data->month );\n \n $date->year( (int) $data->year );\n \n $data->endDate = $date;\n }\n }", "public function getEndDateAndTime() {}", "protected function getEndIntervalAttribute()\n {\n return $this->fetchData[self::INTERVAL_END];\n }", "public function removeEndDate()\n\t{\n\t\t$this->dateEnd = null;\n\t\t\n\t\treturn $this;\n\t}", "public function setEndDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->complete_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('end-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->complete_at){\n\t\t\tif($model->complete_at->greaterThan($date)){\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-delayed');\n\t\t\t}else{\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->complete_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('end-inited');\n\t\t}\n }", "public function getMaxDateProperty()\n {\n return Carbon::now()->subDay()->format('Y-m-d');\n }", "public function getEndTimestamp() {}", "public function get_end_date($date_format = '') {\r\n\t\tif ( $this->is_endless() ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif ( ! strlen( $date_format ) ) {\r\n\t\t\t$date_format = get_option('date_format', 'd/m/Y');\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Filter the end date format using the charitable_campaign_end_date_format hook.\r\n\t\t */\r\n\t\t$date_format = apply_filters( 'charitable_campaign_end_date_format', $date_format, $this );\r\n\r\n\t\t/**\r\n\t\t * This is how the end date is stored in the database, so just return that directly.\r\n\t\t */\r\n\t\tif ( 'Y-m-d H:i:s' == $date_format ) {\r\n\t\t\treturn $this->end_date;\r\n\t\t}\r\n\t\t\r\n\t\treturn date( $date_format, $this->get_end_time() );\r\n\t}" ]
[ "0.780336", "0.780336", "0.77653086", "0.7749867", "0.7742412", "0.77136856", "0.7706328", "0.7645491", "0.7608382", "0.7569812", "0.7567699", "0.754436", "0.754436", "0.754436", "0.754436", "0.754436", "0.7541639", "0.7541639", "0.7541639", "0.7541639", "0.7541639", "0.7541639", "0.7509252", "0.74944973", "0.748338", "0.7467283", "0.7467283", "0.74202126", "0.7411027", "0.7338264", "0.71877736", "0.7082248", "0.70798993", "0.70795166", "0.70267147", "0.7018377", "0.7010801", "0.7010302", "0.70018977", "0.69739836", "0.69173807", "0.69139755", "0.6860221", "0.6837739", "0.6834434", "0.68202066", "0.6811202", "0.6774165", "0.67250746", "0.6712191", "0.67117745", "0.6690204", "0.6689889", "0.6673606", "0.6671562", "0.66625005", "0.663126", "0.66299033", "0.6601497", "0.6601497", "0.6593623", "0.6558437", "0.65487784", "0.6530977", "0.65242684", "0.65232897", "0.651723", "0.6505094", "0.64967775", "0.649475", "0.6493014", "0.6493014", "0.6442355", "0.64218754", "0.64218754", "0.64127314", "0.6359509", "0.6343734", "0.63377607", "0.631822", "0.6314561", "0.6314248", "0.6306887", "0.63007146", "0.6281532", "0.62641984", "0.6263766", "0.6260074", "0.625924", "0.6257949", "0.61990494", "0.6189587", "0.61767215", "0.61697024", "0.61641276", "0.6162751", "0.6161252", "0.61204433", "0.6118143", "0.6101775" ]
0.6918567
40
Mutator for open_date attribute
public function setOpenDateAttribute($date) { $this->attributes['open_date'] = $date ? Carbon::parse($date) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOpenDate() {\n\t\treturn $this->data_array['open_date'];\n\t}", "public function getOpenDateAttribute($date)\n {\n return $date ? Carbon::parse($date) : null;\n }", "public function setModDate($date) {}", "public function setDate($date);", "public function setOpen($open) {}", "public function setOpen($open) {}", "public function getOpendate()\n {\n return $this->_opendate;\n }", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setOpenBetaDate(\\DateTime $openBetaDate);", "public function setPublishedAtAttribute($date){ //guarda el campo published_at como si fuera una instancia de Carbon para que se guarde con hora\n \t$this->attributes['published_at']=Carbon::parse($date); \n }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setDateAttribute($date)\n {\n \t$this->attributes['date'] = Carbon::parse($date);\n }", "public function updateDate( Inx_Api_Recipient_Attribute $attr, $sValue );", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format('Y-m-d');\n }", "public function set_approved_date( $date ) {\n\t\t$this->set_prop( 'approved_date', $date ) ;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function getOpenBetaDate();", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "private function updatePublishOnDate()\n {\n $this->owner->PublishOnDate = $this->owner->DesiredPublishDate;\n // Remove the DesiredPublishDate.\n $this->owner->DesiredPublishDate = null;\n }", "public function getDate() { return $this->date; }", "protected function _syncModDate() {}", "public function setOpendate($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->_opendate !== $v) {\n $this->_opendate = $v;\n $this->modifiedColumns[IssuesTableMap::COL__OPENDATE] = true;\n }\n\n return $this;\n }", "public function setOpenNow($value)\n {\n return $this->set('OpenNow', $value);\n }", "public function setOpenNow($value)\n {\n return $this->set('OpenNow', $value);\n }", "public function setOpenNow($value)\n {\n return $this->set('OpenNow', $value);\n }", "public function setDateAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['date'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n } else {\n $this->attributes['date'] = null;\n }\n }", "public function setDateAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['date'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n } else {\n $this->attributes['date'] = null;\n }\n }", "public function setDate($date = false)\n {\n $date = explode('-', $date);\n\n $day = @$date[2] ? : date('d');\n $month = @$date[1] ? : date('m');\n $year = @$date[0] ? : date('Y');\n\n $this->day = @$day;\n $this->month = @$month;\n $this->year = @$year;\n # return Calendar instance\n return $this;\n }", "private function _setDate(){\n\t\tif($this->_year>=1970&&$this->_year<=2038){\n\t\t\t$this->_day = date('d', $this->_timestamp);\n\t\t\t$this->_month = date('m', $this->_timestamp);\n\t\t\t$this->_year = date('Y', $this->_timestamp);\n\t\t} else {\n\t\t\t$dateParts = self::_getDateParts($this->_timestamp, true);\n\t\t\t$this->_day = sprintf('%02s', $dateParts['mday']);\n\t\t\t$this->_month = sprintf('%02s', $dateParts['mon']);\n\t\t\t$this->_year = $dateParts['year'];\n\t\t}\n\t\t$this->_date = $this->_year.'-'.$this->_month.'-'.$this->_day;\n\t}", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "private function updateUnPublishOnDate()\n {\n $this->owner->UnPublishOnDate = $this->owner->DesiredUnPublishDate;\n // Remove the DesiredUnPublishDate.\n $this->owner->DesiredUnPublishDate = null;\n }", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->toDateTimeString();\n }", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::createFromFormat('d/m/Y', $value);\n }", "public function set_dates(){\n // if the id is not set, this means its anew item being created\n if(property_exists($this, 'created_on') && empty($this->id)){\n $this->created_on = date('Y-m-d H:i:s');\n }\n\n // if id is set, its an update\n if(property_exists($this, 'last_updated_on') && isset($this->id)){\n $this->last_updated_on = date('Y-m-d H:i:s');\n }\n }", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function modifyDate($mode, $date, $amount);", "public function setGoliveDateAttribute($value)\n {\n $this->attributes['golive_date'] = Carbon::createFromFormat('d/m/Y', $value)->toDateString();\n }", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format(self::DATE_FORMAT_SET);\n }", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "public function setModificationDate($date = true) {}", "public function setOpen($open = true) {}", "public function getDate() {\n return @$this->attributes['date'];\n }", "protected function _update()\n {\n $this->oxnews__oxdate->setValue(oxRegistry::get(\"oxUtilsDate\")->formatDBDate($this->oxnews__oxdate->value, true));\n\n\n parent::_update();\n }", "function set_change_sale_date_enable() {\n $this->sale_lib->set_change_sale_date_enable($this->input->post('change_sale_date_enable'));\n if (!$this->sale_lib->get_change_sale_date()) {\n $this->sale_lib->set_change_sale_date(date(get_date_format()));\n }\n }", "function getDate() {\n return $this->date;\n }", "public function getModDate() \r\n { \r\n return $this->_modDate; \r\n }", "public function setDate($date = null): object\n\t{\n\t\tif (null !== $date && !($date instanceof FHIRDateTime)) {\n\t\t\t$date = new FHIRDateTime($date);\n\t\t}\n\t\t$this->_trackValueSet($this->date, $date);\n\t\t$this->date = $date;\n\t\treturn $this;\n\t}", "function setDateApproved($dateApproved) {\n\t\treturn $this->setData('dateApproved', $dateApproved);\n\t}", "public function setPropertyDate($date=true)\n {\n if($date === false)\n {\n $this->date =false;\n }\n elseif($date !== true)\n {\n $this->date =$date;\n }\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function getFormatedDateAttribute() {\n return date('d.m.Y', strtotime($this->date));\n }", "function setDueDate( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->DueDate = $value;\n }", "public function setDate($date = null): object\n {\n if (null !== $date && !($date instanceof FHIRDate)) {\n $date = new FHIRDate($date);\n }\n $this->_trackValueSet($this->date, $date);\n $this->date = $date;\n return $this;\n }", "public function update()\n {\n if ( ! $this->bean->getId()) {\n $this->bean->user = R::dispense('user')->current();\n }\n $this->bean->year = date('Y', strtotime($this->bean->invoicedate));\n $this->bean->m = date('m', strtotime($this->bean->invoicedate));\n $this->bean->d = date('d', strtotime($this->bean->invoicedate));\n $this->bean->yearname = $this->bean->year.$this->bean->name;\n parent::update();\n }", "public function getChangeDate()\n {\n return $this->changeDate;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setExpiryDateAttribute($input)\n {\n if($input != '') {\n $this->attributes['expiry_date'] = Carbon::createFromFormat(config('quickadmin.date_format'), $input)->format('Y-m-d');\n }else{\n $this->attributes['expiry_date'] = '';\n }\n }", "public function setDueDateAttribute($value)\n {\n $this->attributes['due_date'] = $value;\n }", "public function getClosedBetaDate();", "public function toMutable()\n {\n /** @var Carbon $date */\n $date = $this->cast(Carbon::class);\n\n return $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "public function setInvoiceDateAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['invoice_date'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n } else {\n $this->attributes['invoice_date'] = null;\n }\n }", "public function setRequesteDateAttribute($date)\n {\n $this->attributes['request_date'] = Carbon::parse($date);\n }", "public function getStarthiredateinputThAttribute(){\n return date('d/m/' , strtotime( $this->starthiredate ) ).(date('Y',strtotime($this->starthiredate))+543);\n }", "public function setDoDate($value)\n {\n if (!array_key_exists('do_date', $this->fieldsModified)) {\n $this->fieldsModified['do_date'] = $this->data['fields']['do_date'];\n } elseif ($value === $this->fieldsModified['do_date']) {\n unset($this->fieldsModified['do_date']);\n }\n\n $this->data['fields']['do_date'] = $value;\n }", "public function getModDate();", "public function setModifiedValue()\n {\n $this->setModified(new \\DateTime());\n }", "public function setLastUpdateAttribute($date)\n {\n $myDate = Carbon::createFromFormat('Y-m-d', $date);\n if ($myDate > Carbon::now()) {\n $this->attributes['last_update'] = Carbon::parse($date);\n } else {\n $this->attributes['last_update'] = Carbon::createFromFormat('Y-m-d', $date);\n }\n }", "public function setLastUpdateAttribute($date)\n {\n $myDate = Carbon::createFromFormat('Y-m-d', $date);\n if ($myDate > Carbon::now()) {\n $this->attributes['last_update'] = Carbon::parse($date);\n } else {\n $this->attributes['last_update'] = Carbon::createFromFormat('Y-m-d', $date);\n }\n }", "public function setOpen($Open = null)\n {\n $this->Open = $Open;\n return $this;\n }", "public function setinvoiceDateAttribute($value)\n {\n\n $this->attributes['invoice_date'] = UserHelper::parseDateFromString($value);\n }", "public function setCompletionDateAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['completion_date'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n } else {\n $this->attributes['completion_date'] = null;\n }\n }", "public function openingDate($openingDate)\n {\n $this->dailyTransaction->setOpeningDate($openingDate);\n return $this;\n\n }", "public function getSurveyDateAttribute(){\n return date('d/m/' , strtotime( $this->created_at ) ).(date('Y',strtotime($this->created_at))+543);\n }", "public function setDueOnAttribute($value)\n {\n $this->attributes['due_on'] = Carbon::parse($value)->toDateString();\n }", "public function setPublishedAtAttribute($date)\n\t{\n\t\t$this->attributes['published_at'] = Carbon::createFromFormat('Y-m-d', $date);\n\t}", "public function __construct()\n {\n parent::__construct('BaseMtc_open_dates');\n }", "public function getScheduleDate(){return $this->date;}", "public function getUpdate_date(){\n return $this->update_date;\n }", "#[Property('date')]\n\tprotected function getDateExt(): Date|string {\n\t\treturn new Date($this);\n\t}", "function setData($data)\n {\n $this->date=$data;\n }", "function setDate($date = null)\r\n\t{\t\r\n\t\t$day = substr($date ,8, 2);\r\n\t\t$month = substr($date ,5, 2);\r\n\t\t$year = substr($date ,0, 4);\r\n\t\t\r\n\t\t$newDate = $day.'-'.$month.'-'.$year;\r\n\t\t\r\n\t\treturn $newDate;\r\n\t}", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setClosed($value);", "public function getIssueDate()\n {\n return $this->issueDate;\n }", "public function getUpdatedAtAttribute($date){\n return Carbon::parse($date)->format('d-m-Y');\n }", "public function setStartDateAttribute($date)\n {\n // Use with Carbon instance:\n // -------\n // Carbon::createFromFormat('H:i', $date)->format('H:i');\n return $this->attributes['start_date'] = strtotime(str_replace('/', '-', $date));\n }", "public function getDateAttribute($date)\n { \n if( !is_null($date) ) {\n return (new Carbon($date))->format('Y-m-d');\n }\n }", "public function beforeUpdate()\n {\n $this->owner->{$this->updatedAtField} = date($this->format);\n }", "public function setStartDate(string $date);", "public function setModifiedDate($value) {\n if (is_string($value)) {\n try {\n $this->modifiedDate = new \\DateTime($value);\n } catch (\\Exception $ex) {\n $this->modifiedDate = null;\n }\n } elseif (is_a($value, '\\\\DateTime')) {\n $this->modifiedDate = $value;\n } else {\n $this->modifiedDate = null;\n }\n }", "function getDate( )\r\n\t{\r\n\t\treturn $this->date;\r\n\t}" ]
[ "0.681569", "0.6785898", "0.6510898", "0.646738", "0.64538765", "0.64537984", "0.6318102", "0.6214314", "0.6205586", "0.618598", "0.61786693", "0.6113981", "0.6052205", "0.6009255", "0.6003837", "0.59999603", "0.59823465", "0.59552974", "0.5945108", "0.5889146", "0.5889146", "0.58888155", "0.58812624", "0.5874716", "0.5870432", "0.5866153", "0.5866153", "0.58651453", "0.58572966", "0.58572966", "0.5851749", "0.58508074", "0.5845087", "0.58394974", "0.5834188", "0.5834188", "0.5812506", "0.5791451", "0.57847947", "0.57739013", "0.57623714", "0.5760179", "0.57422954", "0.5727118", "0.57231796", "0.5722577", "0.5717721", "0.5713211", "0.5710645", "0.5709612", "0.570376", "0.5694193", "0.5685776", "0.5684316", "0.56789166", "0.565937", "0.56570065", "0.5652292", "0.5647117", "0.56464815", "0.5636345", "0.56303084", "0.5625466", "0.5625466", "0.5617469", "0.56086403", "0.5608054", "0.56021184", "0.55958503", "0.55908155", "0.5581923", "0.5572869", "0.5568306", "0.5551438", "0.55454594", "0.55332947", "0.55332947", "0.5526563", "0.55261225", "0.55253756", "0.55207855", "0.5520117", "0.5510234", "0.55070597", "0.54971725", "0.5494545", "0.54821354", "0.54800326", "0.5473332", "0.54726577", "0.5466135", "0.5465746", "0.54653203", "0.5460755", "0.54586256", "0.5456235", "0.5452992", "0.5452158", "0.5446591", "0.54451495" ]
0.77807766
0
Mutator for end_date attribute
public function setEndDateAttribute($date) { $this->attributes['end_date'] = $date ? Carbon::parse($date) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEndDate(string $date);", "function setEndDate($end_date = \"\") \n\t{\n\t\t$this->end_date = $end_date;\n\t}", "public function setEndDateAttribute($value)\n\t{\n\t\treturn $this->attributes['end_date'] = Carbon::parse($value)->format('Y-m-d H:i:s');\n\t}", "public function setEndDate(DrupalDateTime $end_date = NULL);", "public function setEndDateAttribute($value)\n {\n $this->attributes['end_date'] = Carbon::parse($value);\n }", "public function setEndDate($date)\n\t\t{\n\t\t\t$this->end_date = $date;\n\t\t}", "public function setEndDateAttribute($date)\n {\n // Use with Carbon instance:\n // -------\n // Carbon::createFromFormat('H:i', $date)->format('H:i');\n return $this->attributes['end_date'] = strtotime(str_replace('/', '-', $date));\n }", "public function getEndDate();", "public function getEndDate();", "public function setEndDate($value)\n {\n $this->endDate = $value;\n }", "public function setEndDate($date)\n\t{\n\t\treturn $this->setDate('End', $date);\n\t}", "public function setEndDate($end_date)\n {\n $this->json()->end_date = $this->dateToString($end_date);\n }", "public function get_end_date()\n\t{\n\t\treturn $this->end_date;\n\t}", "public function getEndDate() {\n return $this->endDate;\n }", "public function getEndDate()\r\n\t\t{\r\n\t\t\treturn $this->end_date;\r\n\t\t}", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = VT::toDateTimeImmutable($dateEnd);\n }", "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "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}", "public function set_end_date()\n {\n if ($this->end_date === NULL && $this->start_date === NULL) {\n $this->formated_end_date = \"the game has not started yet\";\n } elseif($this->end_date === NULL && $this->start_date !== NULL) {\n $this->formated_end_date = \"the game is not finished yet\";\n } else {\n $end_date = Carbon::createFromTimestamp($this->end_date / 1000);\n $this->formated_end_date = $end_date->toDayDateTimeString();\n }\n return $this->formated_end_date; \n }", "public function setEndDate($value) \n {\n $this->_fields['EndDate']['FieldValue'] = $value;\n return $this;\n }", "public function getEndDate() {\n\n return $this->end_date;\n }", "public function getEndDate(): Date\n {\n return $this->endDate;\n }", "function getEndDate() \n\t{\n\t\treturn (strlen($this->end_date)) ? $this->end_date : NULL;\n\t}", "public function getEnd_date() {\n\t\treturn $this->_end_date;\n\t}", "public function setEndDateTime($val)\n {\n $this->_propDict[\"endDateTime\"] = $val;\n return $this;\n }", "public function setEndDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->complete_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('end-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->complete_at){\n\t\t\tif($model->complete_at->greaterThan($date)){\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-delayed');\n\t\t\t}else{\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->complete_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('end-inited');\n\t\t}\n }", "public function getEndDate(){\n\t\treturn $this->endDate;\n\t}", "public function setEnd(ilDateTime $a_date = null)\n\t{\n\t\t$this->end = $a_date;\n\t}", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDate()\n {\n return $this->endDate;\n }", "public function getEndDateTime();", "public function getEndDate()\n {\n return $this->EndDate;\n }", "public function getEndDate()\n {\n if ( ! $this->getData('end_date'))\n {\n return \"-\";\n }\n\n return $this->getData('end_date');\n }", "public function setEnd(\\DateTime $end)\n {\n $this->end = $end;\n return $this;\n }", "public function setEnd(\\DateTime $end)\n {\n $this->end = $end;\n return $this;\n }", "public function setEndDate($endDate='')\r\n\t\t{\r\n\t\t\tif ($endDate != '')\r\n\t\t\t{\r\n\t\t\t\t$this->end_date = $endDate;\r\n\t\t\t}\r\n\t\t}", "public function setEndAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['end'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n } else {\n $this->attributes['end'] = null;\n }\n }", "public function getEndDate() {\n return $this->endDate;\n }", "public function getEndDate() {\n return $this->endDate;\n }", "public function setEndDate( KCommandContext $context )\n {\n $data = $context->data;\n \n if( $data->day || $data->month || $data->year )\n { \n $date = new KDate();\n \n $date->day( (int) $data->day );\n \n $date->month( (int) $data->month );\n \n $date->year( (int) $data->year );\n \n $data->endDate = $date;\n }\n }", "public function setEndDate(?Date $value): void {\n $this->getBackingStore()->set('endDate', $value);\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "public function setEnd($end)\n {\n //Argument 1 must be a string\n Argument::i()->test(1, 'string', 'int');\n\n if (is_string($end)) {\n $end = strtotime($end);\n }\n\n $end = date('Y-m-d H:i:s', $end);\n\n $this->query['end_date'] = $end;\n\n return $this;\n }", "private function _retrieveEndDate()\n {\n global $preferences;\n\n $bdate = new \\DateTime($this->_begin_date);\n if ( $preferences->pref_beg_membership != '' ) {\n //case beginning of membership\n list($j, $m) = explode('/', $preferences->pref_beg_membership);\n $edate = new \\DateTime($bdate->format('Y') . '-' . $m . '-' . $j);\n while ( $edate <= $bdate ) {\n $edate->modify('+1 year');\n }\n $this->_end_date = $edate->format('Y-m-d');\n } else if ( $preferences->pref_membership_ext != '' ) {\n //case membership extension\n $dext = new \\DateInterval('P' . $this->_extension . 'M');\n $edate = $bdate->add($dext);\n $this->_end_date = $edate->format('Y-m-d');\n }\n }", "public function setDateEnd($var)\n {\n GPBUtil::checkString($var, True);\n $this->dateEnd = $var;\n\n return $this;\n }", "public function getEndDate()\n {\n return $this->stringToDate((string) $this->json()->end_date);\n }", "public function getEndDate() \n {\n return $this->_fields['EndDate']['FieldValue'];\n }", "public function setDateEnd($dateEnd = null)\n {\n $this->dateEnd = $dateEnd;\n\n return $this;\n }", "public function setEndDate($endDate) {\n $this->endDate = $endDate;\n }", "public function removeEndDate()\n\t{\n\t\t$this->dateEnd = null;\n\t\t\n\t\treturn $this;\n\t}", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = $dateEnd;\n \n return $this;\n }", "function setEndDate($classId, $end) {\r\n $data['classEndDate'] = $end;\r\n $this->db->where('id', $classId);\r\n $this->db->update('class', $data);\r\n }", "public function setCollectionDateEnd($val){\n\t\tif(trim($val) != \"\"){\n\t\t\t$this->collectionDateEnd = trim($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "private function getEndDate( $end_date )\n {\n return $this->matchDateFormat( $end_date )\n ? $end_date\n : Carbon::now()->format('Y-m-d');\n }", "private function getEndDate( $end_date )\n {\n return $this->matchDateFormat( $end_date )\n ? $end_date\n : Carbon::now()->format('Y-m-d');\n }", "public function get_endDate()\n {\n return $this->_endDate;\n }", "public function getEndDateTime()\n {\n return $this->endDateTime;\n }", "public function getDateTimeObjectEnd();", "public function setEndDate($endDate)\n {\n if (is_object($endDate) && $endDate instanceOf \\DateTime) {\n $this->endDate = $endDate;\n } else {\n $this->endDate = new \\DateTime($endDate);\n }\n }", "public function set_endDate($_endDate)\n {\n $date = new date('d-m-Y',strtotime($_endDate));\n $this->_endDate = $date;\n\n return $this;\n }", "private function setEndDate(string $endYear = null) {\n\t\tif(is_null($endYear)){\n\t\t\t$endYear = $this->startDate->format('Y');\n\t\t} else {\n\t\t\t$endYear = (int) $endYear;\n\t\t\tif($endYear>2000 && $endYear<2100)\n\t\t\t{\n\t\t\t\t$endYear = (int) $endYear;\n\t\t\t} else {\n\t\t\t\t$endYear = $this->startDate->format('Y');\n\t\t\t}\n\t\t}\n\t\t$this->endDate = DateTime::createFromFormat('d-m-Y','31-12-'.$endYear);\n\t}", "function setEndDate(&$oDate)\n {\n if (is_a($oDate, 'date')) {\n $oDate->setHour(23);\n $oDate->setMinute(59);\n $oDate->setSecond(59);\n $oDate->subtractSeconds(25200);\n }\n }", "public function endDate($endDate)\n {\n return $this->setProperty('endDate', $endDate);\n }", "public function endDate($endDate)\n {\n return $this->setProperty('endDate', $endDate);\n }", "public function setEndAt($end_at)\n {\n $this->end_at = $end_at;\n }", "function _isValidEndDate()\r\n {\r\n if (strtotime($this->data[$this->name]['end_date']) > strtotime(date('Y-m-d H:i:s'))) {\r\n return true;\r\n }\r\n return false;\r\n }", "public function setDateEnd(DateTime $dateEnd)\n {\n $this->dateEnd = $dateEnd;\n\n return $this;\n }", "public function setEndDate($endDate) {\n $this->endDate = $endDate;\n }", "public function endDate()\n {\n $specialEndDate = $this->getSpecialEndDate();\n if ($specialEndDate !== false) {\n return $specialEndDate;\n }\n\n $this->date->setTimestamp($this->begin);\n\n $position = array_search($this->ruleInfo['baseWeekday'], $this->ruleInfo['weekdays']);\n\n if ($position !== 0) {\n $this->date->gotoDayOfWeek($this->ruleInfo['weekdays'][0]);\n }\n\n $repeatedWeek = ceil(($this->ruleInfo['times'] + $position) / count($this->ruleInfo['weekdays'])) - 1;\n $mod = ($this->ruleInfo['times'] + $position) % count($this->ruleInfo['weekdays']);\n $endDayPosition = $mod === 0 ? count($this->ruleInfo['weekdays']) - 1 : $mod - 1;\n $this->date->addWeek($repeatedWeek * $this->ruleInfo['freq']);\n\n if ($endDayPosition === 0) {\n $this->ruleInfo['end'] = $this->date->getDateWithExtendedYear();\n\n return $this->ruleInfo['end'];\n }\n\n $this->date->gotoDayOfWeek($this->ruleInfo['weekdays'][$endDayPosition]);\n $this->ruleInfo['end'] = $this->date->getDateWithExtendedYear();\n\n return $this->ruleInfo['end'];\n }", "public function setAvailabilityEndDateTime($val)\n {\n $this->_propDict[\"availabilityEndDateTime\"] = $val;\n return $this;\n }", "public function withEndDate($value)\n {\n $this->setEndDate($value);\n return $this;\n }", "public function setEndDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('endDateTime', $value);\n }", "public function setEnd($end) {\n\t\t$this->attributes['end'] = $end;\n\t\t$this->end = $end;\n\t\treturn $this;\n\t}", "public function setEndAt(?\\DateTimeInterface $endAt): self\n {\n $this->endAt = $endAt;\n\n return $this;\n }", "public function setEndDate($endDate) {\n $this->endDate = $endDate;\n return $this;\n }", "public function getEnd()\n {\n return Carbon::createFromFormat('d/m/Y', $this->data_saida);\n }", "public function setEndDateTime(\\DateTime $endDateTime = null)\n {\n $this->endDateTime = $endDateTime;\n }", "public function getEndDateAttribute($date)\n {\n return $date ? Carbon::parse($date) : null;\n }", "public function getEnd() : \\DateTime\n {\n return new \\Datetime($this->end);\n }", "public function setEndDate($endDate) {\n $this->properties['endDate'] = $endDate;\n\n return $this;\n }", "public function end($value = '')\n {\n if (!empty($value)) {\n\n return $this->builder->where(\"rc_date\", '<=', date('Y-m-d', strtotime($value)));\n }\n }", "private function formatEndDate($enddate) {\n\t\treturn $enddate . ' 23:59:59';\n\t}", "public function setEndDateTime($timestamp);", "protected function getEnd()\n {\n return new Zend_Date(\n Mage::getStoreConfig(self::CONFIG_PREFIX . 'end', $this->getStore()),\n $this->getDateTimeFormat(),\n $this->getLocale()->getLocaleCode()\n );\n }", "function roomify_conversations_add_end_date_field() {\n field_info_cache_clear();\n\n // \"conversation_book_end_date\" field.\n if (field_read_field('conversation_book_end_date') === FALSE) {\n $field = array(\n 'field_name' => 'conversation_book_end_date',\n 'type' => 'datetime',\n 'cardinality' => 1,\n 'locked' => 1,\n 'settings' => array(\n 'cache_count' => 4,\n 'cache_enabled' => 0,\n 'granularity' => array(\n 'day' => 'day',\n 'hour' => 0,\n 'minute' => 0,\n 'month' => 'month',\n 'second' => 0,\n 'year' => 'year',\n ),\n 'profile2_private' => FALSE,\n 'timezone_db' => '',\n 'todate' => '',\n 'tz_handling' => 'none',\n ),\n );\n field_create_field($field);\n }\n\n field_cache_clear();\n\n // \"conversation_book_end_date\" field instance.\n if (field_read_instance('roomify_conversation', 'conversation_book_end_date', 'standard') === FALSE) {\n $instance = array(\n 'field_name' => 'conversation_book_end_date',\n 'entity_type' => 'roomify_conversation',\n 'label' => 'End Date',\n 'bundle' => 'standard',\n 'required' => FALSE,\n 'widget' => array(\n 'type' => 'date_popup',\n ),\n 'settings' => array(\n 'default_value' => 'now',\n 'default_value2' => 'same',\n 'default_value_code' => '',\n 'default_value_code2' => '',\n 'user_register_form' => FALSE,\n ),\n );\n field_create_instance($instance);\n }\n}", "function getEndDate()\n {\n $oDaySpan = $this->_value;\n $value = is_null($oDaySpan) ? null : $oDaySpan->getEndDate();\n return $value;\n }", "public function setEndDateTime(\\DateTime $endDateTime = null)\n {\n $this->endDateTime = $endDateTime;\n return $this;\n }", "function set_end($end)\n {\n $this->set_default_property(self :: PROPERTY_END, $end);\n }", "public function getEventEndDate() {\n\t\treturn ($this->eventEndDate);\n\t}", "function set( $start = 0, $end = NULL )\n {\n $this->setStart( $start );\n \n if ( NULL === $end )\n {\n $this->setEnd( $start );\n }\n else\n {\n switch ( $end )\n {\n \tcase 'year': \n // add one year to end\n \t\tbreak;\n \tcase 'month':\n \t\t// add one month\n \t\tbreak;\n \tcase 'week': \n // add one year to end\n \t\tbreak;\n \tcase 'day': \n // add one year to end\n \t\tbreak;\n \tcase 'calendarweek': \n // set start and end date to start and end of week for current date\n $this->start->date->setToStartOfWeek();\n $this->setEnd( $start );\n $this->end->date->setToEndOfWeek();\n \t\tbreak;\n \tdefault:\n $this->setEnd( $end );\n } // switch\n }\n \n //$this->updatePorperties();\n }", "public function getdefaultEndDate()\n {\n return $this->defaultenddate;\n }" ]
[ "0.7932215", "0.76993895", "0.7673726", "0.7638093", "0.7503437", "0.73800856", "0.73740906", "0.7373735", "0.7373735", "0.7372766", "0.7351279", "0.7330158", "0.73060405", "0.72614336", "0.725295", "0.72433764", "0.72278583", "0.7227231", "0.72152483", "0.7215221", "0.7194732", "0.7189798", "0.7175773", "0.7170248", "0.71652806", "0.71193016", "0.70971936", "0.70822567", "0.7073554", "0.7006581", "0.7006581", "0.7006581", "0.7006581", "0.7006581", "0.7006581", "0.70046306", "0.6980137", "0.69756454", "0.69689023", "0.69689023", "0.6967334", "0.69451314", "0.69367796", "0.69367796", "0.6916506", "0.68993884", "0.68829584", "0.68829584", "0.68829584", "0.68829584", "0.68829584", "0.6880747", "0.6838565", "0.6823962", "0.6786412", "0.67518604", "0.67481786", "0.67350733", "0.6720654", "0.6720148", "0.6666033", "0.6659905", "0.6620819", "0.6619113", "0.6589129", "0.65847206", "0.65701157", "0.65616834", "0.6492163", "0.6490478", "0.64786744", "0.64568645", "0.64568645", "0.64440346", "0.6440834", "0.64405274", "0.6424316", "0.64216423", "0.6397695", "0.6380242", "0.638015", "0.6379103", "0.6323382", "0.631754", "0.63081604", "0.626643", "0.62661415", "0.6245578", "0.6245137", "0.62368935", "0.6232881", "0.6228462", "0.6208342", "0.6194291", "0.6180534", "0.6148324", "0.6133937", "0.613239", "0.61083174", "0.60917675" ]
0.7560643
4
Helper to generate DD coordinates
function dd_generate($min, $max, $int = FALSE) { $func = 'rand'; if (function_exists('mt_rand')) { $func = 'mt_rand'; } $number = $func($min, $max); if ($int || $number === $min || $number === $max) { return $number; } $decimals = $func(1, pow(10, 5)) / pow(10, 5); return round($number + $decimals, 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_make_coordinates_4()\n {\n $coord = \"52° 32' 25\\\" N; 89° 40' 31\\\" W\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], 52.540277777778);\n $this->assertEquals($dd[1], -89.675277777778);\n }", "private function generateCoordinates()\n {\n $this->mapDiagonal();\n $this->mapVertical();\n $this->mapHorizontal();\n\n $this->disabledCells = array_unique($this->disabledCells);\n sort($this->disabledCells);\n }", "public function test_dd_symbols()\n {\n $coord = \" 49.129774° 46.677716°\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], 49.129774);\n $this->assertEquals($dd[1], 46.677716);\n }", "abstract public function coordinates();", "public function test_make_coordinates_3()\n {\n $coord = \"52° 32' 25\\\" N, 89° 40' 31\\\" W\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], 52.540277777778);\n $this->assertEquals($dd[1], -89.675277777778);\n }", "public function getCoordinates();", "public function test_make_coordinates_2()\n {\n $coord = \"-120,\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "public function test_make_coordinates_5()\n {\n $coord = \"52.5\\t-89.0\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], 52.5);\n $this->assertEquals($dd[1], -89.0);\n }", "public function test_make_coordinates_1()\n {\n $coord = \"-120\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "function get_position( )\n\t{\n\t\treturn $this->latdeg.\";\".$this->londeg;\n\t}", "function generateSingleCoords($varValue, DataContainer $dc)\n {\n if ($varValue != '')\n {\n return $varValue;\n }\n\n $strAddress = '';\n\n if ($dc->activeRecord->street != '')\n {\n $strAddress .= $dc->activeRecord->street;\n }\n\n if ($dc->activeRecord->postal != '' && $dc->activeRecord->city)\n {\n $strAddress .= ($strAddress ? ',' : '') . $dc->activeRecord->postal . ' ' . $dc->activeRecord->city;\n }\n\n if (($strCoords = $this->generateCoordsFromAddress($strAddress, $dc->activeRecord->country ?: 'de')) !== false)\n {\n $varValue = $strCoords;\n }\n\n return $varValue;\n }", "function make_position( $lat, $lon )\n\t{\n\t\t$latdms = geo_param::make_minsec( $lat );\n\t\t$londms = geo_param::make_minsec( $lon );\n\t\t$outlat = intval(abs($latdms['deg'])) . \"&deg;&nbsp;\";\n\t\t$outlon = intval(abs($londms['deg'])) . \"&deg;&nbsp;\";\n\t\tif ($latdms['min'] != 0 or $londms['min'] != 0\n\t\t or $latdms['sec'] != 0 or $londms['sec'] != 0) {\n\t\t\t$outlat .= intval($latdms['min']) . \"&prime;&nbsp;\";\n\t\t\t$outlon .= intval($londms['min']) . \"&prime;&nbsp;\";\n\t\t\tif ($latdms['sec'] != 0 or $londms['sec'] != 0) {\n\t\t\t\t$outlat .= $latdms['sec']. \"&Prime;&nbsp;\";\n\t\t\t\t$outlon .= $londms['sec']. \"&Prime;&nbsp;\";\n\t\t\t}\n\t\t}\n\t\treturn $outlat . $latdms['NS'] . \" \" . $outlon . $londms['EW'];\n\t}", "public function test_make_coordinates_0()\n {\n $coord = \"52° 32' 25\\\" N,\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "public function test_dirty_deg()\n {\n $coord = \"52.5g\\t-89.0r\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], 52.5);\n $this->assertEquals($dd[1], -89.0);\n }", "public function getCoord(){\n return $this->coord;\n }", "public function provideInvalidCoordinates() {\n/******************************************************************************\n ** **\n ** I actually FAIL the fifth test. I've got a bug in the method. **\n ** **\n ******************************************************************************/\n return [\n ['Way up north'],\n ['39.7392° N'],\n ['104.9903° W'],\n ['39.7392 N, 104.9903 W'],\n ['39° 44\\' 31.3548\" N, 104° 59\\' 29.5116\" W'],\n ['99.7392° N, 104.9903° W'],\n ['39.7392° N, 184.9903° W']\n ];\n }", "function degree_to_compass_point($d){\r\n $dp = $d + 11.25;\r\n $dp = $dp % 360;\r\n $dp = floor($dp / 22.5) ;\r\n $points = array(\"N\",\"NNE\",\"NE\",\"ENE\",\"E\",\"ESE\",\"SE\",\"SSE\",\"S\",\"SSW\",\"SW\",\"WSW\",\"W\",\"WNW\",\"NW\",\"NNW\",\"N\");\r\n $dir = $points[$dp];\r\n return $dir;\r\n }", "protected function point()\n {\n if (null !== $this->dimension) {\n return $this->coordinates(2 + strlen($this->dimension));\n }\n\n $values = $this->coordinates(2);\n\n for ($i = 3; $i <= 4 && $this->lexer->isNextTokenAny(array(Lexer::T_FLOAT, Lexer::T_INTEGER)); $i++) {\n $values[] = $this->coordinate();\n }\n\n switch (count($values)) {\n case 2:\n $this->dimension = '';\n break;\n case 3:\n $this->dimension = 'Z';\n break;\n case 4:\n $this->dimension = 'ZM';\n break;\n }\n\n return $values;\n }", "public function coordenadasDefaut(){\r\n\t\t$this->x_punto_destino=0;\r\n\t\t$this->y_punto_destino=0;\r\n\t\t$this->x_punto_origen=0;\r\n\t\t$this->y_punto_origen=0;\r\n\t}", "public function getCoordAmigavelAttribute()\n {\n return \"(\".$this->x.\")|(\".$this->y.\")\";\n }", "protected static function generatePositionToGround ()\n {\n $dataTree = Tree::getByUser()->getDataByTree();\n\n $treeCroneCenterPosX = $dataTree['crownCenterPosX'];\n\n $treeHalfWidth = $dataTree['halfCrownWidth'];\n\n $posX = rand(-$treeHalfWidth, $treeHalfWidth);\n\n return [\n 'y' => 0,\n 'x' => (int) ($treeCroneCenterPosX + $posX),\n ];\n }", "public function toYxy()\n {\n return $this->toXYZ()->toYxy();\n }", "public function toYxy()\n {\n return $this->toXYZ()->toYxy();\n }", "public function provideValidCoordinates() {\n return [\n ['39.7392° N, 104.9903° W'],\n ['-39.7392° N, 104.9903° W'],\n ['39.7392° N, -104.9903° W'],\n ['-39.7392° N, -104.9903° W'],\n ];\n }", "public function toCartesian()\n {\n $phi = deg2rad($this->getLatitude());\n $lambda = deg2rad($this->getLongitude());\n\n $H = $this->getHeight();\n $a = $this->getEllipsoid()->getA();\n $b = $this->getEllipsoid()->getB();\n\n $sin_phi = sin($phi);\n $cos_phi = cos($phi);\n $sin_lambda = sin($lambda);\n $cos_lambda = cos($lambda);\n\n $eSq = (pow($a, 2) - pow($b, 2)) / (pow($a, 2));\n $nu = $a / sqrt(1 - $eSq * $sin_phi * $sin_phi);\n\n $x = ($nu + $H) * $cos_phi * $cos_lambda;\n $y = ($nu + $H) * $cos_phi * $sin_lambda;\n $z = ((1 - $eSq) * $nu + $H) * $sin_phi;\n\n // TODO: return a cartesian coordinate object, not an array.\n // The object will provide the means for converting back again.\n $point = array($x, $y, $z);\n\n return $point;\n }", "public function afficheToi()\r\n {\r\n\r\n echo ($this->x .'-'.$this->y);\r\n }", "public function wktGenerateGeometry();", "function RD2WGS84($x, $y){\n\n $dX = ($x - 155000) * pow(10,-5);\n $dY = ($y - 463000) * pow(10,-5);\n\n $SomN = (3235.65389 * $dY) + (-32.58297 * pow($dX,2)) + (-0.2475 * pow($dY,2)) + (-0.84978 * pow($dX,2) * $dY) + (-0.0655 * pow($dY,3)) + (-0.01709 * pow($dX,2) * pow($dY,2)) + (-0.00738 * $dX) + (0.0053 * pow($dX,4)) + (-0.00039 * pow($dX,2) * pow($dY,3)) + (0.00033 * pow($dX,4) * $dY) + (-0.00012 * $dX * $dY);\n $SomE = (5260.52916 * $dX) + (105.94684 * $dX * $dY) + (2.45656 * $dX * pow($dY,2)) + (-0.81885 * pow($dX,3)) + (0.05594 * $dX * pow($dY,3)) + (-0.05607 * pow($dX,3) * $dY) + (0.01199 * $dY) + (-0.00256 * pow($dX,3) * pow($dY,2)) + (0.00128 * $dX * pow($dY,4)) + (0.00022 * pow($dY,2)) + (-0.00022 * pow($dX,2)) + (0.00026 * pow($dX,5));\n\n $lat = 52.15517 + ($SomN / 3600);\n $lon = 5.387206 + ($SomE / 3600);\n \n return(Array($lat, $lon));\n }", "function get_markup() \n\t{\n\t\t$n = count($this->coor);\n\n\t\tif ($n == 0) {\n\t\t\t# Range is special case\n\t\t\treturn $this->make_position( $this->latdeg_min, \n\t\t\t\t\t\t $this->londeg_min )\n\t\t\t . \" to \"\n\t\t\t . $this->make_position( $this->latdeg_max,\n\t\t\t\t\t\t $this->londeg_max );\n\t\t} elseif ($n == 2) {\n\t\t\treturn $this->coor[0].';'.\n\t\t\t $this->coor[1];\n\n\t\t} elseif ($n == 4) {\n\t\t\treturn $this->coor[0].'&deg;&nbsp;'.\n\t\t\t $this->coor[1].' '.\n\t\t\t $this->coor[2].'&deg;&nbsp;'.\n\t\t\t $this->coor[3];\n\n\t\t} elseif ($n == 6) {\n\t\t\treturn $this->coor[0].'&deg;'.\n\t\t\t $this->coor[1].'&prime;&nbsp;'.\n\t\t\t $this->coor[2].' '.\n\t\t\t $this->coor[3].'&deg;'.\n\t\t\t $this->coor[4].'&prime;&nbsp;'.\n\t\t\t $this->coor[5];\n\n\t\t} elseif ($n == 8) {\n\t\t\treturn $this->coor[0].'&deg;'.\n\t\t\t $this->coor[1].'&prime;'.\n\t\t\t $this->coor[2].'&Prime;&nbsp;'.\n\t\t\t $this->coor[3].' '.\n\t\t\t $this->coor[4].'&deg;'.\n\t\t\t $this->coor[5].'&prime;'.\n\t\t\t $this->coor[6].'&Prime;&nbsp;'.\n\t\t\t $this->coor[7];\n\t\t} else {\n\t\t\treturn $this->get_error();\n\t\t}\n\t}", "public function getCoordinates()\n {\n return $this->coordinates;\n }", "public function toXYZ()\n {\n return $this->toRGB()->toXYZ();\n }", "private static function toPoint($coordinates)\n {\n return '(' . join(' ', $coordinates) . ')';\n }", "public static function makeCoordinates($point)\n {\n $loc = preg_replace(array('/[\\p{Z}\\s]/u', '/[^\\d\\s,;.\\-NSEWO°ºdms\\'\"]/i'), array(' ', \"\"), $point);\n if (preg_match('/[NSEWO]/', $loc) != 0) {\n $coord = preg_split(\"/[,;]/\", $loc); //split by comma or semicolon\n if (count($coord) != 2 || empty($coord[1])) {\n return array(null, null);\n }\n $coord = (preg_match('/[EWO]/', $coord[1]) != 0) ? $coord : array_reverse($coord);\n return array(self::dmsToDeg(trim($coord[0])),self::dmsToDeg(trim($coord[1])));\n } else {\n $coord = preg_split(\"/[\\s,;]+/\", trim(preg_replace(\"/[^0-9-\\s,;.]/\", \"\", $loc))); //split by space, comma, or semicolon\n if (count($coord) != 2 || empty($coord[1])) {\n return array(null, null);\n }\n return $coord;\n }\n }", "private function bound_to_coord($bound){\r\n $vertices=$bound->getVertices();\r\n $polygon=[\r\n 'x1' => $vertices[0]->getX(),\r\n 'y1' => $vertices[0]->getY(),\r\n 'x2' => $vertices[1]->getX(),\r\n 'y2' => $vertices[1]->getY(),\r\n 'x3' => $vertices[2]->getX(),\r\n 'y3' => $vertices[2]->getY(),\r\n 'x4' => $vertices[3]->getX(),\r\n 'y4' => $vertices[3]->getY(),\r\n ];\r\n return $polygon;\r\n }", "public function coordenadasOrigen($x,$y){\r\n\t\t$this->x_punto_origen=$x;\r\n\t\t$this->y_punto_origen=$y;\r\n\t}", "public function coordenadasOrigen($x,$y){\r\n\t\t$this->x_punto_origen=$x;\r\n\t\t$this->y_punto_origen=$y;\r\n\t}", "public function getCoords()\n\t{\n\t\treturn $this->coords;\n\t}", "public static function getCountrycoordArray()\n\t{\n\t\t$countrycoord = array();\n\t\t$countrycoord['AD'] = array(42.5, 1.5);\n\t\t$countrycoord['AE'] = array(24, 54);\n\t\t$countrycoord['AF'] = array(33, 65);\n\t\t$countrycoord['AG'] = array(17.05, -61.8);\n\t\t$countrycoord['AI'] = array(18.25, -63.17);\n\t\t$countrycoord['AL'] = array(41, 20);\n\t\t$countrycoord['AM'] = array(40, 45);\n\t\t$countrycoord['AN'] = array(12.25, -68.75);\n\t\t$countrycoord['AO'] = array(-12.5, 18.5);\n\t\t$countrycoord['AP'] = array(35, 105);\n\t\t$countrycoord['AQ'] = array(-90, 0);\n\t\t$countrycoord['AR'] = array(-34, -64);\n\t\t$countrycoord['AS'] = array(-14.33, -170);\n\t\t$countrycoord['AT'] = array(47.33, 13.33);\n\t\t$countrycoord['AU'] = array(-27, 133);\n\t\t$countrycoord['AW'] = array(12.5, -69.97);\n\t\t$countrycoord['AZ'] = array(40.5, 47.5);\n\t\t$countrycoord['BA'] = array(44, 18);\n\t\t$countrycoord['BB'] = array(13.17, -59.53);\n\t\t$countrycoord['BD'] = array(24, 90);\n\t\t$countrycoord['BE'] = array(50.83, 4);\n\t\t$countrycoord['BF'] = array(13, -2);\n\t\t$countrycoord['BG'] = array(43, 25);\n\t\t$countrycoord['BH'] = array(26, 50.55);\n\t\t$countrycoord['BI'] = array(-3.5, 30);\n\t\t$countrycoord['BJ'] = array(9.5, 2.25);\n\t\t$countrycoord['BM'] = array(32.33, -64.75);\n\t\t$countrycoord['BN'] = array(4.5, 114.67);\n\t\t$countrycoord['BO'] = array(-17, -65);\n\t\t$countrycoord['BR'] = array(-10, -55);\n\t\t$countrycoord['BS'] = array(24.25, -76);\n\t\t$countrycoord['BT'] = array(27.5, 90.5);\n\t\t$countrycoord['BV'] = array(-54.43, 3.4);\n\t\t$countrycoord['BW'] = array(-22, 24);\n\t\t$countrycoord['BY'] = array(53, 28);\n\t\t$countrycoord['BZ'] = array(17.25, -88.75);\n\t\t$countrycoord['CA'] = array(60, -95);\n\t\t$countrycoord['CC'] = array(-12.5, 96.83);\n\t\t$countrycoord['CD'] = array(0, 25);\n\t\t$countrycoord['CF'] = array(7, 21);\n\t\t$countrycoord['CG'] = array(-1, 15);\n\t\t$countrycoord['CH'] = array(47, 8);\n\t\t$countrycoord['CI'] = array(8, -5);\n\t\t$countrycoord['CK'] = array(-21.23, -159.77);\n\t\t$countrycoord['CL'] = array(-30, -71);\n\t\t$countrycoord['CM'] = array(6, 12);\n\t\t$countrycoord['CN'] = array(35, 105);\n\t\t$countrycoord['CO'] = array(4, -72);\n\t\t$countrycoord['CR'] = array(10, -84);\n\t\t$countrycoord['CU'] = array(21.5, -80);\n\t\t$countrycoord['CV'] = array(16, -24);\n\t\t$countrycoord['CX'] = array(-10.5, 105.67);\n\t\t$countrycoord['CY'] = array(35, 33);\n\t\t$countrycoord['CZ'] = array(49.75, 15.5);\n\t\t$countrycoord['DE'] = array(51, 9);\n\t\t$countrycoord['DJ'] = array(11.5, 43);\n\t\t$countrycoord['DK'] = array(56, 10);\n\t\t$countrycoord['DM'] = array(15.42, -61.33);\n\t\t$countrycoord['DO'] = array(19, -70.67);\n\t\t$countrycoord['DZ'] = array(28, 3);\n\t\t$countrycoord['EC'] = array(-2, -77.5);\n\t\t$countrycoord['EE'] = array(59, 26);\n\t\t$countrycoord['EG'] = array(27, 30);\n\t\t$countrycoord['EH'] = array(24.5, -13);\n\t\t$countrycoord['ER'] = array(15, 39);\n\t\t$countrycoord['ES'] = array(40, -4);\n\t\t$countrycoord['ET'] = array(8, 38);\n\t\t$countrycoord['EU'] = array(47, 8);\n\t\t$countrycoord['FI'] = array(64, 26);\n\t\t$countrycoord['FJ'] = array(-18, 175);\n\t\t$countrycoord['FK'] = array(-51.75, -59);\n\t\t$countrycoord['FM'] = array(6.92, 158.25);\n\t\t$countrycoord['FO'] = array(62, -7);\n\t\t$countrycoord['FR'] = array(46, 2);\n\t\t$countrycoord['GA'] = array(-1, 11.75);\n\t\t$countrycoord['GB'] = array(54, -2);\n\t\t$countrycoord['GD'] = array(12.12, -61.67);\n\t\t$countrycoord['GE'] = array(42, 43.5);\n\t\t$countrycoord['GF'] = array(4, -53);\n\t\t$countrycoord['GH'] = array(8, -2);\n\t\t$countrycoord['GI'] = array(36.18, -5.37);\n\t\t$countrycoord['GL'] = array(72, -40);\n\t\t$countrycoord['GM'] = array(13.47, -16.57);\n\t\t$countrycoord['GN'] = array(11, -10);\n\t\t$countrycoord['GP'] = array(16.25, -61.58);\n\t\t$countrycoord['GQ'] = array(2, 10);\n\t\t$countrycoord['GR'] = array(39, 22);\n\t\t$countrycoord['GS'] = array(-54.5, -37);\n\t\t$countrycoord['GT'] = array(15.5, -90.25);\n\t\t$countrycoord['GU'] = array(13.47, 144.78);\n\t\t$countrycoord['GW'] = array(12, -15);\n\t\t$countrycoord['GY'] = array(5, -59);\n\t\t$countrycoord['HK'] = array(22.25, 114.17);\n\t\t$countrycoord['HM'] = array(-53.1, 72.52);\n\t\t$countrycoord['HN'] = array(15, -86.5);\n\t\t$countrycoord['HR'] = array(45.17, 15.5);\n\t\t$countrycoord['HT'] = array(19, -72.42);\n\t\t$countrycoord['HU'] = array(47, 20);\n\t\t$countrycoord['ID'] = array(-5, 120);\n\t\t$countrycoord['IE'] = array(53, -8);\n\t\t$countrycoord['IL'] = array(31.5, 34.75);\n\t\t$countrycoord['IN'] = array(20, 77);\n\t\t$countrycoord['IO'] = array(-6, 71.5);\n\t\t$countrycoord['IQ'] = array(33, 44);\n\t\t$countrycoord['IR'] = array(32, 53);\n\t\t$countrycoord['IS'] = array(65, -18);\n\t\t$countrycoord['IT'] = array(42.83, 12.83);\n\t\t$countrycoord['JM'] = array(18.25, -77.5);\n\t\t$countrycoord['JO'] = array(31, 36);\n\t\t$countrycoord['JP'] = array(36, 138);\n\t\t$countrycoord['KE'] = array(1, 38);\n\t\t$countrycoord['KG'] = array(41, 75);\n\t\t$countrycoord['KH'] = array(13, 105);\n\t\t$countrycoord['KI'] = array(1.42, 173);\n\t\t$countrycoord['KM'] = array(-12.17, 44.25);\n\t\t$countrycoord['KN'] = array(17.33, -62.75);\n\t\t$countrycoord['KP'] = array(40, 127);\n\t\t$countrycoord['KR'] = array(37, 127.5);\n\t\t$countrycoord['KW'] = array(29.34, 47.66);\n\t\t$countrycoord['KY'] = array(19.5, -80.5);\n\t\t$countrycoord['KZ'] = array(48, 68);\n\t\t$countrycoord['LA'] = array(18, 105);\n\t\t$countrycoord['LB'] = array(33.83, 35.83);\n\t\t$countrycoord['LC'] = array(13.88, -61.13);\n\t\t$countrycoord['LI'] = array(47.17, 9.53);\n\t\t$countrycoord['LK'] = array(7, 81);\n\t\t$countrycoord['LR'] = array(6.5, -9.5);\n\t\t$countrycoord['LS'] = array(-29.5, 28.5);\n\t\t$countrycoord['LT'] = array(56, 24);\n\t\t$countrycoord['LU'] = array(49.75, 6.17);\n\t\t$countrycoord['LV'] = array(57, 25);\n\t\t$countrycoord['LY'] = array(25, 17);\n\t\t$countrycoord['MA'] = array(32, -5);\n\t\t$countrycoord['MC'] = array(43.73, 7.4);\n\t\t$countrycoord['MD'] = array(47, 29);\n\t\t$countrycoord['ME'] = array(42, 19);\n\t\t$countrycoord['MG'] = array(-20, 47);\n\t\t$countrycoord['MH'] = array(9, 168);\n\t\t$countrycoord['MK'] = array(41.83, 22);\n\t\t$countrycoord['ML'] = array(17, -4);\n\t\t$countrycoord['MM'] = array(22, 98);\n\t\t$countrycoord['MN'] = array(46, 105);\n\t\t$countrycoord['MO'] = array(22.17, 113.55);\n\t\t$countrycoord['MP'] = array(15.2, 145.75);\n\t\t$countrycoord['MQ'] = array(14.67, -61);\n\t\t$countrycoord['MR'] = array(20, -12);\n\t\t$countrycoord['MS'] = array(16.75, -62.2);\n\t\t$countrycoord['MT'] = array(35.83, 14.58);\n\t\t$countrycoord['MU'] = array(-20.28, 57.55);\n\t\t$countrycoord['MV'] = array(3.25, 73);\n\t\t$countrycoord['MW'] = array(-13.5, 34);\n\t\t$countrycoord['MX'] = array(23, -102);\n\t\t$countrycoord['MY'] = array(2.5, 112.5);\n\t\t$countrycoord['MZ'] = array(-18.25, 35);\n\t\t$countrycoord['NA'] = array(-22, 17);\n\t\t$countrycoord['NC'] = array(-21.5, 165.5);\n\t\t$countrycoord['NE'] = array(16, 8);\n\t\t$countrycoord['NF'] = array(-29.03, 167.95);\n\t\t$countrycoord['NG'] = array(10, 8);\n\t\t$countrycoord['NI'] = array(13, -85);\n\t\t$countrycoord['NL'] = array(52.5, 5.75);\n\t\t$countrycoord['NO'] = array(62, 10);\n\t\t$countrycoord['NP'] = array(28, 84);\n\t\t$countrycoord['NR'] = array(-0.53, 166.92);\n\t\t$countrycoord['NU'] = array(-19.03, -169.87);\n\t\t$countrycoord['NZ'] = array(-41, 174);\n\t\t$countrycoord['OM'] = array(21, 57);\n\t\t$countrycoord['PA'] = array(9, -80);\n\t\t$countrycoord['PE'] = array(-10, -76);\n\t\t$countrycoord['PF'] = array(-15, -140);\n\t\t$countrycoord['PG'] = array(-6, 147);\n\t\t$countrycoord['PH'] = array(13, 122);\n\t\t$countrycoord['PK'] = array(30, 70);\n\t\t$countrycoord['PL'] = array(52, 20);\n\t\t$countrycoord['PM'] = array(46.83, -56.33);\n\t\t$countrycoord['PR'] = array(18.25, -66.5);\n\t\t$countrycoord['PS'] = array(32, 35.25);\n\t\t$countrycoord['PT'] = array(39.5, -8);\n\t\t$countrycoord['PW'] = array(7.5, 134.5);\n\t\t$countrycoord['PY'] = array(-23, -58);\n\t\t$countrycoord['QA'] = array(25.5, 51.25);\n\t\t$countrycoord['RE'] = array(-21.1, 55.6);\n\t\t$countrycoord['RO'] = array(46, 25);\n\t\t$countrycoord['RS'] = array(44, 21);\n\t\t$countrycoord['RU'] = array(60, 100);\n\t\t$countrycoord['RW'] = array(-2, 30);\n\t\t$countrycoord['SA'] = array(25, 45);\n\t\t$countrycoord['SB'] = array(-8, 159);\n\t\t$countrycoord['SC'] = array(-4.58, 55.67);\n\t\t$countrycoord['SD'] = array(15, 30);\n\t\t$countrycoord['SE'] = array(62, 15);\n\t\t$countrycoord['SG'] = array(1.37, 103.8);\n\t\t$countrycoord['SH'] = array(-15.93, -5.7);\n\t\t$countrycoord['SI'] = array(46, 15);\n\t\t$countrycoord['SJ'] = array(78, 20);\n\t\t$countrycoord['SK'] = array(48.67, 19.5);\n\t\t$countrycoord['SL'] = array(8.5, -11.5);\n\t\t$countrycoord['SM'] = array(43.77, 12.42);\n\t\t$countrycoord['SN'] = array(14, -14);\n\t\t$countrycoord['SO'] = array(10, 49);\n\t\t$countrycoord['SR'] = array(4, -56);\n\t\t$countrycoord['ST'] = array(1, 7);\n\t\t$countrycoord['SV'] = array(13.83, -88.92);\n\t\t$countrycoord['SY'] = array(35, 38);\n\t\t$countrycoord['SZ'] = array(-26.5, 31.5);\n\t\t$countrycoord['TC'] = array(21.75, -71.58);\n\t\t$countrycoord['TD'] = array(15, 19);\n\t\t$countrycoord['TF'] = array(-43, 67);\n\t\t$countrycoord['TG'] = array(8, 1.17);\n\t\t$countrycoord['TH'] = array(15, 100);\n\t\t$countrycoord['TJ'] = array(39, 71);\n\t\t$countrycoord['TK'] = array(-9, -172);\n\t\t$countrycoord['TM'] = array(40, 60);\n\t\t$countrycoord['TN'] = array(34, 9);\n\t\t$countrycoord['TO'] = array(-20, -175);\n\t\t$countrycoord['TR'] = array(39, 35);\n\t\t$countrycoord['TT'] = array(11, -61);\n\t\t$countrycoord['TV'] = array(-8, 178);\n\t\t$countrycoord['TW'] = array(23.5, 121);\n\t\t$countrycoord['TZ'] = array(-6, 35);\n\t\t$countrycoord['UA'] = array(49, 32);\n\t\t$countrycoord['UG'] = array(1, 32);\n\t\t$countrycoord['UM'] = array(19.28, 166.6);\n\t\t$countrycoord['US'] = array(38, -97);\n\t\t$countrycoord['UY'] = array(-33, -56);\n\t\t$countrycoord['UZ'] = array(41, 64);\n\t\t$countrycoord['VA'] = array(41.9, 12.45);\n\t\t$countrycoord['VC'] = array(13.25, -61.2);\n\t\t$countrycoord['VE'] = array(8, -66);\n\t\t$countrycoord['VG'] = array(18.5, -64.5);\n\t\t$countrycoord['VI'] = array(18.33, -64.83);\n\t\t$countrycoord['VN'] = array(16, 106);\n\t\t$countrycoord['VU'] = array(-16, 167);\n\t\t$countrycoord['WF'] = array(-13.3, -176.2);\n\t\t$countrycoord['WS'] = array(-13.58, -172.33);\n\t\t$countrycoord['YE'] = array(15, 48);\n\t\t$countrycoord['YT'] = array(-12.83, 45.17);\n\t\t$countrycoord['ZA'] = array(-29, 24);\n\t\t$countrycoord['ZM'] = array(-15, 30);\n\t\t$countrycoord['ZW'] = array(-20, 30);\n\n\t\treturn $countrycoord;\n\t}", "public function test_clean_coord()\n {\n $coord = \"-45d.4dt5;0dds\";\n $clean = \\SimpleMappr\\Mappr::cleanCoord($coord);\n $this->assertEquals($clean, -45.450);\n }", "public function __construct($dx,$dy)\r\n {\r\n //On indique que x devient $dx et $dy \r\n //On autorise la modification\r\n $this ->x=$dx;\r\n $this ->y=$dy;\r\n }", "public function wktGeneratePoint(array $point = NULL);", "public function getXCoordinate()\n {\n return $this->getValueOfN() * cos(\\deg2rad($this->latitude)) * cos(deg2rad($this->longitude));\n }", "function make_2d($x, $y)\n{\n for ($_x = 0; $_x < $x; $_x++) {\n for ($_y = 0; $_y < $y; $_y++) {\n $a[$_x][$_y] = \"x{$_x}y{$_y}\";\n }\n }\n return $a;\n}", "public static function create($x, $y){\n\t return new Coordinate($x, $y);\n\t}", "function _pointXY($point)\n {\n return array ('X' => $this->_pointX($point), 'Y' => $this->_pointY($point));\n }", "function rd2wgs($x, $y) {\n // Calculate WGS84 coördinates\n $dX = ($x - 155000) * pow(10, - 5);\n $dY = ($y - 463000) * pow(10, - 5);\n $SomN = (3235.65389 * $dY) + (- 32.58297 * pow($dX, 2)) + (- 0.2475 *\n pow($dY, 2)) + (- 0.84978 * pow($dX, 2) *\n $dY) + (- 0.0655 * pow($dY, 3)) + (- 0.01709 *\n pow($dX, 2) * pow($dY, 2)) + (- 0.00738 *\n $dX) + (0.0053 * pow($dX, 4)) + (- 0.00039 *\n pow($dX, 2) * pow($dY, 3)) + (0.00033 * pow(\n $dX, 4) * $dY) + (- 0.00012 *\n $dX * $dY);\n $SomE = (5260.52916 * $dX) + (105.94684 * $dX * $dY) + (2.45656 *\n $dX * pow($dY, 2)) + (- 0.81885 * pow(\n $dX, 3)) + (0.05594 *\n $dX * pow($dY, 3)) + (- 0.05607 * pow(\n $dX, 3) * $dY) + (0.01199 *\n $dY) + (- 0.00256 * pow($dX, 3) * pow(\n $dY, 2)) + (0.00128 *\n $dX * pow($dY, 4)) + (0.00022 * pow($dY,\n 2)) + (- 0.00022 * pow(\n $dX, 2)) + (0.00026 *\n pow($dX, 5));\n\n $Latitude = 52.15517 + ($SomN / 3600);\n $Longitude = 5.387206 + ($SomE / 3600);\n\n return array(\n 'latitude' => $Latitude ,\n 'longitude' => $Longitude);\n}", "public function wktBuildPoint(array $point);", "public function __toString()\n {\n return sprintf('%s, %s', $this->toDMS(static::LATITUDE), $this->toDMS(static::LONGITUDE));\n }", "public function definition()\n {\n $coordinates = [\n [\n 'x' => $this->faker->numberBetween($min = 20, $max = 620),\n 'y' => $this->faker->numberBetween($min = 20, $max = 460)\n ], [\n 'x' => $this->faker->numberBetween($min = 20, $max = 620),\n 'y' => $this->faker->numberBetween($min = 20, $max = 460)\n ], [\n 'x' => $this->faker->numberBetween($min = 20, $max = 620),\n 'y' => $this->faker->numberBetween($min = 20, $max = 460)\n ], [\n 'x' => $this->faker->numberBetween($min = 20, $max = 620),\n 'y' => $this->faker->numberBetween($min = 20, $max = 460)\n ]\n ];\n\n return [\n 'size' => $this->faker->numberBetween($min = 15, $max = 40),\n 'price_square_foot' => $this->faker->numberBetween($min = 1, $max = 5) * 1000,\n 'name' => 'Room',\n 'coordinates' => json_encode($coordinates)\n ];\n }", "public function shapeString() : string\n {\n return (string) $this->m . ' x ' . (string) $this->n;\n }", "function getpoints2($data) {\r\n\t$a = $data[2]; //left - r0\r\n\t$b = $data[0]; //top - r1\r\n\t$c = $data[4]; //diagR - D\r\n\t$d = $data[3]; //right\r\n\t$e = $data[1]; //bottom\r\n\t$f = $data[5]; //diagL\r\n\t\r\n\t// Use Area and Hero's formula locate right corner coordinates\r\n\t$s = ($c + $d + $e)/2; \r\n\t$area = @bcsqrt(bcmul(bcmul($s,($s-$c)),bcmul(($s-$d),($s-$e)))); // Hero's formula\r\n\t$y1 = bcdiv(bcmul(2,$area),$e); // c\r\n\t$x1 = bcsqrt(bcsub(bcpow($c,2), bcpow($y1,2))); // d\r\n\t\r\n\t// Use http://www.ambrsoft.com/TrigoCalc/Circles2/Circle2.htm for top left coord.\r\n\t$delta = @bcmul(1/2,bcsqrt(bcmul(bcmul(($c+$a+$b),($c+$a-$b)),bcmul(($c-$a+$b),(-$c+$a+$b)))));\r\n\t$a2mb2 = bcsub(bcpow($a,2),bcpow($b,2)); // a^2 minus b^2\r\n\t$c2 = bcpow($c,2); // c^2\r\n\t$y0 = bcadd(bcadd(bcdiv($y1,2) , bcdiv(bcmul($y1,$a2mb2), bcmul(2,$c2))) , bcdiv(bcmul($delta,$x1),($c2)));\r\n\t$x0 = bcsub(bcadd(bcdiv($x1,2) , bcdiv(bcmul($x1,$a2mb2), bcmul(2,$c2))) , bcdiv(bcmul($delta,$y1),($c2)));\r\n\t\r\n\t$points = array(\r\n array(0,0),\r\n array($e,0),\r\n array($x1,$y1), \r\n array($x0,$y0) \r\n\t);\r\n\t\r\n\treturn $points;\r\n}", "function getCoordsForSQL4($strict = false) {\n\t\tif (is_null($this->x)) {\n\t\t\t$pos = $this->getPosition();\n\t\t\tif (!$strict) return \"`x`=$pos->x AND `y`=$pos->y AND `local_x`=$pos->lx AND `local_y`=$pos->ly\";\n\t\t\treturn \"`x`=NULL AND `y`=NULL\";\n\t\t}\n\t\treturn \"`x`=$this->x AND `y`=$this->y AND `local_x`=$this->localx AND `local_y`=$this->localy\";\n\t}", "public function x() {\n return $this->coords[0];\n }", "protected static function generatePositionToCrown ()\n {\n $dataTree = Tree::getByUser()->getDataByTree();\n\n $treeCroneCenterPosX = $dataTree['crownCenterPosX'];\n $treeCroneCenterPosY = $dataTree['crownCenterPosY'];\n\n $treeHalfWidth = $dataTree['halfCrownWidth'];\n $treeHalfHeight = $dataTree['halfCrownHeight'];\n\n\n $posX = rand(-$treeHalfWidth, $treeHalfWidth);\n $posY = rand(-$treeHalfHeight, $treeHalfHeight);\n\n // Check the coordinates located inside the oval (crown) (x^2/a^2 + y^2/b^2) == 1 for ellipse\n $ovalVerification = (($posX * $posX) / ($treeHalfWidth * $treeHalfWidth)) + (($posY * $posY) / ($treeHalfHeight * $treeHalfHeight));\n\n if($ovalVerification > 1){\n // If they are beyond the oval (crown),\n // I place them on the surface of the oval (crown),\n // keeping the angle from the center\n $reductionRatio = sqrt($ovalVerification);\n $posX /= $reductionRatio;\n $posY /= $reductionRatio;\n }\n\n return [\n 'x' => (int) ($treeCroneCenterPosX + $posX),\n 'y' => (int) ($treeCroneCenterPosY + $posY),\n ];\n }", "public function wktGenerateMultipoint();", "public abstract function getOrigin(): Point;", "public function coordenadasDestino($x,$y){\r\n\t\t$this->x_punto_destino=$x;\r\n\t\t$this->y_punto_destino=$y;\r\n\t}", "public function coordenadasDestino($x,$y){\r\n\t\t$this->x_punto_destino=$x;\r\n\t\t$this->y_punto_destino=$y;\r\n\t}", "private function getLongitudeLatitude(): array\n {\n $string = [];\n\n $string[] = '+---------------------------------------+';\n $string[] = sprintf('| %s |', $this->green('Longitude / Latitude'));\n $string[] = '+---------------------------------------|';\n $string[] = '| '.$this->blue('lat').' |';\n $string[] = '| |';\n $string[] = '| '.$this->blue('90° ⯅').' |';\n $string[] = '| '.$this->blue('|').' |';\n $string[] = '| '.$this->blue('|').' |';\n $string[] = '| '.$this->blue('|').' • Oslo (59.91°, 10.75°) |';\n $string[] = '| '.$this->blue('|').' • London (51.51°, -0.13°) |';\n $string[] = '| • New York (40.71°, -74.01°) |';\n $string[] = '| '.$this->blue('|').' |';\n $string[] = '| '.$this->blue('|').' |';\n $string[] = '| '.$this->blue('|').' |';\n $string[] = '| '.$this->blue('|').' • Null Island (0°, 0°) |';\n $string[] = '| '.$this->blue('⯇-------+-------------------⯈ lon').' |';\n $string[] = '| '.$this->blue('-180° | 180°').' |';\n $string[] = '| '.$this->blue('|').' |';\n $string[] = '| '.$this->blue('|').' • Cape Agulhas |';\n $string[] = '| '.$this->blue('-90° ⯆').' (-34.82°, 20.02°) |';\n $string[] = '+---------------------------------------+';\n\n return $string;\n }", "public function writeCpoint($x='0', $y='0', $z='0') {\n$this->startElement('CartesianPoint');\n$this->writeElement('Coordinate', $x);\n$this->writeElement('Coordinate', $y);\n$this->writeElement('Coordinate', $z);\n$this->endElement();\n\t}", "public function getCoordinate()\n {\n return $this->coordinate;\n }", "function tradeoff_map_node_coordinates($definition)\n {\n return app(Models\\Resolution\\Map\\MapNodeCoordinates::class)->setData($definition);\n }", "public function toXYZ()\n {\n $tmp_r = $this->red / 255;\n $tmp_g = $this->green / 255;\n $tmp_b = $this->blue / 255;\n if ($tmp_r > 0.04045) {\n $tmp_r = pow((($tmp_r + 0.055) / 1.055), 2.4);\n } else {\n $tmp_r = $tmp_r / 12.92;\n }\n if ($tmp_g > 0.04045) {\n $tmp_g = pow((($tmp_g + 0.055) / 1.055), 2.4);\n } else {\n $tmp_g = $tmp_g / 12.92;\n }\n if ($tmp_b > 0.04045) {\n $tmp_b = pow((($tmp_b + 0.055) / 1.055), 2.4);\n } else {\n $tmp_b = $tmp_b / 12.92;\n }\n $tmp_r = $tmp_r * 100;\n $tmp_g = $tmp_g * 100;\n $tmp_b = $tmp_b * 100;\n $new_x = $tmp_r * 0.4124 + $tmp_g * 0.3576 + $tmp_b * 0.1805;\n $new_y = $tmp_r * 0.2126 + $tmp_g * 0.7152 + $tmp_b * 0.0722;\n $new_z = $tmp_r * 0.0193 + $tmp_g * 0.1192 + $tmp_b * 0.9505;\n return new XYZ($new_x, $new_y, $new_z);\n }", "public function createHexagon($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4, $x5, $y5, $x6, $y6){\n $this->createLine($x1, $y1, $x2, $y2); \n $this->createLine($x2, $y2, $x3, $y3); \n $this->createLine($x3, $y3, $x4, $y4); \n $this->createLine($x4, $y4, $x5, $y5); \n $this->createLine($x5, $y5, $x6, $y6); \n $this->createLine($x6, $y6, $x1, $y1);\t\n }", "public static function point();", "public function getCoordinates(): array\n {\n return $this->coordinates;\n }", "public function getXandY(): array {\n return [$this->x, $this->y];\n }", "function createSun() {\n global $funcVersion; $funcVersion = 1;\n $n = 3;\n $r='';\n $e=2*$n+1; //edge length\n for($i=0;$i<$e*$e;$i++) {\n $h = floor($e/2); // half point of square\n $x = floor($i%$e); // current x coordinate\n $y = floor($i/$e); // current y coordinate\n\n if ($y==$h&&$x==$h) {\n // center of square\n $r.='O';\n }\n else if ($y==$h) {\n // horizontal line\n $r.='-';\n }\n else if ($x==$h) {\n // vertical line\n $r.='|';\n }\n else if (($y-$h)==($x-$h)) {\n // diagonal line from top-left to bottom right\n $r.='\\\\';\n }\n else if (($y-$h)==($h-$x)) {\n // diagonal line from bottom-left to top-right\n $r.='/';\n }\n else {\n // empty space\n $r.=' ';\n }\n if ($x==$e-1) {\n // add new line for the end of the row\n $r.=\"\\n\";\n }\n }\n //echo \"<pre>\"; echo $r; echo \"</pre>\";\n}", "private function createOrd()\n {\n $point1 = new Point(\n $this->style->canvas->left,\n $this->style->canvas->top - $this->style->axes->ord->marginY\n );\n\n $point2 = new Point(\n $point1->x,\n $this->style->canvas->top + $this->style->canvas->height\n );\n\n return $this->getLine(\n $point1,\n $point2,\n $this->style->axes->ord->color,\n $this->style->axes->ord->thickness\n );\n }", "function XYZ($POS) {\n global $posx; // X coordinate\n global $posy; // Y coordinate (altitude)\n global $posz; // Z coordinate\n\n // remove slashes and spaces\n $POS = preg_replace(\"/\\(/\",\"\",$POS);\n $POS = preg_replace(\"/\\)/\",\"\",$POS);\n $POS = preg_replace(\"/ /\",\"\",$POS);\n $Part = explode(\",\",$POS,3); // split into X, Y and Z at \",\"\n $posx = trim($Part[0]);\n $posy = trim($Part[1]);\n $posz = trim($Part[2]);\n}", "public function getUserSpaceXY($x, $y) {}", "private function readXY()\n {\n return [\n 'x' => $this->readDoubleL(Shapefile::FILE_SHP),\n 'y' => $this->readDoubleL(Shapefile::FILE_SHP),\n ];\n }", "public function getUserSpaceXY($x, $y) {}", "public function wktBuildLinestring(array $points);", "public function calculateFreeCoordinates(&$rowStart, &$columnStart, $squares, $alignment): array {\n $coords = [];\n\n $row = $this->rows[$rowStart];\n $column = $this->cols[$columnStart];\n\n\n if ($alignment == GridObject::ALIGN_HORIZONTAL) {\n # For Horizontal Coordinates we change the column index\n if ($columnStart == 9) {\n $columnStart = 0;\n }\n\n for ($i=0; $i < $squares; $i++) {\n $nextColumnKey = $columnStart + $i;\n $column = isset($this->cols[$nextColumnKey]) ? $this->cols[$nextColumnKey] : false;\n if (!$column) {$columnStart = 0; break;}\n // echo $column;\n\n if (!$this->isPointOccupied($row, $column)) {\n # If point is free push it in coords array\n array_push($coords, [$row, $column]);\n } else {\n # Change column if path occupied\n $columnStart++;\n break;\n }\n }\n return $coords;\n\n } else {\n # For Vertical Coordinates we change the row index\n if ($rowStart == 9) {\n $rowStart = 0;\n }\n\n for ($i=0; $i < $squares; $i++) {\n $nextRowKey = $rowStart + $i;\n $row = isset($this->rows[$nextRowKey]) ? $this->rows[$nextRowKey] : false;\n if (!$row) {$rowStart = 0; break;}\n // echo $row;\n if (!$this->isPointOccupied($row, $column)) {\n # If point is free push it in coords array\n array_push($coords, [$row, $column]);\n } else {\n # Change Row if path occupied\n $rowStart++;\n break;\n }\n }\n return $coords;\n\n }\n }", "function getDistance2pts($coord1, $coord2){\n\t$r = 6366;\n\n\t$coord1[0] = deg2rad($coord1[0]);\n\t$coord1[1] = deg2rad($coord1[1]);\n\t$coord2[0] = deg2rad($coord2[0]);\n\t$coord2[1] = deg2rad($coord2[1]);\n\t\n\t$ds= acos(sin($coord1[0])*sin($coord2[0])+cos($coord1[0])*cos($coord2[0])*cos($coord1[1]-$coord2[1]));\n\t\n\t$dpr = $ds * $r;\n\t\n\treturn $dpr * 0.54;\t// return une distance en nm\t\n}", "public function getCoordinate() {\n return $this->coordinate;\n }", "function visitedCoords($accurate, $nongraphic = false) {\n\t\t$coords = array();\n\t\tif ($nongraphic) $sql = \"SELECT `x`, `y` FROM `loc_log` WHERE `charFK`=$this->uid AND `building`=0 AND `event_type`<3 ORDER BY `dateTime` DESC, `minute` DESC, `uid` DESC LIMIT 55\";\n\t\telse $sql = \"SELECT `x`*90, (`y`+5000)*90 FROM `loc_log` WHERE `charFK`=$this->uid AND `building`=0 AND `event_type`<3 ORDER BY `dateTime` DESC, `minute` DESC, `uid` DESC LIMIT 55\";\n\t\t$res = $this->mysqli->query($sql);\n\t\t$xv = 0;\n\t\t$yv = 0;\n\t\tif (mysqli_num_rows($res)) {\n\t\t\twhile ($row = mysqli_fetch_row($res)) {\n\t\t\t\tif ($nongraphic) $coords[] = array(\n\t\t\t\t\t\t\"x\" => $row[0],\n\t\t\t\t\t\t\"y\" => $row[1]\n\t\t\t\t\t\t);\n\t\t\t\telse if (!$accurate) {\n\t\t\t\t\t$xv += $this->biasRand();\n\t\t\t\t\t$x = $row[0] + $xv;\n\t\t\t\t\t$yv += $this->biasRand();\n\t\t\t\t\t$y = $row[1] + $yv;\n\t\t\t\t\t\n\t\t\t\t\t$coords[] = array(\n\t\t\t\t\t\t\"x\" => round($x/20),\n\t\t\t\t\t\t\"y\" => round($y/20)\n\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\telse $coords[] = array(\n\t\t\t\t\t\t\"x\" => round($row[0]/20),\n\t\t\t\t\t\t\"y\" => round($row[1]/20)\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn $coords;\n\t}", "function get_dimesions($shapes) {\n foreach($shapes as $key=>$shape) {\n echo \"<strong>Shape $key</strong><br>\";\n\n echo \"Cordinates - x,y<br>\".\n \"bottom_left: \".$shape['bottom_left'][0].\",\".$shape['bottom_left'][1].\" - \".\n \"top_left: \".$shape['top_left'][0].\",\".$shape['top_left'][1].\" - \".\n \"bottom_right: \".$shape['bottom_right'][0].\",\".$shape['bottom_right'][1].\" - \".\n \"top_right: \".$shape['top_right'][0].\",\".$shape['top_right'][1].\"<br>\";\n\n // for simplicity we are considering all shapes square with equal co-ordinates for height and width\n $dimensions['width'] = ($shape['bottom_right'][0] - $shape['bottom_left'][0])+1;\t\n echo \"Width: \".$dimensions['width'].\"<br>\";\n $dimensions['height'] = ($shape['top_right'][1] - $shape['bottom_left'][1])+1;\n echo \"Height: \".$dimensions['height'].\"<br>\";\n\n }\n return $dimensions;\n}", "function coord2Text ( $coord ) {\n\t\t$signe = ($coord == abs($coord)) ? \"\" : \"-\" ;\n\t\t$coord = abs($coord);\n \n\t\t$text = $signe;\n\t\t$graus = $coord;\n\t\t$minuts = ($graus - floor($graus)) * 60;\n\t\t$segons = ($minuts - floor($minuts)) * 60;\n\t\t\n\t\t$text .= floor($graus) . \"º\" . floor($minuts) . \"'\" . floor($segons*10000)/10000 . \"''\";\n \n\t\treturn $text;\n}", "public function deplacerEn($dx,$dy)\r\n {\r\n $this->setX($dx);\r\n $this->setY($dy);\r\n }", "function guifi_ND50_WG84 ( $Xs, $Ys, $Zs, $type=0 ) {\n/* $Tx = 181.5; $Ty = 90.3; $Tz = 187.2;\n $Rx = deg2rad(0.144/3600); $Ry = deg2rad(0.492/3600); $Rz = deg2rad(-0.394/3600);\n $D = 17.57 / 1000000.0 ;\n $Tx = 131.0; $Ty = 100.3; $Tz = 163.4;\n $Rx = deg2rad(-1.244/3600); $Ry = deg2rad(-0.020/3600); $Rz = deg2rad(-1.144/3600);\n $D = 9.39 / 1000000.0 ;\n*/ $Tx = 131.03; $Ty = 100.25; $Tz = 163.35;\n $Rx = deg2rad(-1.244/3600); $Ry = deg2rad(-0.019/3600); $Rz = deg2rad(-1.144/3600);\n $D = 9.39 / 1000000.0 ;\n \n if ($type) {\n $Tx = -$Tx; $Ty = -$Ty; $Tz = -$Tz; \n $Rx = -$Rx; $Ry = -$Ry; $Rz = -$Rz; \n $D = -$D;\n }\n \n $D = $D + 1.0 ;\n $Xs = $D * $Xs;\n $Ys = $D * $Ys;\n $Zs = $D * $Zs;\n\n $Xt = $Tx + ( $Xs + $Rz*$Ys - $Ry*$Zs );\n $Yt = $Ty + ( -$Rz*$Xs + $Ys + $Rx*$Zs );\n $Zt = $Tz + ( $Ry*$Xs - $Rx*$Ys + $Zs );\n \n return array( $Xt, $Yt, $Zt );\n}", "public function format()\n {\n return sprintf('%s %s %s', $this->x(), $this->y(), $this->z());\n }", "function getCoordsForSQL2($strict = false) {\n\t\tif (is_null($this->x)) {\n\t\t\t$pos = $this->getPosition();\n\t\t\tif (!$strict) return \"`x`=$pos->x AND `y`=$pos->y\";\n\t\t\treturn \"`x`=NULL AND `y`=NULL\";\n\t\t}\n\t\treturn \"`x`=$this->x AND `y`=$this->y\";\n\t}", "public function distanceProvider()\n {\n yield 'same two points' => [\n 'start' => [0, 0],\n 'end' => [0, 0],\n 'expected' => 0\n ];\n yield 'neighbouring points' => [\n 'start' => [0, 1],\n 'end' => [0, 0],\n 'expected' => 1\n ];\n yield 'different x' => [\n 'start' => [-6, 2],\n 'end' => [2, 2],\n 'expected' => 8\n ];\n yield 'different y' => [\n 'start' => [-1, -3],\n 'end' => [-1, 11],\n 'expected' => 14\n ];\n yield 'both coords different' => [\n 'start' => [2, -1],\n 'end' => [-3, 4],\n 'expected' => 10\n ];\n }", "private function createPolygonFromCoords(array $coordinates = []) : string\n {\n return implode(':', array_map(function($coords){\n return implode(',', $coords);\n }, $coordinates));\n }", "function polygon($points)\r\n {\r\n $this->forceBrush();\r\n $xPoints = \" var Xpoints = new Array(\";\r\n $yPoints = \" var Ypoints = new Array(\";\r\n $count = count($points);\r\n for ($i = 0; $i < $count; $i += 2) {\r\n if ($i > 1) {\r\n $xPoints .= \",\";\r\n $yPoints .= \",\";\r\n }\r\n $xPoints .= $points[$i];\r\n $yPoints .= $points[$i+1];\r\n }\r\n $xPoints .= \");\\n\";\r\n $yPoints .= \");\\n\";\r\n echo $xPoints;\r\n echo $yPoints;\r\n echo \"$this->_canvas.fillPolygon(Xpoints, Ypoints);\\n\";\r\n $this->forcePen();\r\n echo \"$this->_canvas.drawPolygon(Xpoints, Ypoints);\\n\";\r\n }", "public function getLatLng() {\n return $point = $this->getLat().','.$this->getLng();\n }", "public function getPos();", "public function getPos();", "public function __construct($x, $y, $z, $dx, $dy, $dz)\r\n {\r\n $this->x = $x;\r\n $this->y = $y;\r\n $this->z = $z;\r\n $this->dx = $dx;\r\n $this->dy = $dy;\r\n $this->dz = $dz;\r\n }", "public function fromRadiansToDegrees(): Point {\n return new Point(\n rad2deg($this->x),\n rad2deg($this->y)\n );\n }", "static public function createFromXml(\\SimpleXMLElement $xml)\n {\n $coordinate = new Coordinate();\n $coordinate->type = (string) $xml['type'];\n $coordinate->x = self::intToFloat((string) $xml['x']);\n $coordinate->y = self::intToFloat((string) $xml['y']);\n\n return $coordinate;\n }", "private function _getPosData($sweres) {\n $swearr = explode(\"\\n\",$sweres);\n $points = array();\n $points['sun'] = $swearr[0]; //7\n $points['earth'] = fmod($swearr[0] + 180.0, 360.0); //5\n $points['moon'] = $swearr[1]; //4\n $points['lil'] = $swearr[2]; //2\n $points['nnode'] = $swearr[3]; //6\n $points['snode'] = fmod($swearr[3] + 180.0, 360.0); //8\n $points['asc'] = $swearr[4]; // 3\n $minuslil = $swearr[2] - 30.0;\n if ($minuslil < 0) {\n $minuslil += 360.0;\n }\n $points['prevlil'] = $minuslil; //1\n\n asort($points, SORT_NUMERIC);\n foreach (array_keys($points) as $key) {\n if ($key == 'asc') {\n break;\n } else {\n $points[$key] = array_shift($points);\n }\n }\n $order = array('prevlil' => 'I', 'lil' => 'II', 'asc' => 'III', 'moon' => 'IV', 'earth' => 'V',\n 'nnode' => 'VI', 'sun' => 'VII', 'snode' => 'VIII');\n $seq = array();\n foreach (array_keys($points) as $key) {\n $seq[] = $order[$key];\n }\n return $seq;\n }", "public function getCoordinates()\n\t{\n\t\tif (!empty($this->_coordinates)) {\n\t\t\treturn $this->_coordinates;\n\t\t} else {\n\t\t\t$errorMsg = 'getCoordinates called before coordinates values have been set';\n\t\t\tthrow new Exception($errorMsg);\n\t\t}\n\t}", "protected function extractGpsCoordinate(array $data)\n {\n // make sure we always have 3 components\n $default = [0, 0, 0];\n $data = array_replace($default, $data);\n\n // normalize the components\n array_walk($data, array($this, 'normalizeCoordinatePartData'));\n\n // convert to digital degrees\n return floatval($data[0]) + floatval($data[1]/60) + floatval($data[2]/3600);\n }", "public function getCode()\n {\n parent::getCode();\n $js = sprintf('var %s = new GPoint(%s, %s);',\n $this->getVarName(),\n $this->x,\n $this->y);\n return $js;\n }", "public function getCoordinate() {\n\n return $this->coordinate;\n }", "function Box($start_point, $end_point) {\n if ($start_point == $end_point) {\n $top = $start_point->lat;\n $bottom = $top;\n $left = $start_point->lng;\n $right = $left;\n return;\n }\n #echo \"Box Constructor<br/>\";\n #echo \"P1={\" . $start_point->lat . \",\" . $start_point->lng . \"}<br/>\"; \n #echo \"P2={\" . $end_point->lat . \",\" . $end_point->lng . \"}<br/>\";\n $midpoint = $this->findMidpoint($start_point, $end_point);\n #echo \"P3={\" . $midpoint->lat . \",\" . $midpoint->lng . \"}<br/>\";\n $slope = $this->findSlope($start_point, $end_point);\n #echo \"getting distance<br/>\";\n $distance = $midpoint->getDistanceMiles($start_point);\n #echo \"new distance is $distance<br/>\";\n //$p1 = $this->findP1($slope, $midpoint, $distance/4);\n $miles_per_degree_latitude = 69.023;\n #echo \"slope = \" . $slope . \"<br/>\";\n $p1 = new Point($midpoint->lng,$distance/$miles_per_degree_latitude);\n $p2 = new Point($midpoint->lng,$distance/$miles_per_degree_latitude);\n if ($slope != \"vertical\") {\n $p1 = $this->gP1($slope, $start_point, $end_point);\n $p2 = $this->gP2($slope, $start_point, $end_point);\n }\n #echo \"P4={\" . $p1->lat . \",\" . $p1->lng . \"}<br/>\";\n //$p2 = $this->findP2($slope, $midpoint, $distance/4);\n #echo \"P5={\" . $p2->lat . \",\" . $p2->lng . \"}<br/>\";\n $y = array($start_point->lat, $end_point->lat, $p1->lat, $p2->lat);\n $x = array($start_point->lng, $end_point->lng, $p1->lng, $p2->lng);\n $this->top = max($y);\n $this->bottom = min($y);\n $this->left = min($x);\n $this->right = max($x);\n }", "public function dpEncode() {\n if(count($this->points) > 2) {\n \n $stack[] = array(0, count($this->points)-1);\n \n while(count($stack) > 0) {\n $current = array_pop($stack);\n $maxDist = 0;\n $absMaxDist = 0;\n \n for($i = $current[0]+1; $i < $current[1]; $i++) {\n $temp = self::distance($this->points[$i], $this->points[$current[0]], $this->points[$current[1]]);\n if($temp > $maxDist) {\n $maxDist = $temp;\n $maxLoc = $i;\n if($maxDist > $absMaxDist) {\n $absMaxDist = $maxDist;\n }\n }\n }\n \n if($maxDist > $this->verySmall) {\n $dists[$maxLoc] = $maxDist;\n array_push($stack, array($current[0], $maxLoc));\n array_push($stack, array($maxLoc, $current[1]));\n }\n }\n }\n \n $encodedPoints = self::createEncodings($this->points, $dists);\n $encodedLevels = self::encodeLevels($this->points, $dists, $absMaxDist);\n $encodedPointsLiteral = str_replace('\\\\',\"\\\\\\\\\",$encodedPoints);\n \n $polyline[\"Points\"] = $encodedPoints;\n $polyline[\"Levels\"] = $encodedLevels;\n $polyline[\"PointsLiteral\"] = $encodedPointsLiteral;\n $polyline[\"ZoomFactor\"] = $this->zoomFactor;\n $polyline[\"NumLevels\"] = $this->numLevels;\n \n return $polyline;\n }", "public static function invalidMarkerShapeCoordinates()\n {\n return new static('A marker shape must have coordinates.');\n }" ]
[ "0.6778807", "0.6757102", "0.6708094", "0.6653712", "0.641561", "0.63263786", "0.61948013", "0.61193955", "0.6050186", "0.57442695", "0.57175773", "0.5695031", "0.5693331", "0.55079794", "0.5476634", "0.54608953", "0.5452859", "0.5397953", "0.53904915", "0.5362231", "0.53498393", "0.53483623", "0.53483623", "0.533182", "0.53299016", "0.5329821", "0.53251386", "0.53217435", "0.531777", "0.5299621", "0.52816653", "0.52602875", "0.52502155", "0.5244084", "0.51909965", "0.51909965", "0.5168118", "0.51607966", "0.51316667", "0.5127368", "0.5097078", "0.5093194", "0.5073849", "0.50650144", "0.5051311", "0.5049785", "0.50181496", "0.5006585", "0.49983737", "0.49801815", "0.49456537", "0.49255103", "0.49254134", "0.49223655", "0.491611", "0.49107492", "0.49089408", "0.49089408", "0.49081424", "0.49048847", "0.49016184", "0.48909378", "0.48790163", "0.48710138", "0.4868611", "0.48638648", "0.48622552", "0.4856516", "0.4851638", "0.4801077", "0.47972414", "0.47969645", "0.4796873", "0.4777521", "0.47761533", "0.47728282", "0.47723204", "0.47713962", "0.47578818", "0.47572276", "0.47506204", "0.4743212", "0.47278184", "0.47174004", "0.471474", "0.46930173", "0.46817204", "0.46749976", "0.4668065", "0.4668065", "0.46629906", "0.4653323", "0.46347252", "0.46342972", "0.46340045", "0.46183735", "0.46165526", "0.46069252", "0.4601669", "0.45976084", "0.45954514" ]
0.0
-1
Helper to generate a random WKT string Try to keeps values sane, no shape is more than 100km across
function wkt_generate() { $types = array( 'point', 'linestring', 'polygon', 'multipoint', 'multilinestring', 'multipolygon', ); // don't always generate the same type shuffle($types); $type = $types[0]; $func = 'wkt_generate_' . $type; if (method_exists($this, $func)) { $wkt = $this->$func(); return drupal_strtoupper($type) . ' (' . $wkt . ')'; } return 'POINT (0 0)'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wkt() {\n $wkt_string = '';\n $wkt = 'LINESTRING(';\n for ($i = 0; $i < count($this->geometries); $i++) {\n if (count($this->geometries[i]['coords']) === 0) {\n return 'LINESTRING(empty)';\n } else {\n $coords = $this->geometries[i]['coords'];\n foreach ($coords as $c) {\n $wkt .= $c[0] . ' ' . $c[1] . ',';\n }\n $wkt_string .= substr($wkt, 0, -1) . ')';\n }\n }\n return $wkt_string;\n }", "function GenerateWord() {\n $nb = rand(3, 10);\n $w = '';\n for ($i = 1; $i <= $nb; $i++)\n $w .= chr(rand(ord('a'), ord('z')));\n return $w;\n }", "public function wktGenerateGeometry();", "function GenerateWord()\n{\n $nb=rand(3,10);\n $w='';\n for($i=1;$i<=$nb;$i++)\n $w.=chr(rand(ord('a'),ord('z')));\n return $w;\n}", "private function createRandomString() {\n\t\t$characters = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t$res = '';\n\t\tfor ($i = 0; $i < 20; $i++) {\n\t\t\t$res .= $characters[mt_rand(0, strlen($characters) - 1)];\n\t\t}\n\t\treturn $res;\n\t}", "public function generateWkt(array $gis_data, $index, $empty = '')\n {\n $no_of_lines = isset($gis_data[$index]['POLYGON']['no_of_lines'])\n ? $gis_data[$index]['POLYGON']['no_of_lines'] : 1;\n if ($no_of_lines < 1) {\n $no_of_lines = 1;\n }\n\n $wkt = 'POLYGON(';\n for ($i = 0; $i < $no_of_lines; $i++) {\n $no_of_points = isset($gis_data[$index]['POLYGON'][$i]['no_of_points'])\n ? $gis_data[$index]['POLYGON'][$i]['no_of_points'] : 4;\n if ($no_of_points < 4) {\n $no_of_points = 4;\n }\n $wkt .= '(';\n for ($j = 0; $j < $no_of_points; $j++) {\n $wkt .= ((isset($gis_data[$index]['POLYGON'][$i][$j]['x'])\n && trim($gis_data[$index]['POLYGON'][$i][$j]['x']) != '')\n ? $gis_data[$index]['POLYGON'][$i][$j]['x'] : $empty)\n . ' ' . ((isset($gis_data[$index]['POLYGON'][$i][$j]['y'])\n && trim($gis_data[$index]['POLYGON'][$i][$j]['y']) != '')\n ? $gis_data[$index]['POLYGON'][$i][$j]['y'] : $empty) . ',';\n }\n $wkt\n =\n mb_substr(\n $wkt,\n 0,\n mb_strlen($wkt) - 1\n );\n $wkt .= '),';\n }\n $wkt\n =\n mb_substr(\n $wkt,\n 0,\n mb_strlen($wkt) - 1\n );\n $wkt .= ')';\n\n return $wkt;\n }", "function random_string( )\n {\n $character_set_array = array( );\n $character_set_array[ ] = array( 'count' => 7, 'characters' => 'abcdefghijklmnopqrstuvwxyz' );\n $character_set_array[ ] = array( 'count' => 1, 'characters' => '0123456789' );\n $temp_array = array( );\n foreach ( $character_set_array as $character_set )\n {\n for ( $i = 0; $i < $character_set[ 'count' ]; $i++ )\n {\n $temp_array[ ] = $character_set[ 'characters' ][ rand( 0, strlen( $character_set[ 'characters' ] ) - 1 ) ];\n }\n }\n shuffle( $temp_array );\n return implode( '', $temp_array );\n }", "public function generateWord()\n {\n $word = '';\n $wordLen = $this->getWordLen();\n $vowels = $this->_useNumbers ? self::$VN : self::$V;\n $consonants = $this->_useNumbers ? self::$CN : self::$C;\n\n $totIndexCon = count($consonants) - 1;\n $totIndexVow = count($vowels) - 1;\n for ($i=0; $i < $wordLen; $i = $i + 2) {\n // generate word with mix of vowels and consonants\n $consonant = $consonants[mt_rand(0, $totIndexCon)];\n $vowel = $vowels[mt_rand(0, $totIndexVow)];\n $word .= $consonant . $vowel;\n }\n\n if (strlen($word) > $wordLen) {\n $word = substr($word, 0, $wordLen);\n }\n\n return $word;\n }", "function random_string()\n\t{\n\t\t$character_set_array = array();\n\t\t$character_set_array[] = array('count' => 10, 'characters' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');\n\t\t$character_set_array[] = array('count' => 10, 'characters' => '0123456789');\n\t\t$temp_array = array();\n\t\tforeach ($character_set_array as $character_set) {\n\t\t\tfor ($i = 0; $i < $character_set['count']; $i++) {\n\t\t\t\t$temp_array[] = $character_set['characters'][rand(0, strlen($character_set['characters']) - 1)];\n\t\t\t}\n\t\t}\n\t\tshuffle($temp_array);\n\t\treturn implode('', $temp_array);\n\t}", "public function wktGeneratePoint(array $point = NULL);", "function genRandomString() {\n //credits: http://bit.ly/a9rDYd\n $length = 50;\n $characters = \"0123456789abcdef\"; \n for ($p = 0; $p < $length ; $p++) {\n $string .= $characters[mt_rand(0, strlen($characters))];\n }\n\n return $string;\n }", "protected function _generateWord()\n {\n $word = '';\n $wordLen = $this->getWordlen();\n $vowels = $this->_useNumbers ? self::$VN : self::$V;\n $consonants = $this->_useNumbers ? self::$CN : self::$C;\n\n $totIndexCon = count($consonants) - 1;\n $totIndexVow = count($vowels) - 1;\n for ($i=0; $i < $wordLen; $i = $i + 2) {\n // generate word with mix of vowels and consonants\n $consonant = $consonants[Zend_Crypt_Math::randInteger(0, $totIndexCon, true)];\n $vowel = $vowels[Zend_Crypt_Math::randInteger(0, $totIndexVow, true)];\n $word .= $consonant . $vowel;\n }\n\n if (strlen($word) > $wordLen) {\n $word = substr($word, 0, $wordLen);\n }\n\n return $word;\n }", "function tck_rnd_string( $str, $length, $type, $charlist ) {\n if ( $type == 0 ) {\n if ( strpos($str, tck_get_prefix(0)) !== false || strpos($str, tck_get_prefix(1)) !== false ) {\n $charlist = str_replace(tck_get_prefix(0), '', $charlist);\n $charlist = str_replace(tck_get_prefix(1), '', $charlist);\n $str = substr(str_shuffle($charlist), 0, $length);\n }\n }\n \n return $str;\n }", "function getRandomString($lenght = 5, $smallLetters = true, $bigLetters = true, $numbers = true)\n{\n $material = array();\n if(true === $smallLetters) {\n $material = array_merge($material, range('a', 'z'));\n }\n if(true === $bigLetters) {\n $material = array_merge($material, range('A', 'Z'));\n } \n if(true === $numbers) {\n $material = array_merge($material, range('0', '9'));\n } \n $randomString = ''; \n for ($i = 0; $i < $lenght; $i++) { \n $randomString .= $material[mt_rand(0, count($material)-1)]; \n } \n return $randomString; \n}", "private static function generateBoundary() {\n\t\treturn \"-----=\".md5(uniqid(mt_rand(), 1));\n\t}", "public function createRandString(){\n\n $new = '';\n srand((double)microtime() * 1000000);\n $char_list = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $char_list .= \"abcdefghijklmnopqrstuvwxyz\";\n $char_list .= \"1234567890\";\n\n for ($i = 0; $i < 8; $i++) {\n\n $new .= substr($char_list, (rand() % (strlen($char_list))), 1);\n\n }\n\n return $new;\n\n }", "function generate_random_string($name_length = 8) \n\t{\n\t\t$alpha_numeric = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n\t\treturn substr(str_shuffle($alpha_numeric), 0, $name_length);\n\t}", "function wkt_generate_multilinestring() {\n $start = $this->random_point();\n $num = $this->dd_generate(1, 3, TRUE);\n $lines[] = $this->wkt_generate_linestring($start);\n for ($i = 0; $i < $num; $i += 1) {\n $diff = $this->random_point();\n $start[0] += $diff[0] / 100;\n $start[1] += $diff[1] / 100;\n $lines[] = $this->wkt_generate_linestring($start);\n }\n return '(' . implode('), (', $lines) . ')';\n }", "public static function generatePassword() {\n\t\t$consonants = array (\n\t\t\t\t\"b\",\n\t\t\t\t\"c\",\n\t\t\t\t\"d\",\n\t\t\t\t\"f\",\n\t\t\t\t\"g\",\n\t\t\t\t\"h\",\n\t\t\t\t\"j\",\n\t\t\t\t\"k\",\n\t\t\t\t\"l\",\n\t\t\t\t\"m\",\n\t\t\t\t\"n\",\n\t\t\t\t\"p\",\n\t\t\t\t\"r\",\n\t\t\t\t\"s\",\n\t\t\t\t\"t\",\n\t\t\t\t\"v\",\n\t\t\t\t\"w\",\n\t\t\t\t\"x\",\n\t\t\t\t\"y\",\n\t\t\t\t\"z\" \n\t\t);\n\t\t$vocals = array (\n\t\t\t\t\"a\",\n\t\t\t\t\"e\",\n\t\t\t\t\"i\",\n\t\t\t\t\"o\",\n\t\t\t\t\"u\" \n\t\t);\n\t\t\n\t\t$password = '';\n\t\t\n\t\tsrand ( ( double ) microtime () * 1000000 );\n\t\tfor($i = 1; $i <= 4; $i ++) {\n\t\t\t$password .= $consonants [rand ( 0, 19 )];\n\t\t\t$password .= $vocals [rand ( 0, 4 )];\n\t\t}\n\t\t$password .= rand ( 0, 9 );\n\t\t\n\t\treturn $password;\n\t}", "private function generateString() :string\n {\n $chromosome = '';\n\n for ($i = 0; $i < Settings::CHROMOSOME_SIZE; $i++) {\n $chromosome = $chromosome . $this->genes[$this->getRandomPosition()];\n }\n\n return $chromosome;\n }", "function generate_random_string($name_length = 8) {\n $alpha_numeric = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n return substr(str_shuffle($alpha_numeric), 0, $name_length);\n }", "function wpbm_generate_random_string( $length ){\n $string = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $random_string = '';\n for ( $i = 1; $i <= $length; $i ++ ) {\n $random_string .= $string[ rand( 0, 61 ) ];\n }\n return $random_string;\n }", "function gen_rand_string($num_chars = 8)\n{\n\t$rand_str = unique_id();\n\t$rand_str = str_replace('0', 'Z', strtoupper(base_convert($rand_str, 16, 35)));\n\n\treturn substr($rand_str, 0, $num_chars);\n}", "function random_str($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')\n{\n $str = '';\n $max = mb_strlen($keyspace, '8bit') - 1; //lunghezza $keyspace, 8bit è codifica della stringa\n for ($i = 0; $i < $length; ++$i) {\n $str .= $keyspace[random_int(0, $max)];\n }\n return $str;\n}", "public function randomString(){\n $alpha = \"abcdefghijklmnopqrstuvwxyz\";\n $alpha_upper = strtoupper($alpha);\n $numeric = \"0123456789\";\n $special = \".-+=_,!@$#*%<>[]{}\";\n $chars = $alpha . $alpha_upper . $numeric; \n $pw = ''; \n $chars = str_shuffle($chars);\n $pw = substr($chars, 8,8);\n return $pw;\n }", "function posListToWKT($posList, $order) {\n\n /*\n * Explode posList into the $coordinates array\n * Note the trim() to avoid weird results :)\n */\n $posList = preg_replace('!\\s+!', ' ', $posList);\n $coordinates = explode(' ', trim($posList));\n $count = count($coordinates);\n $polygon = '';\n\n /*\n * Parse each coordinates\n */\n for ($i = 0; $i < $count; $i = $i + 2) {\n\n /*\n * Case 1 : coordinates order is latitude then longitude\n */\n if ($order === \"LATLON\") {\n $polygon .= ((float)$coordinates[$i + 1]) . ' ' . ((float)$coordinates[$i]) . ',';\n }\n /*\n * Case 2 : coordinates order is longitude then latitude\n */\n else {\n $polygon .= ((float)$coordinates[$i]) . ' ' . ((float)$coordinates[$i + 1]) . ',';\n }\n }\n\n // Substring to remove the last ',' character\n return 'POLYGON((' . substr($polygon, 0, -1) . '))';\n}", "function fixtures_generate_data( string $type ,\n int $min ,\n int $max ,\n bool $no_periods = false ,\n bool $no_spaces = false ) : string\n{\n // Don't generate aything if the min/max values are incorrect\n if($max < 1 || $min > $max)\n return '';\n\n // Random int between $min and $max\n if($type === 'int')\n return mt_rand($min, $max);\n\n // Random string of digits\n if($type === 'digits')\n {\n $digits = '';\n $max_length = mt_rand($min, $max);\n for ($i = 0; $i < $max_length; $i++)\n $digits .= mt_rand(0,9);\n return $digits;\n }\n\n // Random string\n if($type === 'string')\n {\n $characters = \"aaaaaabcdeeeeeeefghiiiiiijkllmmnnoooooopqrrsssttuuvwxyz\";\n if(!$no_spaces)\n $characters .= \" \";\n $max_length = mt_rand($min, $max);\n $string = '';\n for ($i = 0; $i < $max_length; $i++)\n $string .= $characters[mt_rand(0, (strlen($characters) - 1))];\n return $string;\n }\n\n // Random paragraph\n if($type === 'sentence')\n {\n $sentence = ucfirst(fixtures_lorem_ipsum(mt_rand($min, $max), 1));\n return ($no_periods) ? $sentence : $sentence.'.';\n }\n\n // Random text\n if($type === 'text')\n {\n $text = '';\n $max_length = mt_rand($min, $max);\n for ($i = 0; $i < $max_length; $i++)\n {\n $text .= ($i) ? '\\r\\n\\r\\n' : '';\n $text .= ucfirst(fixtures_lorem_ipsum(mt_rand(100, 400), 1)).'.';\n }\n return $text;\n }\n}", "function generateFeatureName($feature_type) {\n\twriteLog(\"generateFeatureName()\");\n\t\n\tsrand();\n\t$syllables = rand(2,4);\n\twriteLog(\"generateFeatureName(): Type: \" . $feature_type);\n\t$name = \"\";\n\t\n\tfor ($s = 0; $s < $syllables; $s++) {\n\t\t\n\t\t$consonant = \"a\";\n\t\twhile ($consonant == \"a\" || $consonant == \"e\"|| $consonant == \"i\" || $consonant == \"o\" || $consonant == \"u\") {\n\t\t\t$consonant = chr(rand(97, 122));\n\t\t}\n\t\twriteLog(\"generateFeatureName(): Consonant: \" . $consonant);\n\t\t\n\t\t$vowel = \"x\";\n\t\twhile ($vowel != \"a\" && $vowel != \"e\" && $vowel != \"i\" && $vowel != \"o\" && $vowel != \"u\") {\n\t\t\t$vowel = chr(rand(97, 122));\n\t\t}\n\t\twriteLog(\"generateFeatureName(): Vowel: \" . $vowel);\n\t\t\n\t\t$name = $name . $consonant . $vowel;\n\t\t$consonant = \"a\";\n\t\t$vowel = \"x\";\n\t\t\n\t}\n\t\n\t$name = $name . \" \" . $feature_type;\n\t\n\twriteLog(\"generateFeatureName(): Name: \" . $name);\n\t\n\treturn ucwords($name);\n\t\n}", "function random_string(int $length, bool $puncted = false): string\n{\n return Strings::random($length, $puncted);\n}", "function createRand()\n{\n\t$up = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t$down = \"abcdefghijklmnopqrstuvwxyz\";\n\t$num = \"1234567890\";\n\t$upRand = str_shuffle($up) . str_shuffle($up);\n\t$downRand = str_shuffle($down) . str_shuffle($down);\n\t$numRand = str_shuffle($num) . str_shuffle($num);\n\t$randStr1 = str_shuffle($upRand.$downRand.$numRand);\n\t$randStr2 = str_shuffle($upRand.$downRand.$numRand);\n\t$randStrFull = str_shuffle($randStr1.$randStr2);\n\t$randStrFinal = str_shuffle(substr($randStrFull,0,8));\n\treturn $randStrFinal;\n}", "public function generateString($length, $has_lower, $has_upper, $has_number, $has_special_character){\n $lower = 'abcdefghijklmnopqrstuvwxyz';\n $upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $number = '0123456789';\n $special = '~!@#$%^&*()_+-';\n $characters = '';\n if ($has_lower) {\n $characters .= $lower;\n }\n if ($has_upper) {\n $characters .= $upper;\n }\n if ($has_number) {\n $characters .= $number;\n }\n if ($has_special_character) {\n $characters .= $special;\n }\n if (!$characters) {\n $characters = $number . $lower . $upper . $special;\n }\n $charactersLength = strlen($characters);\n $randomString = '';\n for ($i = 0; $i < $length; $i++) {\n $randomString .= $characters[rand(0, $charactersLength - 1)];\n }\n return $randomString;\n }", "function GenerateSentence()\n{\n $nb=rand(1,10);\n $s='';\n for($i=1;$i<=$nb;$i++)\n $s.=GenerateWord().' ';\n return substr($s,0,-1);\n}", "private function generate()\n {\n $output = '';\n $length = strlen($this->str);\n\n\n for ($i = 1; $i < 5; $i++) {\n // get random char\n $char = $this->str[rand(0, $length - 1)];\n $output .= $char;\n\n // get font size\n $fontSize = ($this->level > 1) ? rand(20, 48) : 28;\n imagettftext($this->imageResource, $fontSize, rand(-35, 35), 35 * $i, 55, imagecolorallocate($this->imageResource, rand(0, 240), rand(0, 240), rand(0, 240)), $this->font, $char);\n }\n\n $this->code = ($this->caseSensitive) ? $output : strtolower($output);\n }", "public function gen_random_string(){\n\t\t$chars =\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\n\t\t$final_rand='';\t\t\n\t\tfor($i=0;$i<4; $i++) {\t\t \n\t\t$final_rand .= $chars[ rand(0,strlen($chars)-1)];\n\t\t}\t\t\n\t\treturn $final_rand;\t\n\t}", "function get_buffer_polygone_for_point_wkt($lon,$lat,$d_metres){\n \n $points = array();\n for($i = 0; $i < 360; $i = $i + 10){\n $points[] = get_point_for_distance($lon,$lat,$d_metres / 1000,$i);\n }\n \n // print_r($points);\n \n $out = \"POLYGON((\";\n for($i = 0; $i < count($points); $i++){\n if($i > 0) $out .= ', ';\n $out .= implode(' ', $points[$i]);\n }\n $out .= ', ' . implode(' ', $points[0]); // ends with start point\n $out .= \"))\";\n \n return $out;\n \n}", "function str_makerand ($minlength, $maxlength, $useupper, $usespecial, $usenumbers)\n{\n $charset = \"abcdefghijklmnopqrstuvwxyz\";\n if ($useupper) $charset .= \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n if ($usenumbers) $charset .= \"0123456789\";\n if ($usespecial) $charset .= \"_-\"; // Note: using all special characters this reads: \"~!@#$%^&*()_+`-={}|\\\\]?[\\\":;'><,./\";\n if ($minlength > $maxlength) $length = mt_rand ($maxlength, $minlength);\n else $length = mt_rand ($minlength, $maxlength);\n for ($i=0; $i<$length; $i++) $key .= $charset[(mt_rand(0,(strlen($charset)-1)))];\n return $key;\n}", "protected function random_string()\n {\n $key = '';\n $keys = array_merge( range('a','z'), range(0,9) );\n\n for($i=0; $i<10; $i++)\n {\n $key .= $keys[array_rand($keys)];\n }\n\n return $key;\n }", "function gen_pin(){\n $rand_num = rand(6, 12);\n $permitted_chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $pin = substr(str_shuffle($permitted_chars), 0, $rand_num);\n return $pin;\n }", "function generateSku(){\n\t\t$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t$sku = mt_rand(10000, 99999) . mt_rand(10000, 99999) . $characters[mt_rand(0, strlen($characters) - 1)];\n\t\treturn str_shuffle($sku);\n\t}", "function w_generate_text($profile, $length, $seed = '') {\n $coherence = count(explode(' ', (current(array_keys($profile)))));\n if (!$seed) $seed = array_rand($profile);\n $text = explode(' ', $seed);\n while (count($text) < $length) {\n $last = implode(' ', array_slice($text, -$coherence));\n if (!isset($profile[$last])) break; // end of chain error.\n $text[] = skewed_random($profile[$last]);\n }\n return implode(' ', $text);\n}", "function GenerateSentence()\n{\n\t$nb=rand(1,10);\n\t$s='';\n\tfor($i=1;$i<=$nb;$i++)\n\t\t$s.=GenerateWord().' ';\n\treturn substr($s,0,-1);\n}", "function SET_randomstring()\n{\n$therootstring=\"hfhH828((98189Pp{2882ussUUIQOEO.,,..<>:!@44URURHKJDKkdshdhks93498400)*&^%ddg!@@$$#ehhfshdgfshgfjhHDG2948874DHCH BNVNV,.???{{[[]27373GAFGF\";\n$thereturnstring=\"\";\n$length=rand(32,67);\nfor($i=0;$i<$length;$i++)\n {\n $thereturnstring=$thereturnstring.$therootstring[rand(0,(strlen($therootstring)-1))];\n }\nreturn $thereturnstring;\n}", "public function randomize($numberOfLetters=6, $lettersType='low') {\n $lowercase = array(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\", \"m\", \"n\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\", \"w\", \"x\", \"y\", \"z\");\n $uppercase = array(\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\", \"L\", \"M\", \"N\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\", \"W\", \"X\", \"Y\", \"Z\");\n $figures = array(\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\");\n $character = array(\"!\", \"?\", \"@\", \"$\", \"&\", \"*\", \"#\");\n // Builds up the array of characters.\n switch (strtolower($lettersType)) {\n case \"low\" :\n $array = array_merge($lowercase);\n break;\n case \"upper\" :\n $array = array_merge($uppercase);\n break;\n case \"figures\" :\n $array = array_merge($figures);\n break;\n case \"character\" :\n $array = array_merge($character);\n break;\n case \"lowfig\" :\n $array = array_merge($lowercase, $figures);\n break;\n case \"uppfig\" :\n $array = array_merge($uppercase, $figures);\n break;\n case \"all\" :\n default:\n $array = array_merge($lowercase, $uppercase, $figures, $character);\n break;\n }\n // Random right number of letters and fixed the \"string\".\n $string = \"\";\n $count = count($array) - 1;\n for ($i = 0; $i < $numberOfLetters; $i++) {\n $random = rand(0, $count);\n $string .= $array[$random];\n }\n \n return $string;\n }", "function makeRandomString($minlength, $maxlength, $useupper, $usespecial, $usenumbers) {\n\t\t$charset = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tif ($useupper) $charset .= \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tif ($usenumbers) $charset .= \"0123456789\";\n\t\tif ($usespecial) $charset .= \"~@#$%^*()_+-={}|][\"; // Note: using all special characters this reads: \"~!@#$%^&*()_+`-={}|\\\\]?[\\\":;'><,./\";\n\t\tif ($minlength > $maxlength) $length = mt_rand ($maxlength, $minlength);\n\t\telse $length = mt_rand ($minlength, $maxlength);\n\t\tfor ($i=0; $i<$length; $i++) $key .= $charset[(mt_rand(0,(strlen($charset)-1)))];\n\t\treturn $key;\n\t}", "function random_text()\n{\n\tstatic $words=array('fish','cheese','soup','tomato','alphabet','whatever','cannot','be','bothered','to','type','many','more','will','be','here','all','day');\n\tstatic $word_count=NULL;\n\tif (is_null($word_count)) $word_count=count($words);\n\n\t$out='';\n\tfor ($i=0;$i<30;$i++)\n\t{\n\t\tif ($i!=0) $out.=' ';\n\t\t$out.=$words[mt_rand(0,$word_count-1)];\n\t}\n\treturn $out;\n}", "function random_word($id = 20){\n\t\t$pool = '1234567890abcdefghijkmnpqrstuvwxyz';\n\t\t\n\t\t$word = '';\n\t\tfor ($i = 0; $i < $id; $i++){\n\t\t\t$word .= substr($pool, mt_rand(0, strlen($pool) -1), 1);\n\t\t}\n\t\treturn $word; \n\t}", "function randString($length) {\n $validCharacters = \"ABCDEFGHIJKLMNPQRSTUXYVWZ123456789\";\n $validCharNumber = strlen($validCharacters);\n $result = \"\";\n\n for ($i = 0; $i < $length; $i++) {\n $index = mt_rand(0, $validCharNumber - 1);\n $result .= $validCharacters[$index];\n \t}\n\treturn $result;}", "function random_word($id = 20){\r\n\t\t$pool = '1234567890abcdefghijkmnpqrstuvwxyz';\r\n\r\n\t\t$word = '';\r\n\t\tfor ($i = 0; $i < $id; $i++){\r\n\t\t\t$word .= substr($pool, mt_rand(0, strlen($pool) -1), 1);\r\n\t\t}\r\n\t\treturn $word;\r\n\t}", "function createKgMid() {\n $randomStr = '';\n $splitIndex = [8, 12, 16, 20];\n for ($index=0; $index < 32; $index++) {\n if (in_array($index, $splitIndex)) {\n $randomStr .= '-';\n }\n $randomStr .= dechex(random_int(0, 15));\n }\n return md5($randomStr);\n}", "function randomString($length = 24) {\n $characters = '02468AEIOUY'; // Only \"Even\" numbers, and Vowels used to make random string.\n $String = '';\n for ($i = 0; $i < $length; $i++) {\n $String .= $characters[rand(0, strlen($characters) - 1)];\n }\n return $String;\n}", "function gRS($length = 30) \r\n\t\t{\r\n\t\t $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n\t\t $charactersLength = strlen($characters);\r\n\t\t $randomString = '';\r\n\t\t for ($i = 0; $i < $length; $i++)\r\n\t\t {\r\n\t\t $randomString .= $characters[rand(0, $charactersLength - 1)];\r\n\t\t }\r\n\t\t return $randomString;\r\n\t\t}", "function cvf_td_generate_random_code_foreditbuis($length=10) {\n\t$string = '';\n\t$characters = \"23456789ABCDEFHJKLMNPRTVWXYZabcdefghijklmnopqrstuvwxyz\";\n\tfor ($p = 0; $p < $length; $p++) {\n\t\t$string .= $characters[mt_rand(0, strlen($characters)-1)];\n\t}\n\treturn $string;\n}", "public function setRandomTypeOfBattle()\n {\n switch(rand(0, 9)) {\n case 0: return 'Mountain';\n case 1: return 'Water';\n case 2: return 'Open land';\n case 3: return 'Water';\n case 4: return 'Open land';\n case 5: return 'Woods';\n case 6: return 'Woods';\n case 7: return 'Water';\n case 8: return 'Open land';\n case 9: return 'Open land';\n }\n }", "function rd2wgs($x, $y) {\n // Calculate WGS84 coördinates\n $dX = ($x - 155000) * pow(10, - 5);\n $dY = ($y - 463000) * pow(10, - 5);\n $SomN = (3235.65389 * $dY) + (- 32.58297 * pow($dX, 2)) + (- 0.2475 *\n pow($dY, 2)) + (- 0.84978 * pow($dX, 2) *\n $dY) + (- 0.0655 * pow($dY, 3)) + (- 0.01709 *\n pow($dX, 2) * pow($dY, 2)) + (- 0.00738 *\n $dX) + (0.0053 * pow($dX, 4)) + (- 0.00039 *\n pow($dX, 2) * pow($dY, 3)) + (0.00033 * pow(\n $dX, 4) * $dY) + (- 0.00012 *\n $dX * $dY);\n $SomE = (5260.52916 * $dX) + (105.94684 * $dX * $dY) + (2.45656 *\n $dX * pow($dY, 2)) + (- 0.81885 * pow(\n $dX, 3)) + (0.05594 *\n $dX * pow($dY, 3)) + (- 0.05607 * pow(\n $dX, 3) * $dY) + (0.01199 *\n $dY) + (- 0.00256 * pow($dX, 3) * pow(\n $dY, 2)) + (0.00128 *\n $dX * pow($dY, 4)) + (0.00022 * pow($dY,\n 2)) + (- 0.00022 * pow(\n $dX, 2)) + (0.00026 *\n pow($dX, 5));\n\n $Latitude = 52.15517 + ($SomN / 3600);\n $Longitude = 5.387206 + ($SomE / 3600);\n\n return array(\n 'latitude' => $Latitude ,\n 'longitude' => $Longitude);\n}", "private function genTk() : string{\n $this->checkNotConnected();\n $tk = \"\";\n do{\n for($i = 0; $i < 4; $i++) $tk .= (string)random_int(0, 9);\n }while($this->ckTokenClientEx(base64_encode($tk)));\n return base64_encode($tk);\n }", "function random_charo( $panjang ) { \n $karakter = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; \n $string = ''; \n for ( $i = 0; $i < $panjang; $i++ ) { \n $pos = rand( 0, strlen( $karakter ) - 1 ); \n $string .= $karakter{$pos}; \n } \nreturn \"OPERA\";\n}", "public static function generatePassword()\n\t{\n\t\t$consonants = array(\"b\", \"c\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \"m\", \"n\", \"p\", \"r\", \"s\", \"t\", \"v\", \"w\", \"x\", \"y\", \"z\");\n\t\t$vocals = array(\"a\", \"e\", \"i\", \"o\", \"u\");\n\n\t\t$password = '';\n\n\t\tsrand((double)microtime() * 1000000);\n\t\tfor ($i = 1; $i <= 4; $i++) {\n\t\t\t$password .= $consonants[rand(0, 19)];\n\t\t\t$password .= $vocals[rand(0, 4)];\n\t\t}\n\t\t$password .= rand(0, 9);\n\n\t\treturn $password;\n\t}", "public function getRandomAlphaNumStr(): string\n {\n $string = '';\n\n while (($len = \\strlen($string)) < 20) {\n $size = 20 - $len;\n\n $bytes = \\random_bytes($size);\n\n $string .= \\substr(\n \\str_replace(['/', '+', '='], '', \\base64_encode($bytes)), 0, $size);\n }\n\n return $string;\n }", "function w_rand($weights)\n {\n $r = mt_rand(1,1000);\n $offset = 0;\n foreach ($weights as $k => $w)\n {\n $offset += $w*10;\n if ($r <= $offset)\n return $k;\n }\n }", "function generateRandomString(\n $length,\n $allowedCharacters = '123456789ABCDEFGHIJKLMNPQRSTUVWXYZ'//No 0's or O's\n )\n {\n $maxIndex = strlen($allowedCharacters) - 1;\n $string = '';\n for ($i = 1; $i <= $length; $i++) {\n $string .= $allowedCharacters[mt_rand(0, $maxIndex)];\n }\n return $string;\n }", "function generate_word($num_consonants)\r\n\t{\r\n\t\t$output = \"\"; // Return variable\r\n\t\t$vowels = array('a', 'e', 'i', 'o', 'u');\r\n\t\t\r\n\t\tfor($i = 0; $i < $num_consonants; $i++)\r\n\t\t{\r\n\t\t\t// Pick a random character and a vowel\r\n\t\t\t$char = 98;\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\t$char = rand(98, 122); // b - z\r\n\t\t\t}\r\n\t\t\twhile($char == 101 || $char == 105 || $char == 111 || $char == 117);\r\n\t\t\t$vowel_selector = rand(0, 4);\r\n\t\t\t\r\n\t\t\t// At this point, we've got char and a vowel\r\n\t\t\t// Now we decide which one goes first\r\n\t\t\t$toss = rand(0, 1);\r\n\t\t\tif ($toss == 1)\r\n\t\t\t{\r\n\t\t\t\t$output = $output . chr($char) . $vowels[$vowel_selector];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$output = $output . $vowels[$vowel_selector] . chr($char);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $output;\r\n\t}", "function threeLetterWord() {\n\t$consonants = array(\"b\", \"c\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \"m\", \"n\", \"p\", \"q\", \"r\", \"s\", \"t\", \"v\", \"w\", \"x\", \"y\", \"z\");\n\t$vowels = array('a', 'e', 'i', 'o', 'u');\n\t$str = $consonants[array_rand($consonants)].$vowels[array_rand($vowels)].$consonants[array_rand($consonants)];\n\t$badWords = array(\"bum\", \"tit\", \"cum\", \"dic\", \"dik\", \"pot\", \"fap\", \"fat\", \"coc\", \"cok\", \"jew\",\n\t \"fuk\", \"fuc\", \"jiz\", \"fag\", \"git\", \"nut\", \"vag\", \"sex\", \"nob\", \"cox\", \"kok\", \"gay\", \"sob\", \"sux\");\n\tif (in_array($str, $badWords)) {\n $str = threeLetterWord();\n\t}\n\treturn $str;\n}", "function generateRandomString($length = 4) {\r\n $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n $charactersLength = strlen($characters);\r\n $randomString = '';\r\n for ($i = 0; $i < $length; $i++) {\r\n $randomString .= $characters[rand(0, $charactersLength - 1)];\r\n }\r\n return \"BLMOII\".$randomString;\r\n}", "private function _generate()\n {\n $randmax_bits = strlen(base_convert(mt_getrandmax(), 10, 2));\n $x = '';\n\n while (strlen($x) < 128) {\n $maxbits = (128 - strlen($x) < $randmax_bits) ? 128 - strlen($x) : $randmax_bits;\n $x .= str_pad(base_convert(mt_rand(0, pow(2, $maxbits)), 10, 2), $maxbits, \"0\", STR_PAD_LEFT);\n }\n\n // break into fields\n $a = array();\n $a['time_low_part'] = substr($x, 0, 32);\n $a['time_mid'] = substr($x, 32, 16);\n $a['time_hi_and_version'] = substr($x, 48, 16);\n $a['clock_seq'] = substr($x, 64, 16);\n $a['node_part'] = substr($x, 80, 48);\n\n // Apply bit masks for \"random or pseudo-random\" version per RFC\n $a['time_hi_and_version'] = substr_replace($a['time_hi_and_version'], '0100', 0, 4);\n $a['clock_seq'] = substr_replace($a['clock_seq'], '10', 0, 2);\n\n // Format output\n return sprintf('%s-%s-%s-%s-%s',\n str_pad(base_convert($a['time_low_part'], 2, 16), 8, \"0\", STR_PAD_LEFT),\n str_pad(base_convert($a['time_mid'], 2, 16), 4, \"0\", STR_PAD_LEFT),\n str_pad(base_convert($a['time_hi_and_version'], 2, 16), 4, \"0\", STR_PAD_LEFT),\n str_pad(base_convert($a['clock_seq'], 2, 16), 4, \"0\", STR_PAD_LEFT),\n str_pad(base_convert($a['node_part'], 2, 16), 12, \"0\", STR_PAD_LEFT));\n }", "function readableRandomString($length = 6)\n{\n $string = '';\n $vowels = array(\"a\", \"e\", \"i\", \"o\", \"u\");\n $consonants = array(\n 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm',\n 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z',\n );\n // Seed it\n srand((double) microtime() * 1000000);\n $max = $length / 2;\n for ($i = 1; $i <= $max; $i++) {\n $string .= $consonants[rand(0, 19)];\n $string .= $vowels[rand(0, 4)];\n }\n return $string;\n}", "function random_str($limit = 12, $context = 'abcdefghijklmnopqrstuvwxyz1234567890') {\n $l = ($limit <= strlen($context) ? $limit : strlen($context));\n return substr(str_shuffle($context), 0, $l);\n}", "public function randomTriangular()\n {\n $u = $this::randomFloat(0,1);\n $a = $this->min();\n $b = $this->max();\n $c = $this->centre;\n $Fc = ($c - $a) / ($b - $a);\n\n if (0 < $u && $u < $Fc) {\n return $a + sqrt($u * ($b - $a) * ($c - $a));\n } else {\n return $b - sqrt((1 - $u) * ($b - $a) * ($b - $c));\n }\n }", "function wkt_generate_linestring($start = FALSE, $segments = FALSE) {\n $start = $start ? $start : $this->random_point();\n $segments = $segments ? $segments : $this->dd_generate(1, 5, TRUE);\n $points[] = $start[0] . ' ' . $start[1];\n // Points are at most 1km away from each other\n for ($i = 0; $i < $segments; $i += 1) {\n $diff = $this->random_point();\n $start[0] += $diff[0] / 100;\n $start[1] += $diff[1] / 100;\n $points[] = $start[0] . ' ' . $start[1];\n }\n return implode(\", \", $points);\n }", "private function generateNonce()\n {\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $string = '';\n $max = mb_strlen( $characters, '8bit' ) - 1;\n\n for ( $i = 0; $i < 32; ++$i )\n {\n $string .= $characters[random_int( 0, $max )];\n }\n\n return $string;\n }", "public function shapeString() : string\n {\n return (string) $this->m . ' x ' . (string) $this->n;\n }", "function generate_random_str($no_of_chars) \n{\n return substr(md5(microtime()),rand(0,26),$no_of_chars);\n}", "public function wktGenerateMultipolygon();", "function random_strings($length_of_string) \n {\n $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \n \n // Shufle the $str_result and returns substring \n // of specified length \n return substr(str_shuffle($str_result), \n 0, $length_of_string); \n }", "function random_strings($length_of_string) \n {\n $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \n \n // Shufle the $str_result and returns substring \n // of specified length \n return substr(str_shuffle($str_result), \n 0, $length_of_string); \n }", "function getRandomString($length) {\n\t$validCharacters = \"123456789abcdefghijklmnopqrstuxyvwzABCDEFGHIJKLMNOPQRSTUXYVWZ\";\n\t$validCharNumber = strlen($validCharacters);\n\t$result = \"\";\n\t\n\tfor ($i = 0; $i < $length; $i++) {\n\t\t$index = mt_rand(0, $validCharNumber - 1);\n\t\t$result .= $validCharacters[$index];\n\t}\n\t\n\treturn $result;\n}", "public function createRandomStringAlwaysReturnsStringsOfGivenLengthDataProvider() {\n\t\treturn array(\n\t\t\t'default params' => array(\n\t\t\t\t32,\n\t\t\t\tTRUE,\n\t\t\t),\n\t\t\t'default length lowercase' => array(\n\t\t\t\t32,\n\t\t\t\tFALSE,\n\t\t\t),\n\t\t\t'60 length' => array(\n\t\t\t\t60,\n\t\t\t\tTRUE,\n\t\t\t),\n\t\t\t'60 length lowercase' => array(\n\t\t\t\t60,\n\t\t\t\tFALSE,\n\t\t\t),\n\t\t);\n\t}", "public function generate(?string $mask = null, ?string $characters = null): string\n {\n $mask = $mask ?: $this->config->getMask();\n $characters = $characters ?: $this->config->getCharacters();\n\n $code = preg_replace_callback('/\\*/', function (array $matches) use ($characters) {\n return $characters[random_int(0, mb_strlen($characters) - 1)];\n }, $mask);\n\n return $this->wrap(\n $code,\n $this->config->getPrefix(),\n $this->config->getSuffix(),\n $this->config->getSeparator()\n );\n }", "function random_str($length) {\n\t\t$keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t$str = '';\n\t\t$keyspaceLength = strlen($keyspace) - 1; //put the length -1 in cache\n\t\tfor ($i = 0; $i < $length; ++$i) {\n\t\t\t$str .= $keyspace[random_int(0, $keyspaceLength)];\n\t\t}\n\t\treturn $str;\n\t}", "function random_str($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')\n{\n $pieces = [];\n $max = mb_strlen($keyspace, '8bit') - 1;\n for ($i = 0; $i < $length; ++$i) {\n $pieces []= $keyspace[random_int(0, $max)];\n }\n return implode('', $pieces);\n}", "function randomx($mode = 0, $leng = '3~5', $rndkey = -1)\n{\n // $seeds = $mode == 0 ? range('a', 'z') : range(0, 9);\n $range_a = range('a', 'z');\n $range_b = range('A', 'Z');\n $range_c = range(0, 9);\n switch ($mode) {\n case 0:\n $seeds = $range_a;\n break;\n case 1:\n $seeds = $range_c;\n break;\n case 2:\n $seeds = array_merge($range_a, $range_c);\n break;\n case 3:\n $seeds = array_merge($range_a, $range_b);\n break;\n case 4:\n $seeds = $range_b;\n break;\n case 5:\n $seeds = array_merge($range_a, $range_b, $range_c);\n break;\n }\n // if ($rndkey != -1) {\n // mt_srand($rndkey);\n // }\n $parselen = explode('~', $leng);\n if (count($parselen) == 1) {\n $leng = (int) $leng;\n } else {\n $leng = mt_rand((int) $parselen[0], (int) $parselen[1]);\n }\n $x = '';\n // if ($mode != 1) {\n // // ext char out of $charlist\n // global $charlist;\n // foreach ($seeds as $s_k => $s_v) {\n // if (strpos($charlist, $s_v) !== false) {\n // unset($seeds[$s_k]);\n // }\n // }\n // $seeds = array_values($seeds);\n // }\n shuffle($seeds);\n // $seedlen = count($seeds) - 1;\n // for ($k = $seedlen; $k > 0; $k--){\n // $j = mt_rand(0, $k);\n // $tmpseed = $seeds[$k];\n // $seeds[$k] = $seeds[$j];\n // $seeds[$j] = $tmpseed;\n // }\n // print_r($seeds);die;\n // for ($i=0; $i < $leng; $i++) {\n // // if ($rndkey != -1) {\n // // mt_srand($rndkey+$i);\n // // }\n // // $x .= $seeds[mt_rand(0, $seedlen)];\n // if (!isset($seeds[$i])) {\n // break;\n // }\n // $x .= $seeds[$i];\n // }\n $x = substr(implode('', $seeds), 0, $leng);\n // mt_srand();\n // if (in_array($mode, array(2, 5))) {\n // $x = substr($x, 0, strlen($x) - 1) . $range_a[array_rand($range_a)];\n // }\n return $x;\n}", "function random_string($length,$char_set) {\n\t//parameter of generate_password func\n\t$temp = '';\n\tfor($i=0; $i < $length ; $i++)\n\t{\n\t\t$temp .= random_char($char_set);\n\t}\n\treturn $temp;\n}", "function random_strings($length_of_string) \n {\n $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; \n \n return substr(str_shuffle($str_result), \n 0, $length_of_string); \n }", "function genera_password($num=8,$randnum=0){ // By Kernellover \n $voc = 'aeiou'; \n $con = 'bcdfgjklmnpqrstwxyz';\n\t$nvoc = strlen($voc)-1;\n\t$ncon = strlen($con)-1;\n\t$psw =mt_rand(0,1)?$con[mt_rand(0,$ncon)]:''; // defineix si comença per vocal o consonant\n\n\t\n for ($n=0; $n<=ceil($num/2); $n++){ \n $psw .= $voc[mt_rand(0,$nvoc)]; \n $psw .= $con[mt_rand(0,$ncon)]; \n }\n\n\t$cua=$randnum?mt_rand(1,$randnum):'';\n\t$psw = str_replace (array('q','quu','yi','iy'),array('qu','que','ya','ya'),$psw);\n $psw = substr($psw,0,$num-strlen($cua)).$cua; \n\n\n return $psw; \n}", "function generateRandStr($length){\n \t\t$randstr = \"\";\n \t\tfor($i=0; $i<$length; $i++){\n \t\t$randnum = mt_rand(0,61);\n\t\t\t\tif($randnum < 10){\n \t\t$randstr .= chr($randnum+48);\n \t\t}else if($randnum < 36){\n \t\t$randstr .= chr($randnum+55);\n \t\t}else{\n \t\t$randstr .= chr($randnum+61);\n \t\t}\n \t\t}\n \t\treturn $randstr;\n \t\t}", "protected static function randomString()\n {\n $chars = \"abcdefghijklmnopqrstuvwxyz\";\n $str = \"\";\n for ($i = 0; $i < 10; $i++) {\n $str .= $chars[rand(0, strlen($chars)-1)];\n }\n return $str;\n }", "public static function getRandomString($length = 20, $num = 1) {\n if ($num < 1) {\n return NULL;\n }\n\n $string_array = array();\n foreach (range(0, $num - 1) as $index) {\n $string_array[] = substr(\n str_shuffle(\n \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n ),\n 0,\n $length\n );\n }\n\n return self::normalize($string_array);\n }", "function createRandomString($maxLength = 24)\n\t{\n\n\t\t$bytes = floor((int) $maxLength / 4) * 3;\n\n\t\t$data = openssl_random_pseudo_bytes($bytes);\n\n\t\treturn encodeUrlSafe($data);\n\n\t}", "function wpsl_random_chars( $length = 5 ) {\n\n $random_chars = substr( str_shuffle( \"abcdefghijklmnopqrstuvwxyz\" ), 0, $length );\n\n return $random_chars;\n}", "function generateRK ($length)\r\n {\r\n $vowels = \"AEIOUY\";\r\n $consonants = \"BDGHJLMNPQRSTVWXZ0123456789\";\r\n $password = \"\";\r\n $alt = time() % 2;\r\n for ($i = 0; $i < $length; $i++) {\r\n if ($alt == 1) {\r\n $password .= $consonants[(rand() % strlen($consonants))];\r\n $alt = 0;\r\n } else {\r\n $password .= $vowels[(rand() % strlen($vowels))];\r\n $alt = 1;\r\n }\r\n }\r\n return $password;\r\n }", "function createRandomToken(){\n\t\t\t$chars = \"abcdefghijkmnopqrstuvwxyz023456789\";\n\t\t\tsrand((double)microtime()*1000000);\n\t\t\t$i = 0;\n\t\t\t$pass = '' ;\n\t\t\twhile ($i <= 7){\n\t\t\t\t$num = rand() % 33;\n\n\t\t\t\t\t\t\t$tmp = substr($chars, $num, 1);\n\n\t\t\t\t\t\t\t$pass = $pass . $tmp;\n\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn $pass;\n\t\t\t\t\t\t}", "function random_string($max = 8)\n {\n $rtn = \"\";\n $chars = explode(\" \", \"a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9\");\n for ($i = 0; $i < $max; $i++) {\n $rnd = array_rand($chars);\n $rtn .= base64_encode(md5($chars[$rnd]));\n }\n return substr(str_shuffle(strtolower($rtn)), 0, $max);\n }", "function generateWordCloud( $json, $height, $width ) \n {\n $text = '' ;\n foreach ( $json as $tweet ) {\n $text .= ' ' ;\n $text .= $tweet['text'] ;\n }\n\n require_once('libraries/unirest-php/lib/Unirest.php');\n\n $response = Unirest::post(\n \"https://gatheringpoint-word-cloud-maker.p.mashape.com/index.php\",\n array(\n \"X-Mashape-Authorization\" => \"OkVWcztYb4IzHPzPd41C7uo1xWWaaB1s\"\n ),\n array(\n \"height\" => $height,\n \"textblock\" => $text,\n \"width\" => $width,\n \"config\" => \"n\\/a\"\n )\n );\n\n return $response->body->url ;\n }", "function generateRandomPostcode() {\n return sprintf(\"%06d\", rand(0, 999999));\n}", "function GenerateSentence() {\n $nb = rand(1, 10);\n $s = '';\n for ($i = 1; $i <= $nb; $i++)\n $s .= $this->GenerateWord() . ' ';\n return substr($s, 0, -1);\n }", "function generateWC() {\n \t$words = $this->getFreqArray($this->words);\n \t$tags = 0;\n\t $cloud = array();\n \tif (count($words)==0) return implode('', $cloud);\n\n \tarsort($words);\n\n\t /* This word cloud generation algorithm was taken from the Wikipedia page on \"word cloud\"\n\t with some minor modifications to the implementation */\n\t \n\t /* Initialize some variables */\n\t $fmax = 3; /* Maximum font size */\n\t $fmin = 0; /* Minimum font size */\n\t $mean = array_sum($words) / count($words);\n\t $sd = $this->standardDeviation($words, $mean);\n\t\tif ($sd == 0)\n\t\t{\n\t\t\t//Catch division by 0\n\t\t\t$sd = 1;\n\t\t}\n\n\t\t$artist_url = $this->getArtistsURL();\n\t foreach ($words as $word => $freq) {\n\t \t$wordSD = (($freq - $mean) / $sd);\n\t \tif ($wordSD > 1.2) $font_size = $fmax;\n\t \telseif ($wordSD < -1.2) $font_size = $fmin;\n\t \telse $font_size = (($fmax+$fmin)/2) + ( ($wordSD/1.2) * (($fmax-$fmin)/2) );\n\t \t// Fontsize average + (ratio of standard deviations * Fontsize range/2)\n\t \t// ratio of standard deviation uses 1.2 because we assume that our data will\n\t \t// typically be no more than 1.2 standard deviations away from each other. \n\t \t// if there is an outlier, we just set it to the min or max font size.\n $color = $this->words[$word]->color;\n array_push($cloud, \"<a href='/LyricFloat/song-page.php?{$artist_url}searched-word={$word}'><span style=\\\"font-size: {$font_size}em; color: {$color};\\\">$word</span></a> \");\n $tags++;\n if ($tags >= $this->maxNumWords) break;\n\t }\n\n\t shuffle($cloud);\n\t \t \n\t return implode('', $cloud);\n }", "function randomname($number) {\n\t\t$charcators = \"1234456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM\";\n\t\t$str = \"\";\n\t\tfor($i = 0 ; $i < $number ; $i++) {\n\t\t\t$random = rand(0 , strlen($charcators) - 1);\n\t\t\t$str .= $charcators[$random];\n\t\t}\n\t\treturn $str;\n\n\t}", "function random_string($min_size = 10, $max_size = NULL)\n\t{\n\t\t$chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\n\t\tif ($max_size) {\n\t\t\t$str_size = mt_rand($min_size, $max_size);\n\t\t} else {\n\t\t\t$str_size = $min_size;\n\t\t}\n\n\t\tfor ($i = 0; $i < $str_size; $i++) {\n\t\t\t$string[$i] = substr($chars, mt_rand(0, strlen($chars) - 1), 1);\n\t\t}\n\n\t\treturn implode('', $string);\n\t}", "function RandomString($num) {\r\r\n mt_srand((double)microtime()*1000000);\r\r\n while (strlen($pass) < $num) {\r\r\n $i = chr(mt_rand (48,57)); \r\r\n $pass = $pass.$i; \r\r\n }\r\r\n return ($pass); \r\r\n}", "public function generateSku()\n {\n $number=mt_rand(1000,9999);\n if($this->checkSku($number)){\n return $this->generateSku();\n }\n return (string)$number;\n }", "function genrateRandomWords ($length, $words, $sep, $word_case) {\n\n $randomString = '';\n for ($i=0;$i < $length; $i++){\n //$randomString .= 'A';\n $randItem = array_rand($words);\n $word = $words[$randItem];\n\n switch ($word_case) {\n case \"upperCase\":\n $word = strtoupper($word);\n break;\n case \"lowerCase\":\n $word = strtolower($word);\n break;\n case \"camelCase\":\n $word = ucwords($word);\n break;\n default:\n $word = $word;\n }\n\n if ( $i == ($length -1) ) {\n $randomString .= $word;\n } else {\n $randomString .= $word.$sep;\n }\n }\n return $randomString;\n}" ]
[ "0.6305082", "0.6034616", "0.59992707", "0.5904042", "0.57367915", "0.5662001", "0.56549805", "0.5563936", "0.550679", "0.55066264", "0.55014354", "0.54956836", "0.5422564", "0.5392293", "0.53797483", "0.5377782", "0.5359167", "0.5356885", "0.5356478", "0.53319204", "0.53249115", "0.53137946", "0.53093463", "0.52979636", "0.5292056", "0.52840245", "0.527966", "0.52694154", "0.5250067", "0.524995", "0.5235282", "0.52346927", "0.5223562", "0.5217858", "0.5217773", "0.5216842", "0.52054894", "0.5199603", "0.5183531", "0.5177832", "0.5163655", "0.51620746", "0.5154497", "0.51173043", "0.51055175", "0.5095887", "0.5095223", "0.50938785", "0.50861275", "0.50838745", "0.508288", "0.5080805", "0.50756305", "0.50728035", "0.50719047", "0.50678", "0.5066156", "0.50633025", "0.5058884", "0.5057333", "0.5055058", "0.5047005", "0.50363225", "0.5035783", "0.50319946", "0.5028878", "0.5023681", "0.5016838", "0.50118566", "0.50089735", "0.50076944", "0.50017595", "0.4999389", "0.4999389", "0.49877864", "0.49848717", "0.49806002", "0.4979844", "0.49762705", "0.49730253", "0.49721232", "0.4971211", "0.4970475", "0.4967218", "0.49642465", "0.49626088", "0.49537814", "0.49520993", "0.49512556", "0.4950702", "0.49492395", "0.49462765", "0.49460348", "0.49361485", "0.49354705", "0.49352938", "0.49291947", "0.49243057", "0.49241188", "0.49225295" ]
0.7097173
0
make a line that looks like a line
function wkt_generate_linestring($start = FALSE, $segments = FALSE) { $start = $start ? $start : $this->random_point(); $segments = $segments ? $segments : $this->dd_generate(1, 5, TRUE); $points[] = $start[0] . ' ' . $start[1]; // Points are at most 1km away from each other for ($i = 0; $i < $segments; $i += 1) { $diff = $this->random_point(); $start[0] += $diff[0] / 100; $start[1] += $diff[1] / 100; $points[] = $start[0] . ' ' . $start[1]; } return implode(", ", $points); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function lineBreakCorrectlyTransformedOnWayToRteProvider() {}", "public function line($text) { return $this->l($text); }", "public function convert( $line );", "protected function createLineStringA(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(10, 10),\n ]);\n }", "public function lineTo($x, $y) {}", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function TextLine($value) {\n\t return $value . $this->LE;\n\t}", "private function makeLines()\n\t{\n\t\t$line = 1;\n\t\t/** @var Token $token */\n\t\tforeach ($this->tokens as $token)\n\t\t{\n\t\t\t$token->line = $line;\n\t\t\tif (preg_match_all(\"/\\\\n/\", $token->text, $m))\n\t\t\t{\n\t\t\t\t$line += count($m[0]);\n\t\t\t}\n\t\t}\n\t}", "function make_line_rules($str)\n{\n\tglobal $line_rules;\n\tstatic $pattern, $replace;\n\n\tif (! isset($pattern)) {\n\t\t$pattern = array_map(create_function('$a',\n\t\t\t'return \\'/\\' . $a . \\'/\\';'), array_keys($line_rules));\n\t\t$replace = array_values($line_rules);\n\t\tunset($line_rules);\n\t}\n\n\treturn preg_replace($pattern, $replace, $str);\n}", "public function getLine($line);", "public function line($value)\n {\n $this->setProperty('line', $value);\n return $this;\n }", "public function addLine(): Line\n {\n $line = new Line($this->getErrorRegistor());\n $this->line[] = $line;\n $line->setLineNumber(\\count($this->line));\n \\Logger::getLogger(\\get_class($this))->debug(\n __METHOD__.\" Line add to stack\"\n );\n return $line;\n }", "public function setLine($value)\n {\n return $this->set(self::_LINE, $value);\n }", "public function setLine($var)\n {\n GPBUtil::checkInt32($var);\n $this->line = $var;\n\n return $this;\n }", "private static function setLineIfPrevious(&$line)\n {\n static $previousLine = '';\n\n if ($previousLine) {\n $line = $previousLine.' '.trim($line);\n $previousLine = '';\n }\n\n if (preg_match('/(.+)\\\\\\$/', $line, $container)) {\n $previousLine = $container[1];\n }\n\n return $previousLine;\n }", "protected function createRingLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(1, 0),\n new Point(1, 1),\n new Point(0, 1),\n new Point(0, 0),\n ]);\n }", "public function setLine($line) {\n\t\t$this->line = $line;\n\t\treturn $this;\n\t}", "public function testPrependLinePrefix() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->setLineEnd(StringBuilder::LE_UNIX);\n\t\t\t$builder->prependLine(\"Hello\", false)->prependLine(\"World\", false);\n\n\t\t\t$this->assertEquals(\"\\nWorld\\nHello\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "private function processLine($line)\n {\n return\n '\"' .\n implode(\n \"\\\",\\\"\",\n array_map(\n function ($e) {\n if($e == '' || $e == 'NULL' || $e == null) return '\\\\N';\n return str_replace(\"\\n\", '\\n',\n $e\n );\n },\n $line\n )\n )\n . \"\\\"\\n\";\n }", "public static function from($data)\n {\n $line = new Line;\n $line->_original = $data;\n \n $isPassedDelimiter = false;\n foreach ($line->split($data) as $wordStr) {\n if (Word::hasDelimiter($wordStr)) {\n $isPassedDelimiter = true;\n continue;\n }\n \n if (empty($wordStr) || Word::hasJunk($wordStr)) {\n continue;\n }\n \n if ($line->hasMultipleColors($wordStr)) {\n $line->handleMultipleColors($wordStr);\n continue;\n }\n \n if ($line->isStick($wordStr)) {\n $line->_isStick = true;\n }\n \n $word = Word::from($wordStr);\n \n if ($isPassedDelimiter) {\n $word->asAfterDelimiter();\n }\n \n $word\n ->test()\n ->clean();\n \n if ($line->_isStick && $isPassedDelimiter\n && Word::hasStickOrientation($word)) {\n $word->asStickOrientation();\n }\n \n $line->_words[] = $word;\n }\n \n return $line;\n }", "public function addLine($line = null)\n {\n if (null === $line) {\n $this->line = [];\n return $this;\n }\n if ($line instanceof FHIRString) {\n $this->line[] = $line;\n return $this;\n }\n $this->line[] = new FHIRString($line);\n return $this;\n }", "protected function createLineStringB(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 10),\n new Point(15, 0),\n ]);\n }", "public function setLine($line);", "public function lineThrough()\n {\n $this->label.= '9;';\n return $this;\n }", "public function testPrependLineTerminate() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->setLineEnd(StringBuilder::LE_UNIX);\n\t\t\t$builder->prependLine(\"Hello\", true)->prependLine(\"World\", true);\n\n\t\t\t$this->assertEquals(\"World\\nHello\\n\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "public function setLineJoin($lineJoin = self::LINE_JOIN_MITER) {}", "final function getLine();", "public function typeLinestring(Fluent $column)\n {\n return 'LINESTRING';\n }", "function __paintCodeline($class, $num, $line) {\n\t\t$line = h($line);\n\n\t\tif (trim($line) == '') {\n\t\t\t$line = '&nbsp;'; // Win IE fix\n\t\t}\n\t\treturn '<div class=\"code-line ' . trim($class) . '\"><span class=\"line-num\">' . $num . '</span><span class=\"content\">' . $line . '</span></div>';\n\t}", "function _createLineRegEx() {\n\t\tswitch ($this->_listVersion) {\n\t\t\tcase 1:\n\t\t\t\t$this->_lineRegEx = '/^' . \n\t\t\t\t\timplode(preg_quote($this->_delim), array(\n\t\t\t\t\t\t'[dflcbpu]',\n\t\t\t\t\t\t'[0-9]{4}-[0-9]{2}-[0-9]{2}', // Date\n\t\t\t\t\t\t'[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?', // Time\n\t\t\t\t\t\t'[0-9]+', // Size\n\t\t\t\t\t\t'[0-9]+' // Depth\n\t\t\t\t\t)) . preg_quote($this->_delim) . '/';\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\t$this->_lineRegEx = '/^' . \n\t\t\t\t\timplode(preg_quote($this->_delim), array(\n\t\t\t\t\t\t'[dflcbpus\\-]',\n\t\t\t\t\t\t'[0-9]{4}-[0-9]{2}-[0-9]{2}', // Date\n\t\t\t\t\t\t'[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?', // Time\n\t\t\t\t\t\t'[0-9]+', // Size\n\t\t\t\t\t)) . preg_quote($this->_delim) . '/';\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function textLine($value)\n {\n return $value . $this->LE;\n }", "protected function createLineStringX(): LineStringEntity\n {\n return $this->createLineString([\n new Point(8, 15),\n new Point(4, 8),\n ]);\n }", "public function addedLine($line, $colspan=0)\n\t{\n\t\treturn $this->wrapLine('+', 'diff-addedline', $line, $colspan);\n\t}", "protected function new_line()\n {\n }", "protected function createStraightLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(2, 2),\n new Point(5, 5),\n ]);\n }", "function pt_convert_line_break($str){\n\treturn str_replace(\"\\n\",\"\\\\n\", str_replace(array(\"\\n\\r\", \"\\r\\n\", \"\\r\"),\"\\n\", $str));\n}", "protected function createLineStringC(): LineStringEntity\n {\n return $this->createLineString([\n new Point(2, 0),\n new Point(12, 10),\n ]);\n }", "private function parseLine($line)\n\t{\n\t\t// paragraphs will capture lines that start with decorations\n\t\t$callbacks = array(\n\t\t\t'paragraph' => '^[A-Za-z0-9\\'\\\"].*$',\n\t\t\t'decoration' => '(\\'\\'+)(.+?)\\1',\n\t\t\t'strikethrough' => '(\\~\\~)(.+?)\\1',\n\t\t\t'header' => '^(=+)(.+)\\1$',\n\t\t\t'tag' => '\\[\\[([A-Za-z]+)(\\:([^\\]]*))?\\]\\]',\n\t\t\t'link' => '\\[http:\\/\\/([^\\s\\]]+)([^\\]]+)?\\]',\n\t\t\t'internal_link' => '\\[\\[([\\w|\\#_ ]+)\\]\\]',\n\t\t\t'block_tag' => '^\\<([A-Za-z]+)\\>[ ]*$',\n\t\t);\n\n\t\t\n\t\t// $line = trim($line);\n\t\tif ($line === '') {\n\t\t\t$this->setState(WikiParser::$NO_STATE);\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ($callbacks as $c=>$p) {\n\t\t\t$parsed = true;\n\t\t\t$line = preg_replace_callback(\n\t\t\t\t'/'.$p.'/',\n\t\t\t\tarray($this, 'render_'.$c), rtrim($line));\n\t\t}\n\n\t\t// see if the state changes\n\t\tif ($line{0} == '*') {\n\t\t\t// are we working with a list\n\t\t\t$this->setState(WikiParser::$LIST_STATE);\n\t\t\t$line = '<li>'.substr($line, 1).'</li>';\n\t\t} elseif ($line{0} == ' ') {\n\t\t\t// are we working with a pre block\n\t\t\t$this->setState(WikiParser::$PRE_STATE);\n\t\t} else {\n\t\t\t$this->setState(WikiParser::$NO_STATE);\n\t\t}\n\n\t\t$line = trim($line);\n\t\tif ($line == '') return;\n\n\t\techo $line.\"\\n\";\n\t}", "public function newLine() {\n\t\t$this->_section=0;\n\t\t$this->_lineNumber++;\n\t\t$this->_text[$this->_lineNumber]=array();\n\t\t$this->_text[$this->_lineNumber][0]['text']='';\n\t\t$this->_text[$this->_lineNumber][0]['encoding']='';\n\t\t$this->_text[$this->_lineNumber][0]['font']=$this->_font;\n\t\t$this->_text[$this->_lineNumber][0]['fontSize']=$this->_fontSize;\n\t\t$this->_text[$this->_lineNumber][0]['width']=0;\n\n\t\t\n\t\t$this->_initializeLine();\n\t\t\n\t\t$this->_text[$this->_lineNumber]['alignment']=$this->_text[$this->_lineNumber-1]['alignment'];\n\t\t//add the last cell's height to the auto height if we have an auto-height box.\n\t\tif ($this->isAutoHeight()) {\n\t\t\t$this->_autoHeight+=$this->_text[$this->_lineNumber-1]['height'];\n\t\t}\n\t}", "function r_line($atts, $content = null) {\r\n return '<div class=\"line\"></div>';\r\n}", "protected function createLineStringY(): LineStringEntity\n {\n return $this->createLineString([\n new Point(12, 14),\n new Point(3, 4),\n ]);\n }", "protected function createLine(\n /** @noinspection PhpUnusedParameterInspection */\n Document\\DocumentInterface $document\n ) {\n return new Document\\DocumentLine();\n }", "public function contextLine($line)\n\t{\n\t\treturn $this->wrapLine(' ', 'diff-context', $line);\n\t}", "public function getLine();", "public function getLine();", "public function getLine();", "public function getLine();", "function RenderLyricsOnlyLine($line) {\r\n $this->SetLyricsFont();\r\n $this->Cell(0, 0, $line[\"lyrics\"]);\r\n return $this->GetStringWidth($line[\"lyrics\"]);\r\n }", "public function setLineJoinStyle($lineJoinStyle) {}", "protected function createAngularLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(3, 3),\n new Point(4, 15),\n new Point(5, 22),\n ]);\n }", "function get_line(&$format)\n{\n\tif (mb_strlen($format) === 0)\n\t\treturn false;\n\t\n\t$pos = mb_strpos($format, \"\\r\");\t\n\tif ($pos !== false)\n\t\t$format = mb_substr($format, 0, $pos) . mb_substr($format, $pos + 1);\n\t\n\t$pos = mb_strpos($format, \"\\n\");\n\t\n\tif ($pos === false)\n\t\t$pos = mb_strlen($format);\n\t\n\t$line = mb_substr($format, 0, $pos);\n\t$format = mb_substr($format, $pos + 1);\n\treturn $line;\n}", "public function getLineEndingStyle() {}", "private function wrapLine($marker, $class, $line, $colspan=0)\n\t{\n\t\tif ($line !== '')\n\t\t{\n\t\t\t// The <div> wrapper is needed for 'overflow: auto' style to scroll properly\n\t\t\t$line = \"<div>$line</div>\";\n\t\t}\n\t\t$html = \"\\t\\t\\t\".'<td class=\"diff-marker\">'.$marker.'</td>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\".'<td ';\n\t\t$html .= ($colspan > 0) ? 'colspan=\"'.$colspan.'\" ' : '';\n\t\t$html .= 'class=\"'.$class.'\">'.$line.'</td>'.\"\\n\";\n\t\treturn $html;\n\t}", "public function writeLine($line);", "function br2line($item) {\n\t\treturn preg_replace('/<br[^>]*>/i', ' ', $item);\n\t}", "public function getLineA();", "private function traceLine() {\n $this->lineJump();\n $this->currentPage->rectangle(self::HMARGIN + $this->hOffset, $this->PAGE_HEIGHT - self::VMARGIN - $this->vOffset, $this->PAGE_WIDTH - 2*$this->hOffset - 2*self::HMARGIN, 1);\n $this->currentPage->stroke();\n }", "private function add_new_line() {\n\n\t\t$this->fields[] = array( 'newline' => true );\n\n\t}", "public function line($x1, $y1, $x2, $y2) {}", "private function appendLineToRewrites($line){\n\t\t$this->rewrites .= \"\\n\" . $line;\n\t}", "function getFormattedLine($line)\n{\n global $tabtribes;\n \n $xmlkey = getXmlKey($line);\n \n $val = getXmlValue($xmlkey,$line);\n $val = str_replace(\",\",\" \",$val);\n $val = strtoupper($val);\n \n /* ----------------> erstmal deaktiviert!!!!\n // Tribes merken\n $tab = explode(\" \",$val);\n $max = count($tab);\n \n for ($t=0;$t<$max;$t++)\n {\n if (!isset($tabribes[$tab[$t]]))\n $tabtribes[$tab[$t]] = false;\n }\n ----------------------------------------< */\n \n // einige XML-Tags werden umbenannt\n if ($xmlkey == \"friendly\") $xmlkey = \"friend\";\n if ($xmlkey == \"aggressive\") $xmlkey = \"aggro\";\n \n $out = \" <\".$xmlkey.\">\".$val.\"</\".$xmlkey.\">\";\n return $out;\n}", "public function convert()\n\t{\n\t\t$lines = explode(PHP_EOL, $this->string);\n\n\t\tarray_shift($lines);\n\n\t\t$labels = explode(self::INLINE_SEPARATOR, $lines[0]);\n\t\t$labelledMultiLineDo = new LabelledMultiLineDo();\n\t\t$labelledMultiLineDo->setLabels($labels);\n\n\t\tarray_shift($lines);\n\t\tforeach ($lines as $line) {\n\t\t\t$dataRow = explode(self::INLINE_SEPARATOR, $line);\n\t\t\tif (count($dataRow) != count($labels))\n\t\t\t{\n\t\t\t\tthrow new LabelAndDataMismatchException();\n\t\t\t}\n\t\t\t$labelledMultiLineDo->appendDataRow($dataRow);\n\t\t}\n\n\t\treturn $labelledMultiLineDo;\n\t}", "protected function createNodeLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(1, 0),\n new Point(0, 1),\n new Point(1, 1),\n new Point(0, 0),\n ]);\n }", "public function setLineEndingStyle($lineEndingStyle) {}", "function svgline($x1,$y1,$x2,$y2,$xmul,$ymul)\n{\n global $colors;\n $str=\"\";\n $strokew=$xmul*0.1;\n \n $col=$colors[$y1%count($colors)];\n\n if((abs($x2-$x1)>1)&&($y1!=$y2)){\n $str.=\"<line x1='\".($x1*$xmul).\"' y1='\".($y1*$ymul).\"' x2='\".(($x2-1)*$xmul).\"' y2='\".($y1*$ymul).\"' stroke='\".$col.\"' style='stroke-width:\".$strokew.\"' />\";\n $str.=\"<line x1='\".(($x2-1)*$xmul).\"' y1='\".($y1*$ymul).\"' x2='\".($x2*$xmul).\"' y2='\".($y2*$ymul).\"' stroke='\".$col.\"' style='stroke-width:\".$strokew.\"' />\";\n }else{\n $str.=\"<line x1='\".($x1*$xmul).\"' y1='\".($y1*$ymul).\"' x2='\".($x2*$xmul).\"' y2='\".($y2*$ymul).\"' stroke='\".$col.\"' style='stroke-width:\".$strokew.\"' />\";\n }\n\n return($str);\n}", "public function setLinea($linea)\n {\n $this->linea = $linea;\n\n return $this;\n }", "public function testNewLinePrepend() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->setLineEnd(StringBuilder::LE_UNIX);\n\t\t\t$builder->append(\"Hello\")->newLine(false)->newLine(false)->append(\"World\");\n\n\t\t\t$this->assertEquals(\"\\n\\nHelloWorld\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "public function parse(&$line)\n {\n foreach ($this->_pattern as $key => $magicConstant) {\n $line = str_replace($key, $magicConstant, $line);\n }\n\n return $line;\n }", "public function wktGenerateLinestring(array $start = NULL, $segments = NULL);", "public static function parse($line)\n {\n if (!is_a($line, 'File_Therion_Line')) {\n throw new InvalidArgumentException(\n 'Invalid $line argument (expected File_Therion_Line, seen:'\n .gettype($line).')'\n );\n }\n \n // this is a one-line object.\n $flData = $line->extractOptions(true); // get non-options (=data)\n $opts = $line->extractOptions();\n if (array_key_exists('count', $opts)) {\n // explicit type conversion from parsed string\n $opts['count'][0] = intval($opts['count'][0]);\n }\n \n $cmd = array_shift($flData);\n if ($cmd !== \"join\") {\n throw new File_Therion_SyntaxException(\n \"parsing join expects 'join' command as first data element, '\"\n .$cmd.\"' given\");\n }\n if (count($flData) < 1) {\n throw new File_Therion_SyntaxException(\n \"join command expects at least two arguments, \"\n .count($flData).\" given\");\n }\n \n // craft new Join object\n $joinObj = new File_Therion_Join(array(), $opts);\n \n // retrieve non-option lines and add them as join arguments\n foreach ($flData as $ja) {\n $m = array();\n if (preg_match('/(.+?):(.+)/', $ja, $m)) {\n // <line>:<mark> syntax\n $line = new File_Therion_ScrapLine('wall');\n $line->setOption('id', $m[1]);\n $point = $line->addPoint();\n $point->setMark($m[2]);\n $joinObj->addArgument($point);\n \n } else {\n // we cannot distinguish scrap-ids from line-ids;\n // so we need to guess the type...\n // \n // this is obviously wrong in some cases, however should\n // only be a problem when dealing with parsed data AND when\n // objects of the join are retrieved. Those objects should also\n // be accessible from outside user code already.\n // Outside parsing code may circumvent this (eg that needs to be\n // addressed in parse() of Survey/Scrap class)\n //\n // We simply guess Line here because of wider compatibility.\n // (when writing join args later this is not a problem)\n $line = new File_Therion_ScrapLine('wall');\n $line->setOption('id', $ja);\n $joinObj->addArgument($line);\n }\n }\n \n return $joinObj;\n \n }", "private function _initializeLine() {\n\t\t$this->_text[$this->_lineNumber]['x']=0;\n\t\t$this->_text[$this->_lineNumber]['width']=0;\n\t\t$this->_text[$this->_lineNumber]['height']=0;\n\t\t$this->_text[$this->_lineNumber]['alignment']=null;\n\t}", "public function addLine($quantity, $productName, $price, $type, $duty)\n {\n $line = new Line($quantity, $productName, $price, $type, $duty);\n $this->lines[] = $line;\n\n //in contemporanea aggiungo progressivamente il netto, le tasse e il totale \n $this->net = $this->addNet($line->getNet());\n $this->addTaxes($line->getTaxes());\n $this->addTotal($line->getTotal());\n \n //Ritorna la linea che mi servirà per la stampa\n return $line;\n }", "protected function updateLine($type, $val, $line) {\r\n\t\treturn $line;\r\n\t}", "public function textLine($value)\n {\n }", "private function addLine($line)\n {\n $slugs = explode(\"\\\\\", $line);\n foreach ($slugs as $key => $slug) {\n if ($slug) {\n $parent = $this->addSlug($slug, $parent ?? null);\n }\n }\n }", "private static function objectToLine($object)\n\t{\n\t\t$line = get_class($object);\n\t\tif ($object instanceof \\DateTime || $object instanceof \\DateTimeInterface) {\n\t\t\t$line .= '(' . $object->format('Y-m-d H:i:s O') . ')';\n\t\t}\n\n\t\treturn $line . '(' . self::hash($object) . ')';\n\t}", "public function prepend(string $line, string $content): Content\n {\n $this->content = preg_replace('~^(' . $line . ')$~sm', $content . PHP_EOL . '\\1', $this->content);\n return $this;\n }", "public static function line( $str, $color = null, $background = null ) \n\t{\n\t\tif ( is_array( $str ) ) \n\t\t{\n\t\t\t$str = implode( PHP_EOL, $str );\n\t\t}\n\t\t\n\t\tstatic::write( $str.PHP_EOL, $color, $background );\n\t}", "protected function lineBreaks() {\n\t\t$this->text = $this->removeUnneccesaryLinebreaks($this->text);\n\t\t$this->text = nl2br($this->text);\n\t\tReturn $this;\n\t}", "public function newLine()\n {\n\n $stock = $this->getStock();\n $randomIndexStock = mt_rand(0, (count($stock)-1));\n $this->line = array_values(array_slice($stock, $randomIndexStock, 1, true));\n unset($stock[$randomIndexStock]);\n $this->stock = array_values($stock);\n }", "public function importLine(Import $import, ImportLine $line);", "public function moveToStartOfNextLine() {}", "public function moveToStartOfNextLine() {}", "public static function foldLine($line)\n {\n if (\\strlen($line) <= 75) return $line;\n \n $length = 17;\n while (strlen(\\iconv_substr($line, 0, $length + 1, 'UTF-8')) <= 75)\n {\n $length += 1;\n }\n \n $firstLine = \\iconv_substr($line, 0, $length, 'UTF-8');\n $rest = \\iconv_substr($line, $length, \\iconv_strlen($line, 'UTF-8'), 'UTF-8');\n \n return $firstLine . self::endl . \" \" . self::foldLine($rest);\n }", "private function compileLine ($line) {\n foreach ($line as $i => $token) {\n if (is_array($token)) {\n $line[$i] = chop($this->compileLine($token), ';');\n }\n }\n \n $last = current(array_slice($line, -1, 1)) ?: '';\n $first = current(array_slice($line, 0, 1)) ?: '';\n $second = current(array_slice($line, 1, 1)) ?: '';\n \n $length = count($line);\n $code = '';\n \n /* Comments */\n if ($first === 'shh') {\n $code .= \"// $second\";\n }\n \n if ($first === 'quiet') {\n $code .= '/*' . ($second === 'dogeblock' ? '*' : '');\n }\n \n if ($first === 'loud') {\n $code .= '*/';\n }\n \n /* Variable assignment */\n if ($first === 'very') {\n $last = implode(' ', array_slice($line, 3));\n \n $code .= \"$second = $last;\";\n }\n \n if ($second === 'is') {\n $last = implode(' ', array_slice($line, 2));\n \n $code .= \"$first = $last;\";\n }\n \n /* Use statement */\n if ($first === 'so' && $length > 1) {\n $code .= \"use $second\";\n \n if ($length > 2) {\n $code .= \" as $last\";\n }\n \n $code .= ';';\n }\n \n /* Comparison structures */\n if ($first === 'but') {\n $code .= 'else ';\n }\n \n if ($first === 'rly' || $second === 'rly') {\n $index = $first === 'rly' ? 1 : 2;\n $code .= 'if (' \n . $this->compileBoolean(implode(' ', array_slice($line, $index, -1))) \n . ') ';\n }\n \n if ($first === 'notrly') {\n $code .= 'if (!(' \n . $this->compileBoolean(implode(' ', array_slice($line, 1, -1))) \n . ')) ';\n }\n \n /* Loops */\n if ($first === 'many') {\n $code .= 'while ('\n . $this->compileBoolean(implode(' ', array_slice($line, 1, -1)))\n . ') ';\n }\n \n if ($first === 'much') {\n $code .= 'for ('\n . $this->compileBoolean(implode(' ', array_slice($line, 1, -1)))\n . ') ';\n }\n \n if ($first === '4lulz') {\n $with = array_search('with', $line);\n $arguments = array_slice($line, 1, $with - 1);\n \n $arguments = count($arguments) > 1 \n ? \"{$arguments[0]} => {$arguments[1]}\"\n : \"{$arguments[0]}\";\n \n $with = $line[$with + 1];\n \n $code .= \"foreach ($with as $arguments) \";\n }\n \n /* Operators */\n if ($second === 'more') {\n $third = $line[2];\n $code .= \"$first += $third;\";\n }\n \n if ($second === 'less') {\n $third = $line[2];\n $code .= \"$first -= $third;\";\n }\n \n if ($second === 'lots') {\n $third = $line[2];\n $code .= \"$first *= $third;\";\n }\n \n if ($second === 'few') {\n $third = $line[2];\n $code .= \"$first /= $third;\";\n }\n \n /* Functions */\n if ($first === 'plz') {\n $arguments = '';\n \n if ($length > 2) {\n $arguments = implode(', ', array_slice($line, 3));\n }\n \n $code .= \"$second($arguments);\";\n }\n \n if ($first === 'such') {\n $arguments = '';\n \n if ($length > 2) {\n $arguments = implode(', ', array_slice($line, 3, -1));\n }\n \n $code .= \"function $second ($arguments) \";\n }\n \n /* Block statements */\n if ($last === 'so') {\n $code .= '{';\n }\n \n if ($first === 'wow') {\n if ($length > 1) {\n $code .= 'return ' . implode(' ', array_slice($line, 1)) . \";\\n\";\n }\n \n $code .= \"}\";\n }\n \n if ($first === 'amaze') {\n $code .= 'return ' . implode(' ', array_slice($line, 1)) . ';';\n }\n \n if ($code) {\n return $code;\n }\n \n return $length === 1 ? implode(' ', $line) : '';\n }", "public function withLineItem($thing)\n {\n $mode = is_array($thing) ? 'multi' : 'single';\n\n if ($mode === 'single') {\n $this->_model['lines'][] = (array)$thing;\n $this->_line_number++;\n }\n\n\n if ($mode === 'multi') {\n foreach($thing as $lineItem) {\n $this->_model['lines'][] = (array)$lineItem;\n $this->_line_number++;\n }\n }\n\n return $this;\n }", "function wkt_generate_multilinestring() {\n $start = $this->random_point();\n $num = $this->dd_generate(1, 3, TRUE);\n $lines[] = $this->wkt_generate_linestring($start);\n for ($i = 0; $i < $num; $i += 1) {\n $diff = $this->random_point();\n $start[0] += $diff[0] / 100;\n $start[1] += $diff[1] / 100;\n $lines[] = $this->wkt_generate_linestring($start);\n }\n return '(' . implode('), (', $lines) . ')';\n }", "private function drawline($fortune)\n\t{\n\t\t$fortune = wordwrap($fortune, $this->maxcharsonaline, \"\\n\", true);\n\t\t$fortunelines = explode(\"\\n\", $fortune);\n\t\t\n\t\tif (count($fortunelines) > $this->maxlines)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach ($fortunelines as $line)\n\t\t\t{\n\t\t\t\t@imagettftext($this->im, \n\t\t\t\t\t\t\t $this->fontsize[2], \n\t\t\t\t\t\t\t 0, \n\t\t\t\t\t\t\t $this->positionx, \n\t\t\t\t\t\t\t $this->positiony, \n\t\t\t\t\t\t\t $this->text_color, \n\t\t\t\t\t\t\t $this->font, \n\t\t\t\t\t\t\t $line); // Drawing a word\n\t\t\t\t\t\t\t \n\t\t\t\t$this->positiony += $this->lineheight; // Vertical position is set one line under\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}", "public function transform($line) {\n\n return [\n 'amount' => $line->amount,\n 'description' => $line->description,\n 'quantity' => $line->quantity,\n 'product_id' => $line->product_id,\n 'is_chargeable' => $line->is_chargeable,\n ];\n }", "function ncurses_mvvline($y, $x, $attrchar, $n)\n{\n}", "function lineInterceptWithSet($line, $set) {\n $line1XStart = $line[0][0];\n $line1XEnd = $line[1][0];\n $line1YStart = $line[0][1];\n $line1YEnd = $line[1][1];\n\n\n foreach($set AS $item) {\n $line2XStart = $item[0][0];\n $line2XEnd = $item[1][0];\n $line2YStart = $item[0][1];\n $line2YEnd = $item[1][1];\n\n\n }\n return true;\n}", "public function wktBuildLinestring(array $points);", "protected function formatLine($row)\n {\n // TODO: _buildGrid should be refactored so we don't have to call arrayPluck here\n $s = implode(',', array_map(array($this, 'formatCell'), $this->arrayPluck($row)));\n return $s;\n }", "public function addLine($line) {\n\t\t$this->children[] = $line;\n\t\treturn $this;\n\t}", "public function getNewline(): string;", "public function getLineEndingStyles() {}", "private function _setNewLineIds()\n {\n $this->_newLineIds = [];\n\n foreach ($this->get('structure') as $line) {\n if ($line['id'] === 0) {\n continue;\n }\n\n $this->_newLineIds[] = $line['id'];\n }\n\n return $this;\n }", "public function getLineEndingStyles() {}" ]
[ "0.63858205", "0.63323605", "0.6209171", "0.6149387", "0.6066668", "0.6048634", "0.6048634", "0.6048634", "0.6048634", "0.60453993", "0.6040915", "0.60197175", "0.59522563", "0.5883744", "0.5879091", "0.58686525", "0.5845897", "0.58411306", "0.581671", "0.5815469", "0.58037573", "0.5802725", "0.57922316", "0.5786171", "0.5785332", "0.5756524", "0.5748766", "0.5747197", "0.57381034", "0.57256067", "0.5724138", "0.5720017", "0.5715979", "0.57041335", "0.57009256", "0.5700675", "0.5700276", "0.56893694", "0.567473", "0.5673924", "0.5670476", "0.56689835", "0.5661919", "0.565311", "0.5650661", "0.5636751", "0.5633888", "0.5633888", "0.5633888", "0.5633888", "0.56317747", "0.5625039", "0.5622779", "0.560185", "0.5598076", "0.5588149", "0.5570018", "0.5564131", "0.5563848", "0.556101", "0.5556495", "0.5551157", "0.55488515", "0.55071795", "0.55033123", "0.5502656", "0.5500996", "0.55009687", "0.5492331", "0.5480217", "0.5474028", "0.5472562", "0.54685473", "0.5466812", "0.54417783", "0.5433023", "0.5428271", "0.54230356", "0.5421438", "0.54204845", "0.5419202", "0.5416709", "0.5404254", "0.53959996", "0.53907645", "0.53907645", "0.5364736", "0.5358185", "0.53537637", "0.53246135", "0.5323646", "0.5314551", "0.53127086", "0.5302088", "0.53001153", "0.5299904", "0.529514", "0.5290944", "0.52908534", "0.5288328", "0.5287416" ]
0.0
-1
make a line that looks like a line
function wkt_generate_multilinestring() { $start = $this->random_point(); $num = $this->dd_generate(1, 3, TRUE); $lines[] = $this->wkt_generate_linestring($start); for ($i = 0; $i < $num; $i += 1) { $diff = $this->random_point(); $start[0] += $diff[0] / 100; $start[1] += $diff[1] / 100; $lines[] = $this->wkt_generate_linestring($start); } return '(' . implode('), (', $lines) . ')'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function lineBreakCorrectlyTransformedOnWayToRteProvider() {}", "public function line($text) { return $this->l($text); }", "public function convert( $line );", "protected function createLineStringA(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(10, 10),\n ]);\n }", "public function lineTo($x, $y) {}", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function line($value) {\n return $this->setProperty('line', $value);\n }", "public function TextLine($value) {\n\t return $value . $this->LE;\n\t}", "private function makeLines()\n\t{\n\t\t$line = 1;\n\t\t/** @var Token $token */\n\t\tforeach ($this->tokens as $token)\n\t\t{\n\t\t\t$token->line = $line;\n\t\t\tif (preg_match_all(\"/\\\\n/\", $token->text, $m))\n\t\t\t{\n\t\t\t\t$line += count($m[0]);\n\t\t\t}\n\t\t}\n\t}", "function make_line_rules($str)\n{\n\tglobal $line_rules;\n\tstatic $pattern, $replace;\n\n\tif (! isset($pattern)) {\n\t\t$pattern = array_map(create_function('$a',\n\t\t\t'return \\'/\\' . $a . \\'/\\';'), array_keys($line_rules));\n\t\t$replace = array_values($line_rules);\n\t\tunset($line_rules);\n\t}\n\n\treturn preg_replace($pattern, $replace, $str);\n}", "public function getLine($line);", "public function line($value)\n {\n $this->setProperty('line', $value);\n return $this;\n }", "public function addLine(): Line\n {\n $line = new Line($this->getErrorRegistor());\n $this->line[] = $line;\n $line->setLineNumber(\\count($this->line));\n \\Logger::getLogger(\\get_class($this))->debug(\n __METHOD__.\" Line add to stack\"\n );\n return $line;\n }", "public function setLine($value)\n {\n return $this->set(self::_LINE, $value);\n }", "public function setLine($var)\n {\n GPBUtil::checkInt32($var);\n $this->line = $var;\n\n return $this;\n }", "private static function setLineIfPrevious(&$line)\n {\n static $previousLine = '';\n\n if ($previousLine) {\n $line = $previousLine.' '.trim($line);\n $previousLine = '';\n }\n\n if (preg_match('/(.+)\\\\\\$/', $line, $container)) {\n $previousLine = $container[1];\n }\n\n return $previousLine;\n }", "protected function createRingLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(1, 0),\n new Point(1, 1),\n new Point(0, 1),\n new Point(0, 0),\n ]);\n }", "public function setLine($line) {\n\t\t$this->line = $line;\n\t\treturn $this;\n\t}", "public function testPrependLinePrefix() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->setLineEnd(StringBuilder::LE_UNIX);\n\t\t\t$builder->prependLine(\"Hello\", false)->prependLine(\"World\", false);\n\n\t\t\t$this->assertEquals(\"\\nWorld\\nHello\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "private function processLine($line)\n {\n return\n '\"' .\n implode(\n \"\\\",\\\"\",\n array_map(\n function ($e) {\n if($e == '' || $e == 'NULL' || $e == null) return '\\\\N';\n return str_replace(\"\\n\", '\\n',\n $e\n );\n },\n $line\n )\n )\n . \"\\\"\\n\";\n }", "public static function from($data)\n {\n $line = new Line;\n $line->_original = $data;\n \n $isPassedDelimiter = false;\n foreach ($line->split($data) as $wordStr) {\n if (Word::hasDelimiter($wordStr)) {\n $isPassedDelimiter = true;\n continue;\n }\n \n if (empty($wordStr) || Word::hasJunk($wordStr)) {\n continue;\n }\n \n if ($line->hasMultipleColors($wordStr)) {\n $line->handleMultipleColors($wordStr);\n continue;\n }\n \n if ($line->isStick($wordStr)) {\n $line->_isStick = true;\n }\n \n $word = Word::from($wordStr);\n \n if ($isPassedDelimiter) {\n $word->asAfterDelimiter();\n }\n \n $word\n ->test()\n ->clean();\n \n if ($line->_isStick && $isPassedDelimiter\n && Word::hasStickOrientation($word)) {\n $word->asStickOrientation();\n }\n \n $line->_words[] = $word;\n }\n \n return $line;\n }", "public function addLine($line = null)\n {\n if (null === $line) {\n $this->line = [];\n return $this;\n }\n if ($line instanceof FHIRString) {\n $this->line[] = $line;\n return $this;\n }\n $this->line[] = new FHIRString($line);\n return $this;\n }", "protected function createLineStringB(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 10),\n new Point(15, 0),\n ]);\n }", "public function setLine($line);", "public function lineThrough()\n {\n $this->label.= '9;';\n return $this;\n }", "public function testPrependLineTerminate() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->setLineEnd(StringBuilder::LE_UNIX);\n\t\t\t$builder->prependLine(\"Hello\", true)->prependLine(\"World\", true);\n\n\t\t\t$this->assertEquals(\"World\\nHello\\n\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "public function setLineJoin($lineJoin = self::LINE_JOIN_MITER) {}", "final function getLine();", "public function typeLinestring(Fluent $column)\n {\n return 'LINESTRING';\n }", "function __paintCodeline($class, $num, $line) {\n\t\t$line = h($line);\n\n\t\tif (trim($line) == '') {\n\t\t\t$line = '&nbsp;'; // Win IE fix\n\t\t}\n\t\treturn '<div class=\"code-line ' . trim($class) . '\"><span class=\"line-num\">' . $num . '</span><span class=\"content\">' . $line . '</span></div>';\n\t}", "function _createLineRegEx() {\n\t\tswitch ($this->_listVersion) {\n\t\t\tcase 1:\n\t\t\t\t$this->_lineRegEx = '/^' . \n\t\t\t\t\timplode(preg_quote($this->_delim), array(\n\t\t\t\t\t\t'[dflcbpu]',\n\t\t\t\t\t\t'[0-9]{4}-[0-9]{2}-[0-9]{2}', // Date\n\t\t\t\t\t\t'[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?', // Time\n\t\t\t\t\t\t'[0-9]+', // Size\n\t\t\t\t\t\t'[0-9]+' // Depth\n\t\t\t\t\t)) . preg_quote($this->_delim) . '/';\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\t$this->_lineRegEx = '/^' . \n\t\t\t\t\timplode(preg_quote($this->_delim), array(\n\t\t\t\t\t\t'[dflcbpus\\-]',\n\t\t\t\t\t\t'[0-9]{4}-[0-9]{2}-[0-9]{2}', // Date\n\t\t\t\t\t\t'[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?', // Time\n\t\t\t\t\t\t'[0-9]+', // Size\n\t\t\t\t\t)) . preg_quote($this->_delim) . '/';\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function textLine($value)\n {\n return $value . $this->LE;\n }", "protected function createLineStringX(): LineStringEntity\n {\n return $this->createLineString([\n new Point(8, 15),\n new Point(4, 8),\n ]);\n }", "public function addedLine($line, $colspan=0)\n\t{\n\t\treturn $this->wrapLine('+', 'diff-addedline', $line, $colspan);\n\t}", "protected function new_line()\n {\n }", "protected function createStraightLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(2, 2),\n new Point(5, 5),\n ]);\n }", "function pt_convert_line_break($str){\n\treturn str_replace(\"\\n\",\"\\\\n\", str_replace(array(\"\\n\\r\", \"\\r\\n\", \"\\r\"),\"\\n\", $str));\n}", "protected function createLineStringC(): LineStringEntity\n {\n return $this->createLineString([\n new Point(2, 0),\n new Point(12, 10),\n ]);\n }", "private function parseLine($line)\n\t{\n\t\t// paragraphs will capture lines that start with decorations\n\t\t$callbacks = array(\n\t\t\t'paragraph' => '^[A-Za-z0-9\\'\\\"].*$',\n\t\t\t'decoration' => '(\\'\\'+)(.+?)\\1',\n\t\t\t'strikethrough' => '(\\~\\~)(.+?)\\1',\n\t\t\t'header' => '^(=+)(.+)\\1$',\n\t\t\t'tag' => '\\[\\[([A-Za-z]+)(\\:([^\\]]*))?\\]\\]',\n\t\t\t'link' => '\\[http:\\/\\/([^\\s\\]]+)([^\\]]+)?\\]',\n\t\t\t'internal_link' => '\\[\\[([\\w|\\#_ ]+)\\]\\]',\n\t\t\t'block_tag' => '^\\<([A-Za-z]+)\\>[ ]*$',\n\t\t);\n\n\t\t\n\t\t// $line = trim($line);\n\t\tif ($line === '') {\n\t\t\t$this->setState(WikiParser::$NO_STATE);\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ($callbacks as $c=>$p) {\n\t\t\t$parsed = true;\n\t\t\t$line = preg_replace_callback(\n\t\t\t\t'/'.$p.'/',\n\t\t\t\tarray($this, 'render_'.$c), rtrim($line));\n\t\t}\n\n\t\t// see if the state changes\n\t\tif ($line{0} == '*') {\n\t\t\t// are we working with a list\n\t\t\t$this->setState(WikiParser::$LIST_STATE);\n\t\t\t$line = '<li>'.substr($line, 1).'</li>';\n\t\t} elseif ($line{0} == ' ') {\n\t\t\t// are we working with a pre block\n\t\t\t$this->setState(WikiParser::$PRE_STATE);\n\t\t} else {\n\t\t\t$this->setState(WikiParser::$NO_STATE);\n\t\t}\n\n\t\t$line = trim($line);\n\t\tif ($line == '') return;\n\n\t\techo $line.\"\\n\";\n\t}", "public function newLine() {\n\t\t$this->_section=0;\n\t\t$this->_lineNumber++;\n\t\t$this->_text[$this->_lineNumber]=array();\n\t\t$this->_text[$this->_lineNumber][0]['text']='';\n\t\t$this->_text[$this->_lineNumber][0]['encoding']='';\n\t\t$this->_text[$this->_lineNumber][0]['font']=$this->_font;\n\t\t$this->_text[$this->_lineNumber][0]['fontSize']=$this->_fontSize;\n\t\t$this->_text[$this->_lineNumber][0]['width']=0;\n\n\t\t\n\t\t$this->_initializeLine();\n\t\t\n\t\t$this->_text[$this->_lineNumber]['alignment']=$this->_text[$this->_lineNumber-1]['alignment'];\n\t\t//add the last cell's height to the auto height if we have an auto-height box.\n\t\tif ($this->isAutoHeight()) {\n\t\t\t$this->_autoHeight+=$this->_text[$this->_lineNumber-1]['height'];\n\t\t}\n\t}", "function r_line($atts, $content = null) {\r\n return '<div class=\"line\"></div>';\r\n}", "protected function createLineStringY(): LineStringEntity\n {\n return $this->createLineString([\n new Point(12, 14),\n new Point(3, 4),\n ]);\n }", "protected function createLine(\n /** @noinspection PhpUnusedParameterInspection */\n Document\\DocumentInterface $document\n ) {\n return new Document\\DocumentLine();\n }", "public function contextLine($line)\n\t{\n\t\treturn $this->wrapLine(' ', 'diff-context', $line);\n\t}", "public function getLine();", "public function getLine();", "public function getLine();", "public function getLine();", "function RenderLyricsOnlyLine($line) {\r\n $this->SetLyricsFont();\r\n $this->Cell(0, 0, $line[\"lyrics\"]);\r\n return $this->GetStringWidth($line[\"lyrics\"]);\r\n }", "public function setLineJoinStyle($lineJoinStyle) {}", "protected function createAngularLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(3, 3),\n new Point(4, 15),\n new Point(5, 22),\n ]);\n }", "function get_line(&$format)\n{\n\tif (mb_strlen($format) === 0)\n\t\treturn false;\n\t\n\t$pos = mb_strpos($format, \"\\r\");\t\n\tif ($pos !== false)\n\t\t$format = mb_substr($format, 0, $pos) . mb_substr($format, $pos + 1);\n\t\n\t$pos = mb_strpos($format, \"\\n\");\n\t\n\tif ($pos === false)\n\t\t$pos = mb_strlen($format);\n\t\n\t$line = mb_substr($format, 0, $pos);\n\t$format = mb_substr($format, $pos + 1);\n\treturn $line;\n}", "public function getLineEndingStyle() {}", "private function wrapLine($marker, $class, $line, $colspan=0)\n\t{\n\t\tif ($line !== '')\n\t\t{\n\t\t\t// The <div> wrapper is needed for 'overflow: auto' style to scroll properly\n\t\t\t$line = \"<div>$line</div>\";\n\t\t}\n\t\t$html = \"\\t\\t\\t\".'<td class=\"diff-marker\">'.$marker.'</td>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\".'<td ';\n\t\t$html .= ($colspan > 0) ? 'colspan=\"'.$colspan.'\" ' : '';\n\t\t$html .= 'class=\"'.$class.'\">'.$line.'</td>'.\"\\n\";\n\t\treturn $html;\n\t}", "public function writeLine($line);", "function br2line($item) {\n\t\treturn preg_replace('/<br[^>]*>/i', ' ', $item);\n\t}", "public function getLineA();", "private function traceLine() {\n $this->lineJump();\n $this->currentPage->rectangle(self::HMARGIN + $this->hOffset, $this->PAGE_HEIGHT - self::VMARGIN - $this->vOffset, $this->PAGE_WIDTH - 2*$this->hOffset - 2*self::HMARGIN, 1);\n $this->currentPage->stroke();\n }", "private function add_new_line() {\n\n\t\t$this->fields[] = array( 'newline' => true );\n\n\t}", "public function line($x1, $y1, $x2, $y2) {}", "private function appendLineToRewrites($line){\n\t\t$this->rewrites .= \"\\n\" . $line;\n\t}", "function getFormattedLine($line)\n{\n global $tabtribes;\n \n $xmlkey = getXmlKey($line);\n \n $val = getXmlValue($xmlkey,$line);\n $val = str_replace(\",\",\" \",$val);\n $val = strtoupper($val);\n \n /* ----------------> erstmal deaktiviert!!!!\n // Tribes merken\n $tab = explode(\" \",$val);\n $max = count($tab);\n \n for ($t=0;$t<$max;$t++)\n {\n if (!isset($tabribes[$tab[$t]]))\n $tabtribes[$tab[$t]] = false;\n }\n ----------------------------------------< */\n \n // einige XML-Tags werden umbenannt\n if ($xmlkey == \"friendly\") $xmlkey = \"friend\";\n if ($xmlkey == \"aggressive\") $xmlkey = \"aggro\";\n \n $out = \" <\".$xmlkey.\">\".$val.\"</\".$xmlkey.\">\";\n return $out;\n}", "public function convert()\n\t{\n\t\t$lines = explode(PHP_EOL, $this->string);\n\n\t\tarray_shift($lines);\n\n\t\t$labels = explode(self::INLINE_SEPARATOR, $lines[0]);\n\t\t$labelledMultiLineDo = new LabelledMultiLineDo();\n\t\t$labelledMultiLineDo->setLabels($labels);\n\n\t\tarray_shift($lines);\n\t\tforeach ($lines as $line) {\n\t\t\t$dataRow = explode(self::INLINE_SEPARATOR, $line);\n\t\t\tif (count($dataRow) != count($labels))\n\t\t\t{\n\t\t\t\tthrow new LabelAndDataMismatchException();\n\t\t\t}\n\t\t\t$labelledMultiLineDo->appendDataRow($dataRow);\n\t\t}\n\n\t\treturn $labelledMultiLineDo;\n\t}", "protected function createNodeLineString(): LineStringEntity\n {\n return $this->createLineString([\n new Point(0, 0),\n new Point(1, 0),\n new Point(0, 1),\n new Point(1, 1),\n new Point(0, 0),\n ]);\n }", "public function setLineEndingStyle($lineEndingStyle) {}", "function svgline($x1,$y1,$x2,$y2,$xmul,$ymul)\n{\n global $colors;\n $str=\"\";\n $strokew=$xmul*0.1;\n \n $col=$colors[$y1%count($colors)];\n\n if((abs($x2-$x1)>1)&&($y1!=$y2)){\n $str.=\"<line x1='\".($x1*$xmul).\"' y1='\".($y1*$ymul).\"' x2='\".(($x2-1)*$xmul).\"' y2='\".($y1*$ymul).\"' stroke='\".$col.\"' style='stroke-width:\".$strokew.\"' />\";\n $str.=\"<line x1='\".(($x2-1)*$xmul).\"' y1='\".($y1*$ymul).\"' x2='\".($x2*$xmul).\"' y2='\".($y2*$ymul).\"' stroke='\".$col.\"' style='stroke-width:\".$strokew.\"' />\";\n }else{\n $str.=\"<line x1='\".($x1*$xmul).\"' y1='\".($y1*$ymul).\"' x2='\".($x2*$xmul).\"' y2='\".($y2*$ymul).\"' stroke='\".$col.\"' style='stroke-width:\".$strokew.\"' />\";\n }\n\n return($str);\n}", "public function setLinea($linea)\n {\n $this->linea = $linea;\n\n return $this;\n }", "public function testNewLinePrepend() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->setLineEnd(StringBuilder::LE_UNIX);\n\t\t\t$builder->append(\"Hello\")->newLine(false)->newLine(false)->append(\"World\");\n\n\t\t\t$this->assertEquals(\"\\n\\nHelloWorld\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "public function parse(&$line)\n {\n foreach ($this->_pattern as $key => $magicConstant) {\n $line = str_replace($key, $magicConstant, $line);\n }\n\n return $line;\n }", "public function wktGenerateLinestring(array $start = NULL, $segments = NULL);", "public static function parse($line)\n {\n if (!is_a($line, 'File_Therion_Line')) {\n throw new InvalidArgumentException(\n 'Invalid $line argument (expected File_Therion_Line, seen:'\n .gettype($line).')'\n );\n }\n \n // this is a one-line object.\n $flData = $line->extractOptions(true); // get non-options (=data)\n $opts = $line->extractOptions();\n if (array_key_exists('count', $opts)) {\n // explicit type conversion from parsed string\n $opts['count'][0] = intval($opts['count'][0]);\n }\n \n $cmd = array_shift($flData);\n if ($cmd !== \"join\") {\n throw new File_Therion_SyntaxException(\n \"parsing join expects 'join' command as first data element, '\"\n .$cmd.\"' given\");\n }\n if (count($flData) < 1) {\n throw new File_Therion_SyntaxException(\n \"join command expects at least two arguments, \"\n .count($flData).\" given\");\n }\n \n // craft new Join object\n $joinObj = new File_Therion_Join(array(), $opts);\n \n // retrieve non-option lines and add them as join arguments\n foreach ($flData as $ja) {\n $m = array();\n if (preg_match('/(.+?):(.+)/', $ja, $m)) {\n // <line>:<mark> syntax\n $line = new File_Therion_ScrapLine('wall');\n $line->setOption('id', $m[1]);\n $point = $line->addPoint();\n $point->setMark($m[2]);\n $joinObj->addArgument($point);\n \n } else {\n // we cannot distinguish scrap-ids from line-ids;\n // so we need to guess the type...\n // \n // this is obviously wrong in some cases, however should\n // only be a problem when dealing with parsed data AND when\n // objects of the join are retrieved. Those objects should also\n // be accessible from outside user code already.\n // Outside parsing code may circumvent this (eg that needs to be\n // addressed in parse() of Survey/Scrap class)\n //\n // We simply guess Line here because of wider compatibility.\n // (when writing join args later this is not a problem)\n $line = new File_Therion_ScrapLine('wall');\n $line->setOption('id', $ja);\n $joinObj->addArgument($line);\n }\n }\n \n return $joinObj;\n \n }", "private function _initializeLine() {\n\t\t$this->_text[$this->_lineNumber]['x']=0;\n\t\t$this->_text[$this->_lineNumber]['width']=0;\n\t\t$this->_text[$this->_lineNumber]['height']=0;\n\t\t$this->_text[$this->_lineNumber]['alignment']=null;\n\t}", "public function addLine($quantity, $productName, $price, $type, $duty)\n {\n $line = new Line($quantity, $productName, $price, $type, $duty);\n $this->lines[] = $line;\n\n //in contemporanea aggiungo progressivamente il netto, le tasse e il totale \n $this->net = $this->addNet($line->getNet());\n $this->addTaxes($line->getTaxes());\n $this->addTotal($line->getTotal());\n \n //Ritorna la linea che mi servirà per la stampa\n return $line;\n }", "protected function updateLine($type, $val, $line) {\r\n\t\treturn $line;\r\n\t}", "public function textLine($value)\n {\n }", "private function addLine($line)\n {\n $slugs = explode(\"\\\\\", $line);\n foreach ($slugs as $key => $slug) {\n if ($slug) {\n $parent = $this->addSlug($slug, $parent ?? null);\n }\n }\n }", "private static function objectToLine($object)\n\t{\n\t\t$line = get_class($object);\n\t\tif ($object instanceof \\DateTime || $object instanceof \\DateTimeInterface) {\n\t\t\t$line .= '(' . $object->format('Y-m-d H:i:s O') . ')';\n\t\t}\n\n\t\treturn $line . '(' . self::hash($object) . ')';\n\t}", "public function prepend(string $line, string $content): Content\n {\n $this->content = preg_replace('~^(' . $line . ')$~sm', $content . PHP_EOL . '\\1', $this->content);\n return $this;\n }", "public static function line( $str, $color = null, $background = null ) \n\t{\n\t\tif ( is_array( $str ) ) \n\t\t{\n\t\t\t$str = implode( PHP_EOL, $str );\n\t\t}\n\t\t\n\t\tstatic::write( $str.PHP_EOL, $color, $background );\n\t}", "protected function lineBreaks() {\n\t\t$this->text = $this->removeUnneccesaryLinebreaks($this->text);\n\t\t$this->text = nl2br($this->text);\n\t\tReturn $this;\n\t}", "public function newLine()\n {\n\n $stock = $this->getStock();\n $randomIndexStock = mt_rand(0, (count($stock)-1));\n $this->line = array_values(array_slice($stock, $randomIndexStock, 1, true));\n unset($stock[$randomIndexStock]);\n $this->stock = array_values($stock);\n }", "public function importLine(Import $import, ImportLine $line);", "public function moveToStartOfNextLine() {}", "public function moveToStartOfNextLine() {}", "public static function foldLine($line)\n {\n if (\\strlen($line) <= 75) return $line;\n \n $length = 17;\n while (strlen(\\iconv_substr($line, 0, $length + 1, 'UTF-8')) <= 75)\n {\n $length += 1;\n }\n \n $firstLine = \\iconv_substr($line, 0, $length, 'UTF-8');\n $rest = \\iconv_substr($line, $length, \\iconv_strlen($line, 'UTF-8'), 'UTF-8');\n \n return $firstLine . self::endl . \" \" . self::foldLine($rest);\n }", "private function compileLine ($line) {\n foreach ($line as $i => $token) {\n if (is_array($token)) {\n $line[$i] = chop($this->compileLine($token), ';');\n }\n }\n \n $last = current(array_slice($line, -1, 1)) ?: '';\n $first = current(array_slice($line, 0, 1)) ?: '';\n $second = current(array_slice($line, 1, 1)) ?: '';\n \n $length = count($line);\n $code = '';\n \n /* Comments */\n if ($first === 'shh') {\n $code .= \"// $second\";\n }\n \n if ($first === 'quiet') {\n $code .= '/*' . ($second === 'dogeblock' ? '*' : '');\n }\n \n if ($first === 'loud') {\n $code .= '*/';\n }\n \n /* Variable assignment */\n if ($first === 'very') {\n $last = implode(' ', array_slice($line, 3));\n \n $code .= \"$second = $last;\";\n }\n \n if ($second === 'is') {\n $last = implode(' ', array_slice($line, 2));\n \n $code .= \"$first = $last;\";\n }\n \n /* Use statement */\n if ($first === 'so' && $length > 1) {\n $code .= \"use $second\";\n \n if ($length > 2) {\n $code .= \" as $last\";\n }\n \n $code .= ';';\n }\n \n /* Comparison structures */\n if ($first === 'but') {\n $code .= 'else ';\n }\n \n if ($first === 'rly' || $second === 'rly') {\n $index = $first === 'rly' ? 1 : 2;\n $code .= 'if (' \n . $this->compileBoolean(implode(' ', array_slice($line, $index, -1))) \n . ') ';\n }\n \n if ($first === 'notrly') {\n $code .= 'if (!(' \n . $this->compileBoolean(implode(' ', array_slice($line, 1, -1))) \n . ')) ';\n }\n \n /* Loops */\n if ($first === 'many') {\n $code .= 'while ('\n . $this->compileBoolean(implode(' ', array_slice($line, 1, -1)))\n . ') ';\n }\n \n if ($first === 'much') {\n $code .= 'for ('\n . $this->compileBoolean(implode(' ', array_slice($line, 1, -1)))\n . ') ';\n }\n \n if ($first === '4lulz') {\n $with = array_search('with', $line);\n $arguments = array_slice($line, 1, $with - 1);\n \n $arguments = count($arguments) > 1 \n ? \"{$arguments[0]} => {$arguments[1]}\"\n : \"{$arguments[0]}\";\n \n $with = $line[$with + 1];\n \n $code .= \"foreach ($with as $arguments) \";\n }\n \n /* Operators */\n if ($second === 'more') {\n $third = $line[2];\n $code .= \"$first += $third;\";\n }\n \n if ($second === 'less') {\n $third = $line[2];\n $code .= \"$first -= $third;\";\n }\n \n if ($second === 'lots') {\n $third = $line[2];\n $code .= \"$first *= $third;\";\n }\n \n if ($second === 'few') {\n $third = $line[2];\n $code .= \"$first /= $third;\";\n }\n \n /* Functions */\n if ($first === 'plz') {\n $arguments = '';\n \n if ($length > 2) {\n $arguments = implode(', ', array_slice($line, 3));\n }\n \n $code .= \"$second($arguments);\";\n }\n \n if ($first === 'such') {\n $arguments = '';\n \n if ($length > 2) {\n $arguments = implode(', ', array_slice($line, 3, -1));\n }\n \n $code .= \"function $second ($arguments) \";\n }\n \n /* Block statements */\n if ($last === 'so') {\n $code .= '{';\n }\n \n if ($first === 'wow') {\n if ($length > 1) {\n $code .= 'return ' . implode(' ', array_slice($line, 1)) . \";\\n\";\n }\n \n $code .= \"}\";\n }\n \n if ($first === 'amaze') {\n $code .= 'return ' . implode(' ', array_slice($line, 1)) . ';';\n }\n \n if ($code) {\n return $code;\n }\n \n return $length === 1 ? implode(' ', $line) : '';\n }", "public function withLineItem($thing)\n {\n $mode = is_array($thing) ? 'multi' : 'single';\n\n if ($mode === 'single') {\n $this->_model['lines'][] = (array)$thing;\n $this->_line_number++;\n }\n\n\n if ($mode === 'multi') {\n foreach($thing as $lineItem) {\n $this->_model['lines'][] = (array)$lineItem;\n $this->_line_number++;\n }\n }\n\n return $this;\n }", "private function drawline($fortune)\n\t{\n\t\t$fortune = wordwrap($fortune, $this->maxcharsonaline, \"\\n\", true);\n\t\t$fortunelines = explode(\"\\n\", $fortune);\n\t\t\n\t\tif (count($fortunelines) > $this->maxlines)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach ($fortunelines as $line)\n\t\t\t{\n\t\t\t\t@imagettftext($this->im, \n\t\t\t\t\t\t\t $this->fontsize[2], \n\t\t\t\t\t\t\t 0, \n\t\t\t\t\t\t\t $this->positionx, \n\t\t\t\t\t\t\t $this->positiony, \n\t\t\t\t\t\t\t $this->text_color, \n\t\t\t\t\t\t\t $this->font, \n\t\t\t\t\t\t\t $line); // Drawing a word\n\t\t\t\t\t\t\t \n\t\t\t\t$this->positiony += $this->lineheight; // Vertical position is set one line under\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}", "public function transform($line) {\n\n return [\n 'amount' => $line->amount,\n 'description' => $line->description,\n 'quantity' => $line->quantity,\n 'product_id' => $line->product_id,\n 'is_chargeable' => $line->is_chargeable,\n ];\n }", "function ncurses_mvvline($y, $x, $attrchar, $n)\n{\n}", "function lineInterceptWithSet($line, $set) {\n $line1XStart = $line[0][0];\n $line1XEnd = $line[1][0];\n $line1YStart = $line[0][1];\n $line1YEnd = $line[1][1];\n\n\n foreach($set AS $item) {\n $line2XStart = $item[0][0];\n $line2XEnd = $item[1][0];\n $line2YStart = $item[0][1];\n $line2YEnd = $item[1][1];\n\n\n }\n return true;\n}", "public function wktBuildLinestring(array $points);", "protected function formatLine($row)\n {\n // TODO: _buildGrid should be refactored so we don't have to call arrayPluck here\n $s = implode(',', array_map(array($this, 'formatCell'), $this->arrayPluck($row)));\n return $s;\n }", "public function addLine($line) {\n\t\t$this->children[] = $line;\n\t\treturn $this;\n\t}", "public function getNewline(): string;", "public function getLineEndingStyles() {}", "private function _setNewLineIds()\n {\n $this->_newLineIds = [];\n\n foreach ($this->get('structure') as $line) {\n if ($line['id'] === 0) {\n continue;\n }\n\n $this->_newLineIds[] = $line['id'];\n }\n\n return $this;\n }", "public function getLineEndingStyles() {}" ]
[ "0.63858205", "0.63323605", "0.6209171", "0.6149387", "0.6066668", "0.6048634", "0.6048634", "0.6048634", "0.6048634", "0.60453993", "0.6040915", "0.60197175", "0.59522563", "0.5883744", "0.5879091", "0.58686525", "0.5845897", "0.58411306", "0.581671", "0.5815469", "0.58037573", "0.5802725", "0.57922316", "0.5786171", "0.5785332", "0.5756524", "0.5748766", "0.5747197", "0.57381034", "0.57256067", "0.5724138", "0.5720017", "0.5715979", "0.57041335", "0.57009256", "0.5700675", "0.5700276", "0.56893694", "0.567473", "0.5673924", "0.5670476", "0.56689835", "0.5661919", "0.565311", "0.5650661", "0.5636751", "0.5633888", "0.5633888", "0.5633888", "0.5633888", "0.56317747", "0.5625039", "0.5622779", "0.560185", "0.5598076", "0.5588149", "0.5570018", "0.5564131", "0.5563848", "0.556101", "0.5556495", "0.5551157", "0.55488515", "0.55071795", "0.55033123", "0.5502656", "0.5500996", "0.55009687", "0.5492331", "0.5480217", "0.5474028", "0.5472562", "0.54685473", "0.5466812", "0.54417783", "0.5433023", "0.5428271", "0.54230356", "0.5421438", "0.54204845", "0.5419202", "0.5416709", "0.5404254", "0.53959996", "0.53907645", "0.53907645", "0.5364736", "0.5358185", "0.53537637", "0.5323646", "0.5314551", "0.53127086", "0.5302088", "0.53001153", "0.5299904", "0.529514", "0.5290944", "0.52908534", "0.5288328", "0.5287416" ]
0.53246135
89
fetch an item from the cache store. If the item does not exist, the method will return FALSE.
public function get(string $id) { return (isset($this->cache[$id])) ? $this->cache[$id] : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetch($id)\n {\n $id = $this->uniqId.'-'.$id;\n if ($this->contains($id)) {\n return $this->cache->fetch($id);\n }\n\n return false;\n }", "public function fetch($key = '')\n\t{\n\t\tif (!empty($key))\n\t\t{\n\t\t\treturn $this->instance->fetch($key);\n\t\t}\n\t\treturn false;\n\t}", "function cache_get( $key ) {\n\t\t\n\t\tif ( !extension_loaded('apc') || (ini_get('apc.enabled') != 1) ) {\n\t\t\tif ( isset( $this->cache[ $key ] ) ) {\n\t\t\t\treturn $this->cache[ $key ];\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn apc_fetch( $key );\n\t\t}\n\n\t\treturn false;\n\n\t}", "public function get() {\r\n if (!xcache_isset($this->key)) {\r\n return false;\r\n }\r\n\r\n return xcache_get($this->key);\r\n }", "public function getItem($key)\n {\n $data = $this->memcached->get($key);\n\n if ($data['ttl'] === 0 || (time() - $data['start'] <= $data['ttl'])) {\n $value = $data['value'];\n } else {\n $this->deleteItem($key);\n }\n\n return (isset($value)) ? $value : false;\n }", "function get($name, $key=null) {\n if (isset($this->cache[$name]) && $key) {\n //error_log(\"Get from cache: '$name' key: '$key'\");\n return $this->cache[$name][$key];\n }\n return false;\n }", "public function fetch($key = '')\n\t{\n\t\tif (!empty($key))\n\t\t{\n\t\t\treturn $this->connection->get($this->prefix . $key);\n\t\t}\n\t\treturn false;\n\t}", "public function fetch($key = '')\n\t{\n\t\treturn false;\n\t}", "public function get($key) {\n\t\t// First, check to see if the result has been cached.\n\t\tif (!isset($this->_cache[$key])) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Second, check its freshness.\n\t\tif ($this->_cache[$key]['time'] < time() - self::$_lifespan) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $this->_cache[$key]['data'];\n\t}", "public function getById($id) {\n \t// if id exists in cache return value\n \t$item = (isset($this->data[$id])) ? $this->data[$id] : false;\n \t// else load single entry from db to cache\n \tif (!$item)\n \t$this->loadData(EBlazonDataType::SINGLE, $id);\n\t\t// return item or false\n return (isset($this->data[$id])) ? $this->data[$id] : false;\n }", "final public function isHit(): bool\n\t{\n\t\tif ($stm = $this->_prepare('SELECT COUNT(*) AS `found` FROM `Cache` WHERE `key` = :key LIMIT 1;')) {\n\t\t\t$stm->execute(['key' => $this->getkey()]);\n\t\t\t$result = $stm->fetchObject();\n\t\t\tvar_dump($result);\n\t\t\treturn $result->found === '1';\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static function cacheCheck($userid)\n\t{\n\t\t$cacheKeystring = self::cacheBuildKeystring($userid);\n\n\t\t$myCacher = new Cacher($cacheKeystring);\n\t\t$row = $myCacher->get();\n\n\t\tif(!empty($row))\n\t\t{\n\t\t\treturn $row;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "function getItemLookup ( $asin, $associatedid, $use_cache = TRUE )\n\t{\n\t\t$is_cached = false;\n\t\tif ( $use_cache ) {\n\t\t\t$cached_item = get_option( $this->db_options_name_cached_item );\n\t\t\tif ( is_array( $cached_item ) ) {\n\t\t\t\tif ( isset( $cached_item[$asin] ) ) {\n\t\t\t\t\tif ( (time() - $cached_item[$asin]['time']) < 60 * 60 * 23 ) {\n\t\t\t\t\t\t$item_result = $cached_item[$asin]['item'];\n\t\t\t\t\t\t$is_cached = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $is_cached ) {\n\t\t\t$item_result = $this->handleRESTcall( $this->getRestItemLookupParams( $asin, $associatedid ) );\n\t\t\tif ( ! (isset( $item_result['Error'] ) || isset( $item_result['Items']['Request']['Errors'] )) ) {\n\t\t\t\t$cached_item[$asin]['time'] = time();\n\t\t\t\t$cached_item[$asin]['item'] = $item_result;\n\t\t\t\tupdate_option( $this->db_options_name_cached_item, $cached_item );\n\t\t\t}\n\t\t}\n\t\treturn ($item_result);\n\t}", "protected function getCache($key = null) {\n if (!$key) {\n $key = \"data\";\n }\n $fullKey = \"cache-\".$this->getID().\"-{$key}\";\n\n $found = false;\n $cached = \\apcu_fetch($fullKey, $found);\n if ($found) {\n return $cached;\n }\n return false;\n }", "public function get($key)\n {\n if (defined('DISABLE_CACHE') || !$this->_connected)\n {\n return false;\n }\n\n return $this->_Memcache->get($key);\n }", "public function get($key) {\n try{\n if (isset($this->Items[$key])) {\n return $this->Items[$key];\n } else {\n return false;\n }\n }catch(Exception $e){\n throw $e;\n }\n }", "public function get($key)\n {\n if ($this->debugMode) {\n return false;\n }\n $key = \"{$this->prefix}{$key}\";\n $result = false;\n if ($this->useAPC) {\n $result = \\apc_fetch($key);\n } else {\n $this->dbCache->IWillBeCareful();\n $this->dbCache->Query(\n sprintf(\n self::EXPIRE,\n \"{$this->dbCacheTablePrefix}cache\"\n ),\n time()\n );\n try {\n $results = $this->dbCache->Query(\n sprintf(\n self::SELECT,\n \"{$this->dbCacheTablePrefix}cache\"\n ),\n $key\n );\n $result = $this->dbCache->FetchArray($results, Database::FETCH_ASSOC);\n if ($result) $result = \\unserialize($result[\"cache_var\"]);\n } catch (\\PDOException $ignored) {\n }\n }\n return $result;\n }", "public function get($id)\r\n\t{\t\r\n\t\t$data = $this->_memcached->get($id);\r\n\t\treturn (is_array($data)) ? $data[0] : FALSE;\r\n\t}", "public function getCachedItem()\n {\n $data = ['test'];\n $key = 'test';\n $composed = 'cache-bin:test';\n\n $server = $this->getMemcachedMock(['get']);\n $server->expects($this->once())\n ->method('get')\n ->with($composed)\n ->willReturn($data);\n $this->driver->server = $server;\n $item = $this->driver->get($key);\n $this->assertEquals($data, $item->getData());\n $this->assertTrue($item->isValid());\n }", "function wp_cache_get( $key, $group = '', $force = false, &$found = null ) {\n\t\treturn false;\n\t}", "private function _getCache($term) {\n\t\t// find our search term\n\t\t$result = $this->db->get_where('Cache', array('Term' => $term, 'Expires >' => date(\"Y-m-d H:i:s\")))->row_array();\n\t\t// did we get one that isn't expired?\n\t\tif ($result) { \n\t\t\t// cache hit\n\t\t\treturn $result['Data'];\n\t\t}\n\t\t// cache miss\n\t\treturn false;\n\t}", "private function _shouldBeCached()\n {\n $item = $this->repo->get(SettingKeys::CACHE_SETTINGS);\n //The setting failed to fetch, don't cache value to be on the safe side.\n if (!$item) {\n Log::channel('runtime')->warning(\n '[SettingsManager:39] Failed to fetch setting.',\n ['key' => SettingKeys::CACHE_SETTINGS]\n );\n return false;\n }\n return $item->value;\n }", "public function get($key)\n {\n if (isset($this->cache[$key])) {\n list($expires, $value) = $this->cache[$key];\n if (!$expires || ($expires >= microtime(true))) {\n return $value;\n }\n unset($this->cache[$key]);\n }\n return false;\n }", "function getItem($name){\n\t\t$i = cacheItem::getInstance($name);\n\t\tif(empty($i->cacheTime) && empty($i->content) ){\n\t\t\t$datas = $this->db->select_row(self::$tableName,'*',array('WHERE name=?',$name));\n\t\t\tif( false !== $datas)\n\t\t\t\t$i->setDatas($datas);\n\t\t}\n\t\treturn $i;\n\t}", "public function isExistInCache($key);", "private function checkForCache($key)\n {\n if ($this->cache && !$this->ignoreCache && (false !== $data = $this->cache->fetch($key))) {\n return $data;\n }\n }", "public function getItem($key): CacheItem;", "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "public function isCached(): bool;", "function getCache() {\n\t\tif ( !$this->postID )\n\t\t\treturn false;\n\t\t\t\n\t\t$sql = \"SELECT cached_result FROM $this->cacheTable WHERE post_id = '\" . $this->db->escape( $this->postID ) . \"'\";\n\t\t\t\n\t\t$results = $this->db->get_results( $sql );\n\t\t\n\t\tif ( !$results[0] )\n\t\t\treturn false;\n\t\t\t\n\t\treturn $results[0]->cached_result;\n\t}", "public function get($name)\n {\n if (array_key_exists($name, $this->cache)) {\n return $this->cache[$name];\n }\n return false;\n }", "public function get($cacheKey) {\n\t\t$key = sprintf('DAOCache:%s:%s', $this->keyPrefix, sha1($cacheKey));\n\t\t$hits = $this->fileCache->get($key);\n\t\tif (($hits !== false) && (isset($hits['q'])) && (isset($hits['r'])) &&\n\t\t\t($hits['q'] == $cacheKey)) {\n\t\t\treturn $hits['r'];\n\t\t}\n\t\treturn false;\n\t}", "function get($key){\n\t\tif ($this->connect_successful) return @$this->memcache->get($key);\n\t\telse return NULL;\n\t}", "public function getValue($key)\n\t{\n $cacheItem = $this->_yiiron->get($key);\n\t\tif ($cacheItem != null && $cacheItem->value != null)\n\t\t\treturn $cacheItem->value;\n else\n return false;\n\t}", "public function retrieve($item);", "public function isCached() {}", "public static function checkCache($key): mixed\n {\n if ($memcached = self::init()) {\n if ($memcached->get($key)) return $memcached->get($key);\n }\n\n return false;\n }", "public function getItem(string $key): CacheItemInterface;", "function cacheObjectExists ()\n {\n return is_file($this->cacheObjectId);\n }", "public function getUnknownItem()\n {\n $key = 'test';\n $composed = 'cache-bin:test';\n $server = $this->getMemcachedMock(['get']);\n $server->expects($this->once())\n ->method('get')\n ->with($composed)\n ->willReturn(false);\n $this->driver->server = $server;\n $item = $this->driver->get($key);\n $this->assertNull($item->getData());\n $this->assertFalse($item->isValid());\n }", "function driver_get($keyword, $option = array()) {\n // return value if in caching\n try {\n $stm = $this->db($keyword)->prepare(\"SELECT * FROM `caching` WHERE `keyword`=:keyword LIMIT 1\");\n $stm->execute(array(\n \":keyword\" => $keyword\n ));\n $row = $stm->fetch(PDO::FETCH_ASSOC);\n\n } catch(PDOException $e) {\n\n $stm = $this->db($keyword,true)->prepare(\"SELECT * FROM `caching` WHERE `keyword`=:keyword LIMIT 1\");\n $stm->execute(array(\n \":keyword\" => $keyword\n ));\n $row = $stm->fetch(PDO::FETCH_ASSOC);\n }\n if($this->isExpired($row)) {\n $this->deleteRow($row);\n return null;\n }\n\n if(isset($row['id'])) {\n $data = $this->decode($row['object']);\n return $data;\n }\n return null;\n }", "public function getItem($itemId)\n {\n if (!$itemId) {\n return false;\n }\n return $this->getItemCollection()->getItemById($itemId);\n }", "function _cache_get ($cache_name = \"\") {\n\t\tif (empty($cache_name)) {\n\t\t\treturn false;\n\t\t}\n\t\t$cache_file_path = $this->_prepare_cache_path($cache_name);\n\t\treturn $this->_get_cache_file($cache_file_path);\n\t}", "public function exists($key)\n\t{\n\t\t$result = $this->cacheLayer->exists($key);\n\t\tLogger::getInstance()->log(LoggerEntry::CACHE, 'Cache', 'Try to find key [' . $key . '] into cache: ' . ($result ? 'true' : 'false'));\n\t\treturn $result;\n\t}", "public function fetch($key)\n {\n $file_name = $this->getFilePath($key);\n if (!\\file_exists($file_name) || !\\is_readable($file_name)) {\n return false;\n } else {\n $h = \\fopen($file_name, 'r');\n //lock file\n \\flock($h, LOCK_SH);\n }\n\n $data = \\file_get_contents($file_name);\n\n //release lock\n \\fclose($h);\n\n $data = @\\unserialize($data);\n\n //check to see if it expired\n if ($data && ($data[0] == 0 || time() <= $data[0])) {\n return $data[1];\n } else {\n $this->delete($key);\n return false;\n }\n\n return $data[1];\n }", "public function read($key)\n {\n try {\n $cache = $this->db->from($this->table)\n ->where($this->columns['key'])->eq($this->prefix . $key)\n ->select()\n ->fetchAssoc()\n ->first();\n } catch (PDOException $e) {\n return false;\n }\n\n if ($cache !== false) {\n $expire = (int) $cache[$this->columns['ttl']];\n\n if ($expire === 0 || time() < $expire) {\n return unserialize($cache[$this->columns['data']]);\n }\n\n $this->delete($key);\n }\n\n return false;\n }", "public static function has($key){\n return \\Illuminate\\Cache\\Repository::has($key);\n }", "function FetchOne($result=null, $item=null)\n\t{\n\t\tif ($result === null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!is_resource($result)) {\n\t\t\t$result = $this->Query($result);\n\t\t}\n\t\t$row = $this->Fetch($result);\n\t\tif (!$row) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($item === null) {\n\t\t\tforeach ($row as $k => $v) {\n\t\t\t\tif (strtolower($k) != 'r') {\n\t\t\t\t\t$item = $k;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tif (!isset($row[$item])) {\n\t\t\treturn false;\n\t\t}\n\t\tif($this->magic_quotes_runtime_on) {\n\t\t\t$row[$item] = stripslashes($row[$item]);\n\t\t}\n\t\treturn $row[$item];\n\t}", "public function fetchItemByHash( $hash )\r\n {\r\n if (empty( $this->items ))\r\n {\r\n return false;\r\n }\r\n \r\n foreach ( $this->items as $item )\r\n {\r\n if ($item['hash'] == $hash)\r\n {\r\n return $item;\r\n }\r\n }\r\n \r\n return false;\r\n }", "public function fetch($id)\n\t{\n\t\t$prefix_id = $this->id_prefix . $id;\n\n\t\t$data = false;\n\n\t\t$is_loaded = false;\n\n\t\tif (array_key_exists($prefix_id, $this->loaded)) {\n\t\t\t$is_loaded = true;\n\t\t} else {\n\t\t\tforeach ($this->loaded_prefixes as $check_prefix) {\n\t\t\t\tif (strpos($prefix_id, $check_prefix) === 0) {\n\t\t\t\t\t$is_loaded = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($is_loaded) {\n\t\t\tif (!isset($this->loaded[$prefix_id]) || $this->loaded[$prefix_id] === null) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$data = $this->loaded[$prefix_id];\n\n\t\t} else {\n\t\t\t$date = date('Y-m-d H:i:s');\n\n\t\t\ttry {\n\t\t\t\t$record = $this->db->fetchAssoc(\"\n\t\t\t\t\tSELECT data\n\t\t\t\t\tFROM cache\n\t\t\t\t\tWHERE id = ? AND (date_expire IS NULL OR date_expire > ?)\n\t\t\t\t\", array($prefix_id, $date));\n\t\t\t} catch (\\Exception $e) {\n\t\t\t\t$record = null;\n\t\t\t\tif (!$this->silence_exceptions) {\n\t\t\t\t\tthrow $e;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($record) {\n\t\t\t\t$this->loaded[$prefix_id] = $record['data'];\n\t\t\t\t$data = $this->loaded[$prefix_id];\n\t\t\t} else {\n\t\t\t\t$this->loaded[$prefix_id] = null;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (is_scalar($data) && $this->auto_unserialize && !is_numeric($data) && preg_match('#^(a|O):[0-9]+:#', $data)) {\n\t\t\t$this->loaded[$prefix_id] = $data = unserialize($data);\n\t\t}\n\n\t\treturn $data;\n\t}", "protected function loadCacheData()\n\t{\n\t\t//is it enabled?\n\t\tif ($this->useObjectCaching)\n\t\t{\n\t\t\t//get our cache data... is it there?\n\t\t\t$data = $this->getCache();\n\t\t\tif ($data)\n\t\t\t{\n\t\t\t\t//load it, and we're good.\n\t\t\t\t$this->hydrate($data);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "private function fetch()\n\t{\n\t\tif ($this->sqlResource)\n\t\t{\n\t\t\treturn mysql_fetch_assoc($this->sqlResource);\n\t\t}\n\t\telse\n\t\t\treturn FALSE;\n\t}", "public function get($key){\n if( $value = $this->memcache->get($this->prefix.$key) ) {\n return $value;\n }\n }", "function driver_get($keyword, $option = array()) {\n // return value if in caching\n\n $x = wincache_ucache_get($keyword,$suc);\n\n if($suc == false) {\n return null;\n } else {\n return $x;\n }\n }", "function exists() {\n\t\tif ( !$this->postID )\n\t\t\treturn false;\n\t\t\t\n\t\t$sql = \"SELECT post_id FROM $this->cacheTable WHERE post_id = \" . $this->db->escape( $this->postID ) . \"\";\n\t\t\n\t\t$results = $this->db->get_results( $sql );\n\t\t\n\t\tif ( $results[0] )\n\t\t\treturn true;\n\t\t\t\n\t\treturn false;\n\t\t\n\t}", "protected function load_item( $name ) {\n\t\t// An item name has been provided\n\t\tif ( is_string( $name ) ) {\n\t\t\t// No need to reload the same item\n\t\t\tif ( isset( $this->item['name'] ) and $this->item['name'] === $name ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t// Query condition\n\t\t\t/*sqlite_escape_string repalce with mysqli_escape_string PHP7 Compatibility*/\n\t\t\t$where = \"name = '\" . mysqli_escape_string( (string) $name ) . \"'\";\n\t\t} // End if().\n\t\telse {\n\t\t\t// Quick id cleanup\n\t\t\t$id = (int) $name;\n\n\t\t\t// No need to reload the same item\n\t\t\tif ( isset( $this->item['id'] ) and (int) $this->item['id'] === $id ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t// Query condition\n\t\t\t$where = \"id = $id\";\n\t\t}\n\n\t\t// Select the item by name\n\t\t$item = ThumbsUp_Database::db()->arrayQuery(\"\n\t\t\tSELECT id, name, closed, date\n\t\t\tFROM items\n\t\t\tWHERE $where\", SQLITE_ASSOC);\n\n\t\t// The item does not exist\n\t\tif ( empty( $item ) ) {\n\t\t\t// Reset the item property\n\t\t\t$this->item = null;\n\t\t\treturn false;\n\t\t}\n\n\t\t// Load the item row into the class\n\t\t$this->item = current( $item );\n\t\treturn true;\n\t}", "public function get( $id ) {\n\t\tif ( ! file_exists( $this->cache_directory . $this->encode_id( $id ) ) || ! is_file( $this->cache_directory . $this->encode_id( $id ) ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$data = unserialize( file_get_contents( $this->cache_directory . $this->encode_id( $id ) ) );\n\n\t\tif ( time() > ( $data['time'] + $data['expire'] ) ) {\n\t\t\t$this->remove( $this->encode_id( $id ) );\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn unserialize( $data['data'] );\n\t}", "public function __get($name) {\n\t\t$data = $this->_cache->load($this->_namespace);\n\t\tif(isset($data[$name])) {\n\t\t\treturn $data[$name];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function readFromCache()\r\n {\r\n $result = null;\r\n if(extension_loaded('apc') && ini_get('apc.enabled')) {\r\n $result = apc_fetch($this->getCacheKey());\r\n }\r\n return $result;\r\n }", "public function fetch($key = '')\n\t{\n\t\tif (!empty($key))\n\t\t{\n\t\t\treturn apc_fetch($this->getfilename($key));\n\t\t}\n\t\treturn false;\n\t}", "function fetch_from_cache($key){\n\tglobal $SYSTEM_SHOW_CACHE_METRICS, $TAG;\n\n\t$key = \"$TAG:$key\";\n\n\t$timer_bgn = microtime(true);\n\n\t$val = null;\n\tif ( function_exists('apc_fetch') ) {\n\t\t$val = apc_fetch($key);\n\t\tif ( $val ) {\n\t\t\t$timer_end = microtime(true);\n\n\t\t\tif ($SYSTEM_SHOW_CACHE_METRICS)\n\t\t\t\telog(\"time took fetching from APC-cache for key: $key: \" . ($timer_end - $timer_bgn));\n\t\t}\n\t} else {\n\t\t$redis = conn_redis();\n\t\t$val = $redis->get($key);\n\n\t\tif ( $val ) {\n\t\t\t$timer_end = microtime(true);\n\n\t\t\tif ($SYSTEM_SHOW_CACHE_METRICS)\n\t\t\t\telog(\"time took fetching from REDIS-cache for key: $key: \" . ($timer_end - $timer_bgn));\n\t\t\t$val = @json_decode($val, true);\n\t\t}\n\t}\n\n\treturn $val;\n}", "public function get($key) {\n $this->logger->debug('Getting cache data for key [' . $key . ']');\n $filePath = $this->getFilePath($key);\n if (!file_exists($filePath)) {\n $this->logger->info('No cache file found for the key [' . $key . '], return false');\n return false;\n }\n $this->logger->info('The cache file [' . $filePath . '] for the key [' . $key . '] exists, check if the cache data is valid');\n $data = $this->getCacheFileContent($filePath);\n if ($data === false) {\n $this->logger->error('The cache data for the key [' . $key . '] is not valid, return false');\n // If unserializing somehow didn't work out, we'll delete the file\n unlink($filePath);\n return false;\n }\n if (time() > $data['expire']) {\n $this->logger->info('The cache data for the key [' . $key . '] already expired delete the cache file [' . $filePath . ']');\n // Unlinking when the file was expired\n unlink($filePath);\n return false;\n } \n $this->logger->info('The cache not yet expire, now return the cache data '\n . 'for key [' . $key . '], the cache will expire ' \n . 'at [' . date('Y-m-d H:i:s', $data['expire']) . ']');\n return $data['data'];\n }", "public function get( $key, $group = 'default', $force = false, &$found = null ) {\n\t\t$id = $this->_key( $key, $group );\n\n\t\tif ( $this->_exists( $id ) ) {\n\t\t\t$found = true;\n\t\t\t$this->cache_hits += 1;\n\n\t\t\tif ( $this->_should_persist( $group ) && ( $force || ( ! isset( $this->cache[ $id ] ) && ! array_key_exists( $id, $this->cache ) ) ) ) {\n\t\t\t\t$this->cache[ $id ] = $this->redis->get( $id );\n\t\t\t\tif ( ! is_numeric( $this->cache[ $id ] ) ) {\n\t\t\t\t\t$this->cache[ $id ] = unserialize( $this->cache[ $id ] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( is_object( $this->cache[ $id ] ) )\n\t\t\t\treturn clone $this->cache[ $id ];\n\t\t\telse\n\t\t\t\treturn $this->cache[ $id ];\n\t\t}\n\n\t\t$found = false;\n\t\t$this->cache_misses += 1;\n\t\treturn false;\n\t}", "public function getCache($url, $data = []){\n \t$this->_setData($data);\n \t$this->cacheredis \t= $this->redis->hGet(\"api/$url\",$this->dataredis );\n \t#$this->common->debug(\"api/$url\",FALSE);\n \t#$this->common->debug($this->dataredis);\n \tif( $this->cacheredis){\n \t\treturn $this->cacheredis;\n \t}else{\n \t\treturn FALSE;\n \t}\n }", "public function lookup($key)\r\n {\r\n\t\t// create the unique cache key of the entity\r\n \t$cacheKey = $this->getCacheKey($key);\r\n \t// check if a entity with the passed primary key is available\r\n if (array_key_exists($cacheKey, $this->_entities)) {\r\n \treturn $this->_entities[$cacheKey];\r\n }\r\n // check if the requested entity exists in cache\r\n elseif($this->getCache()->test($cacheKey)) {\r\n \treturn $this->getCache()->load($cacheKey);\r\n }\r\n // if not return null\r\n else {\r\n \treturn null;\r\n }\r\n }", "public function get(string $key)\n {\n if (! $this->has($key)) {\n return false;\n }\n\n return $this->items[$key];\n }", "public function readCache() {\n\t\tif(file_exists($this -> sCacheDir . $this -> sCacheFile)) {\n\t\t\treturn file_get_contents($this -> sCacheDir . $this -> sCacheFile);\n\t\t}\n\t\treturn false;\n\t}", "private function inCache()\n\t{\n\t\t$content = $this->_cache->retrieve($this->redditid); //faster if we have it in cache already\n\t\treturn $content;\n\t}", "public function get($key)\n {\n if (!$this->isCached($key)) {\n return false;\n }\n return file_get_contents($this->path . '/' . $key);\n }", "public function get($key)\n {\n if (!$this->m_active) {\n return false;\n }\n\n $rawCacheValue = apc_fetch($this->getRealKey($key));\n $cacheValue = is_string($rawCacheValue) ? unserialize($rawCacheValue) : $rawCacheValue;\n return $cacheValue;\n }", "public function hasCacheStore(): bool;", "protected function doGet($id)\n {\n $filename = $this->getFilename($id);\n\n if (!is_file($filename)) {\n return false;\n }\n\n $cacheEntry = unserialize(file_get_contents($filename));\n\n if ($cacheEntry['ttl'] !== Cache::TTL_NO_EXPIRY && $cacheEntry['ttl'] < time()) {\n return false;\n }\n\n return $cacheEntry['data'];\n }", "public function get($id)\n {\n $filename = $this->cachePath . urlencode($id);\n if (!file_exists($filename)) {\n return false;\n }\n $retryCounter = 10;\n while (!($var = file_get_contents($filename)) && $retryCounter > 0) {\n usleep(200);\n $retryCounter--;\n }\n if (!$var) {\n return false;\n }\n $var = unserialize($var);\n if ($var['ttl'] < time()) {\n return false;\n }\n return $var['payload'];\n }", "public function fetchItem($path, $options = [])\n {\n $filepath = $this->_getFullPath($path);\n $path = realpath($filepath);\n\n if (!$path || !file_exists($path)) {\n return false;\n }\n\n return file_get_contents($path);\n }", "private function isCached()\n {\n return Cache::has($this->cacheKey());\n }", "function driver_get($keyword, $option = array()) {\n // return value if in caching\n $data = xcache_get($keyword);\n if($data === false || $data == \"\") {\n return null;\n }\n return $data;\n }", "protected function cacheGet($name)\n {\n if ($this->getCacheComponent()) {\n return $this->getCacheComponent()->get($name);\n }\n $path = $this->getCachePathForName($name);\n if (is_readable($path)) {\n return unserialize(file_get_contents($path));\n }\n return false;\n }", "abstract public function getItem($url,$itemId);", "public function get($key)\n\t\t{\n\t\t\tif (isset($this->storage[$key]))\n\t\t\t\treturn $this->storage[$key];\n\t\t\telse return false;\n//\t\t\treturn self::getInstance()->$key;\n\t\t}", "function exists() {\n \n return !empty($this->cache);\n \n }", "abstract function get ($item);", "public function Get ( $key )\r\n\t{\r\n\t\t$normal_key = self::CACHE_PREFIX . $this->_ns . '_' . $key;\r\n\t\t$sticky_key = self::CACHE_STICKY . $this->_nss . '_' . $key;\r\n\t\t\r\n\t\t// Sticky keys take precedence\r\n\t\t$result = $this->_cache->get ( $sticky_key );\r\n\t\tif ( $result === false )\r\n\t\t\t$result = $this->_cache->get ( $normal_key );\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "public function retrieve($key) {\n $value = $this->_memcache->get($key);\n if ($value === false) $value = null;\n return $value;\n }", "protected function _loadItem( $itemId )\n\t{\n\t\tif ( !$itemId ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$news = Mage::getModel( 'magna_news/news' )\n\t\t\t\t->setStoreId( Mage::app()->getStore()->getId() )\n\t\t\t\t->load($itemId);\n\t\t\t\t\n\t\tif ( !$news->getId() || $news->getClosed() ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tMage::register( 'current_news' , $news );\n\t\t\n\t\treturn $news;\n\t}", "public function retrieve($key) {\n if ($this->memcache !== NULL) {\n $value = $this->memcache->get($key);\n if ($value !== false) {\n return $value;\n }\n } \n return null;\n }", "public function getItem($key) {\n\t\t$this->checkKey($key);\n\n\t\t$found = false;\n\t\t$item = $this->adapter->get($key, $found);\n\n\t\tif (!$found) {\n\t\t\t$item = array('payload' => null, 'ttl' => null);\n\t\t}\n\n\t\treturn new CacheItem($key, $item, $found, $this);\n\t}", "public function exists($id) {\n\t\t$is_cached = false;\n\t\tapc_fetch($id, $is_cached);\n\t\treturn $is_cached;\n\t}", "public function itemExists($key);", "public function getCache()\n {\n if ($this->cache && $this->cacheExists()) {\n return(file_get_contents($this->getCacheFile()));\n } else {\n return(false);\n }\n }", "function wp_cache_get($key, $group = '', $force = false, &$found = null)\n{\n global $wp_object_cache;\n\n return $wp_object_cache->get($key, $group, $force, $found);\n}", "function wp_cache_get($key, $group = '', $force = false, &$found = null)\n{\n global $wp_object_cache;\n\n return $wp_object_cache->get($key, $group, $force, $found);\n}", "public function getItem()\n\t{\n\t\tif (!isset($this->item))\n\t\t{\n\t\t\t$query = $this->_db->getQuery(true);\n\t\t\t$query->select('*');\n\t\t\t$query->from('#__document');\n\t\t\t$query->where('id = '.(int)$this->getState('document.id'));\n\t\t\t$this->_db->setQuery($query);\n\t\t\t$item = $this->_db->loadObject();\n\n\t\t\t// Check for a database error.\n\t\t\tif ($this->_db->getErrorNum())\n\t\t\t{\n\t\t\t\t$this->setError($this->_db->getErrorMsg());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$this->item = $item;\t\t\n\t\t}\n\t\treturn $this->item; \n\t}", "public function getItem($pk = null)\n\t{\n\t\t// Initialise variables.\n\t\t$pk = (!empty($pk)) ? $pk : (int) $this->getState('category.category_id');\n\n\t\t//var_dump($pk);die;\n\n\t\t//if (!isset($this->_cache[$pk])) {\n\t\t\t$false\t= false;\n\n\t\t\t// Get a row instance.\n\t\t\t$table = $this->getTable();\n\t\t\t\n\t\t\t//var_dump($table);die;\n\n\t\t\t// Attempt to load the row.\n\t\t\t$return = $table->load($pk);\n\n\t\t\t// Check for a table object error.\n\t\t\tif ($return === false && $table->getError()) {\n\t\t\t\t$this->setError($table->getError());\n\t\t\t\treturn $false;\n\t\t\t}\n\n\t\t\t// Convert to the JObject before adding other data.\n\t\t\t$properties = $table->getProperties(1);\n\t\t\t$this->_cache[$pk] = JArrayHelper::toObject($properties, 'JObject');\n\n\t\t\t//var_dump($this->_cache[$pk]);die;\n\n\t\t\treturn $this->_cache[$pk];\n\t\t\n\t}", "public function get()\n\t{\n\t\tif($this->has())\n\t\t{\n\t\t\t$assets = Cache::get($name = $this->name());\n\n\t\t\treturn $assets;\n\t\t}\n\n\t\treturn false;\n\t}", "public function getFromCache() {}", "function cached($url = false, $cache_timeout = 15) {\n\t\tif(!$url) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$cache_file = $this->cachefile($url);\n\t\t\n\t\t$cache_timeout = $cache_timeout * 60;\n\t\t\n\t\t$cache_exists = file_exists($cache_file);\n\t\t\n\t\tif($cache_exists) {\n\t\t\t$cache_valid = (filemtime($cache_file)+$cache_timeout > time());\n\t\t} else {\n\t\t\t$cache_valid = false;\n\t\t}\n\t\t\n\t\tif($cache_exists && $cache_valid) {\n\t\t\t$cache_data = trim(file_get_contents($cache_file));\n\t\t\t$cache_object = @json_decode($cache_data);\n\t\t\tif($cache_data && $cache_object) {\n\t\t\t\treturn $cache_object;\n\t\t\t}\n\t\t} else if($cache_exists && !$cache_valid) {\n\t\t\tunlink($cache_file);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function get($key) {\n\t\t\tglobal $__cachemem;\n\t\t\t$file = CACHE_DIR.md5($key).\".cache\";\n\t\t\tif($__cachemem[$key] != \"\") {\n\t\t\t\treturn $__cachemem[$key];\n\t\t\t}\n\t\t\tif(@file_exists($file)) {\n\t\t\t\t$dump = file_get_contents($file);\n\t\t\t\tdebugLog(\"Cache file gelesen\", \"Cache File wurde erfolgreich gelesen - KEY: '\".$key.\"'\",$file);\n\t\t\t\t$res = @unserialize($dump);\n\t\t\t\t$__cachemem[$key] = $res;\n\t\t\t\treturn $res;\n\t\t\t} else {\n\t\t\t\t//debugLog(\"Cache File fehler\",\"Cache file konnte nicht gefunden werden, expired?\",$file,UNKWN,DBUG_WARNING);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function hasItem($key)\n\t{\n\t\t$this->checkKeyName($key);\n\n\t\t$item = new Item($this->redisClient, $key);\n\n\t\treturn $item->isHit();\n\t}", "public function getCacheId($id)\n\t{\n\t\t$dataFromCache = $this->cache->load($id);\n\t\tif ($dataFromCache) {\n\t\t\treturn unserialize($dataFromCache);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public function save(CacheItem $item): bool;" ]
[ "0.6815725", "0.6771016", "0.67437273", "0.6671386", "0.6507119", "0.6499336", "0.6492086", "0.64740384", "0.64440376", "0.64123774", "0.6384782", "0.6369906", "0.626211", "0.6259401", "0.6258921", "0.6249851", "0.62400097", "0.62361", "0.62152684", "0.61944664", "0.6194388", "0.61922896", "0.6182023", "0.61578023", "0.6152701", "0.6144904", "0.6101074", "0.6089072", "0.6065901", "0.6058529", "0.60519296", "0.6042482", "0.60279644", "0.600031", "0.5939096", "0.59378564", "0.59373295", "0.59351367", "0.5925745", "0.5922813", "0.5912584", "0.5899562", "0.5898967", "0.5889301", "0.58877665", "0.58645236", "0.5863441", "0.5859282", "0.58565176", "0.5843346", "0.58303225", "0.5825698", "0.5823708", "0.5822723", "0.58222663", "0.58050203", "0.5804261", "0.5802485", "0.5785181", "0.5778549", "0.5769906", "0.57651716", "0.5763637", "0.57631534", "0.57620233", "0.5761456", "0.57581854", "0.5756573", "0.5756095", "0.5729001", "0.5728127", "0.57248545", "0.57247007", "0.57236123", "0.5718767", "0.57152766", "0.571057", "0.56984884", "0.569767", "0.56960845", "0.56923354", "0.5675609", "0.567458", "0.5674036", "0.5659932", "0.56591487", "0.565677", "0.565097", "0.5648384", "0.5643919", "0.5643919", "0.5638872", "0.56367064", "0.5632013", "0.56292856", "0.56224376", "0.5621378", "0.5595792", "0.55906814", "0.55902696" ]
0.6186209
22
save an item to the cache store.
public function save(string $id, $data, int $ttl = null, bool $raw = false) : bool { $this->cache[$id] = $data; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveItem(cacheItem $item);", "public function save(CacheItem $item): bool;", "public function save(CacheItemInterface $item): bool;", "function saveItem(cacheItem $item){\n\t\tif(empty($item->content))\n\t\t\t$this->removeItem($item);\n\t\t$item->cacheTime = date('Y-m-d H:i:s');\n\t\t$values = $this->db->process_conds(array('(?)',$item->datas));\n\t\treturn $this->db->query('REPLACE INTO '.self::$tableName.' (name,content,cacheTime) VALUES '.$values);\n\t}", "public function Save($item)\n {\n $item->Save();\n }", "private function saveCache(): void\n {\n //====================================================================//\n // Safety Check\n if (!isset($this->cacheItem) || !isset($this->cache) || empty($this->cache)) {\n return;\n }\n //====================================================================//\n // Save Links are In Cache\n $this->cacheItem->set($this->cache);\n $this->cacheAdapter->save($this->cacheItem);\n }", "protected function saveToCache() {}", "public function save(CacheItemInterface $item)\n {\n return true;\n }", "public function save( CacheItemInterface $item ) {\n return true;\n }", "public function save(CacheItemInterface $item)\n\t{\n\t\t// Save the item permanently if it is not from this lib\n\t\tif (!$item instanceof Item) {\n\t\t\ttry {\n\t\t\t\t$this->redisClient->set($item->getKey(), $item->get());\n\n\t\t\t\treturn true;\n\t\t\t} catch (\\RuntimeException $exception) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\t$item->save();\n\n\t\t\treturn true;\n\t\t} catch (\\RuntimeException $exception) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function saveItem( \\Aimeos\\MShop\\Swpost\\Item\\Iface $item, bool $fetch = true ) : \\Aimeos\\MShop\\Swpost\\Item\\Iface;", "public function saveCache()\n {\n if($this->isCacheExists()){\n if($this->isUpdateRequired()){\n $this->updateCache();\n }\n } else {\n $this->packData()->writeFile();\n }\n }", "public function save()\r\n\t{\r\n\t\t$this->getCache()->save($this->key, ob_get_flush(), $this->frame);\r\n\t\t$this->key = $this->frame = NULL;\r\n\t}", "public function save($cache_name, $cache_data, $expires);", "public function save ($key, $data) {\n return $this->cache->set($key, $data);\n }", "public function saveDeferred(CacheItemInterface $item)\n {\n }", "public function save()\n {\n $this->readCache();\n\n file_put_contents($this->filePath, json_encode($this->cacheContents));\n }", "function save($data, $key)\n {\n return $this->cache->save($data, $key, $this->group);\n }", "protected function cacheSave() {\n $data = array();\n foreach ($this->properties as $prop) {\n $data[$prop] = $this->$prop;\n }\n //cache_set($this->id, $data, 'cache');\n }", "private function cacheJsonWebToken($item)\n {\n $jwt = $this->getJsonWenToken();\n\n $item\n ->set($jwt)\n ->expiresAfter($this->decodeJWT($jwt)->exp);\n\n $this->cache->save($item);\n }", "public function saveToCache(){\r\n\t\t$n = \"hotspot_\" . $this->id;\r\n\r\n\t\t\\CacheHandler::setToCache($n,$this,20*60);\r\n\t}", "public function saveToCacheForever();", "private function saveItems()\n {\n $this->storage->save($this->items);\n }", "public function save($id, $data)\n\t{\n\t\t$this->cache->load($id);\n\t\t$this->cache->save( serialize($data) );\n\t}", "public function saveDeferred(string $transactionKey, CacheItem $item): bool;", "public function set(CacheableInterface $item)\n {\n $this->getConnection()->set($item->getHashKey(), $item->getDataForCache());\n if (null !== $item->getTtl()) {\n $this->getConnection()->expire($item->getHashKey(), $item->getTtl());\n }\n }", "public function save($key, $data, $ttl=0)\n\t{\n\n\t\t$success = $this->_cache->set($key, $data, $ttl);\n\t\treturn $success;\n\n\t}", "public static function storeItem($item)\n {\n //return DB::table('employees')->insertGetId($item); //RETURN ID\n return self::create($item); //RETURN OBJECT\n }", "function save(List8D_Model_Item $item) {\n\t\t//$this->_db->setFetchMode(Zend_Db::FETCH_OBJ);\n\t\t\n\t\t$objectData = $this->getObjectDataArray($item);\n\t\t\n\t\tif($item->getId() === null){\n\t\t\t//insert\n\t\t\t$objectData['created'] = date('Y-m-d H:m:s');\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t$this->getDbTable()->insert($objectData);\n\t\t\t$item->setId($this->getDbTable()->getAdapter()->lastInsertId());\n\t\t\t\n\t\t\t// creating a new item, so add some data by default\n\t\t\t//$item->setPrivateNotes('');\n\t\t\t//$item->setCoreText(0);\n\t\t\t//$item->setRecommendedForPurchase(0);\n\t\t\t\n\t\t\t// log the insert/duplicate\n\t\t\tif ($item->getDuplicate()) {\n\t\t\t\t$item->log(array('action'=>'duplicate', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>'', 'value_from'=>$item->getDuplicate(), 'value_to'=>''));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$item->log(array('action'=>'insert', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId()));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t//update\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t\n\t\t\t// we have to do a select first to find out what the current values are for logging (see below)\n\t\t\t$existingData = $this->getDbTable()->fetchAll($this->getDbTable()->select()->where( 'id = ?', $item->getId()));\n\t\t\t\n\t\t\t$this->getDbTable()->update($objectData, \"id = \".$item->getId());\n\t\t\t\n\t\t\t// log changes\n\t\t\t// go through every piece of data for the object and if it's changed, make a separate log entry for it\n\t\t\tforeach ($objectData as $key=>$value) {\n\t\t\t\tif ($objectData[$key] != $existingData[0][$key]) {\n\t\t\t\t\t$item->log(array('action'=>'update', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>$key, 'value_from'=>$existingData[0][$key], 'value_to'=>$objectData[$key]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->saveData($item);\n\t}", "abstract public function save($cacheLabel, $cacheData, $expire = null);", "abstract protected function saveItems();", "protected function _save($item) {\n $save = array(\n 'item_latitude' => filter($this->input->post('item_latitude', TRUE), 'float'),\n 'item_longitude' => filter($this->input->post('item_longitude', TRUE), 'float'),\n 'item_category' => filter($this->input->post('item_category', TRUE), 'str', 30),\n 'item_address' => filter($this->input->post('item_address', TRUE), 'str', 200),\n 'item_message' => filter($this->input->post('item_message', TRUE), 'text', 5000),\n 'item_status' => STATUS_INWORK,\n );\n\n $this->point->update($item, $save);\n $this->point->update_status($item, $save['item_status']);\n\n log_write(LOG_INFO, 'Point save, ID: ' . $item . ', USER: ' . $this->auth->get_user_id(), __METHOD__);\n\n return $this->_send_backend($item, $save);\n }", "public function ___save(Saveable $item) {\n\n\t\t$blank = $this->makeBlankItem();\n\t\t\n\t\tif(!$item instanceof $blank) {\n\t\t\t$className = $blank->className();\n\t\t\tthrow new WireException(\"WireSaveableItems::save(item) requires item to be of type: $className\");\n\t\t}\n\n\t\t$database = $this->wire()->database; \n\t\t$table = $database->escapeTable($this->getTable());\n\t\t$sql = \"`$table` SET \";\n\t\t$id = (int) $item->id;\n\t\t$this->saveReady($item); \n\t\t$data = $item->getTableData();\n\t\t$binds = array();\n\n\t\tforeach($data as $key => $value) {\n\t\t\tif(!$this->saveItemKey($key)) continue; \n\t\t\tif($key === 'data') $value = is_array($value) ? $this->encodeData($value) : '';\n\t\t\t$key = $database->escapeTableCol($key);\n\t\t\t$bindKey = $database->escapeCol($key);\n\t\t\t$binds[\":$bindKey\"] = $value; \n\t\t\t$sql .= \"`$key`=:$bindKey, \";\n\t\t}\n\n\t\t$sql = rtrim($sql, \", \"); \n\n\t\tif($id) {\n\t\t\t\n\t\t\t$query = $database->prepare(\"UPDATE $sql WHERE id=:id\");\n\t\t\tforeach($binds as $key => $value) {\n\t\t\t\t$query->bindValue($key, $value); \n\t\t\t}\n\t\t\t$query->bindValue(\":id\", $id, \\PDO::PARAM_INT);\n\t\t\t$result = $query->execute();\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t$query = $database->prepare(\"INSERT INTO $sql\"); \n\t\t\tforeach($binds as $key => $value) {\n\t\t\t\t$query->bindValue($key, $value); \n\t\t\t}\n\t\t\t$result = $query->execute();\n\t\t\tif($result) {\n\t\t\t\t$item->id = (int) $database->lastInsertId();\n\t\t\t\t$this->getAll()->add($item);\n\t\t\t\t$this->added($item);\n\t\t\t}\n\t\t}\n\n\t\tif($result) {\n\t\t\t$this->saved($item); \n\t\t\t$this->resetTrackChanges();\n\t\t} else {\n\t\t\t$this->error(\"Error saving '$item'\"); \n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function save($key, $value, $expiration);", "abstract public function save( $data = null, $cacheID = '', $serialize = true );", "public function set(CacheableInterface $item)\n {\n $this->connection->set($item->getHashKey(), $item->getDataForCache(), $item->getTtl());\n }", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "private function storeCache($key, $data)\n {\n if ($this->cache) {\n $this->cache->save($key, $data);\n }\n }", "public function put($item, $value)\r\n {\r\n $instance = $this->getInstance($item);\r\n return $instance->put($value);\r\n }", "public function save() {\r\n /** probably we should add a timestamp, Item ID and stuff */\r\n $stored_data = json_encode(array($this->name, $this->status), JSON_UNESCAPED_UNICODE);\r\n $this->db_write(\"objects\", \"Item_s11n\", $stored_data);\r\n print ($stored_data);\r\n }", "public function saveElement(CacheElement $element)\n {\n $path = $element->getPath() . '/index.' . $element->getType(); //Type contains extension\n\n return $this->finder->writeFile($path, $element->getContent());\n }", "public function saveDeferred(CacheItemInterface $item)\n\t{\n\t\ttry {\n\t\t\tarray_push($this->arrayItemsDeferred, $item);\n\t\t\treturn true;\n\t\t} catch (\\RuntimeException $exception) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function save()\n {\n $this->_user->setAttribute(\n 'cart_items',\n $this->_items,\n timpanyCart::SESSION_NS\n );\n }", "public function save($key, $data);", "public function save(ConfigItem $configItem)\n {\n $this->persistenceManager->persist($configItem);\n $this->persistenceManager->flush($configItem);\n }", "public function saveUser($user)\n {\n //save item in the database\n $user->save();\n\n //save item in the cache\n Cache::put('user_'. $user->_id, $user);\n\n return $user;\n }", "public function saveDeferred(CacheItemInterface $item)\n {\n return true;\n }", "public function put(Item $item)\n {\n $this->items->push($item);\n }", "public function save($state)\n\t{\n\t\t$content=serialize($state);\n\t\t$saveFile=true;\n\t\tif(($cache=$this->getApplication()->getCache())!==null)\n\t\t{\n\t\t\tif($cache->get(self::CACHE_NAME)===$content)\n\t\t\t\t$saveFile=false;\n\t\t\telse\n\t\t\t\t$cache->set(self::CACHE_NAME,$content);\n\t\t}\n\t\tif($saveFile)\n\t\t{\n\t\t\t$fileName=$this->getStateFilePath();\n\t\t\tfile_put_contents($fileName,$content,LOCK_EX);\n\t\t}\n\t}", "function save(){\n\t\t// returns the item's id if successful\n\t\tif($this->beforesave()){\n\t\t\t$query = ($this->id?\"UPDATE \":\"INSERT INTO \").$this->tablename.\" SET \";\n\t\t\t$qvalues = \"\";\n\t\t\tforeach($this->dbvariables as $key){\n\t\t\t\t$qvalues .= ($qvalues == \"\"?\"\":\", \").$key.\"='\".trim(addslashes($this->$key)).\"'\";\n\t\t\t}\n\t\t\t$query .= $qvalues;\n\t\t\tif($this->id){\n\t\t\t\t$query .= \" WHERE id=\".$this->id;\n\t\t\t}else{\n\t\t\t\t$query .= \", item_order=\".get_neworder($this->tablename, $this->neworder_where());\n\t\t\t}\n\t\t\tmy_debug(\"Attempting query: \".$query,__FILE__,__LINE__,\"green\");\n\t\t\tif(mysql_query($query)){\t\t\t\t\n\t\t\t\tif(!$this->id && mysql_insert_id())\t$this->id = mysql_insert_id();\n\t\t\t\t$this->onsave();\n\t\t\t\treturn $this->id;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "private function _store()\n {\n return $this->redis->redis->set($this->clientPrefix, json_encode($this->cache));\n }", "public function saveDeferred( CacheItemInterface $item ) {\n return true;\n }", "public function testSave()\n {\n // save to cache\n $saveSearchCriteria = $this->searchCriteriaBuilder\n ->setContextName('cloud')\n ->setEntityName('customer')\n ->setFieldList(['id', 'name'])\n ->setIdName('id')\n ->build();\n\n $data = [['id' => 50, 'name' => 'Sergii']];\n\n $actualSave = $this->cacheManager->save($saveSearchCriteria, $data);\n $this->assertTrue($actualSave);\n }", "public function saveItem( \\Aimeos\\MShop\\Subscription\\Item\\Iface $item )\n\t{\n\t\treturn $this->controller->saveItem( $item );\n\t}", "final public function set(object $value): CacheItemInterface\n\t{\n\t\tif ($stm = $this->_prepare('INSERT INTO `Cache` (\n\t\t\t\t`key`,\n\t\t\t\t`value`,\n\t\t\t\t`expires`\n\t\t\t) VALUES (:key, :value, :expires)\n\t\t\tON DUPLIATE KEY UPDATE\n\t\t\t\t`value` = :value,\n\t\t\t\t`expires`= COALESCE(:expires, NULL);')) {\n\t\t\t$stm->bindValue(':key', $this->getKey());\n\t\t\t$stm->bindValue(':value', serialize($value));\n\n\t\t\tif (isset($this->_expires)) {\n\t\t\t\t$stm->bindValue(':expires', $this->_expires->format(DateTimeInterface::W3C));\n\t\t\t}\n\n\t\t\t$stm->execute();\n\t\t}\n\n\t\treturn $this;\n\t}", "public function save()\n {\n Session::clear(\"Checkout.PostageID\");\n \n // Extend our save operation\n $this->extend(\"onBeforeSave\");\n\n // Save cart items\n Session::set(\n \"Checkout.ShoppingCart.Items\",\n serialize($this->items)\n );\n\n // Save cart discounts\n Session::set(\n \"Checkout.ShoppingCart.Discount\",\n serialize($this->discount)\n );\n\n // Update available postage\n if ($data = Session::get(\"Form.Form_PostageForm.data\")) {\n $country = $data[\"Country\"];\n $code = $data[\"ZipCode\"];\n $this->setAvailablePostage($country, $code);\n }\n }", "protected function save()\n\t{\n\t\t$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t//$this->saveRules();\n\t}", "public function setItem($key, $item);", "function save ($info) {\r\n\t\t// 2) copy $this into store\t\r\n\t}", "function save($id, $cachedata, $expires, $group, $userdata)\n {\n $this->flushPreload($id, $group);\n\n $file = $this->getFilename($id, $group);\n if (!($fh = @fopen($file, 'wb'))) {\n return new Cache_Error(\"Can't access '$file' to store cache data. Check access rights and path.\", __FILE__, __LINE__);\n }\n\n // File locking (exclusive lock)\n if ($this->fileLocking) {\n flock($fh, LOCK_EX);\n }\n // file format:\n // 1st line: expiration date\n // 2nd line: user data\n // 3rd+ lines: cache data\n $expires = $this->getExpiresAbsolute($expires);\n fwrite($fh, $expires . \"\\n\");\n fwrite($fh, $userdata . \"\\n\");\n fwrite($fh, $this->encode($cachedata));\n\n // File unlocking\n if ($this->fileLocking) {\n flock($fh, LOCK_UN);\n }\n fclose($fh);\n\n // I'm not sure if we need this\n\t// i don't think we need this (chregu)\n // touch($file);\n\n return true;\n }", "protected function saveToPackageCache() {}", "public function save ( $data, $key ){\n echo \"No cache\";\n $this->clear($key);\n $data_str = serialize( array( \"mtime\" => time(), \"body\" => $data ) );\n $len = strlen($data_str);\n $shm_id = shmop_open(ftok('.',$key), \"c\", 0644, $len);\n if (!$shm_id) return false;\n $shm_bytes_written = shmop_write($shm_id, $data_str, 0);\n if ($shm_bytes_written != $len) return false;\n }", "function store_into_cache($key, $val, $ttl = CACHE_TTL){\n\tglobal $SYSTEM_SHOW_CACHE_METRICS, $TAG;\n\n\t$key = \"$TAG:$key\";\n\n\t$timer_bgn = microtime(true);\n\n\tif ( function_exists('apc_store') ) {\n\t\tapc_store($key, $val, $ttl);\n\t} else {\n\t\t$redis = conn_redis();\n\t\t$redis->setex($key, $ttl, json_encode($val, JSON_NUMERIC_CHECK));\n\t}\n\n\t$timer_end = microtime(true);\n\tif ($SYSTEM_SHOW_CACHE_METRICS)\n\t\telog(\"time took caching for key: $key: \" . ($timer_end - $timer_bgn));\n\n\treturn $val;\n}", "protected function save(): void\n {\n if ($this->connection == 'database') {\n $this->cart->each(\n function ($item) {\n if ($cart = $this->storage->has($item['id'])) {\n $cart->update(\n [\n 'rowId' => $item['id'],\n 'price' => $item['price'],\n 'quantity' => $item['quantity'],\n 'cartable_id' => $item['cartable_id'],\n 'cartable_type'=> $item['cartable_type'],\n ]\n );\n } else {\n $this->storage->create(\n [\n 'rowId' => $item['id'],\n 'user_id' => $this->user->id,\n 'price' => $item['price'],\n 'quantity' => $item['quantity'],\n 'cartable_id' => $item['cartable_id'],\n 'cartable_type'=> $item['cartable_type'],\n ]\n );\n }\n }\n );\n } elseif ($this->sessionStatus) {\n $this->storage->put([$this->instanceName => $this->cart]);\n }\n }", "public function saveForLater($item)\n {\n $cart=Cart::get($item);\n Cart::instance('default')->remove($item);\n\n\n $item=Cart::instance('saveForLater')->search(function ($cartItem, $rowId) use($cart){\n return $cartItem->id === $cart->id;\n });\n\n\n if ($item->isNotEmpty()) {\n return redirect()->route('cart.index')\n ->with('success_message','This item is already added in your cart!');\n }\n Cart::instance('saveForLater')->add($cart->id,$cart->name,$cart->qty,$cart->price)\n ->associate('App\\Models\\Product');\n\n return back()->with('success_message','Item has been saved for Later!');\n }", "public static function save_cache() {\n if (self::$_cache_invalid) {\n if (@file_put_contents(self::$_path_cache_file\n , serialize(self::$_abs_file_paths))) {\n error_log('failed to write absolute file path cache to: ' . self::$_path_cache_file);\n }\n }\n }", "public function saveItem(Item $item) {\n\t\tif ($item->getId() == -1) {\n\t\t\t$q = $this->bdd->prepare('INSERT INTO items SET created = :created, expired = :expired, title = :title, link = :link, affiliate_link = :affiliate_link, content = :content, photo_link = :photo_link, code = :code, normal_price = :normal_price, promo_price = :promo_price, discount = :discount, quantity = :quantity, shop = :shop, status = :status');\n\t\t} else {\n\t\t\t$q = $this->bdd->prepare('UPDATE items SET created = :created, expired = :expired, title = :title, link = :link, affiliate_link = :affiliate_link, content = :content, photo_link = :photo_link, code = :code, normal_price = :normal_price, promo_price = :promo_price, discount = :discount, quantity = :quantity, shop = :shop, status = :status WHERE id = :id');\n\t\t\t$q->bindValue(':id', $item->getId(), PDO::PARAM_INT);\n\t\t}\n\t\t$q->bindValue(':created', $item->getCreated(), PDO::PARAM_STR);\n\t\t$q->bindValue(':expired', $item->getExpired(), PDO::PARAM_STR);\n\t\t$q->bindValue(':title', $item->getTitle(), PDO::PARAM_STR);\n\t\t$q->bindValue(':link', $item->getLink(), PDO::PARAM_STR);\n\t\t$q->bindValue(':affiliate_link', $item->getAffiliateLink(), PDO::PARAM_STR);\n\t\t$q->bindValue(':content', $item->getContent(), PDO::PARAM_STR);\n\t\t$q->bindValue(':photo_link', $item->getPhotoLink(), PDO::PARAM_STR);\n\t\t$q->bindValue(':code', $item->getCode(), PDO::PARAM_STR);\n\t\t$q->bindValue(':normal_price', $item->getNormalPrice(), PDO::PARAM_STR);\n\t\t$q->bindValue(':promo_price', $item->getPromoPrice(), PDO::PARAM_STR);\n\t\t$q->bindValue(':discount', $item->getDiscount(), PDO::PARAM_INT);\n\t\t$q->bindValue(':quantity', $item->getQuantity(), PDO::PARAM_INT);\n\t\t$q->bindValue(':shop', $item->getShop(), PDO::PARAM_STR);\n\t\t$q->bindValue(':status', $item->getStatus(), PDO::PARAM_STR);\n\n\n\t\t$q->execute();\n\t\tif ($item->getId() == -1) $item->setId($this->bdd->lastInsertId());\n\t}", "function saveItem($data)\n\t{\n\t\t//check if item exists\n\t\t$item = $this->getItem($data['id']);\n\t\tif (!$item['success'])\n\t\t\treturn $item;\n\t\t\n\t\t$title_url = $data['uri'] ? url_title($data['uri'], 'dash', TRUE) : url_title($data['name'], 'dash', TRUE);\n\t\t$published = $data['published'] == \"yes\" ? true : false;\n\t\t\n\t\t//prepare values\n\t\t$id = intval($data['id']);\n\t\t\n\t\t$qStr = \"UPDATE portfolio\n\t\t\t\t\tSET name=?, description=?, marked_up_description=?, short_description=?, uri=?, live_url=?, image=?, image_small=?, time=?,\n\t\t\t\t\t\tpublished=?\n\t\t\t\tWHERE id=?\";\n\t\t$q = $this->db->query($qStr, array($data['name'], $data['description'], $data['marked_up_description'], $data['short_description'], $title_url, \n\t\t\t\t\t\t\t\t\t\t\t$data['live_url'], $data['image'], $data['image_small'], $data['time'], $published, $id));\n\t\t\n\t\tif ($q)\n\t\t\treturn $this->getItem($id);\n\t\telse\n\t\t\treturn array('success'=>false, 'error'=>\"There was an error saving this item\");\n\t}", "public function save()\n\t{\n\t\tif($this->beforeSave())\n\t\t{\n\t\t\t$dest = $this->getStorageFile();\n\t\t\t\n\t\t\tif(file_exists($dest) and is_writable($dest)===false)\n\t\t\t{\n\t\t\t\t@chmod($dest,0777);\n\t\t\t}\n\t\t\t\n\t\t\t$fp = fopen($dest,$this->mode);\n\t\t\tfwrite($fp,$this->data);\n\t\t\tfclose($fp);\n\t\t\t$this->afterSave();\n\t\t}\n\t}", "public function save()\n\t{\n\t\t//we should do any cleanup if possible\n\t\tif ($this->isDirty())\n\t\t\t$this->clean();\n\t\n\t\t//save it to wherever\n\t\t$data = $this->saveData();\n\n\t\t//bust our cache.\n\t\tif ($this->useObjectCaching)\n\t\t\t$this->deleteCache();\n\t\t\n\t\treturn $data;\n\t}", "protected function saveToCache($data)\r\n {\r\n if(extension_loaded('apc') && ini_get('apc.enabled')) {\r\n apc_store($this->getCacheKey(), $data, 0);\r\n }\r\n }", "public function setItem($item, $key, $expiration = NULL);", "function save($id, $cachedata, $expires, $group, $userdata)\n {\n $this->flushPreload($id, $group);\n \n $cachedata = $this->encode($cachedata);\n $expires_abs = $this->getExpiresAbsolute($expires);\n\n $size = 1 + strlen($cachedata) + strlen($expires_abs) + strlen($userdata) + strlen($group);\n $size += strlen($size);\n \n $data = array(\n 'cachedata' => $cachedata, \n 'expires' => $expires_abs,\n 'userdata' => $userdata\n );\n $id = strtoupper(md5($group)) . $id;\n \n msession_lock($id);\n \n if (!msession_set($id, '_pear_cache', true)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n if (!msession_set($id, '_pear_cache_data', $data)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n if (!msession_set($id, '_pear_cache_group', $group)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n if (!msession_set($id, '_pear_cache_size', $size)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n // let msession do some GC as well\n // note that msession works different from the PEAR Cache.\n // msession deletes an entry if it has not been used for n-seconds.\n // PEAR Cache deletes after n-seconds.\n if ($expires != 0) {\n msession_timeout($id, $expires);\n }\n msession_unlock($id);\n\n return true;\n }", "public final function save() {\n }", "public function saved(EntryInterface $entry)\n {\n $this->dispatch(new ClearHttpCache());\n\n return parent::saved($entry);\n }", "public function save()\n {\n $this->persist($this->state);\n }", "public function writeToCache(CacheObject $object) {\n $type = $object->getType();\n $id = $object->getId();\n\n $this->readType($type);\n\n if (!array_key_exists($type, $this->cache)) {\n $this->cache[$type] = array();\n }\n\n $this->cache[$type][$id] = $object;\n }", "protected function _save()\n\t{\n\t\t$_file = $this->_storagePath . DIRECTORY_SEPARATOR . $this->_fileName;\n\n\t\t$_data = json_encode( $this->contents() );\n\n\t\tif ( $this->_compressStore )\n\t\t{\n\t\t\t$_data = Utility\\Storage::freeze( $this->contents() );\n\t\t}\n\n\t\tif ( false === file_put_contents( $_file, $_data ) )\n\t\t{\n\t\t\tUtility\\Log::error( 'Unable to store Oasys data in \"' . $_file . '\". System error.' );\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public final function save()\n {\n }", "public function save(array $options = [])\n {\n $this->invalidateCache(); \n parent::save($options);\n }", "public function save(): void\n {\n $this->session?->put('shop.cart', $this->toArray());\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public static function store($object){\n\t\t\tif(!is_object($object)){\n\t\t\t\tLogger::warning(MessageUtility::CACHE_LOAD_WARNING, \"A primitive value of type \".gettype($object).\" cannot be cached.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t//Check that the specified $object is an object of PersistentClass\n\t\t\t$objectClass = Mirror::reflectClass($object);\n\t\t\tif(!$objectClass->descendsFrom(\"Wadapi\\Persistence\\PersistentClass\")){\n\t\t\t\tLogger::warning(MessageUtility::CACHE_LOAD_WARNING, \"Object of class \".get_class($object).\" is not a descendant \".\n\t\t\t\t\t\t\t\t \"of PersistentClass and cannot be stored in cache.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tself::$cache[$object->getId()] = $object;\n\t\t}", "private function save(Item $item, $inputs)\n {\n $item->name = $inputs['name'];\n $item->description = $inputs['description'];\n $item->weight = $inputs['weight'];\n $item->currency = $inputs['currency'];\n $item->cost = $inputs['cost'];\n $item->save();\n return $item;\n }", "public function store(mixed $item)\n\t{\n\t\t$item->addImage(request('type'));\n\n\t\treturn true;\n\t}", "public function setACacheItem()\n {\n $item = new CacheItem(\n [\n 'data' => ['test'],\n 'key' => 'test'\n ]\n );\n $server = $this->getMemcachedMock(['set']);\n $server->expects($this->once())\n ->method('set')\n ->with('cache-bin:test', $item->getData(), 120)\n ->willReturn(true);\n $this->driver->server = $server;\n $this->assertSame($this->driver, $this->driver->set($item));\n }", "public function save() {\n $_SESSION['cart'] = $this->items;\n\n }", "public function save($id, $data)\n {\n $id = $this->uniqId.'-'.$id;\n\n if (!$this->apcIsEnabled()) {\n return false;\n }\n\n if ($this->debug) {\n $this->cache->save($id, $data, 20);\n } else {\n $this->cache->save($id, $data);\n }\n\n return false;\n }", "private function saveToCache($key, stdClass $metadata)\n {\n $this->cache->save($key, $metadata);\n\n if ($this->debug) {\n $this->cache->save($key . '.time', time());\n }\n }", "public function saveThis()\n {\n \t\tPersistentSession::getInstance()->saveOrUpdate($this);\n }", "public function save()\n {\n // (no el id del objeto en si), esto para que el validador pueda funcionar\n // de forma correcta. Sabiendo esto, antes de guardar y si el row NO\n // existe, entonces actualizamos 'item_id' con el id del objeto en si\n if (! $this->exists) {\n $characterItem = $this->seller->items()->find($this->item_id);\n $this->item_id = $characterItem->item_id;\n }\n \n return parent::save();\n }", "abstract public function save(string $key, $value): void;", "public function save(array $options = [])\n {\n $this->invalidateCache();\n parent::save($options);\n }", "function saveOrUpdateItem($item) {\n \n $connection = getConnection();\n \n $item_id = $item['item_id'];\n $item_name = $item['item_name'];\n $item_price = $item['item_price'];\n $item_color = $item['item_color'];\n $item_condition = $item['item_condition'];\n \n // If the id field is blank, it's a new entry in the database.\n if (empty($item_id)) {\n $result = mysqli_query($connection, \"INSERT INTO inventory \n (item_name, item_price, item_color, item_condition)\n VALUES ('$item_name', $item_price, '$item_color', '$item_condition')\");\n // If the id field is set, it's an update to an existing item.\n } else {\n $result = mysqli_query($connection, \"UPDATE inventory \n SET item_name='$item_name', item_price=$item_price, item_color='$item_color',\n item_condition='$item_condition'\n WHERE item_id=$item_id\");\n }\n \n mysqli_close($connection);\n \n return $result;\n }", "public function store($item)\n\t{\n $input=[];\n $desc = $input = Request::get('description');\n $title = $item;\n $page = Page::whereTitle($item)->first();\n if(! $page){\n $page = new Page();\n }\n $page->description=$desc;\n $page->title=$title;\n $page->save();\n\n return 'true';\n\t}", "public function save()\n {\n if($this->changed) {\n Item::saveNewValues($this->id, $this->name, $this->status);\n } else {\n echo 'Nothing changed!';\n }\n }", "public function saveCache($data) {\n\t\t$data = serialize($data);\n\t\ttry {\n\t\t\t$old = umask(0);\n\t\t\tumask(0);\n\t\t\tfile_put_contents($this->path, $data);\n\t\t\tchmod($this->path, 0755);\n\t\t\tumask($old);\n\t\t} catch (Exception $e) {\n\t\t\tutils::log('Err on saving data to file \"' . $this->path . '\": ' . $e->getMessage(), \"cache-err\");\n\t\t}\n\t}", "private function save_cache() : bool {\n\t\tif ($this->use_cache) {\n\t\t\tif (!$this->cache_path) {\n\t\t\t\tthrow new Exception('Cannot save cache when $cache_path is not set.');\n\t\t\t}\n\n\t\t\tfile_put_contents($this->cache_path, json_encode($this->posts, JSON_UNESCAPED_UNICODE));\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "private function storeCacheSetting()\n {\n Cache::forever('setting', $this->setting->getKeyValueToStoreCache());\n }", "protected function save() {\n $values = $this->values;\n\n $values[self::METADATA_NAMESPACE] = array(\n 'first_trace' => $this->getFirstTrace(),\n 'last_trace' => $this->getLastTrace(),\n 'regeneration_trace' => $this->getRegenerationTrace(),\n 'requests_count' => $this->getRequestsCounter(),\n 'fingerprint' => $this->getFingerprint(),\n );\n\n return $this->getStorage()->store($this->getId(), $values);\n }", "public final function save() {\n\t\t\treturn SERIA_Meta::save($this);\n\t\t}" ]
[ "0.8679442", "0.77989674", "0.75897557", "0.75289226", "0.71602255", "0.69646215", "0.69379866", "0.69137335", "0.6887208", "0.68534327", "0.6758206", "0.6674626", "0.6569945", "0.65494055", "0.65355563", "0.6483364", "0.64761007", "0.64060825", "0.6395191", "0.63227826", "0.63135815", "0.62889177", "0.62551826", "0.62526953", "0.62411755", "0.62006056", "0.61217284", "0.61076695", "0.6081292", "0.60573494", "0.6041582", "0.60236484", "0.60062456", "0.6004169", "0.59732574", "0.594091", "0.5938551", "0.5936031", "0.59158814", "0.58987695", "0.58611166", "0.5835525", "0.58024424", "0.5794642", "0.5792851", "0.5792396", "0.57891524", "0.57831216", "0.5771681", "0.5771259", "0.576042", "0.57581943", "0.5742011", "0.57178575", "0.5709837", "0.57071525", "0.5697831", "0.56860185", "0.5685564", "0.5676422", "0.5663476", "0.5657338", "0.56566644", "0.56546193", "0.5629101", "0.56171995", "0.559566", "0.559365", "0.55869085", "0.55867136", "0.5581402", "0.557078", "0.5569332", "0.5568329", "0.55668193", "0.5558244", "0.55380297", "0.5530094", "0.5527867", "0.5521996", "0.5521144", "0.5510308", "0.5507598", "0.5505615", "0.55014676", "0.5493186", "0.54841477", "0.54807514", "0.54760563", "0.54666114", "0.54616994", "0.54604477", "0.5458653", "0.5455507", "0.5453303", "0.545321", "0.54530114", "0.54463327", "0.54418117", "0.5435823", "0.5435515" ]
0.0
-1
delete a specific item from the cache store.
public function delete(string $id) : bool { unset($this->cache[$id]); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteItem($item);", "abstract public function delete($item);", "public function deleteAnItem()\n {\n $keys = [\n 'cache-bin:user_1', 'cache-bin:article_1212'\n ];\n $key = 'article_*';\n $server = $this->getMemcachedMock(['getAllKeys', 'delete']);\n $server->expects($this->once())\n ->method('getAllKeys')\n ->willReturn($keys);\n $server->expects($this->once())\n ->method('delete')\n ->with('cache-bin:article_1212')\n ->willReturn(true);\n $this->driver->server = $server;\n $this->assertSame($this->driver, $this->driver->erase($key));\n }", "abstract function del ($item);", "function removeItem($item){\n\t\tif( $item instanceof cacheItem)\n\t\t\t$item = $item->name;\n\t\tcacheItem::dropInstance($item);\n\t\treturn $this->db->delete(self::$tableName,array('WHERE name=?',$item));\n\t}", "public function deleteItem($key);", "abstract public function doDelete($item);", "public function remove($item);", "public function Delete($item)\n {\n $item->Delete();\n }", "public function deleted($item)\n {\n $this->elastic->delete($item->getTable(), $item->id);\n }", "public function deleteItem(Item $item) {\n\t\t$id = $item->getId();\n unset($this->items[$id]);\n }", "public function deleted(Item $item)\n {\n //\n }", "public function deleted(Item $item)\n {\n //\n }", "public function deleteItem($key)\n {\n }", "abstract public function delete_cached( $key );", "public function deleteItem( $id ) {\n\t}", "function delete($key) {\n\t\tunset($this->_cache[$key]);\n\t}", "public function delete(string $key): CacheInterface;", "public function delInCache($key);", "public function remove($item) {\n unset($this->items[$item->id()]);\n }", "public function delete_item($opt = null)\n\t{\n\t\tif (!$opt) $opt = array();\n\t\t\n\t\treturn $this->authenticate('DeleteItem', $opt);\n\t}", "public function remove(CacheableInterface $item)\n {\n $this->connection->delete($item->getHashKey());\n }", "function item_delete()\n {\n $key = $this->get('id');\n $this->supplies->delete($key);\n $this->response(array('ok'), 200);\n }", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public function delete()\n {\n global $_PM_;\n $api = 'handler_'.$this->handler.'_api';\n $this->api = new $api($_PM_, PHM_API_UID, $this->principalId);\n $this->api->remove_item($this->item['id']);\n }", "public function del($key);", "public function ___delete(Saveable $item) {\n\t\t$blank = $this->makeBlankItem();\n\t\tif(!$item instanceof $blank) throw new WireException(\"WireSaveableItems::delete(item) requires item to be of type '\" . $blank->className() . \"'\"); \n\t\t\n\t\t$id = (int) $item->id;\n\t\tif(!$id) return false; \n\t\t\n\t\t$database = $this->wire('database'); \n\t\t\n\t\t$this->deleteReady($item);\n\t\t$this->getAll()->remove($item); \n\t\t$table = $database->escapeTable($this->getTable());\n\t\t\n\t\t$query = $database->prepare(\"DELETE FROM `$table` WHERE id=:id LIMIT 1\"); \n\t\t$query->bindValue(\":id\", $id, \\PDO::PARAM_INT); \n\t\t$result = $query->execute();\n\t\t\n\t\tif($result) {\n\t\t\t$this->deleted($item);\n\t\t\t$item->id = 0; \n\t\t} else {\n\t\t\t$this->error(\"Error deleting '$item'\"); \n\t\t}\n\t\t\n\t\treturn $result;\t\n\t}", "function object_cache_delete($id, $flag = '') {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->delete($id, $flag);\n}", "abstract public function delete($key);", "public function delete($key) {\n\t\treturn $this->_Memcached->delete($key);\n\t}", "public function delete($key);", "public function delete($key);", "public function delete($key);", "public function deleteItem(string $key): bool;", "public function deleteItem(string $key): bool;", "abstract public function delete ($key);", "protected function _delete($var)\n\t{\n\t\treturn $this->memcached->delete($this->key_prefix . $var);\n\t}", "public function delete($key)\n\t{\n\t\treturn $this->cacheLayer->delete($key);\n\t}", "public function delete(mixed $mealitem_id): void\n {\n MealItem::destroy($mealitem_id);\n Cache::forget(\"meal-item-$mealitem_id\");\n }", "function delete($key, $time=0) {\n return $this->memcached->delete($key, $time);\n }", "public function delete($cache_name);", "public function delete( $key );", "function delete ($key) {\n return $this->memcached->delete($key);\n }", "abstract public function delete( $key );", "public function cache_delete()\n {\n }", "function deleteItem(Array $args = array())\n {\n $itemid = isset($args['itemid']) ? $args['itemid'] : $this->object->itemid;\n\n //Make sure we have a primary field\n if (empty($this->object->primary)) throw new Exception(xarML('The object #(1) has no primary key', $this->object->name));\n\n // Complete the dataquery\n $q = $this->object->dataquery;\n $q->setType('DELETE');\n\n // Remove any tables that are foreign\n $q = $this->removeForeignTables($q);\n \n // CHECKME: should an itemid = 0 indicate deleting all items?\n $q->clearconditions();\n $q->eq($this->object->properties[$this->object->primary]->source, $itemid);\n // Run it\n if (!$q->run()) throw new Exception(xarML('Query failed'));\n\n return $itemid;\n }", "public function deleteItem()\n {\n $conds = $this->constructKeyConds();\n $query = $this->constructDeleteQuery($conds, array('start' => 0, 'limit' => 1));\n\n if ($query === false) {\n return false;\n }\n\n $result = $this->query($query);\n if ($result !== false) {\n unset($this->info);\n return true;\n }\n\n return false;\n }", "public function removeItem($key);", "function deleteItem($db, $resource_pk, $item_pk) {\r\n\r\n// Update order for other items for the same resource link\r\n reorderItem($db, $resource_pk, $item_pk, 0);\r\n\r\n// Delete any ratings\r\n deleteRatings($db, $item_pk);\r\n\r\n// Delete the item\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nDELETE FROM {$prefix}item\r\nWHERE (item_pk = :item_pk) AND (resource_link_pk = :resource_pk)\r\nEOD;\r\n\r\n $query = $db->prepare($sql);\r\n $query->bindValue('item_pk', $item_pk, PDO::PARAM_INT);\r\n $query->bindValue('resource_pk', $resource_pk, PDO::PARAM_STR);\r\n $ok = $query->execute();\r\n\r\n return $ok;\r\n\r\n }", "function deleteItem()\r\n\t{\r\n\t\t$this->content_obj->deleteItem();\r\n\t\t$_SESSION[\"il_pg_error\"] = $this->pg_obj->update();\r\n\t\t$this->ctrl->returnToParent($this, \"jump\".$this->hier_id);\r\n\t}", "public function remove(CacheableInterface $item)\n {\n $this->getConnection()->delete($item->getHashKey());\n }", "public function test_delete_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $item->remove();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "public function delete()\n {\n $this->_checkItem();\n\n $service = $this->getService();\n $entry = $service->getGbaseItemEntry( $this->getItem()->getGbaseItemId() );\n return $service->deleteGbaseItem($entry, $this->getDryRun());\n }", "public function deleteThisItem(){\n $this->deleteFiles(self::DATA_DIRECTORY.$this->_page.\"/items/\".$this->_id);\n // Supprimer l'item de $this->_collectionAdministrator->_data\n $this->_collectionAdministrator->removeItem($this->_id);\n }", "function deleteItem($orderId)\n {\n }", "public function remove($item) {\n $index = self::IndexOf($item);\n self::RemoveAt($index);\n }", "public function purchase_item_delete(){\r\n\t\t\r\n\t\t$this->Purchase_model->purchase_item_delete();\r\n\t}", "public function delete($entity) {\r\n\t\tif($entity instanceof Model_Abstract) {\r\n\t\t\t$id = $entity->getIdentityValue();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$id = $entity;\r\n\t\t}\r\n\t\t// Need to unset the entity in the identity map if it exists\r\n\t\t$this->_unsetIdentity($id);\r\n\t\t \r\n\t\t$rowset = $this->_getGateway()->find($id);\r\n\t\tif($rowset->count() > 0) {\r\n\t\t\t$row = $rowset->current();\r\n\t\t\t$result = $row->delete();\r\n\t\t}\r\n\t}", "public function destroy($item)\n {\n // dd($item);\n Cart::remove($item);\n return back()->with('success_message','Item was deleted ');\n }", "public function forceDeleted($item)\n {\n $this->elastic->delete($item->getTable(), $item->id);\n }", "public function deleteItem($itemId)\n {\n\n $orm = $this->getOrm();\n\n // andere attachments löschen\n $orm->delete('WbfsysAddressItem', $itemId);\n\n }", "public function rmhouse($itemid){\n $api = new Api();\n $api->rmitem($itemid);\n $itemid = mysql_real_escape_string( $itemid);\n $sql = \"delete FROM house where itemid='$itemid'\";\n mysql_query($sql);\n }", "public function deleteById($quoteId, $itemId);", "function delete($item_id) {\n $sql = sprintf(\"DELETE FROM plugin_docman_item WHERE item_id=%d\",\n $item_id);\n\n $deleted = $this->update($sql);\n \n return $deleted;\n }", "static function remove($item){\n\t\tself::init();\n\t\tif( is_array($item)){\n\t\t\tforeach($item as $i)\n\t\t\t\tself::remove($i);\n\t\t\treturn;\n\t\t}\n\t\tself::$backend->removeItem($item);\n\t\tcacheItem::dropInstance($item);\n\t}", "public static function delete($key)\n\t\t{\n\t\t\tself::getCache()->delete($key);\n\t\t}", "public static function deleteItem() {\r\n $result = array();\r\n $result = lC_Default::removeItem($_GET['item']);\r\n if (is_array($result)) $result['rpcStatus'] = '1';\r\n \r\n echo json_encode($result);\r\n }", "private function deleteObject($name){\n $this->cache->delete($name);\n }", "function delArticle($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "public function delete()\n {\n $sql = \"DELETE FROM \" . TB_USAGE . \" WHERE mix_id = {$this->db->sqltext($this->mix_id)}\";\n $this->db->exec($sql);\n\n //\tremove everything from cache\n $cache = VOCApp::getInstance()->getCache();\n if ($cache) {\n $cache->flush();\n }\n }", "public function delete($name, $type)\n {\n $this->memcached->delete($this->generateKey($name, $type));\n }", "function delete($key) {\n\t\t\treturn $this->inst->delete($key);\n\t\t}", "public function remove($entity)\r\n {\r\n \t$cacheKey = $this->getCacheKey($entity->getPrimaryKey());\r\n \tunset($this->_entities[$cacheKey]);\r\n \t$this->getCache()->remove($cacheKey);\r\n }", "public function deleteItem(Item $item) {\n\t\ttry {\t\n\t\t\t$q = $this->bdd->prepare(\"DELETE FROM items WHERE id = :id\");\n\t\t\t$q->bindValue(':id', $item->getId(), PDO::PARAM_INT);\n\t\t\treturn $q->execute();\n\t\t\t}\n\t\tcatch( PDOException $Exception ) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function ___deleted(Saveable $item) { \n\t\t$this->log(\"Deleted\", $item);\n\t}", "public function delete() {\n\t\tif ($this->exists) {\n\t\t\t$this->fire_event('deleting');\n\n\t\t\t$result = $this->query()->where(static::$key, '=', $this->get_key())->delete();\n\n\t\t\t$this->fire_event('deleted');\n\n\t\t\treturn $result;\n\t\t}\n\t}", "public static function cacheDelete($userid)\n\t{\n\t\t$myCacher = new Cacher(self::cacheBuildKeystring($userid));\n\t\treturn $myCacher->clear();\n\t}", "public function deleteItem($itemID) {\n\t\t$condition = array(\n\t\t\t'id' => $itemID\n\t\t);\n\t\t\n\t\t$result = tdb::delete(self::$tablename,array('condition' => $condition));\n\t\t\n\t\tif($result)\n\t\t\treturn array('code'=>0,'msg'=>'操作成功','data'=>$result);\n\t\telse\n\t\t\treturn array('code'=>1,'msg'=>'操作失败','data'=>$result);\n\t}", "public function destroy(Item $item)\n {\n //\n }", "public function destroy(Item $item)\n {\n //\n }", "public function destroy(Item $item)\n {\n //\n }", "public function destroy(Item $item)\n {\n //\n }", "function deleteItem($orderId)\n {\n $dataService = new OrderDataService();\n\n return $dataService->deleteItem($orderId);\n }", "public function delete($key): void;", "function delete($item_kit_id) {\n\treturn $this->db->delete('paket_sofa_items', array('paket_id' => $item_kit_id)); \n}", "public function delete($id) \r\n {\r\n $this->load(array('id=?',$id));\r\n $this->erase();\r\n }", "function deleteItem($itemID) {\n\t\tglobal $dbh;\n\t\t$stmt = $dbh->prepare('DELETE FROM ITEM WHERE itemID = ?');\n\t\t$success = $stmt->execute(array($itemID));\n\t\treturn $success;\n\t}", "public static function DeleteById($entity)\n {\n //When the precedent is GetById\n if(isset(StorageManager::$entities[$entity->Alias]))\n {\n unset(StorageManager::$entities[$entity->Alias][$entity->IdEntite]);\n }\n\n //When the precedent request is getByArg\n $stores = StorageManager::Find($entity);\n\n if(count($store) > 0 )\n {\n foreach($stores as $store)\n {\n if(isset($store::$entities))\n {\n unset($store::$entities[$entity->Alias][$entity->IdEntite]);\n }\n }\n }\n }", "public function deleteItemByID($id)\n {\n return $this->model->deleteItemByID($id);\n }", "public static function DeleteByArg($entity)\n {\n //When the precedent request is getByArg\n $stores = StorageManager::Find($entity);\n\n foreach($stores as $store)\n {\n unset($store::$entities[$entity->Alias][$entity->IdEntite]);\n }\n }", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "function delete($product)\n {\n if (array_key_exists($product->id, $this->items)) {\n $storeProductDelete = $this->items[$product->id];\n //giam tien\n $this->totalPrice -= $storeProductDelete['price'];\n //giam so luong\n $this->totalQuantity -= $storeProductDelete['quantity'];\n // xoa phan tu o vi tri $product->id\n unset($this->items[$product->id]);\n }\n }", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delItem($args)\n {\n if (!$this->client->isActive()) {\n return 1;\n }\n\n //TODO: functionality\n\n $this->client->sendString(\"success\\n\");\n\n return 0;\n }", "public abstract function getDelete(Table $table, $item);", "public function deleteItem($key)\n\t{\n\t\t$this->checkKeyName($key);\n\n\t\treturn $this->redisClient->del($key);\n\t}", "public function action_Delete()\n\t{\n\t\t// load item\n\t\t$item = ORM::factory('Ticket', $this->request->param('id'));\n\n\t\tif ( ! $item->loaded())\n\t\t\t$this->not_found('Could not find ticket to delete. Already deleted maybe?');\n\n\t\t$item->deleted_at = date('Y-m-d H:i:s');\n\t\t$item->save();\n\n\t\tHTTP::redirect('Ticket');\n\t}", "abstract public function removeItem($name);", "public function delete()\n {\n $this->_clearCache();\n\n return parent::delete();\n }", "public function delete($variable);" ]
[ "0.76024985", "0.74037504", "0.73900086", "0.73492926", "0.72145265", "0.7193279", "0.6898222", "0.68911195", "0.6873181", "0.680076", "0.6632488", "0.66017306", "0.66017306", "0.65956634", "0.65895915", "0.6586103", "0.65168685", "0.64442295", "0.64305645", "0.64238226", "0.6409694", "0.636886", "0.6365016", "0.63426983", "0.63426983", "0.63393813", "0.6337996", "0.6328745", "0.63191664", "0.6317402", "0.6303778", "0.62940735", "0.62940735", "0.62940735", "0.62897736", "0.62897736", "0.62884253", "0.6284693", "0.6281018", "0.62711847", "0.62495536", "0.62444305", "0.62431794", "0.6241262", "0.62353617", "0.6223106", "0.6193812", "0.6193559", "0.61879456", "0.61819685", "0.61783403", "0.6173887", "0.61711556", "0.61676735", "0.61616844", "0.61579615", "0.61565816", "0.6152384", "0.6141922", "0.6060056", "0.6053762", "0.60509306", "0.60461885", "0.60432637", "0.60254705", "0.601723", "0.6012369", "0.60107267", "0.6005819", "0.6004163", "0.5995148", "0.5964711", "0.5955331", "0.59550285", "0.59541476", "0.5952197", "0.59469074", "0.5944336", "0.5942256", "0.59228367", "0.59228367", "0.59228367", "0.59228367", "0.592116", "0.591681", "0.5915435", "0.5914902", "0.5909188", "0.59011036", "0.5892796", "0.5892602", "0.5888649", "0.58767104", "0.58708", "0.5856292", "0.5841458", "0.58310777", "0.58176345", "0.5810259", "0.58096343", "0.5806149" ]
0.0
-1
Performs atomic incrementation of a raw stored value.
public function increment(string $id, int $offset = 1) { $new_value = (int)$this->get($id) + (int)$offset; $this->save($id, $new_value); return $new_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function increment($key, $value = 1)\n {\n $raw = $this->getPayload($key);\n\n return tap(((int) $raw['data']) + $value, function ($newValue) use ($key, $raw) {\n $this->put($key, $newValue, $raw['time'] ?? 0);\n });\n }", "public function increment($key, $value = 1)\n {\n $data = $this->getData($key);\n $result = intval($data['data']) + $value;\n $this->set($key, $result, $data['time']);\n\n return $result;\n }", "public function increment() {\n\t\t$this->amount++;\n\t}", "public function increment($key, $value = 1)\n {\n $this->connection->transaction(function () use ($key, $value) {\n return $this->incrementOrDecrement($key, $value, function ($current) use ($value) {\n return $current + $value;\n });\n });\n }", "protected function internalIncrementItem(& $normalizedKey, & $value)\n {\n $memc = $this->getMemcacheResource();\n $internalKey = $this->namespacePrefix . $normalizedKey;\n $value = (int) $value;\n $newValue = $memc->increment($internalKey, $value);\n\n if ($newValue !== false) {\n return $newValue;\n }\n\n // Set initial value. Don't use compression!\n // http://www.php.net/manual/memcache.increment.php\n $newValue = $value;\n if (!$memc->add($internalKey, $newValue, 0, $this->expirationTime())) {\n throw new Exception\\RuntimeException('Memcache unable to add increment value');\n }\n\n return $newValue;\n }", "public function increment($keyName = null, $value = null)\n {\n if ($keyName === null) {\n $prefixedKey = $this->_lastKey;\n } else {\n $prefixedKey = $this->getPrefixedIdentifier($keyName);\n }\n\n if (!$prefixedKey) {\n return false;\n }\n\n $this->_lastKey = $prefixedKey;\n\n if (!$value) {\n $value = 1;\n }\n\n $aKey = $this->buildKey($prefixedKey);\n $this->db->increment($aKey, 'value', $value);\n\n $status = $this->db->get($aKey, $cache);\n\n if ($status != \\Aerospike::OK) {\n return false;\n }\n\n return $cache['bins']['value'];\n }", "public function increment($key, $value = 1)\n {\n return $this->memcache->increment($this->prefix.$key, $value);\n }", "public function increment(LaramoreModel $model, $value, $increment=1);", "public function increment($key, $value = 1)\n {\n $_value = false;\n\n try {\n $_doc = $this->get($key);\n } catch (\\Exception $_ex) {\n }\n\n return $_value;\n }", "public function increment(string $key, int $value = 1)\n {\n if (!$this->has($key)) {\n return false;\n }\n\n $data = $this->get($key);\n $data = (int) $data + $value;\n\n return $this->set($key, $data);\n }", "public function increment($key, $offset = 1)\r\n {\r\n return apc_inc($key, $offset);\r\n }", "function incr( $key, $offset = 1, $group = 'default' ) {\n\t\t$value = $this->get( $key, $group );\n\t\tif ( $value === false )\n\t\t\treturn false;\n\n\t\tif ( !is_numeric( $value ) )\n\t\t\t$value = 0;\n\n\t\t$offset = (int) $offset;\n\t\t$value += $offset;\n\n\t\tif ( $value < 0 )\n\t\t\t$value = 0;\n\t\t$this->replace( $key, $value, $group );\n\t\treturn $value;\n\t}", "public static function inc($Key, $Value = 1)\n\t\t{\n\t\t\t$Value = (int)$Value;\n\t\t\tif ($Value <= 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (self::$APCOn)\n\t\t\t{\n\t\t\t\t$Result = apc_inc($Key, (int)$Value);\n\t\t\t}\n\t\t\telseif (self::$MemcacheOn)\n\t\t\t{\n\t\t\t\t$Result = self::$Memcache -> increment($Key, $Value);\n\t\t\t}\n\n\t\t\treturn $Result;\n\t\t}", "function apc_cache_key_increment($key) {\n\t$n = 1;\n\twhile(!$result = apc_inc($key)) {\n\t\tusleep(500);\n\t\t$n++;\n\t}\n\tif($n > 1) apc_cache_debug(\"key_increment: took $n tries on key $key\");\n\treturn $result;\n}", "public function incr(string $key): int\r\n\t{\r\n\t\treturn $this->connection->incr($key);\r\n\t}", "function doIncrement(&$model, $id, $incrementValue=1, $field=null)\n {\n $answer = false;\n \n if (empty($field))\n {\n $field = $this->__settings[$model->alias]['incrementFieldName'];\n }\n \n // Save the internal variables for the model\n $recursiveLevel = $model->recursive ; \n $data = $model->data;\n \n $model->recursive = -1;\n \n $model->data = $model->findById((int)$id, array('id', $field));\n \n if (!empty($model->data))\n {\n $counter = (int)$model->data[$model->alias][$field] + (int)$incrementValue;\n \n $conditions = array($model->alias.'.id'=>$id);\n \n $fields = array($field=>$counter);\n \n // Issue updateAll as it won't call any other methods like beforeSave and such in the Model or the \n // Behavior methods. Just a step for saving callbacks which are not required. \n $answer = $model->updateAll($fields, $conditions);\n }\n \n // restore the variables back to original\n $model->data = $data;\n $model->recursive = $recursiveLevel;\n \n return $answer;\n }", "public function inc(): void {}", "public function increment($key, $offset = 1);", "protected function doIncrement($key, $offset, $initial, $expire)\n {\n $ttl = $this->ttl($expire);\n /*\n APC has apc_inc & apc_dec, which work great. However, they don't allow for a TTL to be set.\n We'll just do a get, implement the increase or decrease in PHP, then CAS the new value\n (1 operation + CAS).\n */\n $value = $this->get($key, $token);\n if ($value === false) {\n // don't even set initial value, it's already expired...\n if ($ttl < 0) {\n return $initial;\n }\n $success = $this->cas($token, $key, $initial, $ttl);\n return $success ? $initial : false;\n }\n if (!\\is_numeric($value)) {\n return false;\n }\n $value += $offset;\n // negative TTLs don't always seem to properly treat the key as deleted\n if ($ttl < 0) {\n $success = $this->delete($key);\n return $success ? $value : false;\n }\n $success = $this->cas($token, $key, $value, $ttl);\n return $success ? $value : false;\n }", "function incrementar(&$valor){\n $valor++;\n return $valor;\n }", "public function increment(string $key, int $offset = 1);", "public function increment(\n\t\t$key,\n\t\t$offset = 1,\n\t\t$create = '',\n\t\t$expiry = '',\n\t\t$initial = ''\n\t) {}", "public function testIncrement()\n {\n $this->ascendingSequence->setIncrement(1);\n $increment = $this->ascendingSequence->getIncrement();\n $this->assertEquals(1, $increment);\n }", "protected function incrementVersion(): void\n {\n $version = $this->getVersion() + 1;\n\n $this->store->forever($this->getCacheVersionKey(), $version);\n\n static::$versions[$this->prefix] = $version;\n }", "public function increment($key, $offset = 1)\n {\n $ret = $this->getConn()->increment($key, $offset) or $this->checkResultCode();\n return $ret;\n }", "public static function increment(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Module::add($x, IInt32\\Type::one());\n\t\t}", "public function increment($val, $increment)\n {\n for ($i = 1; $i <= $increment; $i++) {\n $val++;\n }\n\n return $val;\n }", "public function increment(string $key, int $value = 1)\n {\n return $this->getAdapter()->incrBy($key, $value);\n }", "public function increase()\n {\n $reservedIds = [];\n if ($this->reserved !== null) {\n $reservedIds = explode(',', $this->reserved);\n }\n $this->next++;\n while (in_array($this->next, $reservedIds)) {\n $this->next++;\n }\n $this->save();\n }", "public function increment($subject)\n {\n $bucket = $this->getBucket();\n $subject = $this->key . ':' . $subject;\n $multi = $this->client->multiExec();\n $this->addMultiExecIncrement($multi, $subject, $bucket);\n $multi->exec();\n }", "function inc ($key, $value = 1);", "function increment($x, $y = 1) {\n return $x += $y;\n }", "public static function increment()\n {\n self::$id++;\n }", "public function incrementKey( $key )\n {\n /** @var $client \\Memcached */\n $client = $this->getClient();\n $client->increment( $key );\n }", "public function increment($key, $offset = 1) {\n\t\treturn $this->_Memcached->increment($key, $offset);\n\t}", "public static function inc(string $key, int $inc = 1) {\n\t\treturn self::set ( $key, self::get ( $key, 0 ) + $inc );\n\t}", "public function inc($key, $amount = 1)\r\n {\r\n return $this->memcache->increment($key, $amount);\r\n }", "public function incrQty($increment) {\n $this->setQty($this->getQty() + $increment);\n }", "public static function increment($table_field, $value, $id, $silent = false)\n {\n if (!self::hasMasterDB()) {\n return false;\n }\n\n if (self::in_transaction()) {\n $silent = true;\n }\n\n list($table, $field) = explode('.', $table_field);\n if (!$table || !$field) {\n\n $e = new \\Sky\\AQL\\Exception(\n 'increment expects table.field as a first argument.'\n );\n\n if ($silent) {\n aql::$errors[] = $e;\n return false;\n }\n\n throw $e;\n }\n\n $id = is_numeric($id) ? $id : decrypt($id, $table);\n if (!$id || !is_numeric($id)) {\n\n $e = new \\Sky\\AQL\\Exception(\n 'third param of increment is not a valid identifier.'\n );\n\n if ($silent) {\n aql::$errors[] = $e;\n return false;\n }\n\n throw $e;\n }\n\n $do = (strpos($value, '-') !== false)\n ? ' - ' . abs($value)\n : ' + ' . $value;\n\n $dbw = self::getMasterDB();\n $sql = \"UPDATE {$table} SET {$field} = {$field} {$do} WHERE id = {$id}\";\n $r = $dbw->Execute($sql);\n\n if ($r !== false) {\n return true;\n }\n\n $e = new \\Sky\\AQL\\TransactionException(\n $table,\n $field,\n $id,\n $dbw\n );\n\n $e->sql = $sql;\n\n if ($silent) {\n aql::$errors[] = $e;\n return false;\n }\n\n throw $e;\n }", "public function incrIdUnit($increment) {\n $this->setIdUnit($this->getIdUnit() + $increment);\n }", "public function increment($key, $offset = 1, $group = 'default')\n {\n $derived_key = $this->build_key($key, $group);\n $offset = (int) $offset;\n\n // If group is a non-Redis group, save to internal cache, not Redis\n if (in_array($group, $this->ignored_groups) || ! $this->redis_status()) {\n $value = $this->get_from_internal_cache($derived_key, $group);\n $value += $offset;\n $this->add_to_internal_cache($derived_key, $value);\n\n return $value;\n }\n\n // Save to Redis\n try {\n $result = $this->parse_redis_response($this->redis->incrBy($derived_key, $offset));\n\n $this->add_to_internal_cache($derived_key, (int) $this->redis->get($derived_key));\n } catch (Exception $exception) {\n $this->handle_exception($exception);\n\n return false;\n }\n\n return $result;\n }", "public function increment() {\n $this->db->query('UPDATE '.TABLE_PREFIX.'tickers SET last_run = '.time().' WHERE id = '.$this->id);\n }", "protected function doIncrement(string $key, int $offset, int $initial, int $expire): int|false\n {\n $ttl = $this->ttl($expire);\n\n $this->client->watch($key);\n\n $value = $this->client->get($key);\n\n if ($value === false) {\n /*\n * Negative ttl behavior isn't properly documented & doesn't always\n * appear to treat the value as non-existing. Let's play safe and not\n * even create the value (also saving a request)\n */\n if ($ttl < 0) {\n return $initial;\n }\n\n // value is not yet set, store initial value!\n $this->client->multi();\n $this->client->set($key, $initial, $ttl);\n\n /** @var bool[] $return */\n $return = (array) $this->client->exec();\n\n return !in_array(false, $return, true) ? $initial : false;\n }\n\n // can't increment if a non-numeric value is set\n if (!is_numeric($value) || $value < 0) {\n /*\n * HHVM Redis only got unwatch recently.\n * @see https://github.com/asgrim/hhvm/commit/bf5a259cece5df8a7617133c85043608d1ad5316\n */\n if (method_exists($this->client, 'unwatch')) {\n $this->client->unwatch();\n } else {\n // this should also kill the watch...\n $this->client->multi()->discard();\n }\n\n return false;\n }\n\n $value += $offset;\n // value can never be lower than 0\n $value = max(0, $value);\n\n $this->client->multi();\n\n /*\n * Negative ttl behavior isn't properly documented & doesn't always\n * appear to treat the value as non-existing. Let's play safe and just\n * delete it right away!\n */\n if ($ttl < 0) {\n $this->client->del($key);\n } else {\n $this->client->set($key, $value, $ttl);\n }\n\n /** @var bool[] $return */\n $return = (array) $this->client->exec();\n\n return !in_array(false, $return, true) ? $value : false;\n }", "function wp_cache_incr($key, $offset = 1, $group = '')\n{\n global $wp_object_cache;\n\n return $wp_object_cache->increment($key, $offset, $group);\n}", "public function increment() {\r\n\t\t$_SESSION['count']++;\r\n\treturn $_SESSION['count'];\r\n\t}", "public function increment($var,$version)\n {\n $this->redis->set($var,$version);\n }", "public function incrPrice($increment) {\n $this->setPrice($this->getPrice() + $increment);\n }", "public function increment($field, $offset=1)\n {\n $offset = intval($offset);\n if ($offset == 0) {\n return 0;\n }\n $from_str = $this->getFromStr();\n $sql = \"UPDATE {$from_str} SET `{$field}` = `$field` + {$offset} WHERE {$this->where_str}\";\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $result = $this->execute($sql);\n return $result;\n }", "static public function increment($subject, $key, $offset = 1) {\n\t\t$cache = self::singleton();\n\t\t$key = self::generateKey($subject, $key);\n\t\t\n\t\tY_Log::debug('cache increment %s by %d', $key, $offset);\n\t\tunset(self::$local[$key]);\n\t\treturn $cache->increment($key, $offset);\n\t}", "function inc(int $x): int {\n $x = $x + 1;\n\n return $x;\n }", "function wp_cache_incr($key, $offset = 1, $group = '')\r\n\t{\r\n\t\tglobal $wp_object_cache;\r\n\t\tif (empty($group)) { $group = 'default'; }\r\n\t\treturn $wp_object_cache->incr($key, (int)$offset, $group);\r\n\t}", "public function incr($key, $n, $group)\n {\n $current = $this->get($key, $group);\n $key = $this->getInstanceKey($key, $group);\n\n $success = true;\n foreach ($this->mc as $mc) {\n if (!$mc->increment($key, $n)) {\n $success = false;\n }\n }\n\n // All good, if success\n if ($success) return true;\n\n // If not, rollback to previous (ignoring errors for good)\n foreach ($this->mc as $mc) {\n $mc->set($key, $current);\n }\n\n return false;\n }", "public function getIncrementing();", "public function incrementReferenceCount(): int\n {\n return ++$this->getGC()->refcount;\n }", "public function incrIdHexa($increment) {\n $this->setIdHexa($this->getIdHexa() + $increment);\n }", "public function incrIdHexa($increment) {\n $this->setIdHexa($this->getIdHexa() + $increment);\n }", "protected function increment(){\n $count = $this->model->getClickCount();\n $count++;\n $this->model->setClickCount($count);\n $this->model->save(false);\n \n }", "public function increment() {\n $this->countAnswered++;\n }", "function wp_cache_incr($key, $offset = 1, $group = '')\n{\n global $wp_object_cache;\n\n return $wp_object_cache->incr($key, $offset, $group);\n}", "public function getIncrement(): int\n {\n return $this->increment;\n }", "public function increment()\n {\n $this->current++;\n return $this;\n }", "public function setIncrementing($value);", "public function incrIdTypeUnit($increment) {\n $this->setIdTypeUnit($this->getIdTypeUnit() + $increment);\n }", "public function needsIncrementOffset();", "public function getIncrement()\n {\n return $this->increment;\n }", "public function incrementPosition()\n {\n ++$this->positionA;\n }", "function ydintIncr($incr)\n{\n\treturn $incr+1;\n}", "public function incrIdTypeResource($increment) {\n $this->setIdTypeResource($this->getIdTypeResource() + $increment);\n }", "public function increment($field, $params, $step = 1) {\n\t\tif (!$field || !$params) return false;\n\t\t$where = $this->sqlWhere($params);\n\t\t$sql = sprintf('UPDATE %s SET %s=%s+%d WHERE %s ', $this->getTableName(), $field, $field, $step, $where);\n\t\treturn $this->execute($sql, array(), false);\n\t}", "public function increment()\n {\n $compteur = 1;\n if (file_exists($this->fichier))\n {\n $compteur = file_get_contents($this->fichier);\n $compteur++;\n }\n file_put_contents($this->fichier, $compteur);\n }", "public function incrIdBonus($increment) {\n $this->setIdBonus($this->getIdBonus() + $increment);\n }", "public static function increment($key, $offset = 1)\r\n {\r\n return Application::getRedis()->incrby($key, $offset);\r\n }", "public function increment($column, $amount = 1, array $extra = array(), array $options = array())\n {\n $query = array('$inc' => array($column => $amount));\n\n if ( ! empty($extra))\n {\n $query['$set'] = $extra;\n }\n\n // Protect\n $this->where(function($query) use ($column)\n {\n $query->where($column, 'exists', false);\n\n $query->orWhereNotNull($column);\n });\n\n return $this->performUpdate($query, $options);\n }", "public function increment($column, $amount = 1, array $extra = array(), array $options = array()) {\n $query = array('$inc' => array($column => $amount));\n\n if (!empty($extra)) {\n $query['$set'] = $extra;\n }\n\n // Protect\n $this->where(function($query) use ($column) {\n $query->where($column, 'exists', false);\n\n $query->orWhereNotNull($column);\n });\n\n return $this->performUpdate($query, $options);\n }", "public function incrIdPlayer($increment) {\n $this->setIdPlayer($this->getIdPlayer() + $increment);\n }", "public function inc($name)\n {\n return self::$driver->id($name);\n }", "public function getIncrement() {\r\n return $this->desiredIncrement;\r\n }", "function byRef(&$val) {\n $val++;\n return 1;\n}", "public function & doInc ($amountTo = NULL) {\n # To adding or instanceof;\n if ($amountTo instanceof I) {\n # Get the value from the amountTo;\n $this->varContainer += $amountTo->toInt ();\n } else {\n # One line, to rule'em all;\n ($amountTo != NULL) ?\n ($this->varContainer += $amountTo) :\n (++$this->varContainer);\n }\n // Return to chain;\n return $this->returnToChain ();\n }", "function incrementFile() {\n \treturn $this->adjustPosition(1);\n }", "protected function incr($field, $num = 1)\n {\n if ($this->data !== null) {\n $entry = &$this->data[$field];\n if ($entry === null) {\n $entry = $num;\n } else {\n $entry += $num;\n }\n }\n\n if ($this->new && !$this->upsertMode) {\n return $this;\n }\n\n // Make sure this field is not being unset, since it must now have a new value\n $unset = isset($this->updatePlan['$unset'][$field]);\n unset($this->updatePlan['$unset'][$field]);\n\n if (isset($this->updatePlan['$set'][$field])) {\n $this->updatePlan['$set'][$field] += $num;\n return $this;\n }\n\n // Check for existing increment operations in our current transaction,\n // add to existing array and/or add amount by which to increment field.\n if (!isset($this->updatePlan['$inc'])) {\n $this->updatePlan['$inc'] = [$field => $num];\n } else {\n if ($unset || !isset($this->updatePlan['$inc'][$field])) {\n $this->updatePlan['$inc'][$field] = $num;\n } else {\n $this->updatePlan['$inc'][$field] += $num;\n }\n }\n\n return $this;\n }", "public function incr($key, $offset = 1, $group = 'default')\n {\n }", "public function increment($key, $step = 1)\n {\n return $this->handler->incr($key, $step);\n }", "abstract function incrementPosition();", "private function incrementMoveNumber(): void\n {\n ++$this->moveNumber;\n }", "public function incrementProgress(int $offset = 1)\n {\n $value = $this->getProgressNow() + $offset;\n $this->setProgressNow($value);\n }", "public function updateCount() {\n $sql = \"UPDATE goCount SET count = count + 1 WHERE 1\";\n\n if (self::$conn->query($sql) === FALSE) {\n echo \"Error updating count record: \" . self::$conn->error;\n }\n }", "public static function increment($key, $start, $expire, $mcsetting = 'local.memcache', $offset = 1) {\n $obj = self::getconnect($mcsetting);\n if ($obj and is_string($key)) {\n $result = $obj->increment($key, $offset);\n if ($result === false) {\n $result = $obj->set($key, $start, false, $expire);\n }\n return $result;\n }\n }", "function wp_cache_incr($key, $offset = 1, $group = '')\n {\n }", "public function __invoke(): void\n {\n ++$this->counter;\n }", "public function add_or_update()\n {\n $this->on_duplicate_key('foo = foo + 1');\n $this->insert('table', array('foo' => 'bar'));\n }", "public function incrementRowsUpdated(): void\n {\n $this->rowsUpdated++;\n }", "public function setIncrement($value) {\r\n\r\n /** @todo RAISING EXCEPTIONS HERE FORCES DECLARING \"THROW\" EVERYWHERE! */\r\n// if ($value < 0) {\r\n// throw new TeeChartException(Language.getString(\"AxisIncrementNeg\"));\r\n// }\r\n\r\n //if (isDateTime()) System.Convert.ToDateTime($value).ToString();\r\n $this->desiredIncrement = $this->setDoubleProperty($this->desiredIncrement, $value);\r\n }", "public function incrementor($table, $what, array $where){\n $this->upd($table, array($what => +1), $where);\n }", "private function addMultiExecIncrement(MultiExecContext $multi, $subject, $bucket)\n {\n // Increment the current bucket\n $multi->hincrby($subject, $bucket, 1);\n // Clear the buckets ahead\n $multi->hdel($subject, ($bucket + 1) % $this->bucketCount)->hdel($subject, ($bucket + 2) % $this->bucketCount);\n // Renew the key TTL\n $multi->expire($subject, $this->subjectExpiry);\n }", "public function execute($otherRegister){\n if($otherRegister->incOrDec == 'inc')\n $this->value = $this->value + ($otherRegister->incOrDecAmount);\n else\n $this->value = $this->value - ($otherRegister->incOrDecAmount);\n }", "public function encode() {\n return array(\"__op\" => \"Increment\",\n \"amount\" => $this->value);\n }", "public static function increment($stat, $sampleRate = 1)\n\t{\n\t\tif (self::$instance)\n\t\t{\n\t\t\tself::$instance->increment($stat, $sampleRate);\n\t\t}\n\t}", "public function getEditIncrement();", "function inc() {\n $n = new la_time($this->actor_id);\n $n->counter = $this->counter + 1;\n return $n;\n }" ]
[ "0.63991064", "0.636425", "0.63551515", "0.6239715", "0.61509484", "0.60126144", "0.5975795", "0.5975087", "0.5946195", "0.58477736", "0.5793468", "0.57755655", "0.5751336", "0.5741594", "0.5724463", "0.569759", "0.5662298", "0.5653981", "0.56336033", "0.56326914", "0.5616615", "0.55647844", "0.55515665", "0.5549047", "0.5547762", "0.5545728", "0.55383635", "0.55272055", "0.5517428", "0.5509739", "0.54697526", "0.5447506", "0.5427689", "0.53713155", "0.5368284", "0.53457046", "0.5337102", "0.53312504", "0.5314893", "0.52951884", "0.52800953", "0.5250041", "0.5248415", "0.5239046", "0.52150345", "0.5205812", "0.51873976", "0.5165819", "0.51593804", "0.51452214", "0.51339126", "0.51182365", "0.5114284", "0.51099086", "0.5105518", "0.5105518", "0.5104498", "0.5102169", "0.5089818", "0.50892514", "0.5061901", "0.5056097", "0.5053223", "0.5033455", "0.5027042", "0.50008285", "0.4999549", "0.49972123", "0.4970169", "0.49692842", "0.49655408", "0.49589375", "0.4950474", "0.49472308", "0.49425387", "0.49417377", "0.49274454", "0.49160495", "0.49096417", "0.48997048", "0.48943695", "0.48798355", "0.48677433", "0.4867299", "0.48530823", "0.48480844", "0.482763", "0.48227066", "0.48148268", "0.48085842", "0.48025364", "0.47990125", "0.47923437", "0.47805384", "0.47803828", "0.47715315", "0.4766443", "0.47579944", "0.47495574", "0.47463655" ]
0.47927317
92
Performs atomic decrementation of a raw stored value.
public function decrement(string $id, int $offset = 1) { $new_value = (int)$this->get($id) - (int)$offset; $this->save($id, $new_value); return $new_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function decrement($key, $value = 1)\n {\n $data = $this->getData($key);\n $result = intval($data['data']) - $value;\n $this->set($key, $result, $data['time']);\n\n return $result;\n }", "public function decrement($key, $value = 1)\n {\n $this->connection->transaction(function () use ($key, $value) {\n return $this->incrementOrDecrement($key, $value, function ($current) use ($value) {\n return $current - $value;\n });\n });\n }", "public function decrement(LaramoreModel $model, $value, $decrement=1);", "public function decrement($key, $value = 1)\n {\n $_value = false;\n\n try {\n $_doc = $this->get($key);\n } catch (\\Exception $_ex) {\n }\n\n return $_value;\n }", "public function decrement($keyName = null, $value = null)\n {\n if (!$value) {\n $value = -1;\n } elseif ($value > 0) {\n $value = -1 * abs($value);\n }\n\n return $this->increment($keyName, $value);\n }", "public function decrement(string $key, int $value = 1)\n {\n return $this->getAdapter()->decrBy($key, $value);\n }", "public function decrement($key, $value = 1)\n {\n return $this->memcache->decrement($this->prefix.$key, $value);\n }", "public function decrement(string $key, int $value = 1)\n {\n if (!$this->has($key)) {\n return false;\n }\n\n $data = $this->get($key);\n $data = (int) $data - $value;\n\n return $this->set($key, $data);\n }", "public function decrement($key, $value = 1)\n {\n return $this->increment($key, $value * -1);\n }", "protected function internalDecrementItem(& $normalizedKey, & $value)\n {\n $memc = $this->getMemcacheResource();\n $internalKey = $this->namespacePrefix . $normalizedKey;\n $value = (int) $value;\n $newValue = $memc->decrement($internalKey, $value);\n\n if ($newValue !== false) {\n return $newValue;\n }\n\n // Set initial value. Don't use compression!\n // http://www.php.net/manual/memcache.decrement.php\n $newValue = -$value;\n if (!$memc->add($internalKey, $newValue, 0, $this->expirationTime())) {\n throw new Exception\\RuntimeException('Memcache unable to add decrement value');\n }\n\n return $newValue;\n }", "public function decrement($key, $offset = 1)\r\n {\r\n return apc_dec($key, $offset);\r\n }", "public function decrement($key, $offset = 1);", "public function dec(): void {}", "public function decrement(\n\t\t$key,\n\t\t$offset = 1,\n\t\t$create = '',\n\t\t$expiry = '',\n\t\t$initial = ''\n\t) {}", "function wp_cache_decr($key, $offset = 1, $group = '')\n{\n global $wp_object_cache;\n\n return $wp_object_cache->decrement($key, $offset, $group);\n}", "function decrease(&$num): void { # The symbol & is prefixed to the variable\n $num -=2;\n}", "public function decreaseAmount(): void;", "function decr( $key, $offset = 1, $group = 'default' ) {\n\t\t$value = $this->get( $key, $group );\n\t\tif ( $value === false )\n\t\t\treturn false;\n\n\t\tif ( !is_numeric( $value ) )\n\t\t\t$value = 0;\n\n\t\t$offset = (int) $offset;\n\t\t$value -= $offset;\n\n\t\tif ( $value < 0 )\n\t\t\t$value = 0;\n\t\t$this->replace( $key, $value, $group );\n\t\treturn $value;\n\t}", "public function subtract($value);", "public static function decrement(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Module::subtract($x, IInt32\\Type::one());\n\t\t}", "public static function dec($Key, $Value = 1)\n\t\t{\n\t\t\t$Value = (int)$Value;\n\t\t\tif ($Value <= 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (self::$APCOn)\n\t\t\t{\n\t\t\t\t$Result = apc_dec($Key, (int)$Value);\n\t\t\t}\n\t\t\telseif (self::$MemcacheOn)\n\t\t\t{\n\t\t\t\t$Result = self::$Memcache -> decrement($Key, $Value);\n\t\t\t}\n\n\t\t\treturn $Result;\n\t\t}", "public function decr(string $key): int\r\n\t{\r\n\t\treturn $this->connection->decr($key);\r\n\t}", "public function decrementKey( $key )\n {\n /** @var $client \\Memcached */\n $client = $this->getClient();\n $client->decrement( $key );\n }", "public function decrementReferenceCount(): int\n {\n assert($this->getGC()->refcount > 0);\n\n return --$this->getGC()->refcount;\n }", "static public function decrement($subject, $key, $offset = 1) {\n\t\t$cache = self::singleton();\n\t\t$key = self::generateKey($subject, $key);\n\t\t\n\t\tY_Log::debug('cache increment %s by %d', $key, $offset);\n\t\tunset(self::$local[$key]);\n\t\treturn $cache->decrement($key, $offset);\n\t}", "public static function decrement($stats, $sampleRate=1) {\n\t\tStatsD::updateStats($stats, -1, $sampleRate, 'c');\n\t}", "public function decrement($key, $offset = 1) {\n\t\treturn $this->_Memcached->decrement($key, $offset);\n\t}", "public function decrement($key, $offset = 1)\n {\n $ret = $this->getConn()->decrement($key, $offset) or $this->checkResultCode();\n return $ret;\n }", "public static function decrement($key, $offset = 1)\r\n {\r\n return Application::getRedis()->decrby($key, $offset);\r\n }", "public static function decrement($stat, $sampleRate = 1)\n\t{\n\t\tif (self::$instance)\n\t\t{\n\t\t\tself::$instance->decrement($stat, $sampleRate);\n\t\t}\n\t}", "public function decrement($names, array $tags = [], $value = 1, $sampleRate = 1.0);", "public function decrement($column, $amount = 1, array $extra = array(), array $options = array())\n {\n return $this->increment($column, -1 * $amount, $extra, $options);\n }", "public function decrement($column, $amount = 1, array $extra = array(), array $options = array()) {\n return $this->increment($column, -1 * $amount, $extra, $options);\n }", "function decrementFile() {\n \treturn $this->adjustPosition(-1);\n }", "protected abstract function do_down();", "public function decrement($field, $offset=1)\n {\n return $this->increment($field, $offset * -1);\n }", "public function dec($value = 1): self\n {\n return $this->sub($value);\n }", "public function decrement_quantity(){\n\t\t$mysql = mysql_connection::get_instance();\n\t\t\n\t\t$stmt = $mysql->prepare('UPDATE `items` SET `item_quantity` = `item_quantity` - 1 WHERE `item_id` = ?');\n\t\t$stmt->bind_param('i', $this->id);\n\t\t$stmt->execute();\n\t\t$stmt->close();\n\t}", "public function decr(int $num)\n {\n\n if ($this->useTreeMap) {\n $count = $this->map[$num] ?? null;\n if ($count == 1) {\n unset($this->map[$num]);\n } else {\n $this->map[$num] = $count - 1;\n }\n // Fall back to simple arrays once we touch zero again\n if (count($this->map) == 0) {\n $this->useTreeMap = false;\n $this->upto = 0;\n }\n return;\n }\n\n for ($i = 0; $i < $this->upto; $i++) {\n if ($this->values[$i] == $num) {\n $this->counts[$i]--;\n if ($this->counts[$i] == 0) {\n $limit = $this->upto - 1;\n while ($i < $limit) {\n $this->values[$i] = $this->values[$i + 1];\n $this->counts[$i] = $this->counts[$i + 1];\n $i++;\n }\n $this->upto = $limit;\n }\n return;\n }\n }\n// assert false;\n if (true) {\n throw new \\AssertionError('FALSE'); //HAHA\n }\n }", "public function decrement($column, $amount = 1, array $extra = [])\n {\n $this->checkKeyExists();\n\n if (! is_numeric($amount)) {\n throw new InvalidArgumentException('Non-numeric value passed to decrement method.');\n }\n\n $column = $this->expression->addName($column);\n $amount = $this->expression->addValue($amount);\n\n $this->updates['set'][] = sprintf('%s = %s - %s', $column, $column, $amount);\n\n return $this->update($extra);\n }", "public function cacheBackendLibmemcachedDecrement(UnitTester $I)\n {\n $I->wantToTest('Cache\\Backend\\Libmemcached - decrement()');\n\n $key = 'decrement';\n $cache = $this->getDataCache();\n\n $I->dontSeeInLibmemcached($key);\n $I->haveInLibmemcached($key, 100);\n\n $I->assertEquals(99, $cache->decrement($key));\n $I->seeInLibmemcached($key, 99);\n\n $I->assertEquals(97, $cache->decrement($key, 2));\n $I->seeInLibmemcached($key, 97);\n\n $I->assertEquals(87, $cache->decrement($key, 10));\n $I->seeInLibmemcached($key, 87);\n }", "public function unset()\n {\n unset($this->value);\n }", "public function decr($key, $n, $group)\n {\n $current = $this->get($key, $group);\n $key = $this->getInstanceKey($key, $group);\n\n $success = true;\n foreach ($this->mc as $mc) {\n if (!$mc->decrement($key, $n)) {\n $success = false;\n }\n }\n\n // All good, if success\n if ($success) return true;\n\n // If not, rollback to previous (ignoring errors for good)\n foreach ($this->mc as $mc) {\n $mc->set($key, $current);\n }\n\n return false;\n }", "public function & doDec ($amountTo = NULL) {\n if ($amountTo instanceof I) {\n # Get the value fromt the amountTo;\n $this->varContainer -= $amountTo->toInt ();\n } else {\n # One line, to rule me all ...\n ($amountTo != NULL) ?\n ($this->varContainer -= $amountTo) :\n (--$this->varContainer);\n }\n // Return to chain;\n return $this->returnToChain ();\n }", "public static function decrement($key, $rate = null) {\r\n self::count($key, -1, $rate);\r\n }", "public function decrement($key, $offset = 1, $group = 'default')\n {\n $derived_key = $this->build_key($key, $group);\n $offset = (int) $offset;\n\n // If group is a non-Redis group, save to internal cache, not Redis\n if (in_array($group, $this->ignored_groups) || ! $this->redis_status()) {\n $value = $this->get_from_internal_cache($derived_key, $group);\n $value -= $offset;\n $this->add_to_internal_cache($derived_key, $value);\n\n return $value;\n }\n\n try {\n // Save to Redis\n $result = $this->parse_redis_response($this->redis->decrBy($derived_key, $offset));\n\n $this->add_to_internal_cache($derived_key, (int) $this->redis->get($derived_key));\n } catch (Exception $exception) {\n $this->handle_exception($exception);\n\n return false;\n }\n\n return $result;\n }", "function delete_one_stock($bdd)\n{\n 'UPDATE `articles` \n SET `stock`=(`stock`-1) \n WHERE articles.id=3';\n}", "public abstract function subtract($output, $inc);", "public function safeDown()\r\n\t{\r\n\t\t$this->down();\r\n\t}", "public static function Subtract($left_operand, $right_operand)\r {\r return bcsub($left_operand, $right_operand);\r }", "public function decrement($key, $step = 1)\n {\n return $this->handler->decr($key, $step);\n }", "public function safeDown()\r\n {\r\n $this->down();\r\n }", "function wp_cache_decr($key, $offset = 1, $group = '')\n{\n global $wp_object_cache;\n\n return $wp_object_cache->decr($key, $offset, $group);\n}", "abstract public function revert();", "public static function decrement(string $key, int $offset = 1, string $config = 'default'): int|false\n {\n if ($offset < 0) {\n throw new InvalidArgumentException('Offset cannot be less than `0`.');\n }\n\n return static::pool($config)->decrement($key, $offset);\n }", "public function decrementVideo($objectId, $field, $value, $withArray = false, $fieldArray = '', $valueArray = array()) {\n\ttry {\n\t $parseObject = new parseObject('Video');\n\t //we use the increment function with a negative value because decrement function still not work\n\t $parseObject->increment($field, array(0 - $value));\n\t if ($withArray) {\n\t\tif (is_null($fieldArray) || empty($valueArray))\n\t\t return throwError(new Exception('decrementVideo parameters fieldArray and valueArray must to be set for array update'), __CLASS__, __FUNCTION__, func_get_args());\n\t\t$parseObject->removeArray($fieldArray, $valueArray);\n\t }\n\t $res = $parseObject->update($objectId);\n\t return $res->$field;\n\t} catch (Exception $e) {\n\t return throwError($e, __CLASS__, __FUNCTION__, func_get_args());\n\t}\n }", "public function decrementar_stockx1($cod, $sede, $cantidad)\n\t\t{ \t\n\t\t$stockprevio = $this->obtener_stock($cod, $sede);\n\t\t$nuevo_stock = $stockprevio - $cantidad;\n\t\t$this->actualiza_stock($cod, $sede, $nuevo_stock);\n\t\t\t\n\t\t}", "public function decr(int $by = 1): bool\n {\n return (bool)$this->resque->getClient()->decrby($this->getKey(), $by);\n }", "public function safeDown()\n {\n $this->down();\n }", "public function safeDown()\n {\n $this->down();\n }", "function wp_cache_decr($key, $offset = 1, $group = '')\r\n\t{\r\n\t\tglobal $wp_object_cache;\r\n\t\tif (empty($group)) { $group = 'default'; }\r\n\t\treturn $wp_object_cache->decr($key, (int)$offset, $group);\r\n\t}", "public function decrementDirectEntriesCount()\r\n\t{\r\n\t\t$this->setDirectEntriesCount($this->getDirectEntriesCount() - 1);\r\n\t}", "public function safeDown()\n\t{\n\t\t$this->down();\n\t}", "public function revert();", "public static function decrement($key, $start, $expire, $mcsetting = 'local.memcache') {\n $obj = self::getconnect($mcsetting);\n if ($obj and is_string($key)) {\n $result = $obj->decrement($key);\n if ($result === false) {\n $result = $obj->set($key, $start, false, $expire);\n }\n return $result;\n }\n }", "public function decrement($column, $amount = 1, array $extra = [], array $options = [])\n {\n //TODO: implement a way to do it with Doctrine\n throw new \\Exception('Not implemented.');\n }", "public function decResponseCount()\n {\n $decResponse = (int) $this->attribute( 'response_count' );\n $decResponse--;\n $this->setAttribute( 'response_count', $decResponse );\n $this->store();\n }", "abstract public function down();", "abstract public function down();", "abstract public function down();", "public function reverse(): void\n {\n $ranks = $this->ranks;\n\n $this->commit(array_values(collect($ranks)->reverse()->all()));\n }", "public function decrby(string $key, int $amount): int\r\n\t{\r\n\t\treturn $this->connection->decrBy($key, $amount);\r\n\t}", "public static function decrement($name, $key, $offset = 1, array $options = []) {\n\t\t$options += ['conditions' => null];\n\n\t\tif (is_callable($options['conditions']) && !$options['conditions']()) {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\t$adapter = static::adapter($name);\n\t\t} catch (ConfigException $e) {\n\t\t\treturn false;\n\t\t}\n\t\t$params = compact('key', 'offset');\n\n\t\treturn Filters::run(get_called_class(), __FUNCTION__, $params, function($params) use ($adapter) {\n\t\t\treturn $adapter->decrement($params['key'], $params['offset']);\n\t\t});\n\t}", "public function subtract(string $value): BigInteger\n {\n $gmp = $this->initValue($value);\n\n $calculatedValue = gmp_sub($this->value, $gmp);\n\n return $this->assignValue($calculatedValue);\n }", "public function decrementaposti($id,$posti)\n {\n $sql = \" UPDATE \".static::getTables().\" SET posti_disponibili = posti_disponibili - \".$posti.\" WHERE id = \".$id.\" ; \";\n return $result = parent::update($sql);\n }", "public static function dec(string $key, int $dec = 1) {\n\t\treturn self::set ( $key, self::get ( $key, 0 ) - $dec );\n\t}", "public function decrement_product($id_produit,$quantite)\n {\n $this->query(\"UPDATE produit set quantite=(quantite - ?) where id_produit=?\",array($quantite,$id_produit));\n }", "function stockDecrement($product, $quantity)\n{\n\tinclude 'setup.php';\n\n\tclearstatcache();\n\tif(file_exists($STOCKFILE) && is_readable($STOCKFILE) && filesize($STOCKFILE) > 0)\n\t{\n\t\t$handle = fopen($STOCKFILE, \"r+\");\n\t\tflock($handle, 2);\t// get an exclusive lock\n\n\t\t$stocks = unserialize(fread($handle, filesize($STOCKFILE)));\n\t\tif($stocks == FALSE)\n\t\t{\n\t\t\t$retval = -2;\t// error reading stocks\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(($stocks[$product][instock] - $quantity) < 0)\n\t\t\t{\n\t\t\t\t$retval = -1;\t// not enough available\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$stocks[$product][instock] -= $quantity;\n\t\t\t\t$retval = $stocks[$product][instock];\n\t\t\t\t$stocks[$product][sold] += $quantity;\n\n\t\t\t\trewind($handle);\n\t\t\t\tif(fwrite($handle, serialize($stocks), strlen(serialize($stocks))) == FALSE)\n\t\t\t\t\t$retval = -2;\t// error storing new stock amounts\n\t\t\t}\n\t\t}\n\n\t\tflock($handle, 3);\t// release lock again\n\t\tfclose($handle);\n\t}\n\telse\n\t\t$retval = -1;\n\n\treturn $retval;\n}", "public function decrementMax(array $input) {\n $key = $this->getKeyFromInput($input);\n\n $max = $this->getMax($key);\n if ($this->isValid($max)) {\n $max--;\n\n DB::table(self::TABLE_NAME)\n ->where(self::C_KEY,'=',$key)\n ->update([self::C_MAX => $max]);\n }\n }", "function wp_cache_decr($key, $offset = 1, $group = '')\n {\n }", "public function unlock(&$prevcount = 0) {}", "public function unshift($value): void {}", "public function decrement($column, $amount = 1)\n\t{\n\t\treturn $this->_adjust($column, $amount, ' - ');\n\t}", "public static function subscriptionDecremented($callback)\n {\n static::listenForSubscriptionEvents();\n static::registerModelEvent('subscriptionDecremented', $callback);\n }", "public function sub_instr()\n {\n $this->instructions--;\n }", "public function rem($key);", "protected function doDecline(\\XLite\\Model\\Payment\\BackendTransaction $transaction)\n {\n return $this->doSecondary($transaction, 'decline');\n }", "public function refundTransaction() {\n //not implemented\n }", "public function lrem($key, $count, $value)\n {\n return $this->command('lrem', [$key, $value, $count]);\n }", "public function decrementPendingEntriesCount()\n\t{\n\t\t$this->setPendingEntriesCount($this->getPendingEntriesCount() - 1); \n\t}", "public function down() { return $this->run('down'); }", "public static function lrem($key, $count, $value)\n {\n return parent::lrem($key, $count, $value);\n }", "public function rollBack()\n {\n if ($this->store->transactions == 1) {\n $this->store->transactions = 0;\n\n $this->store->rollBack();\n } else {\n --$this->transactions;\n }\n }", "public function cancelTransaction() {\n return $this->conn->rollBack();\n }", "public function destroy( $value = NULL, $field = 'id' );", "public function safeDown()\n\t{\n $sql=\" ALTER TABLE `tbl_venta` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n //quitando la columna pto_venta de tbl_empleado\n $sql=\" ALTER TABLE `tbl_empleado` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n\t}", "public function decrementSightingRank()\n\t{\n\t\t$id = request()->fake;\n\t\t$currentRank = DB::table('sightings')->where('id',$id)->pluck('rank')->first();\n\t\tif($currentRank > 0)\n\t\t\tDB::table('sightings')->where('id',$id)->decrement('rank', 1);\n\t}", "public function down(): int\n {\n if ($this->hasNodeId()) {\n if ($this->nodeId !== last($this->ranks)) {\n $key = array_search($this->nodeId, $this->ranks);\n\n return $this->toggle($this->nodeId, $this->ranks[$key + 1]);\n }\n\n return count($this->ranks);\n }\n }", "function vote_tip_down($id, $uname) {\n $sql = '\n UPDATE\n tips\n SET\n score = score - 1\n WHERE\n id=?\n ';\n \n $upd_res = $this->prep_and_exec($sql, [$id]);\n $ins_res = $this->insert_vote($id, $uname, false);\n \n return ($upd_res && $ins_res);\n }", "public function decStackPointer() {}" ]
[ "0.6788684", "0.6574186", "0.6502994", "0.64125854", "0.6372137", "0.6325251", "0.6269527", "0.6236318", "0.6181371", "0.6159654", "0.59830743", "0.5915324", "0.5890582", "0.57461905", "0.5743459", "0.5736591", "0.5685951", "0.5681843", "0.56689996", "0.56307757", "0.5538148", "0.55368024", "0.5535024", "0.552371", "0.55026215", "0.5496583", "0.5477005", "0.5414754", "0.5382587", "0.53819716", "0.5377957", "0.5365514", "0.5353509", "0.53490806", "0.53477186", "0.53425384", "0.5324935", "0.5288328", "0.5282384", "0.5228737", "0.52222574", "0.51826453", "0.5173961", "0.51641273", "0.5155064", "0.5152916", "0.51365715", "0.51290786", "0.50659394", "0.50490737", "0.50413597", "0.50288075", "0.49754247", "0.4950663", "0.49203962", "0.49087012", "0.48969188", "0.48633927", "0.48463294", "0.48463294", "0.48339018", "0.48109496", "0.48047355", "0.47999978", "0.4784409", "0.47837722", "0.47669014", "0.47437802", "0.47437802", "0.47437802", "0.47414166", "0.4738485", "0.4712613", "0.4710584", "0.4700294", "0.46960115", "0.46929225", "0.46882862", "0.46834478", "0.4672238", "0.46712747", "0.4657543", "0.46235213", "0.46230397", "0.46217993", "0.4606288", "0.4583571", "0.45809907", "0.45652157", "0.45293465", "0.45100754", "0.45008725", "0.44946307", "0.44929013", "0.44864532", "0.44833073", "0.44758764", "0.44682604", "0.44678155", "0.44667375" ]
0.49634778
53
This method will return information on the entire cache.
public function cache_info() : array { $info = []; foreach ($this->cache as $key=>$value) { $info[$key] = [ 'value'=>$value, 'size'=>strlen($value), 'ttl'=>0, ]; } return $info; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCache();", "public function cache() {\n\t\treturn $this->_cache;\n\t}", "public function readCache()\n {\n return $this->readFile()->unpackData();\n }", "public function getFromCache() {}", "public function cache()\n {\n return $this->cache;\n }", "protected function printCachedInfo() {}", "public static function getCache() {}", "public function cacheGet() {\n }", "static function cached_all(){\n return static::get_cache();\n }", "public function getCache()\r\n {\r\n \treturn $this->_cache;\r\n }", "public function getCache()\n\t{\n\t\treturn CacheBot::get($this->getCacheKey(), self::$objectCacheLife);\n\t}", "private function get_cache() {\n exit(file_get_contents($this->cache_file));\n }", "public function getCache()\n\t{\n\t\treturn ($this->_cache);\n\t}", "public function getCache()\n {\n return $this->Cache;\n }", "public function list_cache()\n {\n $result = $this->_db->find('all');\n\n $return_list = array();\n $ttl_expiry = time() - $this->_cacheTTL;\n\n foreach ($result as $i => $cache_item) {\n $expired = false;\n $ttl = $cache_item[$this->_db->name]['created'];\n\n if ($ttl < $ttl_expiry) {\n $expired = true;\n }\n\n $return_list[] = array(\n 'item_name' => $cache_item[$this->_db->name]['request_hash'],\n 'contents' => $cache_item[$this->_db->name]['request_response'],\n 'location' => $cache_item[$this->_db->name]['request_hash'],\n 'ttl' => $ttl,\n 'expired' => $expired\n );\n }\n\n return $return_list;\n }", "public function getCache() {\n\t\treturn $this->get('Cundd\\\\Rest\\\\Cache\\\\Cache');\n\t}", "public function getCache()\n {\n return $this->_cache;\n }", "protected function getClassInfoCache() {}", "public function getCache()\r\n\t{\r\n\t\treturn $this->m_cache;\r\n\t}", "public function getCache()\n {\n return $this->get('cache', false);\n }", "function GetFromCache()\n {\n return File::GetContents($this->file);\n }", "function getCache() {\n return $this->cache;\n }", "public function getCache()\n\t{\n\t\treturn $this->cache;\n\t}", "private function getCacheData()\n {\n /**@var $cache Zend_Cache_Core */\n $cache = Shopware()->Cache();\n $data = array(\n 'metaData' => array(),\n 'options' => array(\n 'percentage' => $cache->getFillingPercentage()\n ),\n );\n $options = array(\n 'write_control',\n 'caching',\n 'cache_id_prefix',\n 'automatic_serialization',\n 'automatic_cleaning_factor',\n 'lifetime',\n 'logging',\n 'logger',\n 'ignore_user_abort'\n );\n foreach ($options as $option) {\n $data['options'][$option] = $cache->getOption($option);\n }\n\n foreach ($cache->getIds() as $id) {\n $metaData = $cache->getMetadatas($id);\n $createdAt = date('Y-m-d H:i:s', $metaData['mtime']);\n $validTo = date('Y-m-d H:i:s', $metaData['expire']);\n\n $from = new \\DateTime($createdAt);\n $diff = $from->diff(new \\DateTime($validTo));\n $minutes = $diff->days * 24 * 60;\n $minutes += $diff->h * 60;\n $minutes += $diff->i;\n\n $data['metaData'][$id] = array(\n 'Tags' => $metaData['tags'],\n 'Created at' => $createdAt,\n 'Valid to' => $validTo,\n 'Lifetime' => $minutes . ' minutes'\n );\n }\n\n return $data;\n }", "public static function getCache()\n {\n return self::$_cache;\n }", "protected function getRuntimeCache() {}", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "function getCache() {\n return $this->cache;\n }", "static public function getCache(){\n return static::$cache;\n }", "public static function getCached()\n {\n return static::$cached;\n }", "public function getCache() {\n return $this->cache;\n }", "public function get()\n {\n return Cache::get($this->cacheKey);\n }", "public function getCache() {\n\t\t$this->sync();\n\t\treturn $this->cache;\n\t}", "public function getDetails() {\r\n \r\n $mckey = sprintf(\"%s;details\", $this->mckey); \r\n \r\n if (!$data = $this->Memcached->fetch($mckey)) {\r\n if (empty($this->mime) && file_exists(RP_DOWNLOAD_DIR . $this->filepath)) {\r\n $finfo = finfo_open(FILEINFO_MIME_TYPE); \r\n $this->mime = finfo_file($finfo, RP_DOWNLOAD_DIR . $this->filepath);\r\n }\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n \r\n $data = array(\r\n \"type\" => ucwords($mime[0]),\r\n \"size\" => $this->filesize,\r\n \"downloads\" => $this->hits,\r\n \"added\" => array(\r\n \"absolute\" => $this->Date->format(\"Y-m-d g:i:s a\"),\r\n \"relative\" => time2str($this->Date->getTimestamp())\r\n ),\r\n \"thumbnail\" => $this->getThumbnail(),\r\n \"video\" => $this->getHTML5Video()\r\n );\r\n \r\n $this->Memcached->save($mckey, $data, strtotime(\"+12 hours\"));\r\n }\r\n \r\n return $data;\r\n }", "protected function getMemoryCache() {}", "public function getCache(): string\n {\n return $this->cache;\n }", "public function getContentCache()\n {\n return $this->contentCache;\n }", "protected function getCache()\n {\n return $this->cache;\n }", "private function inCache()\n\t{\n\t\t$content = $this->_cache->retrieve($this->redditid); //faster if we have it in cache already\n\t\treturn $content;\n\t}", "function getCache()\n {\n $query = $this->db->get_where(self::LOG_TABLE, $this->cacheQuery);\n return $query->row();\n }", "protected static function getRuntimeCache() {}", "public function getCacheMetadata()\n {\n return $this->_cacheMetadata;\n }", "public function caches()\n {\n return $this->request('get', '/api/teams/'.Helpers::config('team').'/caches');\n }", "function App_Cache() {\n\t\t\treturn App_Cache::instance()->getAdapter();\n\t\t}", "public function getAll() {\n\n\t\t\t// If desired clean up all expired cached objects\n\t\t\tif ($this->_autoDeleteExpired) {\n\t\t\t\t$this->deleteExpired();\n\t\t\t}\n\n\t\t\t$res = array();\n\t\t\t$filename = $this->_getFileName();\n\t\t\t$cachedData = $this->_loadCache($filename);\n\t\t\t// If cached data exists unserialize and return\n\t\t\tif ($cachedData) {\n\t\t\t\tforeach ($cachedData as $key => $value) {\n\t\t\t\t\t$res[$key] = unserialize($value['data']);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $res;\t\t\t\n\t\t}", "public function getCaching()\n {\n return (!is_null($this->_cache) ? $this->_cache : Cache::instance('redis'));\n }", "protected function get_cache() {\n\t\n // uncomment next line to flush previous cache\n\t //delete_transient($this->get_cache_id()); \n\t\n \treturn get_transient( $this->get_cache_id() ); \t \n\t}", "protected function getFromCache()\n {\n return $this->cache->get($this->getCacheKey());\n }", "public function cache() {\r\n\t\t$key = $this->cacher.'.' . $this->hash();\r\n\t\tif (($content = pzk_store($key)) === NULL) {\r\n\t\t\t$content = $this->getContent();\r\n\t\t\tpzk_store($key, $content);\r\n\t\t}\r\n\t\techo $content;\r\n\t}", "public static function getCache() {\n\n if (Config::get('app.cache') != 0 && !Auth::check()) { //\n $page = (Paginator::getCurrentPage() > 1 ? Paginator::getCurrentPage() : '');\n $key = 'route-' . Str::slug(Request::fullurl()) . $page;\n\n if (Cache::has($key)) {\n die(Cache::get($key));\n }\n }\n }", "public function getCacheData(): array\n\t{\n\t\treturn $this->cacheData;\n\t}", "public function getCache()\r\n\t{\r\n\t\treturn \\Bitrix\\Main\\Data\\Cache::createInstance();\r\n\t}", "public static function getCacheControl() {}", "public function getInfo($key) {\n $this->logger->debug('Getting of cache info for key [' . $key . ']');\n $filePath = $this->getFilePath($key);\n $this->logger->info('The file path for the key [' . $key . '] is [' . $filePath . ']');\n if (!file_exists($filePath)) {\n $this->logger->info('This cache file does not exists skipping');\n return false;\n }\n $this->logger->info('Found cache file [' . $filePath . '] check the validity');\n $data = $this->getCacheFileContent($filePath);\n if ($data === false) {\n $this->logger->warning('Can not get the cache data for file [' . $filePath . ']');\n return false;\n }\n $this->logger->info('This cache data is OK check for expire');\n if ($data['expire'] > time()) {\n $this->logger->info('This cache not yet expired return cache informations');\n return array(\n 'mtime' => $data['mtime'],\n 'expire' => $data['expire'],\n 'ttl' => $data['ttl']\n );\n }\n $this->logger->info('This cache already expired return false');\n return false;\n }", "public function info($key) {\n\t\t$cacheInfo = apc_cache_info('user');\n\t\tDebug::dump($cacheInfo);\t\t\n\t\t//return $dataInfo;\n\t}", "protected function cache()\n {\n // Cache location items\n $this->locations->get(); // All\n $this->locations->menu(); // Menu\n $this->locations->mapItems(); // Map\n $this->locations->featured(); // Featured\n\n // Cache properties\n $this->properties->cacheAll(); // All\n $this->properties->specials();\n }", "public function getCacheAdapter();", "protected function getCache()\n {\n return $this->cacheManager->getCache('cache_beautyofcode');\n }", "public function getAll($cache = true) {}", "protected function getCache()\n {\n return Mage::app()->getCache();\n }", "protected function getCache()\n {\n return Mage::app()->getCache();\n }", "abstract public function getCache( $cacheID = '', $unserialize = true );", "public function getCache() {\n\t\tif (file_exists($this->cache_file)) {\n\t\t\t$cache_contents = file_get_contents($this->cache_file);\n\t\t\treturn $cache_contents;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getCache($key)\n {\n return $this->memcache->get($key);\n }", "abstract protected function cacheData();", "public function getCache() {\n $db = \\Helper::getDB();\n $db->join('cached_assets c', 'dc.cacheId = c.id', 'LEFT');\n $db->where('dc.fileId', $db->escape($this->getId()));\n $results = $db->get('document_files_cache dc');\n\n return $results;\n }", "public function getCacheTable() {}", "public function get($cache_name);", "function Atv_getRepoKegiatanAll(): object\n{\n return Cache::remember('repo-kegiatan-all', (60 * 60 * 2/* 2 hours */), function () {\n return Kegiatan::all()->map->kegiatanResourceMap();\n });\n}", "public function cache(): object\n {\n return $this->baseApp($this)->loadCache();\n }", "public function getCache() {\n\n // return our instance of Cache\n return $this->oCache;\n }", "protected function getContentFromCacheFile() {}", "public function getAll()\n\t{\n\t\tif (!class_exists('JCacheStorageHelper', false))\n\t\t{\n\t\t\tinclude_once JPATH_PLATFORM . '/joomla/cache/storage/helper.php';\n\t\t}\n\t\treturn;\n\t}", "final protected function getCacheData()\n\t{\n\t\tif(!$this->getCacheNeed())\n\t\t\treturn;\n\n\t\tif($this->currentCache == 'null')\n\t\t\tthrow new Main\\SystemException('Cache were not started');\n\n\t\treturn $this->currentCache->getVars();\n\t}", "public function getResponseCacheMetadata() {\n return $this->responseMetadata;\n }", "public function get_all(){\n $cache_data_list=[];\n if($this->driver=='file'){\n foreach ($cache_list=$this->file->file_walk($this->path) as $value){\n $cache_data_list[]=$this->file->read_file($value);\n }\n }\n if($this->driver==\"redis\"){\n foreach ($this->redis->hGetAll($this->path) as $key=>$value){\n $cache_data_list[]=$value;\n }\n }\n return $cache_data_list;\n }", "function getCache() {\n\t\t// The following line is only for classloading purposes\n\t\t$categoryEntryDao =& $this->getEntryDAO();\n\t\t$journalDao =& DAORegistry::getDAO('JournalDAO');\n\n\t\t// Load and return the cache, building it if necessary.\n\t\t$filename = $this->getCacheFilename();\n\t\tif (!file_exists($filename)) $this->rebuildCache();\n\t\t$contents = file_get_contents($filename);\n\t\tif ($contents) return unserialize($contents);\n\t\treturn null;\n\t}", "public function isCached() {}", "public static function readCache(){\r\n\t\trequire('./config.php');\r\n\t\tif(!file_exists($cachePath)){\r\n\t\t\treturn self::refreshCache();\r\n\t\t}\r\n\t\t//$myFile = $cachePath;\r\n\t\t$myFile = \"catalogCache.txt\";\r\n\t\t$fh = fopen($myFile, 'r');\r\n\t\t$catalogJson = fread($fh, filesize($myFile));\r\n\t\tfclose($fh);\r\n\t\t$catalog_groups = json_decode($catalogJson);\r\n\r\n\r\n\r\n\t\t//error_log(print_r($catalog_groups, true));\r\n\r\n\t\treturn $catalog_groups;\r\n\t}", "public function memCached() { return true; }", "function stats() {\n\t\techo '<h2>Summary</h2>';\n\t\techo '<p>';\n\t\techo '<strong>Engine</strong>: ' . Cache::engine_name( $this->_config->get_string( array( 'fragmentcache', 'engine' ) ) ) . '<br />';\n\t\techo '<strong>Caching</strong>: ' . ( $this->_caching ? 'enabled' : 'disabled' ) . '<br />';\n\n\t\tif ( !$this->_caching ) {\n\t\t\techo '<strong>Reject reason</strong>: ' . $this->cache_reject_reason . '<br />';\n\t\t}\n\n\t\techo '<strong>Total calls</strong>: ' . $this->cache_total . '<br />';\n\t\techo '<strong>Cache hits</strong>: ' . $this->cache_hits . '<br />';\n\t\techo '<strong>Cache misses</strong>: ' . $this->cache_misses . '<br />';\n\t\techo '<strong>Total time</strong>: '. round( $this->time_total, 4 ) . 's';\n\t\techo '</p>';\n\n\t\techo '<h2>Cache info</h2>';\n\n\t\tif ( $this->_debug ) {\n\t\t\techo '<table cellpadding=\"0\" cellspacing=\"3\" border=\"1\">';\n\t\t\techo '<tr><td>#</td><td>Status</td><td>Source</td><td>Data size (b)</td><td>Query time (s)</td><td>ID:Group</td></tr>';\n\n\t\t\tforeach ( $this->debug_info as $index => $debug ) {\n\t\t\t\techo '<tr>';\n\t\t\t\techo '<td>' . ( $index + 1 ) . '</td>';\n\t\t\t\techo '<td>' . ( $debug['cached'] ? 'cached' : 'not cached' ) . '</td>';\n\t\t\t\techo '<td>' . ( $debug['internal'] ? 'internal' : 'persistent' ) . '</td>';\n\t\t\t\techo '<td>' . $debug['data_size'] . '</td>';\n\t\t\t\techo '<td>' . round( $debug['time'], 4 ) . '</td>';\n\t\t\t\techo '<td>' . sprintf( '%s:%s', $debug['id'], $debug['group'] ) . '</td>';\n\t\t\t\techo '</tr>';\n\t\t\t}\n\n\t\t\techo '</table>';\n\t\t} else {\n\t\t\techo '<p>Enable debug mode.</p>';\n\t\t}\n\t}", "public function getCache()\n {\n return Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('cachemanager')->getCache( 'frontcore' );\n }", "public static function getCache() {\n\t\treturn null;\n\t}", "public function getCacheExp();", "public function getCacheTime()\n {\n return $this->_cacheTime;\n }", "public function getCacheHits()\n\t{\n\t\treturn $this->cacheHits;\n\t}", "public function readCache() {\n\t\tif(file_exists($this -> sCacheDir . $this -> sCacheFile)) {\n\t\t\treturn file_get_contents($this -> sCacheDir . $this -> sCacheFile);\n\t\t}\n\t\treturn false;\n\t}", "public function stats() {\n\t\techo \"<p>\";\n\t\techo \"<strong>Cache Hits:</strong> {$this->cache_hits}<br />\";\n\t\techo \"<strong>Cache Misses:</strong> {$this->cache_misses}<br />\";\n\t\techo \"</p>\";\n\t\techo '<ul>';\n\t\tforeach ( $this->cache as $group => $cache ) {\n\t\t\techo \"<li><strong>Group:</strong> $group - ( \" . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';\n\t\t}\n\t\techo '</ul>';\n\t}", "public function check_cache() \r\n\t{\r\n\t\tif (!is_readable($this->cache_file))\r\n\t\t{\r\n\t\t\t$this->generate_cache();\r\n\t\t}\r\n\t\t$contents = file_get_contents($this->cache_file);\r\n\t\treturn $contents;\r\n\t}", "protected function getCache() {\n\t\t$factory = $this->policy('rate_factoryname');\n\t\t$lifetime = $this->policy('rate_lock_timeout') + 60; // As long as it's longer than the actual timeout\n\t\t$cache = SS_Cache::factory($factory);\n\t\t$cache->setOption('automatic_serialization', true);\n\t\t$cache->setOption('lifetime', $lifetime);\n\t\treturn $cache;\n\t}", "public function getCacheLifetime(): int;", "public function cached()\n {\n // check cache is available else set cache and return\n return Cache::get('Klaravel\\Settings\\Setting', function () {\n $data = $this->get();\n Cache::put('Klaravel\\Settings\\Setting', $data, 60 * 24);\n\n return $data;\n });\n }", "protected function getCacheTime()\n {\n return $this->_cacheTime;\n }", "public function stats(){\n\t\treturn apc_cache_info('user',true);\n\t}" ]
[ "0.76268375", "0.7537997", "0.7521704", "0.74767035", "0.7405077", "0.7373131", "0.73614174", "0.7258551", "0.7220613", "0.7218052", "0.7170629", "0.7120344", "0.7096076", "0.70846283", "0.7083623", "0.7073916", "0.7067775", "0.70346844", "0.70056176", "0.70038116", "0.69934183", "0.69880193", "0.69522583", "0.6952173", "0.69515926", "0.69476295", "0.6943669", "0.6943669", "0.6943669", "0.6943669", "0.6943669", "0.6943669", "0.6943669", "0.69290745", "0.6928448", "0.6914977", "0.6913199", "0.6911314", "0.6871514", "0.68338245", "0.68283665", "0.68161976", "0.68122053", "0.68101543", "0.67779815", "0.67769676", "0.6770424", "0.6762459", "0.67616814", "0.67594117", "0.6756445", "0.6713713", "0.6710712", "0.67089313", "0.6706273", "0.67047614", "0.6676812", "0.6674323", "0.66724586", "0.66372705", "0.66355145", "0.66207165", "0.66120523", "0.66073185", "0.6603512", "0.65637606", "0.65637606", "0.6562729", "0.65612185", "0.6554949", "0.6551944", "0.6547489", "0.65472364", "0.65363026", "0.6534025", "0.65190035", "0.65082055", "0.65018946", "0.64918834", "0.6489041", "0.6481653", "0.6477311", "0.6472494", "0.6472268", "0.64683735", "0.6451039", "0.6450612", "0.6448321", "0.6447714", "0.6408395", "0.64067286", "0.6383901", "0.6383518", "0.63777393", "0.6367089", "0.63660055", "0.6362843", "0.6361497", "0.6359506", "0.63539237" ]
0.73355293
7
This method will return the size if the cached item.
public function get_metadata(string $id) { $value = $this->get($id); return ($value) ? gettype($value) : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function size()\n\t{\n\t\treturn count(self::$_cache);\n\t}", "function getSize() {\n\t\t\treturn count($this->items);\n\t\t}", "public function getSize()\n {\n return count($this->getItems());\n }", "public function getCacheLength() {\n return $this->_cacheLength;\n }", "public function size()\n {\n return count($this->items);\n }", "public function getSize()\n {\n return $this->item['size'];\n }", "public function size()\n {\n return self::$size;\n }", "public function size()\n {\n return $this->size;\n }", "public function size()\n {\n return $this->size;\n }", "public function size() \n {\n return count($this->_entries);\n }", "public function size(): int {\n return $this->size;\n }", "public function size()\n {\n return sizeof($this->list);\n }", "public function getSize() {\n\t \t return $this->size;\n\t }", "public function count()\n {\n return count($this->_cache);\n }", "public function size(): int\n {\n return $this->size;\n }", "public function size(): int\n {\n return $this->size;\n }", "public function get_size()\n {\n }", "public function getSize() {\n return $this->_size;\n }", "public function size(): int {\n\t\treturn $this->count();\n\t}", "function getSize()\r\n\t{\r\n\t\treturn $this->size;\r\n\t}", "public function size()\n {\n return $this->count;\n }", "public function getSize() {\n\n return $this->size;\n\t}", "function getItemCount(){\r\n\t\t\treturn count($this->items);\r\n\t\t}", "public function getSize() {\n return (int) $this->_count;\n }", "public function getSize()\n\t{\n\t\treturn $this->size;\n\t}", "public function getSize()\n {\n return $this->getStat('size');\n }", "public function count()\n {\n return $this->__size;\n }", "protected function getSize()\n {\n return strlen($this->data);\n }", "function size()\n\t{\n\t\treturn count($this->_data);\n\t}", "public function getTotalItemSize()\n {\n if (array_key_exists(\"totalItemSize\", $this->_propDict)) {\n return $this->_propDict[\"totalItemSize\"];\n } else {\n return null;\n }\n }", "public function count() {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function count()\n {\n return $this->size;\n }", "public function getSize() \n {\n return $this->_size; \n }", "public function getListSize()\n {\n return sizeof($this->items);\n }", "public function getSize() {\n return $this->size;\n }", "public function getSize() {\n\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "function getSize() { return $this->_size; }", "function size()\n {\n return $this->p_size;\n }", "public function getSize(): int\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getItemCount()\n {\n return count($this->_items);\n }", "public function getSize()\n {\n return $this->_Size;\n }", "function getSize() {\n return $this->size;\n }", "public function getItemCount()\n {\n return $this->ItemCount;\n }", "public function getItemCount()\n {\n return $this->get(self::_ITEM_COUNT);\n }", "public function getTotalSize(): int;", "public function size(): int\n {\n return $this->content->size();\n }", "public function Length()\n {\n $length = count($this->_items);\n\n return $length;\n }", "public function getItemCount()\n {\n if (array_key_exists(\"itemCount\", $this->_propDict)) {\n return $this->_propDict[\"itemCount\"];\n } else {\n return null;\n }\n }", "public function length() {\n try{\n return count($this->Items);\n }catch(Exception $e){\n throw $e;\n }\n }", "public function size() {\n return sizeof($this->_elements);\n }", "public function filled()\n\t{\n\t\treturn Core_Cache::instance($this->cacheType)->getCount($this->id);\n\t}", "public function size()\n {\n return Iterators::size($this->iterator());\n }", "public function getSize()\n {\n return (int) $this->size;\n }", "function getLength(){\n\t\t$out = 0;\n\t\tfor($i=0;$i<sizeof($this->_Items);$i++){\n\t\t\t$out = $out + $this->_Items[$i]->getLength();\n\t\t}\n\t\treturn $out;\n\t}", "public function getItemCount()\n {\n return $this->count(self::ITEM);\n }", "function getSize()\n {\n $this->loadStats();\n return $this->stat['size'];\n }", "public function size() {}", "public function count() {\r\n\r\n return $this->total_size;\r\n\r\n }", "public function getSize(): int;", "public function getSize(): int;", "public function getSize(): int;", "public function getSize(): int;", "function getSize(): int {\n return \\strlen($this->buffer);\n }", "public function getItemCnt () {\n $items = CerticanItemDao::getListByCertican($this);\n\n return count($items);\n }", "public function get_size() {\n $query = $this->db->get('size');\n if ($query->num_rows() > 0) {\n return $query->result();\n } else {\n return false;\n }\n }", "public function size() {\n\t\treturn filesize($this->_path);\n\t}", "public function count() {\n return count($this->_items);\n\n }", "public function getSize() {\r\n return $this->iSize;\r\n }", "public function getItemCount() : int\n {\n return $this->itemCount;\n }", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function size()\n {\n return $this->map->size();\n }", "public function getSize()\n {\n return $this->length;\n }", "public function getItemsCount()\n {\n return $this->getItemCollection()->getSize();\n }", "public function getSize() {\n\t\treturn filesize($this->getPath());\n\t}", "public static function size()\n {\n return <<<'LUA'\nreturn redis.call('zcard', KEYS[1]) + redis.call('zcard', KEYS[2]) + redis.call('zcard', KEYS[3])\nLUA;\n }", "public function size() {\n return sizeof(array_keys($this->_hash));\n }", "function count()\r\n {\r\n return(count($this->items));\r\n }", "public function countItems(): int\n\t{\n\t\treturn $this->storage->count();\n\t}", "public function getSize()\n {\n return $this->fstat()[\"size\"];\n }", "function getSize() {\n\t\treturn $this->data_array['filesize'];\n\t}", "public function size(): int {}" ]
[ "0.8045936", "0.7911645", "0.7711737", "0.7621872", "0.7586701", "0.7482318", "0.74393016", "0.74006397", "0.74006397", "0.737795", "0.7279485", "0.72703344", "0.72574633", "0.7243205", "0.7228983", "0.7228983", "0.72273535", "0.72030663", "0.7196045", "0.7179217", "0.7178788", "0.71765065", "0.717322", "0.7162803", "0.7161613", "0.7142814", "0.71272117", "0.71235347", "0.71214527", "0.71080357", "0.7105172", "0.71005183", "0.71005183", "0.71005183", "0.70982796", "0.70982796", "0.70982796", "0.70982796", "0.70982796", "0.70982796", "0.70982796", "0.70982796", "0.7091763", "0.70780295", "0.7065368", "0.70645505", "0.70589536", "0.7055962", "0.7054752", "0.7049213", "0.70405143", "0.7040296", "0.7040296", "0.7039782", "0.7031942", "0.70309216", "0.70101774", "0.69842213", "0.6975863", "0.69592965", "0.6956345", "0.6951375", "0.6951161", "0.6945905", "0.6938601", "0.69345623", "0.693325", "0.69309306", "0.6930831", "0.6902585", "0.68978095", "0.6889446", "0.6874446", "0.68691164", "0.68691164", "0.68691164", "0.68691164", "0.68678814", "0.68578166", "0.6857605", "0.68471825", "0.68376404", "0.6835715", "0.6831214", "0.6822841", "0.68227845", "0.68227845", "0.68227845", "0.68227845", "0.6821979", "0.6819329", "0.68181515", "0.68165624", "0.68083686", "0.6806152", "0.6805508", "0.6801816", "0.6791686", "0.6789235", "0.6788877", "0.67878914" ]
0.0
-1
Is this caching driver supported on the system? Of course this one is.
public function is_supported() : bool { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSupported() {\n return $this->cacheFilePath \n && is_dir($this->cacheFilePath) \n && is_writable($this->cacheFilePath);\n }", "public function isSupported()\n\t{\n\t\treturn $this->isSupported;\n\t}", "public function isAvailable() {\n return (function_exists('apc_fetch') || function_exists('apcu_fetch')) &&\n ini_get('apc.enabled') &&\n (ini_get('apc.enable_cli') || php_sapi_name() != 'cli');\n }", "public function is_supported()\n\t{\n\t\tif ( ! extension_loaded('memcached'))\n\t\t{\n\t\t\tlog_message('error', 'The Memcached Extension must be loaded to use Memcached Cache.');\n\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$this->_setup_memcached();\n\t\treturn TRUE;\n\t}", "public function isSupported()\n {\n if ( ! extension_loaded('apc') OR ini_get('apc.enabled') != \"1\") {\n throw new Exception('The APC PHP extension must be loaded to use APC Cache.');\n return false;\n }\n return true;\n }", "function isAvailable()\r\n\t{\r\n return $this->oMemcache == null ? false : true;\r\n }", "public static function isSupported()\n {\n return static::$supported;\n }", "public function is_supported()\n\t{\n\t\treturn true;\n\t}", "public function getIsSupported() {\n return $this->get(self::IS_SUPPORTED);\n }", "static public function isSupported();", "public function isSupported()\n {\n return $this->supported;\n }", "public static function isSupported(): bool;", "public function isSupported()\n {\n return null !== $this->name();\n }", "function isSupported() {\r\n\t\t\treturn extension_loaded( 'oci8' );\r\n\t\t}", "public function isSupported();", "public function isSupported();", "public static function test()\n\t{\n\t\tJLog::add('JCacheStorage::test() is deprecated. Use JCacheStorage::isSupported() instead.', JLog::WARNING, 'deprecated');\n\n\t\treturn static::isSupported();\n\t}", "public function isSupported(): bool;", "public function hasCacheStore(): bool;", "public static function isSupported()\n\t{\n\t\treturn true;\n\t}", "public static function isSupported()\n\t{\n\t\treturn true;\n\t}", "public function test()\n\t{\n\t\treturn (extension_loaded('memcache') && class_exists('Memcache'));\n\t}", "public static function is_set_cache(): bool\n {\n return self::getConfigDB(self::cache);\n }", "public function isUseCache()\n {\n return $this->use_cache;\n }", "abstract function isSupported(): bool;", "public function available($settings) {\n\t\treturn $settings['type'] == 'memcached' && class_exists(\"Memcached\");\n\t}", "public function isSupported() {\nif (extension_loaded('mysqli')) {\n\treturn true;\n}\nelse {\n\t$this->error='The mysqli extension for PHP is not installed.';\n\treturn false;\n};\n}", "public function is_use_cache()\r\n {\r\n return $this->cache;\r\n }", "public static function isSupported()\n {\n return true;\n }", "static public function isSupported() {\n\t\treturn extension_loaded('pdo') && in_array('odbc', \\PDO::getAvailableDrivers());\n\t}", "public function cacheIsSet()\n {\n return is_a($this->Cache, CacheInterface::class);\n }", "public function isSupported()\n {\n return true;\n }", "public function isSupported()\n {\n return true;\n }", "public function isSupported()\n {\n return true;\n }", "public function isProvidersCached(): bool;", "function isInstalled() {\r\n return extension_loaded('memcache');\r\n }", "public function isCacheEnabled(): bool\n {\n return Environment::CACHE_ENABLED;\n }", "public function isAvailable()\n {\n $result = false;\n if (extension_loaded('apc')) {\n $memoryInfo = @apc_sma_info();\n $availableMemory = $memoryInfo['avail_mem'];\n\n // If more than 5MB free\n if ($availableMemory > (5 * 1024 * 1024)) {\n $result = true;\n }\n }\n return $result;\n }", "public function hasCacheFactory(): bool\n {\n return isset($this->cacheFactory);\n }", "public function isCacheEnabled() {\n\t\treturn $this->cache;\n\t}", "public function getCacheable() : bool {\n return $this->cacheable;\n }", "public function hasDiskCaching()\n {\n return $this->useDiskCaching;\n }", "function should_cache() {\n return array_key_exists('cache', $this->options) && $this->options['cache'] === TRUE;\n }", "public static function isSupported()\n {\n return \\in_array('mssql', \\PDO::getAvailableDrivers(), true);\n }", "public function isAvailable(): bool;", "public static function enabled()\n {\n return in_array('mysql', PDO::getAvailableDrivers());\n }", "public function availible()\n\t{\n\t\treturn null;//class_exists('Redis');\n\t}", "public function can_cache() {\n return $this->valid;\n }", "public function hasCache()\n {\n return (null !== $this->getCacheAdapter());\n }", "public function isCacheEnabled()\n {\n return $this->cache;\n }", "public function isCachingOn() {\n\t\treturn $this->cachingOn;\n\t}", "public function isCacheEnabled(): bool\n {\n return Environment::CACHE_DISABLED;\n }", "public function hasAvailableOnPlatform()\n {\n return $this->available_on_platform !== null;\n }", "public function is_connected()\n {\n $result = @$this->mcache->getExtendedStats();\n $canconnect = false;\n\n if($result) {\n foreach($result as $server => $stats) {\n if($stats) {\n $canconnect = true;\n break;\n }\n }\n }\n \n return $canconnect;\n }", "function admin_postinstall_eaccelerator_condition()\n{\n\t$app = JFactory::getApplication();\n\t$cacheHandler = $app->getCfg('cacheHandler', '');\n\n\treturn (ucfirst($cacheHandler) == 'Eaccelerator');\n}", "public static function isAvailable ()\n\t{\n\t\tif (!function_exists('curl_version')){\n\t\t\treturn false;\n\t\t}\n\n\t\t$versionInfo = curl_version();\n\t\t$versionTab = explode('.', $versionInfo['version']);\n\n\t\tif ($versionTab[0] < 7 || ($versionTab[0] == 7 && $versionTab[1] < 10) || ($versionTab[0] == 7 && $versionTab[1] == 10 && $versionTab[2] < 5)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static function isAvailable()\n\t{\n\t\treturn true;\n\t}", "public function getIsAvailable();", "function getIsAvailable() ;", "public function getIsAvailable() {}", "public function isSupportedProduct()\n {\n /** @var Oyst_OneClick_Model_Catalog $oystCatalog */\n $oystCatalog = Mage::getModel('oyst_oneclick/catalog');\n\n return $oystCatalog->isSupportedProduct($this->getProduct());\n }", "public static function is_available()\n {\n }", "public function isAvailable(): bool\n {\n return true;\n }", "function isAvailable()\n {\n }", "final public function isSupported($type) {\n\t\tif (NULL == ($backend = $this->getBackendByType($type)))\n\t\t\treturn FALSE;\n\t\treturn TRUE;\n\t}", "public function isSupported() {\n\t\treturn class_exists('Salt');\n\t}", "private function isCacheSupport(JsonRequest $jsonRequest)\n {\n try {\n $object = $this->getMethod($jsonRequest);\n $metadata = $this->mapper->loadObjectMetadata($object);\n\n return $jsonRequest->getId()\n && $metadata['cache']\n && !$this->isDebug()\n && $this->getCache();\n } catch (\\Exception $e) {\n return false;\n }\n }", "public function isCacheEnabled()\n {\n return $this->cacheEnabled;\n }", "public function enabled()\n {\n return extension_loaded('ibm_db2');\n }", "public static function is_available () {\n\t\t$auth = op5Auth::instance();\n\t\tforeach (AuthModulePool_Model::all() as $module) {\n\t\t\t$driver = $auth->get_auth_driver($module->get_modulename());\n\t\t\tif (\n\t\t\t\t$driver->get_metadata('require_user_configuration') &&\n\t\t\t\t$driver->get_user_count() > 0\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function isCachedDataAvailable(){\n\t\treturn $this->_dataAvailable;\n\t}", "public function isCacheEnabled()\n {\n return $this->isCacheEnabled;\n }", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function isAvailable() {}", "public function providerHasDevices(): bool;", "public function isAvailable() {\n $path = $this->path();\n return file_exists($path);\n }", "protected function hasApc()\n {\n return function_exists('apc_cache_info') && @apc_cache_info();\n }", "public function isUseDiskCaching()\n {\n return $this->useDiskCaching;\n }", "public static function hasCache() {\n\t\treturn false;\n\t}", "public function getHasDjHardware()\n {\n return $this->getParam(self::HAS_DJ_HARDWARE);\n }", "function _can_cache() {\n\t\treturn true;\n\t}", "public function isCached(): bool;", "private function canUseDatabase()\n {\n return $this->deploymentConfig->get('db');\n }", "public function dbIsInstalled();", "public static function isCacheActive()\n {\n return (bool)static::$cacheActive;\n }" ]
[ "0.7596643", "0.7223071", "0.6965308", "0.6920269", "0.6913562", "0.68805534", "0.68799305", "0.6865904", "0.68596685", "0.6850846", "0.6849698", "0.6845037", "0.68223083", "0.6753843", "0.6714223", "0.6714223", "0.67110926", "0.67031413", "0.6676517", "0.6657457", "0.6657457", "0.66476643", "0.66344804", "0.66159725", "0.6600292", "0.65689164", "0.6560925", "0.6553451", "0.65339744", "0.65245134", "0.650762", "0.64938855", "0.64938855", "0.64938855", "0.6489706", "0.6487647", "0.6484292", "0.647114", "0.64314497", "0.6421005", "0.6415485", "0.64101154", "0.6409908", "0.6407331", "0.63764524", "0.63759387", "0.63733745", "0.6353816", "0.6334567", "0.63314176", "0.62978303", "0.62963384", "0.62918335", "0.6289825", "0.6288594", "0.62840736", "0.6271214", "0.6263987", "0.6257538", "0.62482285", "0.62448394", "0.6241392", "0.6229047", "0.6221124", "0.62193274", "0.6218663", "0.62182015", "0.6210757", "0.62033296", "0.61936975", "0.6190702", "0.61810553", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.6175597", "0.61748606", "0.61748606", "0.61748606", "0.6171457", "0.61688507", "0.61683613", "0.61667573", "0.61436135", "0.61372626", "0.61324036", "0.61285853", "0.6124641", "0.61154276", "0.61149603" ]
0.67521304
14
Set the value of idreevext.
public function setIdreevext($idreevext) { $this->idreevext = $idreevext; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "function setid_exp($val)\n { $this->id_exp=$val;}", "public function setidExamen($Valor){\r\n $this->idExamen = trim($Valor);\r\n }", "public function getIdreevext()\n {\n return $this->idreevext;\n }", "public function setID($value) {\r\n //if (!is_numeric($value)) die(\"setID() only accepts a numerical ID value\");\r\n $this->id = $value;\r\n }", "function setId($id) {\r\n\t\t$this->setAttributeNS(self :: TEXT, 'text:id', $id);\r\n\t}", "private function SetID($value)\n\t\t{\n\t\t\t$this->id = $value;\n\t\t}", "public function setLeafId ($value)\r\n\t{\r\n\t\t$this->leafId = $value;\r\n\t}", "public function setLeafId($value) {\r\n\t\t$this->leafId = $value;\r\n\t}", "function SetId($value) { $this->id=$value; }", "public function setIdVit($id){\n\t\t$this->id = $id;\n\t}", "public function setLeafIdTemp($value) {\r\n\t\t$this->leafIdTemp = $value;\r\n\t}", "public function setNodeId($id);", "public function setID($_id) \n \t{\n \t\t$this->_id = $_id;\n \t}", "function set_id( $id ){\n\t\t$this->id = $id;\n\t\t// this is add request. so number is 0\n\t\tif( $this->id == $this->id_base ){\n\t\t\t$this->number = 0;\n\t\t\t$this->is_new = true;\n\t\t}\n\t\t// parse number\n\t\telse{\n\t\t\t$this->number = str_replace($this->id_base.'-', '', $this->id);\n\n\t\t\t// load instance data\n\t\t\t$this->instance = jcf_field_settings_get( $this->id );\n\t\t\tif( !empty($this->instance) ){\n\t\t\t\t$this->slug = $this->instance['slug'];\n\t\t\t}\n\t\t}\n\t}", "public function setID($id){\n $this->ID = $id;\n }", "public function setValue($value) {\n $this->node->setAttribute('value', iconv(xp::ENCODING, 'utf-8', $value));\n }", "function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "public function setID($id) {\n $this->id = $id; \n }", "function setId($id)\n {\n $this->_id = $id;\n $this->_extension = null;\n }", "public function setId($valor){\n\t\t\t$this->id = $valor;\n\t\t}", "public function setId($x) { $this->id = $x; }", "public function set($id, $value);", "public function set($id, $value);", "public function setId($id)\n {\n\n $this->idKey = $id;\n $this->context->element = $id;\n\n }", "public function setID($id){\n $this->id = $id;\n }", "public function set_id($setid){\n $this->id = $setid;\n }", "private function setID($id) {\r\n\t\t$this->id = $id;\r\n\t}", "public function setID($_id) \n\t{\n\t\t$this->_id = $_id;\n\t}", "function set_id($id) {\n\t\t$this->id = $id;\n\t}", "public function set(string $id, $value);", "public function setID($id){\n $this->id=$id;\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function set(string $id, mixed $value): void;", "public function set_id( $id ) {\n\t\t\t$this->id = $id;\n\t\t}", "public function set_id($id){\n $this->id = $id;\n }", "public function setMarkIdentification($value) {\n\t\tself::$_markIdentification = $value;\n\t}", "public function set_ID($str_VMS_ID) {\n $this->vms_id = $str_VMS_ID;\n }", "public function set_id( $id ) {\n\t\t$this->id = absint( $id );\n\t}", "public function setid($id)\n\t\t{\n\t\t\t$this->id = $id;\n\t\t}", "public function setNodeValue($value) {\n $this->nodeValue = $value;\n }", "public function set_idnumber($value) {\r\n $this->idnumber = $value;\r\n data::add(\"idnumber\", $this->idnumber == \"\" ? NODATA : input::santize($this->idnumber), $this->table_fields);\r\n }", "public function setIdVeiculo($value,$options=array('required'=>true)){ \n $this->_data['id_veiculo'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_veiculo']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function setID($id) {\n\t\t$this->id = $id;\n\t}", "function set_id($id)\n {\n $this->id = $id;\n }", "function setFieldID($iNewVale) {\n\t\t$this->iFieldID = $iNewValue;\n\t}", "public function set_tyk_id($id) {\n\t\tupdate_user_meta($this->user->ID, self::META_TYK_USER_ID_KEY, $id);\n\t}", "public function setID($id)\n {\n $this->ID = $id;\n }", "function setId($id) {\n\t\t$this->setData('id', $id);\n\t}", "function set_TID($ID) {\n $this->ID = $ID;\n }", "public function setID($id);", "public function SetId($valor)\r\n\t{\r\n\t\t$this->id = $valor;\r\n\t}", "public function setIDfromArgV() {}", "public function setEid($eid) {\n $this->eid = $eid;\n }", "public function setID($id)\n {\n $this->id = $id;\n }", "public function set($id, $value)\n\t{\n\t\t$tag_name = $this->tag_name($id);\n\n\t\tif ($tag_name == 'textarea')\n\t\t{\n\t\t\t$this->connection()->post(\"element/$id/value\", array('value' => $value));\n\t\t}\n\t\telseif ($tag_name == 'input')\n\t\t{\n\t\t\t$type = $this->attribute($id, 'type');\n\t\t\tif ($type == 'checkbox' OR $type == 'radio')\n\t\t\t{\n\t\t\t\t$this->connection()->post(\"element/$id/click\", array());\n\t\t\t}\n\t\t\telseif ($type == 'file')\n\t\t\t{\n\t\t\t\t$this->connection()->post(\"element/$id/upload\", array('value' => $value));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->connection()->post(\"element/$id/value\", array('value' => $value));\n\t\t\t}\n\t\t}\n\t\telseif ($tag_name == 'option')\n\t\t{\n\t\t\t$this->connection()->post(\"element/$id/selected\", array('value' => $value));\n\t\t}\n\t}", "public function setIduser($value)\n {\n $this->iduser = $value;\n }", "function setId($value) {\n $this->_id = intval($value);\n }", "function setId($id){\n\t\t$this->id = $id;\n\t}", "public function setEvalTinyint($key, $value)\n {\n $this->arrEvalTinyint[$key] = $value;\n }", "public function setVatIdNo($vatin);", "function setNum($num)\n {\n $this->num = $num;\n }", "function setId($id){\r\n\t\t$this->id = $id;\r\n\t}", "function setId($id) {\r\n $this->_id = $id;\r\n }", "public function setTvsouId($value)\n {\n if (!array_key_exists('tvsou_id', $this->fieldsModified)) {\n $this->fieldsModified['tvsou_id'] = $this->data['fields']['tvsou_id'];\n } elseif ($value === $this->fieldsModified['tvsou_id']) {\n unset($this->fieldsModified['tvsou_id']);\n }\n\n $this->data['fields']['tvsou_id'] = $value;\n }", "public function setTreeBaseID($ID) {\n\t\t$this->baseID = $ID;\n\t}", "public function setId($id){\n $this->_id = $id;\n }", "public function setId($value)\n {\n $this->setDataField('id', $value);\n }", "function setId($id) {\n\t\t$this->_id = $id;\n\t}", "public function setNid($nid) {\n $this->nid = $nid;\n }", "public function setWikiId($value)\n {\n if (!array_key_exists('wiki_id', $this->fieldsModified)) {\n $this->fieldsModified['wiki_id'] = $this->data['fields']['wiki_id'];\n } elseif ($value === $this->fieldsModified['wiki_id']) {\n unset($this->fieldsModified['wiki_id']);\n }\n\n $this->data['fields']['wiki_id'] = $value;\n }", "public function setIdentity($value);", "public function setId(?string $value): void {\n $this->getBackingStore()->set('id', $value);\n }", "public function setId(?string $value): void {\n $this->getBackingStore()->set('id', $value);\n }", "public function setId(?string $value): void {\n $this->getBackingStore()->set('id', $value);\n }", "public function setId(?string $value): void {\n $this->getBackingStore()->set('id', $value);\n }", "public function setId($id){\n\t\tself::$_id[get_class($this)] = $id;\n\t}", "function setCountryId( $value )\n {\n $this->CountryID = $value;\n }", "public function setId($id){\n\t\t$this->id = $id;\n\t}", "public function setMdeDeviceId(?string $value): void {\n $this->getBackingStore()->set('mdeDeviceId', $value);\n }", "public function set($new_id);", "function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }", "public function setLeafTranslateId($value, $key, $type) {\r\n\t\tif ($type == 'single') {\r\n\t\t\t$this->leafTranslateId = $value;\r\n\t\t} else if ($type == 'array') {\r\n\t\t\t$this->leafTranslateId [$key] = $value;\r\n\t\t} else {\r\n\t\t\techo json_encode(array(\"success\" => false, \"message\" => \"Cannot Identifiy Type Single Or Array:setLeafTranslateId ?\"));\r\n\t\t\texit();\r\n\t\t}\r\n\t}", "function setID($path);", "public function setTerminalId($value) {\n if(strlen($value) > 8 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->TerminalID = $value;\n }", "public function setIdAttribute($value)\n {\n $this->attributes['id'] = $value;\n }", "public function set($n,$v){\n\t\t$this->Template->set($n, $v);\n\t}", "public function setId($id){\n\t\t\t$this->id = $id;\n\t\t}", "public function setExtOrderId($id);", "function setId($value){\n\t\t//echo \"setting ID to \".$value;\n\t\t$this->_id=$value;\n\t\t//echo \"ID set to \".$this->_id;\n\t\treturn $this;\n\t}", "public function _set($number) {\n\t\t$this->number = $number;\n\t\t$this->id = $this->id_base . '-' . $number;\n\t}", "public function set($xPathKey, $value, $file) {\n\n\t\t$settings = new Modules_XML();\n\n\t\t$configFile = $this->app->getPath('/Extensions/' . $file);\n\t\t$settings->load($configFile);\n\n\t\t$nodes = $settings->XPath()->query($xPathKey);\n\n\t\tif($nodes->length == 1) {\n\t\t\t$nodes->item(0)->nodeValue = $value;\n\t\t\t$settings->save($settingsFile);\n\t\t}\n\n\t}", "protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}", "public function set_id_user($value = \"\")\n {\n $this->_id_user = \\helpers\\Validator::valInt('f_id_user', $value, TRUE);\n }", "public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }", "public function setId($id) {\r\n $this->_id = $id;\r\n }", "public function setValue($v){\n $this->value = $v;\n }", "public function setId($id)\n {\n $this->setIdExpert($id);\n }", "function SetTreeData($data){\n $this->InitControl($data);\n\n }" ]
[ "0.6885448", "0.68168837", "0.68168837", "0.6225238", "0.6004441", "0.5813483", "0.58005536", "0.5741478", "0.57302153", "0.5723305", "0.5696193", "0.5683559", "0.5655526", "0.5621757", "0.55848926", "0.55758977", "0.5569538", "0.5569384", "0.55664283", "0.5560925", "0.5545762", "0.55424184", "0.55392206", "0.55391395", "0.55391395", "0.5535528", "0.55312544", "0.5526074", "0.5525884", "0.551665", "0.550363", "0.5489414", "0.54847515", "0.5482751", "0.54626155", "0.5441768", "0.5430727", "0.5423038", "0.54175574", "0.54091674", "0.5398924", "0.53961736", "0.5389834", "0.53812414", "0.53811467", "0.53693974", "0.5348171", "0.53462565", "0.5331818", "0.53317326", "0.53121686", "0.5295174", "0.5288994", "0.5247679", "0.5242839", "0.52410656", "0.5238481", "0.52369577", "0.52321464", "0.52314335", "0.52248925", "0.5215808", "0.5213806", "0.5207749", "0.52064854", "0.520103", "0.5194072", "0.5193926", "0.51763093", "0.5175833", "0.517551", "0.5160767", "0.51606685", "0.5154919", "0.5154919", "0.5154919", "0.5154919", "0.5148904", "0.5147314", "0.5140616", "0.5140599", "0.5140558", "0.51372373", "0.513712", "0.51319194", "0.5131916", "0.51295906", "0.51285106", "0.51238334", "0.51157105", "0.5114929", "0.51106536", "0.5101949", "0.50969094", "0.50951564", "0.5092873", "0.50851464", "0.5083852", "0.508336", "0.5077031" ]
0.7278928
0
Get the value of idreevext.
public function getIdreevext() { return $this->idreevext; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Public function get_ididtypeexp()\n\t\t{\n\t\t\tReturn $this ->idtypeexp;\n\t\t}", "function getid_exp()\n { return $this->id_exp;}", "function getid_exp()\n { return $this->id_exp;}", "function getid_exp()\n { return $this->id_exp;}", "public function getValueIdentifier(): string;", "public function getIdVit(){\n\t\treturn ($this->id);\n\t}", "public function getValueId()\n {\n return $this->valueId;\n }", "public function getVarighet()\n {\n return $this->getTid();\n }", "function getValNode(){\n\t\t$clase=$this->nmclass;\n\t\t$node=$this->anode;\n\t\t$valor=$this->nodos[$clase][$node];\n\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}", "public function getTxtVal()\n {\n $rows = $this->getTreeRows();\n \n $tree = $this->generatePageTree($rows);\n \n return $this->tree_full_path;\n }", "function getGuid() {\n\t return $this->node->getText();\n\t}", "public function getVatID(): ?string;", "public function getValue() : string {\n\t\treturn $this->token;\n\t}", "function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}", "public function value($id)\n\t{\n\t\treturn $this->connection()->get(\"element/$id/value\");\n\t}", "public function getId() : string\n {\n $rtn = $this->data['id'];\n\n return $rtn;\n }", "function get_value_edit()\n\t{\n\t\treturn $this->value;\n\t}", "public function getTreeId() {}", "public function getid(){\n\t\t\treturn $this->id;\n\t\t}", "public function getValeur()\n {\n return $this->valeur;\n }", "function getValue() {\n global ${$this->name}, ${$this->name.\"_name\"}, ${$this->name.\"_old\"}; // ${$this->name} = ${\"surname\"} = $surname\n $ext=substr(${$this->name.\"_name\"},-3);\n if ($ext==\"\") $ext=${$this->name.\"_old\"};\n if ($ext==\"\") $ext=$this->value;\n return $ext;\n }", "public function getId() : string{\n return $this->id;\n }", "public function getId() : string{\n return $this->id;\n }", "function getID() {\n\t\treturn $this->data_array['id'];\n\t}", "public function getID() : string;", "function get() {\n if (!empty($this->_id)) {\n return $this->_id;\n }\n return '';\n }", "public function getId() {\n\t\treturn $this -> data['id'];\n\t}", "public function getID(): string;", "public function getElementId() {}", "public function getId()\n { return $this->getAttribute('id'); }", "function get_idstring() {\n return $this->id;\n }", "public function setIdreevext($idreevext)\n {\n $this->idreevext = $idreevext;\n\n return $this;\n }", "public function id(): string\n {\n return $this->getAttribute('id');\n }", "public function getId()\n {\n return $this->getValue('id');\n }", "public function getId(){\n\t\t\treturn $this->idDenuncia;\n\t\t}", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getNodeID() : string\n {\n return $this->nodeID;\n }", "public function value(): string\n {\n return $this->get('value');\n }", "public function getNUMEROEXT()\r\n {\r\n return $this->NUMERO_EXT;\r\n }", "public function getValue(): string\n {\n return gmp_strval($this->value);\n }", "public function val() {\n\treturn $this->attr(\"value\");\n }", "public function getid() {\n\t\treturn $this->id;\n\t}", "public function getID();", "public function getID();", "public function getID();", "public function obtenerValor() {\n return $this->valor;\n }", "static function id()\n\t{\n\t\treturn self::data('id');\n\t}", "function getValue() { return $this->readText(); }", "function getValue()\n {\n return $this->getAttribute(\"value\");\n }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "public function getid()\n {\n return $this->id;\n }", "public function getid()\n {\n return $this->id;\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function getTvsouId()\n {\n return $this->data['fields']['tvsou_id'];\n }", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getValue(): string\n {\n return $this->getAttribute('value');\n }", "public function getEid() {\n return $this->eid;\n }", "public function getId(){\n return $this->_data['id'];\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}" ]
[ "0.6589508", "0.6485974", "0.64740366", "0.64740366", "0.63102365", "0.62715966", "0.6199353", "0.6197915", "0.6048775", "0.60483843", "0.59944594", "0.5978289", "0.5975757", "0.59104896", "0.5901982", "0.5901641", "0.5873187", "0.58712727", "0.58508873", "0.5835513", "0.5835243", "0.5835215", "0.5835215", "0.5822428", "0.58166224", "0.58148175", "0.5778074", "0.5767907", "0.5767422", "0.5749334", "0.57486546", "0.5748591", "0.5745879", "0.5744105", "0.57291067", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5728359", "0.5718744", "0.5718744", "0.5718744", "0.5718744", "0.5718744", "0.5718744", "0.5717743", "0.57176775", "0.57131785", "0.57126284", "0.57019687", "0.5696276", "0.56892717", "0.56892717", "0.56892717", "0.5677484", "0.5674776", "0.56745386", "0.5674446", "0.5672403", "0.5672403", "0.5664646", "0.5658408", "0.5658408", "0.56508726", "0.56461805", "0.5643666", "0.56398386", "0.56383723", "0.56366485", "0.5632177", "0.5632177", "0.5632177", "0.5632177", "0.5632177", "0.5631647", "0.5631647", "0.5631647", "0.5631647", "0.5631647", "0.5631647", "0.5631647", "0.5631647", "0.5631647" ]
0.8024223
0
Set the value of tipo.
public function setTipo($tipo) { $this->tipo = $tipo; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "public function setTipo($iTipo) {\n $this->iTipo = $iTipo;\n }", "function setTipo($itipo = '')\n {\n $this->itipo = $itipo;\n }", "public function _setTipo($Tipo)\n {\n $this->Tipo = $Tipo;\n\n }", "public function setTipo(string $tipo)\n {\n if (!is_null($this->tipo)) {\n return;\n }\n\n switch ($tipo) {\n case 'cc':\n $this->saldo = 20;\n break;\n case 'cp':\n $this->saldo = 70;\n break;\n default:\n die('<h3>Tipo de Conta inválida! Insira somente cc ou cp!</h3>');\n }\n\n $this->tipo = $tipo;\n }", "function setITipo($iTipo) {\n $this->iTipo = $iTipo;\n }", "public function setTipo($sTipo) {\n $this->sTipo = $sTipo;\n }", "public function setTipoDatos($tipo='json')\n {\n $this->_tipodatos = $tipo;\n }", "function set_tipo_descarga( $tipo )\n\t{\n\t\t$this->tipo_descarga = $tipo;\n\t}", "public function setTyp( $type );", "function setType($type = \"\")\n\t\t{\n\t\t\t$this->type = $type;\n\t\t}", "public function setType($type) {\n\t\t$this->data['type'] = $type;\n\t}", "public function setType($t){\n $this->type = $t;\n }", "function setType($type) {\n $this->type = $type;\n }", "function setType($type) {\n\t\t$this->_type = $type;\n\t}", "function setType($type) {\n\t\t$this->_type = $type;\n\t}", "public function _setTipo($tipo)\n {\n $this->tipo = $tipo;\n\n return $this;\n }", "public function setType($type)\n {\n parent::setAttr(\"type\", $type);\n }", "public function setType($type){ }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type)\r\n {\r\n $this->type = $type;\r\n }", "public function setType($type) {}", "public function setTipo($tipo)\n {\n $this->tipo = $tipo;\n\n return $this;\n }", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "public function setType($type);", "function setTipo_acta($itipo_acta = '')\n {\n $this->itipo_acta = $itipo_acta;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function setType($type) {\n $this->type = $type;\n }", "public function SetType($type){\r\r\n\t\t$this->type = (string) $type;\r\r\n\t}", "public function setType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function setType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType($type)\n {\n $this->type = $type;\n }", "public function setType( $type ) {\n\n\t\t$this->type = $type;\n\t}", "public function setType($type)\n\t{\n\t\t$this->_type = $type;\n\t}", "public function setType($type)\n\t{\n\t\t$this->_type = $type;\n\t}", "function setType($a_type)\n\t{\n\t\t$this->il_type = $a_type;\n\t}", "public function setType($tipo)\n {\n switch ($tipo) {\n case 'button':\n $this->_type = 'button';\n break;\n case 'submit':\n $this->_type = 'submit';\n break;\n case 'reset':\n $this->_type = 'reset';\n break;\n default:\n $this->_type = 'submit';\n break;\n }\n \n return $this;\n }", "public function setType($type)\n {\n $this['type'] = $type;\n }", "public function SetType($type){\r\n\t\t$this->type = (string) $type;\r\n\t}", "public function setType( $type )\n {\n }", "function setTipo_teleco($stipo_teleco = '')\n {\n $this->stipo_teleco = $stipo_teleco;\n }", "public function setTypeValue()\n {\n if($this->getType() === null){\n $this->setType(self::TYPE_SIMPLE);\n }\n }", "protected function setType(int $type):void {\r\n\t\t$this->type = $type;\r\n\t}", "public function SetTipo($dato){\n if($dato != self::TIPO_ADMINISTRADOR && $dato != self::TIPO_PROFESOR && $dato != self::TIPO_ALUMNO){\n throw new \\Exception(\"El tipo de usuario es incorrecto\");\n }\n $this->tipo = $dato;\n }", "public function setTipoCbte($tipo) \n {\n switch($tipo) {\n case 'a': case 'A': case '1':\n $this->tipo_cbte = 1;\n break;\n \n case 'b': case 'B': case 'c': case 'C': case '6':\n $this->tipo_cbte = 6;\n break;\n \n default:\n return false;\n }\n\n return true;\n }", "public function set_type( $type ) {\n\t\t$this->set_prop( 'type', sanitize_title( $type ) ) ;\n\t}", "public function setTipo(TipoPedido $tipo);", "public function setType(string $type);", "function callbackSetType($value) {\n \n if ($this->type == $value) {\n return;\n }\n $this->widgets['type']->set_text($value);\n $this->type = $value;\n $this->setVisable();\n $this->table->database->dirty=true;\n $this->dirty = true;\n $this->table->database->save();\n \n }", "public function setTypeAttribute($value)\n {\n $this->attributes['type'] = $value;\n }", "function setType($type) {\n\t\treturn $this->type = $type;\n\t}", "public function set($typeId, $class);", "public function setType($type)\r\n\t{\r\n\t\t// Check the type\r\n\t\t$type = strtolower($type);\r\n\t\tif(!in_array($type, $this->allowed_types))\r\n\t\t{\r\n\t\t\t$type = 'varchar'; // default to varchar\r\n\t\t}\r\n\t\t\r\n\t\t$name \t\t= 'tienda';\r\n\t\t$eav_suffix = 'eavvalues';\r\n\t\t$this->type = $type;\r\n\t\t\r\n\t\t// Set the correct suffix\r\n\t\t$this->set( '_suffix', $eav_suffix.$type );\r\n\t\t$tbl_name = \"#__{$name}_{$eav_suffix}{$type}\";\r\n\t\t$this->_tbl = $tbl_name;\r\n\t\t\r\n\t\t// Now set the properties!\r\n\t\t$this->setTableProperties();\r\n\t\t\r\n\t\t// Table Type defined: Activate the table\r\n\t\t$this->active = true;\r\n\t}", "public function set_type($type)\n {\n $this->set_default_property(self::PROPERTY_TYPE, $type);\n }", "function setType($value)\n {\n $this->setAttribute(\"type\", $value);\n return $this;\n }", "public function setUserType($type)\n\t{\n\t\t$this->type = $type;\n\t}", "public function getTipo(){\n return $this->tipo;\n }", "private function setType($type)\n\t\t{\n\t\t\tif(is_null($this->type) && is_int($type))\n\t\t\t{\n\t\t\t\t$this->type = $type;\n\t\t\t}\n\t\t\telseif(!is_int($type))\n\t\t\t{\n\t\t\t\tthrow new \\Exception('Statement.setType(): This method only accepts integer values. ' . $type . ' given.');\t\n\t\t\t}\n\t\t}", "public function setType($type) {\n\t\tif($type == self::TYPE_TEXT){\n\t\t\t$this->type = self::TYPE_TEXT;\n\t\t} else {\n\t\t\t$this->type = self::TYPE_HTML;\n\t\t}\n\t}", "public function setType($type = null)\n {\n $this->type = $type ?? $this->default_type;\n }", "public function setType(?string $type): void;", "public function getTipo(){\r\n\t\treturn $this->tipo;\r\n\t}", "public function setType($v)\n { return $this->set('type', $v); }", "public function\taceiteAnchoTipo()\r\n\t{\r\n\t\tswitch ($this->tipo) {\r\n\t\t\tcase '0':\r\n\t\t\t\treturn $this->aceiteMaxAncho = 216;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\treturn $this->aceiteMaxAncho = 180;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "function setInitiateType( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->InitiateType = $value;\n }", "public function setTypeAttribute($value)\n {\n if(!intval($value)){\n $this->attributes['type'] = self::typeToValue($value);\n }else{\n $this->attributes['type'] = $value;\n }\n }", "public function getTipo(){\n\t\treturn $this->tipo;\n\t}", "public function getTipo(){\n\t\treturn $this->tipo;\n\t}", "public function setType(string $type)\n {\n $this->type = $type;\n }", "function PdfType(&$value) {\n $this->setValue($value);\n }", "public function setType(?string $type): void\n {\n $this->type = $type;\n }", "public function setType(?string $type): void\n {\n $this->type = $type;\n }", "public function setTipoIndicador( $tipoIndicador ){\n\t\t\t$this->tipoIndicador = $tipoIndicador;\n\t\t}", "public function setType(Choice $type)\n\t{\n\t\t$this->type=$type; \n\t\t$this->keyModified['type'] = 1; \n\n\t}", "public function setTipo_vigilancia($tipo_vigilancia){\n $this->tipo_vigilancia = $tipo_vigilancia;\n }", "public function setTypeID($value) {\n\t\t$this->_type_id = $value;\n\t}", "function setTipoCambioBeneficiario($tipoCambioBeneficiario) {\r\n $this->tipoCambioBeneficiario = $tipoCambioBeneficiario;\r\n }", "public function setType(?string $type): void\n {\n }", "public function getTipo() {\n return $this->iTipo;\n }", "public function setType(string $type): void\n {\n $this->type = $type;\n }" ]
[ "0.8207482", "0.8207482", "0.7697865", "0.76648057", "0.7623226", "0.74886596", "0.739679", "0.7346621", "0.72034925", "0.7155129", "0.6984483", "0.6904055", "0.6901088", "0.6894378", "0.68942916", "0.68452024", "0.68452024", "0.67902106", "0.676316", "0.67541456", "0.6747734", "0.6747734", "0.6747734", "0.67423683", "0.67338896", "0.6716829", "0.6702977", "0.6702977", "0.6702977", "0.6702977", "0.6702977", "0.6702977", "0.6702977", "0.6702977", "0.6695321", "0.6674846", "0.6674846", "0.6623172", "0.66211265", "0.66211265", "0.6613921", "0.6613921", "0.6613921", "0.6613921", "0.6613921", "0.6613921", "0.6613921", "0.6613921", "0.6613921", "0.6569077", "0.6556532", "0.6556532", "0.65549135", "0.65166587", "0.64980423", "0.64967984", "0.6483447", "0.64741254", "0.64571595", "0.6448487", "0.6447257", "0.64469945", "0.6432645", "0.64207816", "0.639615", "0.6339759", "0.63344145", "0.63207036", "0.62772506", "0.62540144", "0.6247587", "0.6226114", "0.61936486", "0.617215", "0.61658025", "0.6163402", "0.6161996", "0.6159705", "0.61360353", "0.61354184", "0.61246496", "0.6089822", "0.6087204", "0.60806376", "0.60806376", "0.6066824", "0.6049164", "0.60331124", "0.60331124", "0.60222656", "0.60196114", "0.59914476", "0.5980862", "0.59718674", "0.5970494", "0.5968115", "0.59620756" ]
0.6478422
60
Get the value of tipo.
public function getTipo() { return $this->tipo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTipo(){\r\n\t\treturn $this->tipo;\r\n\t}", "public function getTipo(){\n\t\treturn $this->tipo;\n\t}", "public function getTipo(){\n\t\treturn $this->tipo;\n\t}", "public function getTipo(){\n return $this->tipo;\n }", "public function getTipo();", "public function getTipoValor()\n {\n return $this->tipoValor;\n }", "public function getTipo() {\n return $this->iTipo;\n }", "public function getTipo() {\n return $this->sTipo;\n }", "public function getValue() {\n return $this->type;\n }", "public function getTipo()\n {\n return $this->tipo;\n }", "public function getTipo()\n {\n return $this->Tipo;\n }", "function getTipo()\n {\n if (!isset($this->itipo) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->itipo;\n }", "function getITipo() {\n return $this->iTipo;\n }", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function getTipoarticulo()\n {\n return $this->tipoarticulo;\n }", "function getType()\t { return $this->type;\t }", "public function getType()\n {\n return $this->_value->getType();\n }", "private function get_type(){\n\t\treturn $this->_type;\n\t}", "function tipoSituacaoEvento($tipo){\n\t\t\t\tswitch($tipo){\n\t\t\t\t\t\n\t\t\t\tcase '1':\n\t\t\t\t\t$tipo\t= 'Solicitada';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '2':\n\t\t\t\t\t$tipo\t= 'Autorizada';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '3':\n\t\t\t\t\t$tipo\t= 'Em Andamento';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '4':\n\t\t\t\t\t$tipo\t= 'Concluida';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\treturn $tipo;\n}", "public function getType()\n {\n return parent::getValue('type');\n }", "static function get_value($value, $type) {\n switch ($type) {\n case 'int':\n return (int)$value;\n break;\n case 'string':\n case 'text':\n case 'reference':\n return $value;\n break;\n case 'bool':\n return str_to_bool($value);\n break;\n case 'float':\n case 'double':\n return (float)$value;\n break;\n }\n\n return null;\n }", "public function\taceiteAnchoTipo()\r\n\t{\r\n\t\tswitch ($this->tipo) {\r\n\t\t\tcase '0':\r\n\t\t\t\treturn $this->aceiteMaxAncho = 216;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\treturn $this->aceiteMaxAncho = 180;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function GetType(){\r\r\n\t\treturn $this->type;\r\r\n\t}", "public function GetType(){\r\n\t\treturn $this->type;\r\n\t}", "function get($type){\n\t// PARAM $type : type of data, as above\n\n\t\tif (!is_array($this->$type)) { die(\"Not a valid data type\"); }\n\t\treturn $this->$type;\n\t}", "public function getType()\n { return $this->get('type'); }", "public function getCoTipo()\n\t{\n\t\treturn $this->co_tipo;\n\t}", "function getTipo_acta()\n {\n if (!isset($this->itipo_acta) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->itipo_acta;\n }", "protected function getTypeValue($type)\n {\n return $this->typeMapping[$type] ?? self::VALUE_DYNAMIC;\n }", "public function tipo_iva_cesta(){\r\n\t\t\tforeach ($this->listArticulos as $elArticulo)\r\n\t\t\t\treturn $elArticulo->iva;\r\n\t\t}", "public function getType(){\n return $this->type;\n }", "public function getType(){\n return $this->type;\n }", "public function getTipo($instance=false){\n if ($instance && !is_object($this->_data['tipo'])){\n $this->setTipo('',array('required'=>false));\n }\n return $this->_data['tipo'];\n }", "public function getTipo($instance=false){\n if ($instance && !is_object($this->_data['tipo'])){\n $this->setTipo('',array('required'=>false));\n }\n return $this->_data['tipo'];\n }", "protected function tipoUbicacion() {\n $where = ' WHERE id_ubi = ' . $this->cargaIdUbicacion();\n $dao = new PGDAO();\n $registro = $this->leeDBArray($dao->execSql($this->DATOSUBICAZP . $where));\n $tipo = $registro[0]['tipo_ubi'];\n return trim(strtoupper($tipo));\n }", "public function getTipo_vigilancia(){\n return $this->tipo_vigilancia;\n }", "public function get($type);", "public function getType()\n {\n $value = $this->get(self::TYPE);\n return $value === null ? (integer)$value : $value;\n }", "public function get_type(){\n\t\treturn $this->_type;\n\t}", "public function getType()\n {\n\treturn $this->type;\n }", "function getTipo_teleco()\n {\n if (!isset($this->stipo_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->stipo_teleco;\n }", "public function get_type();", "function getType() { \n\t\treturn $this->_type; \n\t}", "function type () {\r\n return $this->_type;\r\n }", "public function get_type(): string;", "function getTipo($id) {\n\t\t$stm = DB::prepare ( \"SELECT tipo FROM fornecedor WHERE id = :id\" );\n\t\t$stm->bindParam ( ':id', $id, PDO::PARAM_INT );\n\t\t$stm->execute ();\n\t\t$tipo = $stm->fetch ( PDO::FETCH_ASSOC );\n\t\treturn $tipo ['tipo'] == 1 ? 1 : 0;\n\t}", "function readType() { return $this->_type; }", "function getType () {\n\t\treturn $this->type;\n\t}", "public function getValueType();", "public function getType():string { return $this->type; }", "function getType() {\n return $this->type;\n }", "function getDatosTipo()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'tipo'));\n $oDatosCampo->setEtiqueta(_(\"tipo\"));\n return $oDatosCampo;\n }", "function getType() {\n\t\treturn $this->type;\n\t}", "final protected function get_type() {\n return $this->type;\n }", "public function getDataType() {}", "function getType() { return $this->readType(); }", "public function obtenerTipo($id_tipo){\n\t\t$query = 'Select GRAL_PAR_PRO_ID, GRAL_PAR_PRO_DESC, GRAL_PAR_PRO_COD\n From gral_param_propios \n where GRAL_PAR_PRO_GRP = 1500 and GRAL_PAR_PRO_COD <> 0 AND GRAL_PAR_PRO_COD='.$id_tipo;\n\t\treturn $this->mysql->query($query);\n\t}", "public function getType()\n\t{\n\t\treturn $this->get('type');\n\t}", "public function get_type(){ return $this->_type;}", "public function getType(){\n return $this->getParameter('type');\n }", "public function getType(){\n return $this->getParameter('type');\n }", "function getType() { return $this->_type; }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n $rtn = $this->data['type'];\n\n return $rtn;\n }", "public function getType()\n {\n return isset($this->type) ? $this->type : 0;\n }", "public function getType()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "protected function determinarTipo($valor) { //TODO Es muy específico de mysqli, ¿debería estar en la clase bd?\n if(is_integer($valor)) return 'i';\n if(is_numeric($valor)||preg_match('/^[0-9]*\\.[0-9]+$/',$valor)) return 'd';\n return 's';\n //TODO b\n }", "public function getTipoItem()\n {\n return $this->tipo_item;\n }", "public function getType()\n {\n return $this->fields['Type']['FieldValue'];\n }", "public function type()\n {\n return $this->_type;\n }", "function getType()\n {\n return $this->getAttribute(\"type\");\n }", "public function getDataWithTypeField() {}", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() \n {\n return $this->_type;\n }", "public function getType() : string{\n return $this->type;\n }", "public function getKind()\n {\n\t\t$select = $this->_db->select();\n \t$select->from(\"catalog__data_list_property\",\"name\")->where(\"id_property=?\",$this->type_id);\n \t$rs=$this->_db->fetchCol($select);\n \tif(!empty($rs))return $rs[0];\n\t\telse return \"\";\n }", "public function type(): int\n {\n return $this->type;\n }", "public function type() {\n\t\t\treturn $this->_type;\n\t\t}" ]
[ "0.7898343", "0.7896538", "0.7896538", "0.7881883", "0.78778845", "0.78156394", "0.7734619", "0.7646417", "0.7596704", "0.7559799", "0.74782056", "0.7155502", "0.6895829", "0.6728148", "0.6701214", "0.66974354", "0.66788864", "0.6676599", "0.6662736", "0.6658401", "0.6650127", "0.6639591", "0.66318697", "0.6617756", "0.6600493", "0.6581662", "0.65771353", "0.656795", "0.65555364", "0.6544107", "0.65266365", "0.65266365", "0.6519725", "0.6519725", "0.64877015", "0.6483553", "0.6476504", "0.6455153", "0.643562", "0.6432844", "0.6409937", "0.6397902", "0.63974386", "0.63919", "0.6385926", "0.6379085", "0.6377878", "0.637616", "0.6373042", "0.6371651", "0.637098", "0.63633466", "0.6352748", "0.6352322", "0.63490194", "0.6344365", "0.6341807", "0.6334758", "0.63298607", "0.63245517", "0.63245517", "0.63176906", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.6316789", "0.63158643", "0.63158643", "0.63158643", "0.6313259", "0.6307627", "0.6306966", "0.63057745", "0.63057745", "0.63057745", "0.6303526", "0.62963104", "0.629276", "0.62923455", "0.62876636", "0.6275095", "0.6272018", "0.6272018", "0.6272018", "0.6272018", "0.62718624", "0.6271276", "0.6270906", "0.6263099", "0.6250948" ]
0.7637101
12
Set the value of ubicacion.
public function setUbicacion($ubicacion) { $this->ubicacion = $ubicacion; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUbicacion($data)\n {\n\n if ($this->_ubicacion != $data) {\n $this->_logChange('ubicacion');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_ubicacion = $data;\n } else if (!is_null($data)) {\n if (!in_array($data, $this->_ubicacionAcceptedValues) && !empty($data)) {\n throw new \\InvalidArgumentException(_('Invalid value for ubicacion'));\n }\n $this->_ubicacion = (string) $data;\n } else {\n $this->_ubicacion = $data;\n }\n return $this;\n }", "function set_ubicacion(){\n\n\t\tif($this->input->post('id')){\n\t\t\t\n\t\t\t$id = $this->input->post('id',true);\n\n\t\t\t$user = $this->session->userdata('cliente_id');\n\n\t\t\tif($id != 1 AND $id != 2){\n\t\t\t\techo json_encode(array('res' => 'error'));\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t//Verificar si ya tiene la ubicacion colocada para no volver a mostrar \n\n\t\t\t$cliente = applib::get_table_field(applib::$clientes_table,array('id' => $user),'*');\n\t\t\t\n\t\t\tif($cliente['lugar'] != null){\n\t\t\t\techo json_encode(array('res' => 'error'));\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t//Colocar ubicacion del proyecto para filtrar\n\n\t\t\tapplib::update(array('id' => $user),applib::$clientes_table,array('lugar' => $id));\n\n\t\t\techo json_encode(array('res' => 'success'));\n\t\t}\n\t}", "public function edit(ubicacion $ubicacion)\n {\n //\n }", "public function edit(Ubicacion $ubicacion)\n {\n //\n }", "public function edit(Ubicacion $ubicacion)\n {\n //\n }", "public function getUbicacion()\n {\n return $this->ubicacion;\n }", "public function getUbicacion()\n {\n return $this->ubicacion;\n }", "public function setTxDireccionUbicacion($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->tx_direccion_ubicacion !== $v) {\n\t\t\t$this->tx_direccion_ubicacion = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::TX_DIRECCION_UBICACION;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function show(ubicacion $ubicacion)\n {\n //\n }", "public function show(Ubicacion $ubicacion)\n {\n //\n }", "public function show(Ubicacion $ubicacion)\n {\n //\n }", "public function show(Ubicacion $ubicacion)\n {\n //\n }", "public function setValor($valor)\n {\n $this->valor = $valor;\n }", "public function setCodice($codice) \n\t{\n $this->codice = $codice;\n }", "public function calidadImagen($valor){\r\n\t\tif ($valor>=0&&$valor<=100) {\r\n\t\t\t$this->calidadImagen=$valor;\r\n\t\t}else{\r\n\t\t\t$this->calidadImagen=100;\r\n\t\t}\r\n\t}", "public function setValorAttribute($value)\n {\n $this->attributes['valor'] = str_replace(\",\", \".\", str_replace(\".\", \"\", $value));\n }", "public function update(Request $request, ubicacion $ubicacion)\n {\n //\n }", "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function update(Request $request, Ubicacion $ubicacion)\n {\n //\n }", "public function update(Request $request, Ubicacion $ubicacion)\n {\n //\n }", "public function destroy(ubicacion $ubicacion)\n {\n //\n }", "private function tbl_guiones_registro_ubicacion() {\r\n\t\t\t$this->guiones_registro_ubicacion = $this->esquema->createTable('GUIONES_REGISTRO_UBICACION');\r\n\t\t\t$this->guiones_registro_ubicacion->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la ubicacion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_ubicacion->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre de la ubicacion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_ubicacion->addColumn('ESTADO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Estado de la ubicacion [ID de la tabla ESTADOS]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_ubicacion->setPrimaryKey(array('ID'));\r\n\t\t\t$this->guiones_registro_ubicacion->addForeignKeyConstraint($this->estados, array('ESTADO'), array('ID'), $this->opcForeign);\r\n\t\t}", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function ubicacion(){\n \treturn $this->belongsTo(Ubicacione::class,'ubicacion_id');\n\t}", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function update(Request $request, $id_ubic_patio)\n {\n try {\n $ubic_patio_id = Crypt::decrypt($id_ubic_patio);\n } catch (DecryptException $e) {\n abort(404);\n }\n\n $ubic_patio = UbicPatio::findOrFail($ubic_patio_id);\n\n if(isset($request->vin_codigo)){\n $vin = Vin::where('vin_codigo', $request->vin_codigo)->first();\n }\n\n try {\n \n $ubic_patio->ubic_patio_fila = $request->ubic_patio_fila;\n $ubic_patio->ubic_patio_columna = $request->ubic_patio_columna;\n $ubic_patio->ubic_patio_ocupada = $request->ubic_patio_ocupada;\n \n if(isset($vin)){\n $ubic_patio->vin_id = $vin->vin_id;\n } else {\n $ubic_patio->vin_id = null;\n }\n \n $ubic_patio->bloque_id = $request->bloque_id;\n\n $ubic_patio->save();\n\n flash('Ubicación modificada correctamente.')->success();\n return redirect()->route('ubic_patio.index', ['id_bloque' => Crypt::encrypt($request->bloque_id)]);\n\n }catch (\\Exception $e) {\n\n flash('Error modificando la ubicación.')->error();\n flash($e->getMessage())->error();\n return redirect()->route('ubic_patio.index', ['id_bloque' => Crypt::encrypt($request->bloque_id)]);\n }\n }", "public function testSetNumeroFiche() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroFiche(10);\n $this->assertEquals(10, $obj->getNumeroFiche());\n }", "public function setCodiEmis($value) {\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_emis = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function destroy(Ubicacion $ubicacion)\n {\n //\n }", "public function destroy(Ubicacion $ubicacion)\n {\n //\n }", "function setBaseCalculo($nValorBaseCalculo) {\n $this->nValorBaseCalculo = $nValorBaseCalculo;\n }", "function setF_inicio($f_inicio){\n\t\t\n\t\t$this->f_inicio = $f_inicio;\n\t\t$this->cambios = true;\n\t}", "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "public function setContenu(string $contenu): void\n {\n $this->contenu= $contenu;\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setCoDivision($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->co_division !== $v) {\n\t\t\t$this->co_division = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::CO_DIVISION;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setIso(?int $value): void {\n $this->getBackingStore()->set('iso', $value);\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function __set($nome, $valor) {\n $this->nome = $valor;\n }", "public function SetIdConvocatoria($valor){\n\t\t $this->id_convocatoria= $valor;\n\t }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function testSetBureauDistributeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function store(UbicacionFormRequest $request)\n {\n $ubicacion = new Ubicacion();\n \n $ubicacion->canton=$request->get('canton');\n $ubicacion->edificio=$request->get('edificio');\n $ubicacion->piso=$request->get('piso');\n $ubicacion->unidad=$request->get('unidad');\n $ubicacion->tecnico=$request->get('tecnico');\n $ubicacion->provincia=$request->get('provincia');\n $ubicacion->save();\n\n //dd($request);\n return Redirect::to('/ubicaciones');\n }", "protected function calidadImagenDefaut(){\r\n\t\t$this->calidadImagen=100;\r\n\t}", "public function setProducto($pro){ $this->producto = $pro;}", "public function ubicacione(){\n \treturn $this->belongsTo(Ubicacione::class,'ubicacion_id');\n\t}", "public function setCodigo($codigo){\n $this->codigo = $codigo;\n }", "public function show(UbicPatio $ubicPatio)\n {\n //\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "function modificarNumFilhos($numFilhos) {\r\n $this->numFilhos = $numFilhos;\r\n }", "public function setGanadorOnFichas($number, $id){\n\t\t$target = 'ganador';\n\t\t$update = \"UPDATE fichas SET value = $number WHERE target = '\".$target.\"' AND usuario_id = '\".$id.\"'\";\n\t\t$this->connection->query($update);\n }", "public function testSetControleur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setControleur(\"controleur\");\n $this->assertEquals(\"controleur\", $obj->getControleur());\n }", "public function setPaisAttribute($value)\n\t{\n\t\t$this->attributes['pais'] = mb_strtoupper($value);\n\t}", "function valor($valor) {\n\n $this->_valorUpdate = $valor;\n\n if (in_array($this->_tipo, $this->_controlesMultiples)) {\n\n foreach ($this->_selectoresOpcion as $key => $selector) {\n if ($selector->attr('value') == $valor) {\n $selector->attr('checked', 'checked');\n }\n }\n\n } else\n if ($this->type == 'select') {\n foreach ($this->_selectoresOpcion as $key => $selector) {\n if ($selector->attr('value') == $valor) {\n $selector->attr('selected', 'selected');\n }\n }\n\n } elseif ($this->type == \"textarea\") {\n $this->innerHTML($valor);\n } else {\n $this->attr('value', $valor);\n }\n\n }", "function setNota_num($inota_num = '')\n {\n // adminto ',' como separador decimal.\n $inota_num = str_replace(\",\", \".\", $inota_num);\n $this->inota_num = $inota_num;\n }", "public function setIdcotizacion($idcotizacion){\n $this->idcotizacion = $idcotizacion;\n }", "function setPorc_asistencia($porc_asistencia){\n\t\t\n\t\t$this->porc_asistencia = $porc_asistencia;\n\t\t$this->cambios = true;\n\t}", "public function set_estado_uf($estado_uf) : void\n {\n try {\n $this->set_estado(DAO_Estado::Buscar_Id_Por_Uf(Validador::Estado()::validar_uf($estado_uf)));\n } catch (Exception $e) {\n $this->estado = null;\n }\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "public function update(Request $request, Ubicacion $ubicacion)\n {\n $ubicacion->update($request->all());\n return redirect()->route('ubicacion.index')->with('success','Registro editado correctamente');\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function setValorDiaria($valorDiaria)\n {\n $this->valorDiaria = $valorDiaria;\n\n \n\n }", "public function setOrganizationalUnitPath(?string $value): void {\n $this->getBackingStore()->set('organizationalUnitPath', $value);\n }", "public function setOperationNumber($value) {\n if(strlen($value) > 50 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->Num_operacion = $value;\n }", "function setModificarJugador($id,$nombre,$url_img){\n\t$this->nombre = $nombre;\n\t$this->id = $id;\n\t$this->url_img = $url_img;\n}", "public function setIdfisicaSuelo($idfisicaSuelo){\n $this->idfisicaSuelo = $idfisicaSuelo;\n }", "function setCiudad ($ciudad) {\r\n $this->cicudad = $ciudad;\r\n }", "public function setCalificacion($inscripcionId,$calificacion)\n {\n DB::table('inscripciones')\n ->where('id', $inscripcionId)\n ->update(['calificacion' => $calificacion]);\n }", "public function __set($nome, $valor) {\n $this->dados[$nome] = $valor;\n }", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "private function setCurrency()\n {\n $currency = $this->em->getRepository('ClubUserBundle:LocationConfig')->getObjectByKey('default_currency',$this->order->getLocation());\n\n $this->order->setCurrency($currency);\n $this->order->setCurrencyValue(1);\n }", "public function setValeur($valeur)\n {\n $this->valeur = $this->recupValeur($valeur);\n }", "public function anchoFijo($ancho_Imagen){\t\t\r\n\t\t$this->ancho_imagen_copia=$ancho_Imagen;\t\t\r\n\t\t$this->alto_imagen_copia=(int)round($ancho_Imagen*$this->alto_imagen_original/$this->ancho_imagen_original);\r\n\t}", "public function setCelular($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->celular !== $v) {\n\t\t\t$this->celular = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::CELULAR;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setCodiNoti($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_noti = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }", "public function set_taplicacion_codigo(string $taplicacion_codigo): void {\n $this->taplicacion_codigo = $taplicacion_codigo;\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function getUbicacionLugar()\n {\n return $this->ubicacion_lugar;\n }", "public function store(Request $request)\n {\n try {\n if(isset($request->vin_codigo)){\n $vin = Vin::where('vin_codigo', $request->vin_codigo)->first();\n }\n\n $ubic_patio = new UbicPatio();\n\n $ubic_patio->ubic_patio_fila = $request->ubic_patio_fila;\n $ubic_patio->ubic_patio_columna = $request->ubic_patio_columna;\n \n if(isset($vin)) {\n $ubic_patio->vin_id = $vin->vin_id;\n } else {\n $ubic_patio->vin_id = null;\n }\n\n if($request->ubic_patio_ocupada == 1){\n $ubic_patio->ubic_patio_ocupada = true;\n } else {\n $ubic_patio->ubic_patio_ocupada = false;\n }\n\n $ubic_patio->bloque_id = (int)$request->bloque_id;\n\n $ubic_patio->save();\n\n flash('Ubicación registrada correctamente.')->success();\n return redirect()->route('ubic_patio.index', ['id_bloque' => Crypt::encrypt($ubic_patio->bloque_id)]);\n } catch (\\Exception $e) {\n\n flash('Error registrando la ubicación.')->error();\n flash($e->getMessage())->error();\n return redirect()->route('ubic_patio.index', ['id_bloque' => Crypt::encrypt($ubic_patio->bloque_id)]);\n }\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "public function update(Request $request, Cubiculo $cubiculo)\n {\n $cubiculo->update($request->all());\n\n Session::flash('msj-success','Cubiculo Modificado');\n return redirect('cubiculos');\n }", "public function setVolumen( $volumen ) {\n $this->volumen=$volumen;\n $this->enviarVolumen();\n $this->activarPantalla();\n //activar y enviar volumen\n }", "public function setImagen($imagen)\n {\n $this->imagen = $imagen;\n }", "public function setCodiCasa($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_casa = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function setUbicacionLugar($ubicacion_lugar)\n {\n $this->ubicacion_lugar = $ubicacion_lugar;\n\n return $this;\n }", "public function setOrigin($value)\n {\n $this->origin = $value;\n }", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "public function setChoix($choix)\n {\n $this->choix = $this->recupValeur($choix);\n }", "public function testSetGroupeQualifiant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setGroupeQualifiant(\"groupeQualifiant\");\n $this->assertEquals(\"groupeQualifiant\", $obj->getGroupeQualifiant());\n }", "public function asignarCodigo($codigo){\n\t\t$this->codigo = $codigo;\n\t}", "public function set_correlativo( $param )\n {\n #uniendo con el detalle de venta\n $corr = 0;\n $data_update = array();\n switch ($param['tipo']) {\n case 'F':\n $data_update['correlativo_factura'] = $param['corr'];\n break;\n case 'B':\n $data_update['correlativo_boleta'] = $param['corr'];\n break;\n }\n DB::table('config')\n ->where('id', 1)\n ->update( $data_update );\n #\n }", "public function setidExamen($Valor){\r\n $this->idExamen = trim($Valor);\r\n }" ]
[ "0.69361603", "0.6564632", "0.6046651", "0.60165626", "0.60165626", "0.59601206", "0.59601206", "0.58024806", "0.57259744", "0.5561633", "0.5561633", "0.5561633", "0.5491508", "0.5331922", "0.5315537", "0.52669954", "0.52556163", "0.5209317", "0.5193967", "0.5178087", "0.5178087", "0.5166805", "0.51664805", "0.5141014", "0.51400703", "0.5127544", "0.5105519", "0.50928295", "0.50819814", "0.50518453", "0.5050589", "0.5050589", "0.5048755", "0.50446826", "0.5041034", "0.5036898", "0.50357777", "0.5034501", "0.50313175", "0.50182784", "0.49982625", "0.49868482", "0.49843237", "0.49699923", "0.4968178", "0.49511248", "0.495071", "0.49364337", "0.4931914", "0.4930815", "0.49232978", "0.4914625", "0.4908541", "0.49002418", "0.4893874", "0.4892057", "0.48901334", "0.4871392", "0.4859269", "0.48565617", "0.48553282", "0.48513278", "0.48513278", "0.48490673", "0.48451653", "0.483856", "0.4838421", "0.4838269", "0.48170173", "0.48157597", "0.4802955", "0.48020688", "0.47932845", "0.4789849", "0.47823417", "0.47806105", "0.47714424", "0.4771287", "0.4770846", "0.4767661", "0.4767573", "0.47669002", "0.47650313", "0.4760279", "0.47595882", "0.4753859", "0.47506088", "0.4747667", "0.47471163", "0.47460684", "0.47390148", "0.47342905", "0.47333884", "0.4733107", "0.47315177", "0.4715728", "0.47094092", "0.47056502", "0.47050792" ]
0.6469739
3
Get the value of ubicacion.
public function getUbicacion() { return $this->ubicacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "public function getValor(){\n return $this->_data['valor'];\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValoracion() {\n return $this->valoracion;\n }", "public function getCodUbicacion()\n {\n return $this->codUbicacion;\n }", "public function get_valor() {\n\t\t\n\t\t$ar_list_of_values\t= $this->get_ar_list_of_values();\n\t\t$dato \t\t\t\t= $this->get_dato();\n\t\t\n\t\tif (is_array ($ar_list_of_values)) foreach ($ar_list_of_values as $value => $rotulo) {\n\t\t\t\t\t\t\t\t\t\n\t\t\tif( $dato == $value ) {\n\t\t\t\t\n\t\t\t\t$this->valor = $rotulo; \n\t\t\t\t\n\t\t\t\treturn $this->valor;\n\t\t\t}\n\t\t\t#echo \"<br> - $dato - $value => $rotulo \";\n\t\t}\t\t\t\t\t\n\t}", "public function getTxDireccionUbicacion()\n\t{\n\t\treturn $this->tx_direccion_ubicacion;\n\t}", "public function obtenerValor() {\n return $this->valor;\n }", "public function getUbicacionLugar()\n {\n return $this->ubicacion_lugar;\n }", "function get_tarifKilometrique() {\n return $this->tarifKilometrique;\n }", "public function get_valor() {\n\t\t\n\t\t$dato = self::get_dato();\n\t\t/*\n\t\t$separator = ' , ';\n\t\tif($this->modo=='list') $separator = '<br>';\n\n\t\tif (is_array($valor)) {\n\t\t\t# return \"Not string value\";\n\t\t\t$string \t= '';\n\t\t\t$n \t\t\t= count($valor);\n\t\t\tforeach ($valor as $key => $value) {\n\n\t\t\t\tif(is_array($value)) $value = print_r($value,true);\n\t\t\t\t$string .= \"$key : $value\".$separator;\n\t\t\t}\n\t\t\t$string = substr($string, 0,-4);\n\t\t\treturn $string;\n\n\t\t}else{\n\t\t\t\n\t\t\treturn $valor;\n\t\t}\n\t\t*/\n\t\tif(isset($dato['counter'])) {\n\t\t\t$valor = $this->tipo.'-'.$dato['counter'];\n\t\t}else{\n\t\t\t$valor = $this->tipo;\n\t\t}\n\n\t\treturn $valor;\n\t}", "public function getValorPis()\n {\n return $this->valorPis;\n }", "public function gerencial_valorInventario(){\n\t\t\n\t\t$resultado = 0;\n\t\t\n\t\t$query = \"SELECT cantidad, idProducto\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_productos_sucursal\";\n\t\t\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n \tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n \t\n\t\t\t\t$idproducto = $filas['idProducto'];\n\t\t\t\t$cantidad\t= $filas['cantidad']; \n\t\t\t\t\n\t\t\t\t$query2 = \"SELECT precio \n\t\t\t\t\t\t\tFROM tb_productos WHERE idProducto = '$idproducto'\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif($res2 = $conexion->query($query2)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t while ($filas2 = $res2->fetch_assoc()) {\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t$precio = str_replace('.', '',$filas2['precio']);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$subtotal = $precio * $cantidad;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t $resultado = $resultado + $subtotal;\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\n\t\t\t\t\t\t}\t\n\t\t\t\t\n } \n \n }//fin if\n\t\t\n return $resultado;\t\n\t\t\n\t}", "public function getCodiceFiscale(){ return $this->codiceFiscale;}", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getValorInventario()\n {\n return $this->valorInventario;\n }", "public function getUltimaCarga()\n {\n return $this->ultima_carga;\n }", "public function getValeur() {\n return floatval($this->valeur);\n }", "public function getPrix_unitaire()\n {\n return $this->prix_unitaire;\n }", "public function getNumerocarte()\n {\n return $this->numerocarte;\n }", "public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }", "public function getValue() {\n\n\t\treturn trim(\n\t\t\tfile_get_contents(\n\t\t\t\tself::PINDIR.'/gpio'.$this->iPinNumber.'/value'\n\t\t\t)\n\t\t);\n\t}", "public function getPico();", "public function getCodice() \n\t{\n return $this->codice;\n }", "private function getCodigoPresupuestarioInmuebleUrbano()\r\n\t\t{\r\n\t\t\t$codigoPresupuesto['codigo'] = '301020500';\r\n\t\t\treturn $codigo = self::getCodigoPresupuestarioByCodigo($codigoPresupuesto['codigo']);\r\n\t\t}", "public function getPrezzo() {\n return number_format((float)$this->prezzo, 2, ',', '');\n }", "public function getCodice()\n {\n return $this->codice;\n }", "public function getQuantity(): float;", "public function getValue()\n {\n return $this->getOriginData('value');\n }", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getPrixU(): ?float {\n return $this->prixU;\n }", "function getImagen(){\n\t\t\treturn $this->imagen;\n\t\t}", "public function getPrix()\n {\n return $this->prix;\n }", "public function getPrix()\n {\n return $this->prix;\n }", "public function getPrix()\n {\n return $this->prix;\n }", "public function getPrix()\n {\n return $this->prix;\n }", "public function imagen(){\n $imagenes = $this->imagenes;\n\n if ($imagenes->isNotEmpty()) {\n return $imagenes->sortBy('n_orden')->first()->imagen;\n }\n }", "public function valor() {\n return $this->hasOne('App\\CursoValor', 'fk_curso');\n }", "public function getRawValue ()\n {\n return $this->files->getFile( $this->getName() );\n }", "public function getPrecio()\n {\n return $this->precio;\n }", "public function getValorPagoContratado(){\n\t\t$out = 'R$ '.number_format($_GET['valor'], 2,',','.').' ('.GExtenso::moeda(number_format(str_replace(\",\",\".\",str_replace(\".\",\"\",$_GET['valor'])),2,\"\",\"\")).')';\n\t\treturn $out;\n\t}", "public function getImagen()\r\n {\r\n return $this->imagen;\r\n }", "public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}", "public function show( $cubiculo)\n { return $cubiculo=Cubiculo::where('cubiculo',$cubiculo)->first();\n \n \n }", "public function getValorCofins()\n {\n return $this->valorCofins;\n }", "public function getValorInicial() {\n return $this->nValorInicial;\n }", "public function getPrix()\n {\n return $this->_prix;\n }", "public function getQuantityByUnit()\n {\n return $this->quantity_by_unit;\n }", "public function getPrix_Boisson()\n {\n return $this->Prix_Boisson;\n }", "protected function cargaIdUbicacion() {\n $dao = new PGDAO();\n $strSql = $this->COLECCIONMAPEOUBICA . $this->propiedad->getId_ubica();\n $arrayDatos = $this->leeDBArray($dao->execSql($strSql));\n $id = $arrayDatos[0]['zpubica'];\n return $id;\n }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "function get_espacio_stocks_ubicacion($stock)\n\t{\n\t\t$u = new Espacio_stock();\n\t\t$sql=\"select c.*, s.nombre from espacios_stock as c left join stock as s on s.id=c.stock_id where c.stock_id='$stock' and s.estatus_general_id='1' order by nombre limit 1 \";\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function getHSupAComptabiliserRcit(): ?float {\n return $this->hSupAComptabiliserRcit;\n }", "public function show(ubicacion $ubicacion)\n {\n //\n }", "public function setUbicacion($ubicacion)\n {\n $this->ubicacion = $ubicacion;\n\n return $this;\n }", "public function setUbicacion($ubicacion)\n {\n $this->ubicacion = $ubicacion;\n\n return $this;\n }", "public function getValue()\n {\n return (float) $this->value;\n }", "public function getImagen()\n {\n return $this->imagen;\n }", "public function getImagen()\n {\n return $this->imagen;\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function getCoti_total(){\n return $this->coti_total;\n }", "public function ubicacion(){\n \treturn $this->belongsTo(Ubicacione::class,'ubicacion_id');\n\t}", "public function getImgVeiculo()\n {\n return $this->imgVeiculo;\n }", "function getcantidad(){\n\t\treturn $this->cantidad;\n\t}", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getDataPartenza() {\n if (isset($_REQUEST['data_partenza'])) {\n return $_REQUEST['data_partenza'];\n } else\n return 0;\n }", "public function getValorParcela()\n {\n return $this->valorParcela;\n }", "public function getCodare(){\n\t\treturn $this->codare;\n\t}", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "public function getTxDetalleUbicacion()\n\t{\n\t\treturn $this->tx_detalle_ubicacion;\n\t}", "public function getFabricQuantity() {\r\n \r\n return doubleVal($this->quantity / 100);\r\n }", "public function value()\n {\n return $this->getValue();\n }", "public function getImagen()\n {\n return $this->imagen;\n }", "public function getImagen()\n {\n return $this->imagen;\n }", "public function getImagen()\n {\n return $this->imagen;\n }", "public function getValueAttribute()\n\t{\n\t\treturn $this->attributes['valor_total'];\n\t}" ]
[ "0.6577382", "0.6303181", "0.6133031", "0.6133031", "0.6125839", "0.6061697", "0.59556115", "0.59310496", "0.59006804", "0.589204", "0.58556926", "0.5822034", "0.57913905", "0.57847756", "0.5716602", "0.5688839", "0.5681292", "0.56684625", "0.56446207", "0.5643767", "0.56104875", "0.55999815", "0.5578177", "0.5560116", "0.55536765", "0.55374706", "0.5527359", "0.5525626", "0.5517721", "0.5503283", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.5501625", "0.55008924", "0.5490475", "0.5459127", "0.5459127", "0.5459127", "0.5459127", "0.5436329", "0.5428409", "0.54258263", "0.5422171", "0.54081655", "0.5407602", "0.54071623", "0.539277", "0.5382867", "0.53728074", "0.53636986", "0.5360843", "0.535658", "0.5355776", "0.53452", "0.53452", "0.53402746", "0.5337887", "0.53362405", "0.5331655", "0.5331655", "0.5330065", "0.5325815", "0.5325815", "0.5325292", "0.5324027", "0.53239775", "0.5323892", "0.53216803", "0.5312398", "0.53114235", "0.5298086", "0.5295614", "0.527798", "0.527798", "0.52757454", "0.5274953", "0.52717054", "0.52693045", "0.52693045", "0.52693045", "0.5269229" ]
0.72926635
1
Set the value of ubicacion_lugar.
public function setUbicacionLugar($ubicacion_lugar) { $this->ubicacion_lugar = $ubicacion_lugar; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUbicacionLugar()\n {\n return $this->ubicacion_lugar;\n }", "public function setSlugAttribute($value) {\n $this->attributes['slug'] = Str::slug($this->titre);\n }", "public function set_atletas_talla_ropa_buzo($atletas_talla_ropa_buzo) {\n $atletas_talla_ropa_u = strtoupper($atletas_talla_ropa_buzo);\n\n if (in_array($atletas_talla_ropa_u, AtletasModel::$_TALLAS_ROPA)) {\n $this->atletas_talla_ropa_buzo = $atletas_talla_ropa_u;\n } else {\n $this->atletas_talla_ropa_buzo = '??';\n }\n }", "public function setSlugValue(Slug $value)\n {\n $this->{$this->slugField()} = $value;\n }", "public static function Slug($IdNoticia, $Titulo, $IdEditoria){\n\t\t\t//$obj->buscarEditoria(1, $IdEditoria);\n\t\t\t//$editoria = preg_replace(\"{[^a-z0-9]}\", \"\", Url::_RewriteString($obj->getNome()));\n\t\t\t$editoria = \"noticia\";\n\t\t\t\n\t\t\treturn $editoria.\"-$IdNoticia-\".Url::_RewriteString($Titulo);\n\t\t}", "public function setSlugAttribute($value)\n {\n $slug = Str::slug($value, '-', 'ar');\n \n $isSlugExists = static::where('slug', $slug)->exists();\n \n if ($isSlugExists) {\n $id = Arr::first(explode('-', $this->attributes['id']));\n $slug = \"$slug-{$id}\"; \n }\n\n $this->attributes['slug'] = $slug;\n }", "public function setArl_nombre($arl_nombre){\n $this->arl_nombre = $arl_nombre;\n }", "public static function setRuolo($pagina) {\r\n $operatore = $_SESSION[\"op\"];\r\n $ruolo = $operatore->getFunzione();\r\n\r\n switch ($ruolo) {\r\n case OperatoreFactory::admin():\r\n $pagina->setLeftBarFile(\"./view/amministratore/menuAmministratore.php\");\r\n break;\r\n case OperatoreFactory::operatore():\r\n $pagina->setLeftBarFile(\"./view/operatore/menuOperatore.php\");\r\n break;\r\n case OperatoreFactory::protocollo():\r\n $pagina->setLeftBarFile(\"./view/protocollo/menuProtocollo.php\");\r\n break;\r\n case OperatoreFactory::responsabile():\r\n $pagina->setLeftBarFile(\"./view/responsabile/menuResponsabile.php\");\r\n break;\r\n default :\r\n $pagina->setLeftBarFile(\"./view/errorMenu.php\");\r\n }\r\n }", "public function setRuolo($ruolo) {\n switch ($ruolo) {\n case self::Venditore:\n\t\t\t\t$this->ruolo = $ruolo;\n return true;\n case self::Compratore:\n $this->ruolo = $ruolo;\n return true;\n default:\n return false;\n }\n }", "public function setUbicacion($data)\n {\n\n if ($this->_ubicacion != $data) {\n $this->_logChange('ubicacion');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_ubicacion = $data;\n } else if (!is_null($data)) {\n if (!in_array($data, $this->_ubicacionAcceptedValues) && !empty($data)) {\n throw new \\InvalidArgumentException(_('Invalid value for ubicacion'));\n }\n $this->_ubicacion = (string) $data;\n } else {\n $this->_ubicacion = $data;\n }\n return $this;\n }", "function setModificarJugador($id,$nombre,$url_img){\n\t$this->nombre = $nombre;\n\t$this->id = $id;\n\t$this->url_img = $url_img;\n}", "public function setTanggalLahirAttribute($value)\n {\n if (strlen($value)) {\n $this->attributes['tanggal_lahir'] = $value;\n } else {\n $this->attributes['tanggal_lahir'] = null;\n }\n }", "public function setListar($value)\n\t{\n\t\t$this->listar = $value;\n\t}", "function set_ubicacion(){\n\n\t\tif($this->input->post('id')){\n\t\t\t\n\t\t\t$id = $this->input->post('id',true);\n\n\t\t\t$user = $this->session->userdata('cliente_id');\n\n\t\t\tif($id != 1 AND $id != 2){\n\t\t\t\techo json_encode(array('res' => 'error'));\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t//Verificar si ya tiene la ubicacion colocada para no volver a mostrar \n\n\t\t\t$cliente = applib::get_table_field(applib::$clientes_table,array('id' => $user),'*');\n\t\t\t\n\t\t\tif($cliente['lugar'] != null){\n\t\t\t\techo json_encode(array('res' => 'error'));\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t//Colocar ubicacion del proyecto para filtrar\n\n\t\t\tapplib::update(array('id' => $user),applib::$clientes_table,array('lugar' => $id));\n\n\t\t\techo json_encode(array('res' => 'success'));\n\t\t}\n\t}", "function setUrlUIAnterior($url) {\n $this->urlUIAnterior = $url;\n }", "public function setJmlJambanLG($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jml_jamban_l_g !== $v) {\n $this->jml_jamban_l_g = $v;\n $this->modifiedColumns[] = SanitasiPeer::JML_JAMBAN_L_G;\n }\n\n\n return $this;\n }", "public function setSlug($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->slug !== $v) {\n\t\t\t$this->slug = $v;\n\t\t\t$this->modifiedColumns[] = CidadePeer::SLUG;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setLoueur($loueur)\n {\n $this->loueur = $loueur;\n\n return $this;\n }", "public function setArreglo( $registro )\n { return $this->getArreglo( $registro ); }", "public function setArreglo( $registro )\n { return $this->getArreglo( $registro ); }", "public function setUbicacion($ubicacion)\n {\n $this->ubicacion = $ubicacion;\n\n return $this;\n }", "public function setUbicacion($ubicacion)\n {\n $this->ubicacion = $ubicacion;\n\n return $this;\n }", "public function setLargura($iLargura, $sUnidade = \"px\") \r\n\t{\r\n\t\t$this->iLargura = $iLargura;\r\n\t\t$this->sUnidadeLargura = $sUnidade;\r\n\t}", "public function setSlug($slug);", "public function setSlug($slug);", "public function setSlug($slug);", "public function testSetBureauDistributeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function setSlug ($value) {\n\t\n\t\t// check for a value\n\t\tif ($value == \"\") {\n\t\t\t$this->setMessage(LANG_INVALID.\" \".LANG_URL);\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$id = ($this->pageID) ? $this->pageID : 0;\n\t\t\t$parent = ($this->pageParent) ? $this->pageParent : 0;\n\t\t\t$pageModel = new PagesModel();\n\t\t\t$this->setData(\"pageSlug\", $pageModel->validateSlug($value, $id, $parent));\n\t\t\treturn true;\n\t\t}\n\t}", "public function setJmlJambanLpG($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->jml_jamban_lp_g !== $v) {\n $this->jml_jamban_lp_g = $v;\n $this->modifiedColumns[] = SanitasiPeer::JML_JAMBAN_LP_G;\n }\n\n\n return $this;\n }", "function set_categorie($categorie){\n if($categorie == \"vin\" || $categorie == \"eau\" || $categorie == \"jus\"){\n $this->categorie = $categorie;\n }else{\n $this->erreur(\"La categorie doit être : vin, eau ou jus. Or c'est : \".$categorie.\"<br>\");\n }\n }", "private function setRutasVista() {\n /* variable relacionadas a un controlador especifico */\n $this->_rutas = [\n 'vista' => RUTA_MODULOS . 'vista' . DS . $this->_controlador . DS,\n 'img' => URL_MODULOS . \"vista/\" . $this->_controlador . \"/img/\",\n 'js' => URL_MODULOS . \"vista/\" . $this->_controlador . \"/js/\",\n 'css' => URL_MODULOS . \"vista/\" . $this->_controlador . \"/css/\",\n ];\n }", "public function setSlugAttribute($value)\n {\n $slug = str_slug($value);\n //$original = $slug;\n\n if (static::whereSlug($slug)->exists()) {\n $slug = \"{$slug}-\".$this->id;\n }\n\n $this->attributes['slug'] = $slug;\n }", "public function setSlug($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->slug !== $v) {\n\t\t\t$this->slug = $v;\n\t\t\t$this->modifiedColumns[] = VenuePeer::SLUG;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = trim($value, '/');\n }", "function setAlturaDuplaLinha($lAlturaDupla) {\n\n if ($lAlturaDupla) {\n $sComando = chr(100) . \"1\";\n } else {\n $sComando = chr(100) . \"0\";\n }\n parent::addComando($sComando);\n }", "public function setSlug($v)\n { $this->getCurrentTranslation()->setSlug($v);\n\n return $this;\n }", "public function setPrefeitura($lPrefeitura) {\n $this->lPrefeitura = $lPrefeitura;\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = str_slug($value);\n }", "public function setSlug($slug)\n {\n $this->slug = $slug;\n }", "public function setSlugAttribute($value)\n\t{\n\t\t$this->attributes['slug'] = str_slug($value);\n\t}", "public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }", "public function setLieu(string $Lieu)\r\n {\r\n $this->Lieu = $Lieu;\r\n\r\n return $this;\r\n }", "public function setSlug(string $slug): void\n {\n $this->slug = $slug;\n }", "public function setSigla(string $sigla)\n {\n $this->sigla = $sigla;\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "public function setSlug($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->slug !== $v) {\n\t\t\t$this->slug = $v;\n\t\t\t$this->modifiedColumns[] = CampaignPeer::SLUG;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setAltura($iAltura, $sUnidade = \"px\") \r\n\t{\r\n\t\t$this->iAltura = $iAltura;\r\n\t\t$this->sUnidadeAltura = $sUnidade;\r\n\t}", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value, '-');\n }", "public function setLargura($iLargura) {\n $this->iLargura = $iLargura;\n }", "public function initializeSlug(){\n if (empty($this->Nom_vis)) {\n \n $slugify = new Slugify();\n $this->Nom_vis = $slugify->Slugify($this->Nom_vis);\n \n }\n }", "protected function addSlug()\n {\n $slugSource = $this->generateSlugFrom();\n\n $slug = $this->generateUniqueSlug($slugSource);\n\n $this->slug = $slug;\n }", "public function setIdgrupo_sanguineo($idgrupo_sanguineo){\n $this->idgrupo_sanguineo = $idgrupo_sanguineo;\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value); \n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value); \n }", "public function setMensagemLido($lido) \n\t{\n\t\t$query = \"UPDATE usuario SET lido = \".$lido.\" WHERE id_mensagem = :id_mensagem\";\n\t\t$stmt = $this->db->prepare($query);\n\t\t$stmt->bindValue(':id_mensagem', $_this->__get('id_mensagem'));\n\t\t$stmt->execute();\n\t}", "public function setSlug(string $slug = null) : CNabuDataObject\n {\n $this->setValue('nb_catalog_item_lang_slug', $slug);\n \n return $this;\n }", "public function setAltura($iAltura) {\n $this->iAltura = $iAltura;\n }", "protected function refreshSlug() {\n $slug = $this->slugify($this->getTitle());\n $this->setSlug($slug);\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function setSLUhrzeit($uhrzeit) {\n\t\t$this->data['var SLUhrzeit'] = '\"'.$uhrzeit.'\"';\n\t}", "private static function setRota( $url ) {\n\t\t\n\t\tif( is_array( $url ) ) {\n\n\t\t\tif( !empty( $url['path'] ) )\n\t\t\t\tself::$rota = explode( \"/\", trim( $url['path'] , '/') );\n\t\t}\t\t\n\t}", "public function initializeSlug()\n {\n if (empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->titre);\n }\n }", "function setSlugAttribute($slug)\n {\n $this->attributes['slug'] = $this->makeSlugUnique($slug);\n }", "public function obterEventosLugar( $pagina, $lugar_id ) {\n\n // seta a pagina\n $pagina = ( $pagina - 1 ) * 5;\n\n // monta a busca\n $this->db->from( 'eventos e' )\n ->select( '*' )\n ->join( 'categorias_eventos c', 'c.id = e.categoria_id' )\n ->where( \" e.status <> 'N' AND \n e.local_id = $lugar_id \" );\n\n // ordena pela data\n $this->db->order_by( 'data', 'ASC' );\n\n // seta as paginas\n $this->db->limit( 5, $pagina );\n\n // faz a busca\n $busca = $this->db->get();\n\n // volta os resultados\n return $busca->result_array();\n }", "public function setGenresAttribute($value)\n {\n $this->attributes['genres'] = json_encode($value);\n }", "public function getUslugis()\n {\n return $this->hasOne(Uslugi::className(), ['id_uslugi' => 'id_uslugis']);\n }", "public function setLacronyme(string $lacronyme)\n {\n //checking for injection in db\n $lacronyme = strip_tags(trim($lacronyme));\n //checking is empty\n if(empty($lacronyme)){\n trigger_error(\"The acronym can't be empty\",E_USER_NOTICE);\n //checking the lenght acronyme\n }else if (strlen($lacronyme) > 16){\n trigger_error(\"The lenght of the acronym cannot exceed 16 characters!!\",E_USER_NOTICE);\n }else{\n\n $this->lacronyme = $lacronyme;\n\n }\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setApellido($apellido)\n {\n $this->apellido = $this->db->real_escape_string($apellido);\n\n \n }", "public function setLibraryLogoAttribute($value){\n\n \t\t //$this->deleteImage($this->attributes['library_logo']);\n\n \t\t $this->attributes['library_logo']= $value;\n \t}", "public function setLocalizedPageSlug($uuid, $slug);", "public function set_taplicacion_codigo(string $taplicacion_codigo): void {\n $this->taplicacion_codigo = $taplicacion_codigo;\n }", "public function setBobotNilai($bobot_nilai);", "public function setGenre($v)\n\t{\n\n\n\t\tif ($v === null) {\n\t\t\t$this->setGenreId(NULL);\n\t\t} else {\n\t\t\t$this->setGenreId($v->getId());\n\t\t}\n\n\n\t\t$this->aGenre = $v;\n\t}", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function setSlugAttribute()\n {\n $title = $this->attributes['title'];\n $this->attributes['slug'] = Str::slug($title, '-');\n }", "public function initializeSlug() {\n if(empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->nomhotel);\n }\n }", "public function setParcela(int $parcela)\n {\n $this->parcela = $parcela;\n }", "public function setContenu(string $contenu): void\n {\n $this->contenu= $contenu;\n }", "function set($ARBITRO_data=array()) {\n\t\tif(array_key_exists('identificacion', $ARBITRO_data)) {\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->get($ARBITRO_data);\n\t\t\t\tif($ARBITRO_data['identificacion'] != $this->getIdentificacion()) {\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$this->setIdentificacion($ARBITRO_data['identificacion']);\n\t\t\t\t\t\t\t$id = $this->getIdentificacion();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setNombre($ARBITRO_data['nombre']);\n\t\t\t\t\t\t\t$nombre =$this->getNombre();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setApellido($ARBITRO_data['apellido']);\n\t\t\t\t\t\t\t$apellido =$this->getApellido();\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setEmail($ARBITRO_data['email']);\t\t\n\t\t\t\t\t\t\t$email =$this->getEmail();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTelefono($ARBITRO_data['telefono']);\t\t\n\t\t\t\t\t\t\t$telefono =$this->getTelefono();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setDireccion($ARBITRO_data['direccion']);\t\t\n\t\t\t\t\t\t\t$direccion =$this->getDireccion();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTipoArbitro($ARBITRO_data['tipo']);\t\t\n\t\t\t\t\t\t\t$tipo =$this->getTipoArbitro();\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$Disponibilidad = 'Si';\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t$this->query = \"\n\t\t\t\t\t\t\t\t\t\tINSERT INTO arbitros\n\t\t\t\t\t\t\t\t\t\t(Identificacion, Nombre, Apellido, Email,TipoArbitro,Direccion,Telefono,Disponible)\n\t\t\t\t\t\t\t\t\t\tVALUES\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t('$id','$nombre', '$apellido', '$email','$tipo','$direccion','$telefono','$Disponibilidad')\n\t\t\t\t\t\t\t\t\t\t\";\t\t\t\t\t\t\n\t\t\t\t\t\t$this->execute_single_query();\t\t\t\t\t\t\n\t\t\t\t\t\t$this->mensaje = 'arbitro agregado exitosamente';\n\t\t\t\t\t\t\n\t\t\t } else \n\t\t\t\t\t\t$this->mensaje = 'El arbitro ya existe';\n\t\t\t\t\t \n\t\t} else \n\t\t\t\t$this->mensaje = 'Error al Agregar arbitro';\t\t\t\t\n\t}", "function delMercancia($arregloDatos) {\n $unaReversion = new Levante();\n $unaReversion->reversarRetiroUbicaciones($arregloDatos);\n $this->controlarTransaccion($arregloDatos);\n $this->datos->delMercancia($arregloDatos);\n $arregloDatos[plantilla] = 'levanteCuerpoRetiro.html';\n $arregloDatos[thisFunction] = 'getCuerpoRetiro';\n $this->pantalla->setFuncion($arregloDatos,$this->datos);\n }", "public function preSaveGaleria()\r\n {\r\n if($this->getTipoArchivo()== RpsStms::TIPO_ARCHIVO_LINK){\r\n $infoVideo= RpsStms::getTitleAndImageVideoYoutube($this->getArchivo());\r\n $this->setThumbnail($infoVideo['thumbnail']);\r\n $this->setArchivo($infoVideo['urlVideo']);\r\n $this->setTitulo($infoVideo['title']);\r\n $this->setDescripcion($infoVideo['description']);\r\n }\r\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function save($idUsuario) {\n $miIdMiembro = Mob_Loader::getModel(\"Familias_Miembros\")->getIdByIdUsuario($idUsuario);\n Mob_Loader::getModel(\"Familias_Miembros\")->setRango($miIdMiembro, Mob_Loader::getModel(\"Familias_Rangos\")->getIdSubCapo($this->_idFamilia));\n Mob_Loader::getModel(\"Familias_Miembros\")->setRango($this->id_nuevo_capo->getValue(), Mob_Loader::getModel(\"Familias_Rangos\")->getIdCapo($this->_idFamilia));\n }", "public function setArticulo($articulo)\n {\n $this->articulo = $articulo;\n }", "public function setLocalizedTaxonomySlug($uuid, $slug);", "public function setCampoLivre($campo_livre){\n if (strlen($campo_livre) > 128) {\n throw new \\UnexpectedValueException('O campo livre deve ter, no máximo, 128 caracteres');\n }\n\n $this->campo_livre = $campo_livre;\n }", "public function setRegistroGrado( $registroGrado ){\n\t\t\t$this->registroGrado = $registroGrado;\n\t\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function setIdDetalleRegistroGradoFolio( $idDetalleRegistroGradoFolio ){\n\t\t\t$this->idDetalleRegistroGradoFolio = $idDetalleRegistroGradoFolio;\n\t\t}", "public function setIdUsuarioOrigen($usuarioOrigen) {\n\t\t$this->usuarioOrigen = $usuarioOrigen;\n\t}", "public function testSetLibelle() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetLibelle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function setValueId($path_uri) {\n $objSubmenu = new Submenu($this->dbAdapter);\n $submenu = $objSubmenu->findSubmenuByUrl($path_uri);\n if ($submenu) {\n $this->setId($submenu->id);\n } else {\n $session = new Container('seguridad');\n $this->setId($session->submenu_id);\n }\n }", "public function initializeSlug(){\n $faker = Factory::create('FR-fr');\n \n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($faker->md5());\n }\n\n }", "public function setSlugAttribute($value)\n {\n if ($value) {\n $this->attributes['slug'] = str_slug($value);\n }\n else {\n $this->attributes['slug'] = str_slug(request('title'));\n }\n }", "public function setProducto($pro){ $this->producto = $pro;}", "public function setDirector(string $dirlo) {\n $this->director = $dirlo;\n }" ]
[ "0.6037762", "0.5145679", "0.49458802", "0.4919725", "0.48326263", "0.47729024", "0.4758893", "0.47262627", "0.4710221", "0.47008646", "0.468209", "0.4676038", "0.46743947", "0.46565852", "0.4655925", "0.4638332", "0.46326086", "0.46310472", "0.46256366", "0.46256366", "0.4624177", "0.4624177", "0.45379427", "0.4537841", "0.4537841", "0.4537841", "0.45128393", "0.45066875", "0.4499966", "0.44961601", "0.4485449", "0.44839463", "0.44773793", "0.44679895", "0.44597128", "0.44435766", "0.4442175", "0.44375032", "0.44309613", "0.44244808", "0.4423275", "0.4420976", "0.44185382", "0.44180703", "0.4412701", "0.4404723", "0.44028592", "0.44004542", "0.4400336", "0.43967387", "0.43905556", "0.4379847", "0.4379473", "0.4379473", "0.43706906", "0.43559802", "0.43547133", "0.4329072", "0.43009147", "0.4299702", "0.42976445", "0.42974204", "0.42962718", "0.42907727", "0.42846385", "0.42814502", "0.42730078", "0.42708352", "0.42668402", "0.4256641", "0.4256298", "0.42510733", "0.42459658", "0.4245341", "0.42324865", "0.42210305", "0.4219997", "0.4215195", "0.42125887", "0.42119032", "0.42086235", "0.42060518", "0.42059356", "0.42025575", "0.4202262", "0.41988268", "0.4191932", "0.41916314", "0.41843957", "0.41843632", "0.41834006", "0.4173232", "0.41722295", "0.4150942", "0.41506773", "0.4149105", "0.41485542", "0.4144466", "0.414176", "0.4139592" ]
0.71171075
0
Get the value of ubicacion_lugar.
public function getUbicacionLugar() { return $this->ubicacion_lugar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUbicacionLugar($ubicacion_lugar)\n {\n $this->ubicacion_lugar = $ubicacion_lugar;\n\n return $this;\n }", "function Get_NombreCancha($identificador)\n{\n global $conexion;\n $valor = mysqli_fetch_array(consultar(\"SELECT nombre\n FROM tb_lugares WHERE id_lugar=$identificador\"));\n \n return $valor['nombre'];\n}", "public function getUbicacion()\n {\n return $this->ubicacion;\n }", "public function getUbicacion()\n {\n return $this->ubicacion;\n }", "public function getLieu(): string\r\n {\r\n return $this->Lieu;\r\n }", "public function getLoueur()\n {\n return $this->loueur;\n }", "public function getUslugis()\n {\n return $this->hasOne(Uslugi::className(), ['id_uslugi' => 'id_uslugis']);\n }", "public function getSlug()\n {\n if ($this->hasLocalizedSlug()) {\n //Cast model slug to propert type\n $slug = $this->getValue('slug');\n $slug = is_array($slug) ? $slug : (array) json_decode($slug);\n\n $lang = Localization::get();\n\n //Return selected language slug\n if (array_key_exists($lang->slug, $slug) && $slug[$lang->slug]) {\n return $slug[$lang->slug];\n }\n\n $default = Localization::getFirstLanguage();\n\n //Return default slug value\n if ($default->getKey() != $lang->getKey() && array_key_exists($default->slug, $slug) && $slug[$default->slug]) {\n return $slug[$default->slug];\n }\n\n //Return one of set slug from any language\n foreach (Localization::getLanguages() as $lang) {\n if (array_key_exists($lang->slug, $slug) && $slug[$lang->slug]) {\n return $slug[$lang->slug];\n }\n }\n\n //If languages has been hidden, and no slug has been defined from any known language\n //we can return any existing\n return array_values($slug)[0] ?? null;\n }\n\n return $this->slug;\n }", "public function getRubrique(): ?string\n {\n return $this->rubrique;\n }", "function get_lugar_sede($id_sede,$id_lugar) {\n $this->db->where('id_sede =', $id_sede);\n $this->db->where('id_lugar_sede =', $id_lugar);\n $query = $this->db->get('lugares');\n return $query->row();\n }", "public function getSlug()\n {\n return $this->getValue('nb_catalog_item_lang_slug');\n }", "public function getLibelle()\n {\n return $this->libelle;\n }", "public function getLibelle()\n {\n return $this->libelle;\n }", "public function getLibelle()\n {\n return $this->libelle;\n }", "private function getCodigoPresupuestarioInmuebleUrbano()\r\n\t\t{\r\n\t\t\t$codigoPresupuesto['codigo'] = '301020500';\r\n\t\t\treturn $codigo = self::getCodigoPresupuestarioByCodigo($codigoPresupuesto['codigo']);\r\n\t\t}", "public function getUrlLien(): string\r\n {\r\n return $this->urlLien;\r\n }", "public function getArl_nombre(){\n return $this->arl_nombre;\n }", "public function getLuasTapakBangunan()\n {\n return $this->luas_tapak_bangunan;\n }", "public function getNameLukasBodnariuc(): string{\r\n return $this->nameLukasBodnariuc . \" \" . $this->surnameLukasBodnariuc;\r\n }", "public function getRuolo() {\n return $this->ruolo;\n }", "public function getNomAlternatif()\n {\n $this->logDebug(\" [\".__FUNCTION__.\"] /Ligne: \".__LINE__.\"/ DEBUT; \");\n\n $strNomAlter = \"\";\n \n if ($this->getId() == Budget_typeTable::RESTITUE)\n {\n $strNomAlter = libelle('msg_libelle_restitution');\n } else\n {\n $strNomAlter = libelle('msg_libelle_allocation');\n }\n\n $this->logDebug(\" [\".__FUNCTION__.\"] /Ligne: \".__LINE__.\"/ FIN; \");\n\n return $strNomAlter;\n }", "public function id_nilai_alternatif()\n {\n $q = $this->db->query(\"select MAX(RIGHT(id_nilai_alternatif,5)) as id_max from tbl_nilai_alternatif\");\n $id = \"\";\n if ($q->num_rows() > 0) {\n foreach ($q->result() as $k) {\n $tmp = ((int) $k->id_max) + 1;\n $id = sprintf(\"%05s\", $tmp);\n }\n } else {\n $id = \"00001\";\n }\n return \"NAL-\" . $id;\n }", "public function recupererNombreDeMembreMax(string $LibelleCompetition)\n {\n $req = $this->getBdd()->prepare(\"SELECT jury.nombre_membre as nb from jury JOIN competition on competition.id = jury.id_competition where competition.libelle = ?\");\n $req->execute(array($LibelleCompetition));\n $result = $req->fetch();\n var_dump($result);\n return $result['nb'];\n }", "function get_tarifKilometrique() {\n return $this->tarifKilometrique;\n }", "public function getSlug()\n {\n return $this->__get(self::FIELD_SLUG);\n }", "private function getLigado()\n {\n return $this->ligado;\n }", "public function getAuteurLivre()\n {\n return $this->auteurLivre;\n }", "public function getIdlivro()\n {\n return $this->idlivro;\n }", "public function getSlug()\n {\n return $this->getCurrentTranslation()->getSlug() ?: 'n-a';\n }", "public function getJmlJambanLpG()\n {\n return $this->jml_jamban_lp_g;\n }", "public function getSlug(): string\n {\n return $this->slug;\n }", "public function getGrupo_sanguineo_nombre(){\n return $this->grupo_sanguineo_nombre;\n }", "public function getCodUbicacion()\n {\n return $this->codUbicacion;\n }", "public function getStrPaginaUltima()\r\n\t\t\t\t{\r\n\t\t\t\t\treturn $this->strPaginaUltima;\r\n\t\t\t\t}", "function olc_get_manufacturer_url($manufacturer_id, $language_id) {\n\t$manufacturer_query = olc_db_query(SELECT.\"manufacturers_url\".SQL_FROM . TABLE_MANUFACTURERS_INFO .\n\tSQL_WHERE.\"manufacturers_id = \" . $manufacturer_id . \" and languages_id = \" . $language_id);\n\t$manufacturer = olc_db_fetch_array($manufacturer_query);\n\n\treturn $manufacturer['manufacturers_url'];\n}", "public function getBentukLembagaId()\n {\n return $this->bentuk_lembaga_id;\n }", "public function getLido()\n {\n return $this->lido;\n }", "function lebih($slug) {\n\n\t\t/* ---- PREPARE VARIABLE ------*/\n\t\t$arr_slug\t\t= explode('_', $slug);\n\t\t$pegawai_result = $this->db->get_where('pegawai', array('id_pegawai' => $arr_slug[1]))->result();\n\t\t$pegawai \t\t= $pegawai_result['0']->nama_pegawai;\n\t\t$jabatan\t\t= $pegawai_result['0']->jabatan_pegawai;\n\t\t$nip \t\t= $pegawai_result['0']->nip_pegawai;\n\t\t$surat_result \t= $this->db->get_where('data_rinci', array('id_surat' => $arr_slug[0],\n\t\t\t'id_pegawai' => $arr_slug[1]))->result();\n\t\t$nomor \t\t\t= $surat_result['0']->nomor;\n\n\t\t//Get data rinci\n\t\t$data_rinci_all\t= $this->db->get_where('data_rinci',\n\t\t\tarray('id_surat' => $arr_slug[0], 'id_pegawai' => $arr_slug[1]))->result();\n\t\t$id_tiket = $data_rinci_all['0']->id_tiket;\n\t\t$id_transport2 = $data_rinci_all['0']->id_transport2;\n\t\t\t\n\t\t//get data uang tiket\n\t\tif ($id_tiket == 0) {\n\t\t\t$sbu_tiket = 0;\n\t\t\t$sbu_tiket_ena = $this->rupiah($sbu_tiket);\n\t\t\t$transport2 = $this->db->get_where('biaya_transport',array('id' => $id_transport2))->result();\n\t\t\t$rute = $transport2['0']->provinsi;\n\n\t\t} else {\n\t\t\t$tiket_result = $this->db->get_where('tiket_pesawat',array('id' => $id_tiket))->result();\n\t\t\t$sbu_tiket = $tiket_result['0']->biaya_tiket;\n\t\t\t$sbu_tiket_ena = $this->rupiah($sbu_tiket);\n\t\t\t$rute = $tiket_result['0']->rute;\n\t\t}\n\n\t\t//get real pengeluaran untuk tiket\n\t\t$r_tiket_result = $this->db->get_where('spd_rampung', array('id_surat' => $arr_slug[0], 'id_pegawai' => $arr_slug[1]))->result();\n\t\t$r_tiket = $r_tiket_result != NULL ? $r_tiket_result['0']->tiket : 0;\n\n\t\t$ppk \t\t\t= $this->db->get_where('pejabat_administratif',\n\t\t\tarray('jabatan' => 'Pejabat Pembuat Komitmen'))->result();\n\t\t$nama_ppk \t\t\t\t= $ppk['0']->nama;\n\t\t$nip_ppk \t\t\t\t= $ppk['0']->nip;\n\n\t\t$var_tgl_skrg = $this->tanggal_indo(date('Y').'-'.date('m').'-'.date('d'), '-');\n\t\t$var_tgl_surat \t= $this->tanggal_indo($surat_result['0']->tgl_surat,'/');\n\n\t\t/* -----------------------------*/\n\t\tif(empty($r_tiket_result)) {\n\t\t\techo \"<script> \t\n \talert('Anda belum mengisi SPD Rampung!');\n \twindow.location.href='\".base_url('C_PDF/print_biaya/').$arr_slug[0].\"';</script>\";\n\t\t}\n\n\t\tif($sbu_tiket<$r_tiket) {\n\t\t\t$pdf = new PDF_MC_Table('p','mm','A4');\n\t\t\t$pdf->AddPage();\n\t\t\t$pdf->SetFont('Arial','B',14);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->MultiCell(0,25,\"SURAT PERNYATAAN\",0,'C');\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(25,7,'',0,0);\n\t\t\t$pdf->MultiCell(0,6,\"Yang bertandatangan di bawah ini :\",0,'L');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'Nama',0,0);\n\t\t\t$pdf->Cell(10,7,':',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(20,7,$pegawai,0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(20,7,'NIP',0,0);\n\t\t\t$pdf->Cell(10,7,':',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(20,7,$nip,0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(20,7,'Jabatan',0,0);\n\t\t\t$pdf->Cell(10,7,':',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(20,7,$jabatan,0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(20,7,'Berdasarkan Surat Tugas Nomor:'.$nomor.' tanggal '.$var_tgl_surat.' dengan',0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'sesungguhnya bahwa : input alasan lebih here',0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'1. Tiket '.$rute.' (PP) dengan jumlah tiket pesawat di bawah ini melebihi dengan',0,1);\n\t\t\t$pdf->Cell(5,7,'',0,0);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'SBU tahun '.date('Y').', meliputi :',0,1);\n\t\t\t$pdf->Ln();\n\n\t\t\t//here is table\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(10,5,'No.',1,0,'C',0);\n\t\t\t$pdf->Cell(70,5,'Uraian',1,0,'C',0);\n\t\t\t$pdf->Cell(40,5,'Nilai SBU',1,0,'C',0);\n\t\t\t$pdf->Cell(40,5,'Pengeluaran Rill',1,0,'C',0);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\n\t\t\t$counterrr = 1;\n\t\t\t\t$pdf->SetWidths(array(10, 70, 40, 40));\n\t\t\t\tfor($i=0;$i<1;$i++) {\n\t\t\t\t\t$pdf->Row(array($counterrr,\"Tiket Pesawat \".$rute. \" (PP)\",\"Rp \".$sbu_tiket_ena, \"Rp \".number_format($r_tiket,2,',','.')));\n\t\t\t\t\t$counterrr++;\n\t\t\t\t}\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(10,5,'','LB',0,'L',0);\n\t\t\t$pdf->Cell(70,5,'Jumlah','LRB',0,'C',0);\n\t\t\t$pdf->Cell(7,5,'Rp ','B',0,'L',0);\n\t\t\t$pdf->Cell(33,5,''.$sbu_tiket_ena,'RB',0,'L',0);\n\t\t\t$pdf->Cell(7,5,'Rp ','B',0,'L',0);\n\t\t\t$pdf->Cell(33,5,''.$sbu_tiket_ena,'RB',0,'L',0);\n\t\t\t$pdf->Ln();\n\t\t\t\n\t\t\t//end of table\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'2. Bahwa tiket '.$rute.' (PP) dengan jumlah uang tersebut pada angka (1)',0,1);\n\t\t\t$pdf->Cell(5,7,'',0,0);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'melebihi jumlah SBU dan benar - benar dikeluarkan dengan bukti rill kuitansi tiket',0,1);\n\t\t\t$pdf->Cell(5,7,'',0,0);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'Perjalanan Dinas dimaksud.',0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'Demikian pernyataan ini kami buat dengan sebenarnya, untuk dipergunakan',0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'sebagaimana mestinya.',0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t//Footer Surat\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(10,6,\"\",0,0,'L');\n\t\t\t$pdf->Cell(25,6,'',0,0,'L');\n\t\t\t$pdf->Cell(15,6,'',0,0,'L');\n\t\t\t$pdf->Cell(25,6,'',0,0,'R');\n\t\t\t$pdf->Cell(20,6,'',0,0,'C');\n\t\t\t$pdf->MultiCell(60,6,'Jakarta, '.$var_tgl_skrg,0,'R');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(18,6,'',0,0,'L');\n\t\t\t$pdf->MultiCell(55,6,'Mengetahui/Menyetujui',0,'R');\n\t\t\t$pdf->Cell(100,6,'Pejabat Pembuat Komitmen',0, 0,'C');\n\t\t\t$pdf->MultiCell(50,6,'Pelaksana SPD',0,'R');\n\t\t\t$pdf->Cell(100,6,' Pusat Data Informasi dan Humas',0, 0,'C');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetFont('Arial','BU',12);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(100,6,$nama_ppk,0, 0,'C');\n\t\t\t$pdf->MultiCell(72.5,6,$pegawai,0,'C');\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(100,6,\"NIP. \".$nip_ppk,0, 0,'C');\n\t\t\t$pdf->MultiCell(72.5,6,'NIP. '.$nip,0,'C');\n\n\t\t\t//Cetak gans\n\t\t\t$filename = \"Lebih - \".$arr_slug[0].\" - \".$pegawai.$this->extension;\n\t\t\t$pdf->setTitle($filename);\n\t\t\t$pdf->Output(\"I\", $filename);\n\t\t} else {\n\t\t\techo \"<script> \t\n \talert('Tidak bisa mencetak karena biaya tiket tidak lebih dari SBU!');\n \twindow.location.href='\".base_url('C_PDF/print_biaya/').$arr_slug[0].\"';</script>\";\n\t\t}\n\t}", "public static function Slug($IdNoticia, $Titulo, $IdEditoria){\n\t\t\t//$obj->buscarEditoria(1, $IdEditoria);\n\t\t\t//$editoria = preg_replace(\"{[^a-z0-9]}\", \"\", Url::_RewriteString($obj->getNome()));\n\t\t\t$editoria = \"noticia\";\n\t\t\t\n\t\t\treturn $editoria.\"-$IdNoticia-\".Url::_RewriteString($Titulo);\n\t\t}", "function ihc_get_custom_field_label($slug=''){\n\t $data = get_option('ihc_user_fields');\n\t if ($data){\n\t \t $key = ihc_array_value_exists($data, $slug, 'name');\n\t\t if (isset($data[$key]) && isset($data[$key]['label'])){\n\t\t \treturn $data[$key]['label'];\n\t\t }\n\t }\n\t return '';\n}", "public function getSlug()\n {\n return $this->slug ?? $this->id;\n }", "function hilang($slug) {\n\n\t\t/* ---- PREPARE VARIABLE ------*/\n\t\t$arr_slug\t\t= explode('_', $slug);\n\t\t$pegawai_result = $this->db->get_where('pegawai', array('id_pegawai' => $arr_slug[1]))->result();\n\t\t$pegawai \t\t= $pegawai_result['0']->nama_pegawai;\n\t\t$jabatan\t\t= $pegawai_result['0']->jabatan_pegawai;\n\t\t$nip \t\t= $pegawai_result['0']->nip_pegawai;\n\t\t$surat_result \t= $this->db->get_where('data_rinci', array('id_surat' => $arr_slug[0],\n\t\t\t'id_pegawai' => $arr_slug[1]))->result();\n\t\t$nomor \t\t\t= $surat_result['0']->nomor;\n\n\t\t//Get data rinci\n\t\t$data_rinci_all\t= $this->db->get_where('data_rinci',\n\t\t\tarray('id_surat' => $arr_slug[0], 'id_pegawai' => $arr_slug[1]))->result();\n\t\t$id_tiket = $data_rinci_all['0']->id_tiket;\n\t\t$id_transport2 = $data_rinci_all['0']->id_transport2;\n\t\t\t\n\t\t//get data uang tiket\n\t\tif ($id_tiket == 0) {\n\t\t\t$sbu_tiket = 0;\n\t\t\t$sbu_tiket_ena = $this->rupiah($sbu_tiket);\n\t\t\t$transport2 = $this->db->get_where('biaya_transport',array('id' => $id_transport2))->result();\n\t\t\t$rute = $transport2['0']->provinsi;\n\n\t\t} else {\n\t\t\t$tiket_result = $this->db->get_where('tiket_pesawat',array('id' => $id_tiket))->result();\n\t\t\t$sbu_tiket = $tiket_result['0']->biaya_tiket;\n\t\t\t$sbu_tiket_ena = $this->rupiah($sbu_tiket);\n\t\t\t$rute = $tiket_result['0']->rute;\n\t\t}\n\t\t// $tiket_result\t= $this->db->get_where('tiket_pesawat',array('id' => $id_tiket))->result();\n\t\t// $sbu_tiket = $tiket_result['0']->biaya_tiket;\n\n\t\t//get real pengeluaran untuk tiket\n\t\t$r_tiket_result = $this->db->get_where('spd_rampung', array('id_surat' => $arr_slug[0], 'id_pegawai' => $arr_slug[1]))->result();\n\t\t$r_tiket_row = $this->db->get_where('spd_rampung', array('id_surat' => $arr_slug[0], 'id_pegawai' => $arr_slug[1]))->num_rows();\n\t\t$r_tiket = $r_tiket_result != NULL ? $r_tiket_result['0']->tiket : 0;\n//\t\t$r_tiket = $r_tiket_result['0']->tiket;\n\t\t$ppk \t\t\t= $this->db->get_where('pejabat_administratif',\n\t\t\tarray('jabatan' => 'Pejabat Pembuat Komitmen'))->result();\n\t\t$nama_ppk \t\t\t\t= $ppk['0']->nama;\n\t\t$nip_ppk \t\t\t\t= $ppk['0']->nip;\n\n\t\t$var_tgl_skrg = $this->tanggal_indo(date('Y').'-'.date('m').'-'.date('d'), '-');\n\t\t$var_tgl_surat \t= $this->tanggal_indo($surat_result['0']->tgl_surat,'/');\n\n\t\tif($r_tiket_row <= 0) {\n\t\t\techo \"<script> \t\n \talert('Anda harus mengisi SPD Rampung Dulu!');\n \twindow.location.href='\".base_url('C_PDF/print_biaya/').$arr_slug[0].\"';</script>\";\n\t\t} else {\n\t\t\t/* -----------------------------*/\n\t\t\t$pdf = new PDF_MC_Table('p','mm','A4');\n\t\t\t$pdf->AddPage();\n\t\t\t$pdf->SetFont('Arial','B',14);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->MultiCell(0,25,\"SURAT PERNYATAAN\",0,'C');\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(25,7,'',0,0);\n\t\t\t$pdf->MultiCell(0,6,\"Yang bertandatangan di bawah ini :\",0,'L');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'Nama',0,0);\n\t\t\t$pdf->Cell(10,7,':',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(20,7,$pegawai,0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(20,7,'NIP',0,0);\n\t\t\t$pdf->Cell(10,7,':',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(20,7,$nip,0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(20,7,'Jabatan',0,0);\n\t\t\t$pdf->Cell(10,7,':',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(20,7,$jabatan,0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(20,7,'Berdasarkan Surat Tugas Nomor: '. $nomor .' tanggal '.$var_tgl_surat.' dengan',0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'sesungguhnya bahwa :',0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'1. Boarding Pass '.$rute.' dengan jumlah tiket pesawat dibawah ini tidak',0,1);\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'melebihi dengan SBU tahun '.date('Y').', meliputi :',0,1);\n\t\t\t$pdf->Ln();\n\n\t\t\t//here is table\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(10,5,'No.',1,0,'C',0);\n\t\t\t$pdf->Cell(70,5,'Uraian',1,0,'C',0);\n\t\t\t$pdf->Cell(40,5,'Nilai SBU',1,0,'C',0);\n\t\t\t$pdf->Cell(40,5,'Pengeluaran Rill',1,0,'C',0);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$counterrr = 1;\n\t\t\t$pdf->SetWidths(array(10, 70, 40, 40));\n\t\t\tfor($i=0;$i<1;$i++) {\n\t\t\t\t$pdf->Row(array($counterrr,\"Tiket Pesawat \".$rute,\"Rp \".$sbu_tiket_ena, \"Rp \".number_format($r_tiket,2,',','.')));\n\t\t\t\t$counterrr++;\n\t\t\t}\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->SetFont('Arial','B',12);\n\t\t\t$pdf->Cell(10,5,'','LB',0,'L',0);\n\t\t\t$pdf->Cell(70,5,'Jumlah','LRB',0,'C',0);\n\t\t\t$pdf->Cell(7,5,'Rp','B',0,'L',0);\n\t\t\t$pdf->Cell(33,5,''.$sbu_tiket_ena,'RB',0,'L',0);\n\t\t\t$pdf->Cell(7,5,'Rp','B',0,'L',0);\n\t\t\t$pdf->Cell(33,5,''.$sbu_tiket_ena,'RB',0,'L',0);\n\t\t\t$pdf->Ln();\n\t\t\t//end of table\n\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'2. Boarding Pass '.$rute.' hilang dengan jumlah uang tersebut pada angka',0,1);\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'(1) sesuai dengan SBU dan benar - benar dikeluarkan sesuai dengan bukti rill kuitansi',0,1);\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'tiket Perjalanan Dinas dimaksud.',0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'3. Apabila dikemudian hari ditemukan suatu temuan terkait Boarding Pass tersebut,',0,1);\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'maka saya akan bertanggung jawab.',0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(20,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'Demikian pernyataan ini kami buat dengan sebenarnya, untuk dipergunakan',0,1);\n\t\t\t$pdf->Cell(15,7,'',0,0);\n\t\t\t$pdf->Cell(20,7,'sebagaimana mestinya.',0,1);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t//Footer Surat\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(10,6,\"\",0,0,'L');\n\t\t\t$pdf->Cell(25,6,'',0,0,'L');\n\t\t\t$pdf->Cell(15,6,'',0,0,'L');\n\t\t\t$pdf->Cell(5,6,'',0,0,'L');\n\t\t\t$pdf->Cell(25,6,'',0,0,'R');\n\t\t\t$pdf->Cell(20,6,'',0,0,'C');\n\t\t\t$pdf->MultiCell(60,6,'Jakarta, '.$var_tgl_skrg,0,'R');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(15,6,'',0,0,'L');\n\t\t\t$pdf->MultiCell(55,6,'Mengetahui/Menyetujui',0,'C');\n\t\t\t$pdf->Cell(85,6,'Pejabat Pembuat Komitmen',0, 0,'C');\n\t\t\t$pdf->MultiCell(65,6,'Pelaksana SPD',0,'R');\n\t\t\t$pdf->Cell(85,6,' Pusat Data Informasi dan Humas',0, 0,'C');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetFont('Arial','BU',12);\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->Cell(85,6,$nama_ppk,0, 0,'C');\n\t\t\t$pdf->MultiCell(105,6,$pegawai,0,'C');\n\t\t\t$pdf->SetFont('Arial','',12);\n\t\t\t$pdf->Cell(85,6,\"NIP. \".$nip_ppk,0, 0,'C');\n\t\t\t$pdf->MultiCell(105,6,'NIP. '.$nip,0,'C');\n\n\t\t\t//Cetak gans\n\t\t\t$filename = \"Hilang - \".$arr_slug[0].\" - \".$pegawai.$this->extension;\n\t\t\t$pdf->setTitle($filename);\n\t\t\t$pdf->Output(\"I\", $filename);\n\t\t}\n\n\n\t}", "function get_title_lectura($lectura)\n{\n $cadena = $lectura->libro_nombre . ' ' . $lectura->capitulo . ': ' . $lectura->inicio\n . '-' . $lectura->final;\n\n return $cadena;\n}", "public function getLibelle();", "public function getLongitud()\n {\n return $this->longitud;\n }", "protected function cargaIdUbicacion() {\n $dao = new PGDAO();\n $strSql = $this->COLECCIONMAPEOUBICA . $this->propiedad->getId_ubica();\n $arrayDatos = $this->leeDBArray($dao->execSql($strSql));\n $id = $arrayDatos[0]['zpubica'];\n return $id;\n }", "public function getSukunimi(){\n return $this->sukunimi;\n }", "public function getRuta() {\n return $this->ruta;\n }", "public function getSlug();", "public function getSlug();", "public function getSlug();", "public function getSlug();", "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "public function getNombPropietario(){\n $app = App::getSingleton();\n $conn = $app->conexionBd();\n $IDpropietario = self::getPropietario();\n $query = sprintf(\"SELECT nombre FROM usuarios WHERE id = %s\",$conn->real_escape_string($IDpropietario));\n $consulta = $conn->query($query);\n if($consulta->num_rows > 0){\n $fila = $consulta->fetch_assoc();\n $nombPropietario = $fila['nombre'];\n }else{\n $nombPropietario = \"Anonimo\";\n }\n return $nombPropietario;\n }", "public function getNupBrgTanah()\n {\n return $this->nup_brg_tanah;\n }", "public function getSlug()\n\t{\n\t\treturn self::buildSlug();\n\t}", "public function get_slug() {\n\t\treturn $this->slug;\n\t}", "function SALARIO_JUBILACION($_ARGS) {\r\n\t$sql = \"SELECT MontoJubilacion FROM mastempleado WHERE CodPersona = '\".$_ARGS['TRABAJADOR'].\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) {\r\n\t\t$field = mysql_fetch_array($query);\r\n\t\treturn $field['MontoJubilacion'];\r\n\t}\r\n\telse return 0;\r\n}", "public function getLembagaPengangkatId()\n {\n return $this->lembaga_pengangkat_id;\n }", "public function getIdRuang()\n {\n return $this->id_ruang;\n }", "public function getNomorUrut(){\n $next_nomor_urut = DB::table('wp_wr')->max('wp_wr_no_urut');\n // $next_nomor_urut = DB::table('wp_wr')->max('wp_wr_no_urut');\n $next_nomor_urut++;\n // $next_nomor_urut = DB::table('wp_wr')->select(DB::raw('COALESCE(MAX(wp_wr_no_urut::INT),0) + 1'))->get();\n\n // print_r($next_nomor_urut);\n if (!empty($next_nomor_urut) && $next_nomor_urut <= 9999999) {\n if (strlen($next_nomor_urut) < 7) {\n $selisih = 7 - strlen($next_nomor_urut);\n for ($i = 1; $i <= $selisih; $i++) {\n $next_nomor_urut = \"0\" . $next_nomor_urut;\n }\n }\n return $next_nomor_urut;\n } elseif ($next_nomor_urut > 9999999) {\n return \"salah\";\n }\n }", "public function get_slug() {\n\t\treturn self::SLUG;\n\t}", "public function id_alternatif()\n {\n $q = $this->db->query(\"select MAX(RIGHT(id_alternatif,5)) as id_max from tbl_alternatif\");\n $id = \"\";\n if ($q->num_rows() > 0) {\n foreach ($q->result() as $k) {\n $tmp = ((int) $k->id_max) + 1;\n $id = sprintf(\"%05s\", $tmp);\n }\n } else {\n $id = \"00001\";\n }\n return \"AL-\" . $id;\n }", "public function getSlug(): string\n {\n return $this->name_slug;\n }", "public function get_slug()\n {\n return $this->slug;\n }", "public static function getSlug(): string\n {\n return static::SLUG;\n }", "public function get_slug() {\n\n\t\t$plugin_data = $this->client->get_plugin_update_info();\n\t\t$slug = $plugin_data->slug;\n\n\t\treturn $slug;\n\n\t}", "function tep_get_manufacturer_url($manufacturer_id, $language_id) {\n $Qmanufacturer = Registry::get('Db')->get('manufacturers_info', 'manufacturers_url', ['manufacturers_id' => (int)$manufacturer_id, 'languages_id' => (int)$language_id]);\n\n return $Qmanufacturer->value('manufacturers_url');\n }", "public function get_slug(){ return $this->slug; }", "public static function slugProperty() : ? string {\n return null;\n }", "public function getZodekenAutoLabel()\n {\n return $this->libelle;\n }", "public function getZodekenAutoLabel()\n {\n return $this->libelle;\n }", "public function getSlug()\n {\n return $this->sSlug;\n }", "public function getIdgrupo_sanguineo(){\n return $this->idgrupo_sanguineo;\n }", "public function getJmlJambanLG()\n {\n return $this->jml_jamban_l_g;\n }", "public function getSlug()\n {\n /** @var \\Dimsav\\Translatable\\Translatable $this */\n /** @var \\Cviebrock\\EloquentSluggable\\SluggableInterface $translation */\n $translation = $this->getTranslation();\n\n if (empty($translation)) return null;\n\n return $translation->getSlug();\n }", "public function getLongitud()\n {\n return $this->Longitud;\n }", "public function getLargura() \r\n\t{\r\n\t\treturn $this->iLargura;\r\n\t}", "public function getDescripcionunidad()\n {\n return $this->descripcionunidad;\n }", "public function getIdUbicacion()\n {\n return $this->idUbicacion;\n }", "public function getIdUbicacion()\n {\n return $this->idUbicacion;\n }", "public function getLibelleMotCle()\n {\n return $this->libelleMotCle;\n }", "public function getTxUbicacionLlave()\n\t{\n\t\treturn $this->tx_ubicacion_llave;\n\t}", "public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }", "public function getUrlPerfiil()\n {\n return $this->urlPerfiil;\n }", "public function getStatutJuridique()\n { \n return StatutJuridique::getLibFromId($this->statutJuridique);\n }", "private function verLoMasBuscado ()\r\n {\r\n $tags = new DiccionarioTag();\r\n return $tags->getLoMasBuscado();\r\n }", "public function getNumerocarte()\n {\n return $this->numerocarte;\n }", "public function getSlug()\n\t{\n\t\treturn $this->slug;\n\t}", "public function getSlug()\n\t{\n\t\treturn $this->slug;\n\t}", "public function getSlug()\n\t{\n\t\treturn $this->slug;\n\t}", "public function getLogradouro() {\n\n return $this->sLogradouro;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}", "function get_aula ($id_aula){\n $sql=\"SELECT nombre \n FROM aula \n WHERE id_aula=$id_aula\";\n $aula=toba::db('gestion_aulas')->consultar($sql);\n \n return ($aula[0]['nombre']);\n }" ]
[ "0.623128", "0.55721927", "0.5562899", "0.5562899", "0.55535555", "0.5519875", "0.5313222", "0.5300338", "0.5299393", "0.52624273", "0.5251565", "0.5206117", "0.5206117", "0.5206117", "0.5192006", "0.5165309", "0.5114181", "0.5100139", "0.509185", "0.50883687", "0.5062936", "0.503883", "0.50314575", "0.50313395", "0.5021709", "0.50192255", "0.49946633", "0.49847355", "0.49741656", "0.4971214", "0.49705225", "0.49489266", "0.49452412", "0.49349108", "0.49216077", "0.49100417", "0.49073938", "0.49073017", "0.49046907", "0.4903013", "0.4900145", "0.4898608", "0.48969048", "0.48892418", "0.48887753", "0.48771682", "0.4865197", "0.4857693", "0.48559225", "0.48559225", "0.48559225", "0.48559225", "0.48525798", "0.4845656", "0.4843174", "0.48353216", "0.4821121", "0.48144752", "0.48140574", "0.48055875", "0.47970295", "0.47937492", "0.4792047", "0.47884542", "0.47869453", "0.47766984", "0.4776195", "0.47685176", "0.47655907", "0.47651178", "0.47645384", "0.47645384", "0.47524536", "0.4750543", "0.4750371", "0.47441733", "0.47404468", "0.47357053", "0.47327885", "0.47313282", "0.47313282", "0.47265002", "0.4720688", "0.4718947", "0.4716174", "0.47149867", "0.47145015", "0.4713142", "0.47112364", "0.47112364", "0.47112364", "0.470001", "0.4699225", "0.4699225", "0.4699225", "0.4699225", "0.4699225", "0.4699225", "0.46935984", "0.46935055" ]
0.74349856
0
Set the value of sello.
public function setSello($sello) { $this->sello = $sello; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSello()\n {\n return $this->sello;\n }", "public function setSelectedValue($value);", "public function setSelection(?FilterValue $selection): void\n {\n $this->selection = $selection;\n }", "public function setSelect($select);", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "function setSelected($selected) {\r\n if ($this->list) {\n if ($selected) {\n $this->list->selectOption($this);\n } else {\n $this->list->deselectOption($this);\n }\n }\n }", "public function setSelection() {\n\n if(is_numeric($this->selection_count) && $this->selection_count > 0)\n {\n\n $sp = \"api_Common_GetSelection\";\n $params = [\n \"UserID\" => $this->user->getId()\n ,\"PageID\" => $this->page_id\n ,\"SelectionID\" => $this->selection_id\n ];\n\n $this->selection = $this->mp->storedProcedure($sp, $params)->getTable(0);\n\n }\n\n return $this;\n }", "public function setSelectedItem($name,$value) {\n $this->addHiddenField('on0',$name);\n $this->addHiddenField('os0',$value);\n }", "public function set_value($value) {\n\n // Is the select multiple?\n $multiple = $this->field->hasAttribute('multiple');\n $singleselect = ($this->field->hasClass('singleselect') || $this->field->hasClass('urlselect'));\n\n // Here we select the option(s).\n if ($multiple) {\n // Split and decode values. Comma separated list of values allowed. With valuable commas escaped with backslash.\n $options = preg_replace('/\\\\\\,/', ',', preg_split('/(?<!\\\\\\),/', trim($value)));\n // This is a multiple select, let's pass the multiple flag after first option.\n $afterfirstoption = false;\n foreach ($options as $option) {\n $this->field->selectOption(trim($option), $afterfirstoption);\n $afterfirstoption = true;\n }\n } else {\n // By default, assume the passed value is a non-multiple option.\n $this->field->selectOption(trim($value));\n }\n\n // Wait for all the possible AJAX requests that have been\n // already triggered by selectOption() to be finished.\n if ($this->running_javascript()) {\n // Trigger change event and click on first skip link, as some OS/browsers (Phantomjs, Mac-FF),\n // don't close select option field and trigger event.\n if (!$singleselect) {\n $dialoguexpath = \"//div[contains(concat(' ', normalize-space(@class), ' '), ' moodle-dialogue-focused ')]\";\n if (!$node = $this->session->getDriver()->find($dialoguexpath)) {\n $script = \"Syn.trigger('change', {}, {{ELEMENT}})\";\n try {\n $driver = $this->session->getDriver();\n if ($driver instanceof \\Moodle\\BehatExtension\\Driver\\MoodleSelenium2Driver) {\n $driver->triggerSynScript($this->field->getXpath(), $script);\n }\n $driver->click('//body//div[@class=\"skiplinks\"]');\n } catch (\\Exception $e) {\n return;\n }\n } else {\n try {\n $this->session->getDriver()->click($dialoguexpath);\n } catch (\\Exception $e) {\n return;\n }\n }\n }\n $this->session->wait(behat_base::get_timeout() * 1000, behat_base::PAGE_READY_JS);\n }\n }", "public function testSetSelected()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\n }", "abstract public function parserSetOption($opt, $val);", "function select_option()\r\n{}", "public function set( $option, $value );", "function SetSessionDropDownValue($sv, $parm) {\n\t\t$_SESSION['sv_deals_details_' . $parm] = $sv;\n\t}", "public function testSetSelCliCollab() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelCliCollab(true);\n $this->assertEquals(true, $obj->getSelCliCollab());\n }", "public function setSelect($mirrorId = NULL) {\n\t\tif (is_null($mirrorId)) {\n\t\t\t$this->isRandomSelection = TRUE;\n\t\t} else {\n\t\t\tif (is_int($mirrorId) && $mirrorId >= 1 && $mirrorId <= count($this->mirrors)) {\n\t\t\t\t$this->currentMirror = $mirrorId - 1;\n\t\t\t}\n\t\t}\n\t}", "private function setPageSelect()\n {\n $GLOBALS['TSFE']->sys_page = Tx_Smarty_Service_Compatibility::makeInstance('t3lib_pageSelect');\n $GLOBALS['TSFE']->sys_page->versioningPreview = false;\n $GLOBALS['TSFE']->sys_page->versioningWorkspaceId = false;\n $GLOBALS['TSFE']->where_hid_del = ' AND pages.deleted=0';\n $GLOBALS['TSFE']->sys_page->init(false);\n $GLOBALS['TSFE']->sys_page->where_hid_del .= ' AND pages.doktype<200';\n $GLOBALS['TSFE']->sys_page->where_groupAccess\n = $GLOBALS['TSFE']->sys_page->getMultipleGroupsWhereClause('pages.fe_group', 'pages');\n }", "public function llamadaSeleccionada( $contacto ) {\n $this->setComando(\"LLAMADAS:SEL\",$contacto);\n }", "function SetSessionDropDownValue($sv, $parm) {\n\t\t$_SESSION['sv_dealers_reports_' . $parm] = $sv;\n\t}", "public function setup_selected() {\n\t}", "public function testSetSelFrnCollab() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelFrnCollab(true);\n $this->assertEquals(true, $obj->getSelFrnCollab());\n }", "public function set($s) {\r\n\t\t$this->current = $s;\r\n\t}", "public function testSetSelectionClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionClient(\"selectionClient\");\n $this->assertEquals(\"selectionClient\", $obj->getSelectionClient());\n }", "function setLeja($_leja){\r\n $this->leja=$_leja;\r\n }", "function mSELECT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$SELECT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:116:3: ( 'select' ) \n // Tokenizer11.g:117:3: 'select' \n {\n $this->matchString(\"select\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function selOperator($selboxid, $opval) {\n\tglobal $trs;\n\techo \"<SELECT ID=$selboxid CLASS=selope>\\n\";\n\techo \"<OPTION VALUE='eq'\";\n\tif ($opval == \"eq\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \"> = </OPTION>\\n\";\n\techo \"<OPTION VALUE='gt'\";\n\tif ($opval == \"gt\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \"> &gt; </OPTION>\\n\";\n\techo \"<OPTION VALUE='lt'\";\n\tif ($opval == \"lt\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \"> &lt; </OPTION>\\n\";\n\techo \"<OPTION VALUE='dx'\";\n\tif ($opval == \"dx\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">\" . $trs[\"op_dx\"] . \"</OPTION>\\n\";\n\techo \"</SELECT>\\n\";\n\t\n\techo \"<SCRIPT>\\$(\\\"#$selboxid\\\").selectmenu({width : 'auto'});</SCRIPT>\\n\";\n}", "protected function getSelectedValue() {}", "public function setVal($val){\n\t\t\t$this->_val = $val;\n\t\t}", "public function setListar($value)\n\t{\n\t\t$this->listar = $value;\n\t}", "public function __set($name, $value)\n {\n $this->m_ddl->$name = $value;\n }", "public function selected()\n {\n parent::selected();\n $this->enclosed = null;\n $this->escaped = false;\n $this->collected = '';\n }", "public function setLlx($llx) {}", "private function setSelectedOption($selectedOption) : void\n {\n $this->selectedOption = $selectedOption ? array_search($selectedOption, $this->getAllOptions()) : null;\n }", "public function setMensagemLido($lido) \n\t{\n\t\t$query = \"UPDATE usuario SET lido = \".$lido.\" WHERE id_mensagem = :id_mensagem\";\n\t\t$stmt = $this->db->prepare($query);\n\t\t$stmt->bindValue(':id_mensagem', $_this->__get('id_mensagem'));\n\t\t$stmt->execute();\n\t}", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "function select($inparms){\n $index = $inparms['element'];\n $type=$this->_query->getType($index);\n if ($type == 'n')\n $this->selectedNode = $index;\n elseif ($type == 'o')\n $this->selectedOperator = $index;\n\n return $this->output(NULL);\n }", "public function setLly($lly) {}", "public function offsetSet($key, $value): void\n {\n $this->selection->offsetSet($key, $value);\n }", "function valor($valor) {\n\n $this->_valorUpdate = $valor;\n\n if (in_array($this->_tipo, $this->_controlesMultiples)) {\n\n foreach ($this->_selectoresOpcion as $key => $selector) {\n if ($selector->attr('value') == $valor) {\n $selector->attr('checked', 'checked');\n }\n }\n\n } else\n if ($this->type == 'select') {\n foreach ($this->_selectoresOpcion as $key => $selector) {\n if ($selector->attr('value') == $valor) {\n $selector->attr('selected', 'selected');\n }\n }\n\n } elseif ($this->type == \"textarea\") {\n $this->innerHTML($valor);\n } else {\n $this->attr('value', $valor);\n }\n\n }", "function setLocalOption($name,$value)\n\t{\n\t\t$this->_options[$name] = $value;\n\t}", "function qselect(){\r\n\t\t\r\n\t\r\n\t}", "public function setId($valor){\n\t\t\t$this->id = $valor;\n\t\t}", "public function Do_select_Example1(){\n\n\t}", "public static function setSelected($menu_name, $selected)\n {\n self::$selected[$menu_name] = $selected;\n }", "function LoadSelectionFromSession($parm) {\n\t\tglobal $deals_details;\n\t\t$fld =& $deals_details->fields($parm);\n\t\t$fld->SelectionList = @$_SESSION[\"sel_deals_details_$parm\"];\n\t\t$fld->RangeFrom = @$_SESSION[\"rf_deals_details_$parm\"];\n\t\t$fld->RangeTo = @$_SESSION[\"rt_deals_details_$parm\"];\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setValueId($path_uri) {\n $objSubmenu = new Submenu($this->dbAdapter);\n $submenu = $objSubmenu->findSubmenuByUrl($path_uri);\n if ($submenu) {\n $this->setId($submenu->id);\n } else {\n $session = new Container('seguridad');\n $this->setId($session->submenu_id);\n }\n }", "private function load_selected()\r\n {\r\n $this->arSelected[\"ctx\"] = $this->get_by_id($this->idSelected);\r\n if($this->arSelected[\"ctx\"])\r\n $this->arSelected[\"ctx\"] = $this->arSelected[\"ctx\"][array_keys($this->arSelected[\"ctx\"])[0]];\r\n\r\n $this->arSelected[\"noconfig\"] = $this->get_noconfig_by(\"id\",$this->idSelected);\r\n //pr($this->arSelected,\"arSelected\");\r\n }", "function yaz_set_option($id, $name, $value)\n{\n}", "function seleccionInicio($idP){\r\n }", "function montar_select_sexo(&$select_sexos, $objSexoPaciente, $objSexoPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_sexos = $objSexoPacienteRN->listar($objSexoPaciente);\n\n $select_sexos = '<select onfocus=\"this.selectedIndex=0;\" onchange=\"val_sexo()\" '\n . 'class=\"form-control selectpicker\" id=\"select-country idSexo\" data-live-search=\"true\" '\n . 'name=\"sel_sexo\">'\n . '<option data-tokens=\"\"></option>';\n\n foreach ($arr_sexos as $sexo) {\n $selected = '';\n if ($sexo->getIdSexo() == $objPaciente->getIdSexo_fk()) {\n $selected = 'selected';\n }\n $select_sexos .= '<option ' . $selected . ' value=\"' . $sexo->getIdSexo() . '\" data-tokens=\"' . $sexo->getSexo() . '\">' . $sexo->getSexo() . '</option>';\n }\n $select_sexos .= '</select>';\n}", "abstract function selectHook();", "public function setOption($option, $value);", "function setValue ($value) {\n\t\t$this->_value = $value;\n\t}", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function setSelected(bool|string $val = null, ?int $type = null): void\n {\n $val = $val ?? false;\n $deselect = $val === false;\n if ($deselect) {\n $this->selectedOptions = [];\n }\n\n $type = $type ?? self::SELECTED_BY_VALUE;\n foreach ($this->arrOption as $option) {\n if ($deselect) {\n // deselect all\n $option->selected = false;\n } else {\n $testVal = $type === self::SELECTED_BY_TEXT ? $option->text : $option->value;\n if ($val === $testVal) {\n $option->selected = true;\n $this->selectedOptions[] = $option;\n }\n }\n }\n }", "public function selected()\n {\n parent::selected();\n $this->name = '';\n }", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setValor($valor)\n {\n $this->valor = $valor;\n }", "public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }", "public function formSelect($sId=\"\",$sNome=\"\",$sValore=\"\",$sLunghezza=0,$sTag=\"\", $jolly=\"\"){\r\n\r\n $sValore=split(\";\",htmlentities($sValore));\r\n\t\t\r\n\t\tif($sTag==\"\"){\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\">\";\r\n\t\t}else{\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\"\" . $sTag . \">\";\r\n\t\t}\r\n\r\n\t\tforeach($sValore as $value){\r\n\t\t\t$sRecord=split(\",\",$value);\r\n\t\t\tif(substr($sRecord[1],0,1)==$jolly){\r\n\t\t\t\techo \"<option style=\\\"font-weight:bold;\\\" value=\\\"\" . $sRecord[0] . \"\\\">Gruppo: \" . substr($sRecord[1],1) . \"</option>\";\r\n\t\t\t}else{\r\n\t\t\t\techo \"<option value=\\\"\" . $sRecord[0] . \"\\\">\" . $sRecord[1] . \"</option>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\techo \"</select>\";\r\n\t\t\r\n\t}", "public function SelectWithMarkByIdPedido(core\\AModel $model)\r\n {\r\n $this->_params = array(\r\n ':idPedido' => (int)$model->_idPedido,\r\n );\r\n\r\n return Database::getInstance()->DoQuery(\"sp_selPedidoPosicionesYByIdPedido\", $this->_params);\r\n }", "public function setSelected($xSelected = null)\n {\n if (is_null($xSelected))\n {\n $this->aSelected = [];\n }\n elseif (is_array($xSelected))\n {\n $this->aSelected = $xSelected;\n }\n else\n {\n $this->aSelected = [(string)$xSelected];\n }\n }", "public function setOnselect($onselect) {\n $onselect = $this->escapaAspasSimples($onselect);\n $this->onselect = $onselect;\n }", "public function testSetSelectionArticle() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionArticle(\"selectionArticle\");\n $this->assertEquals(\"selectionArticle\", $obj->getSelectionArticle());\n }", "function setValue($value) {\n $this->value = $value;\n }", "public function select_option($id, $value)\n\t{\n\t\t$this->connection()->post(\"element/$id/selected\", array('value' => $value));\n\t}", "public function testSetSelAvLstPersoCopieColonne() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelAvLstPersoCopieColonne(true);\n $this->assertEquals(true, $obj->getSelAvLstPersoCopieColonne());\n }", "function set_luaspersegipanjang($p, $l){\n \t\t$this->panjang = $p;\n \t\t$this->lebar = $l;\n \t}", "function LoadSelectionFromSession($parm) {\n\t\tglobal $dealers_reports;\n\t\t$fld =& $dealers_reports->fields($parm);\n\t\t$fld->SelectionList = @$_SESSION[\"sel_dealers_reports_$parm\"];\n\t\t$fld->RangeFrom = @$_SESSION[\"rf_dealers_reports_$parm\"];\n\t\t$fld->RangeTo = @$_SESSION[\"rt_dealers_reports_$parm\"];\n\t}", "public function setValue(array $arr){\r\n $this->_valores = $arr;\r\n }", "function montar_select_perfilPaciente(&$select_perfis, $objPerfilPaciente, $objPerfilPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_perfis = $objPerfilPacienteRN->listar($objPerfilPaciente);\n\n $select_perfis = '<select class=\"form-control selectpicker\" onchange=\"val()\" id=\"select-country idSel_perfil\"'\n . ' data-live-search=\"true\" name=\"sel_perfil\">'\n . '<option data-tokens=\"\" ></option>';\n\n foreach ($arr_perfis as $perfil) {\n $selected = '';\n if ($perfil->getIdPerfilPaciente() == $objPaciente->getIdPerfilPaciente_fk()) {\n $selected = 'selected';\n }\n\n $select_perfis .= '<option ' . $selected . ' value=\"' . $perfil->getIdPerfilPaciente() . '\" data-tokens=\"' . $perfil->getPerfil() . '\">' . $perfil->getPerfil() . '</option>';\n }\n $select_perfis .= '</select>';\n}", "protected function doSet($value)\n {\n }", "function listadoSelect();", "function setSublinhado($lSublinhado = true) {\n\n if ($lSublinhado) {\n $sComando = chr(27) . chr(45) . \"1\";\n } else {\n $sComando = chr(27) . chr(45) . \"0\";\n }\n return $sComando;\n \n }", "public function set(string $option, $value): self;", "function setAlturaDuplaLinha($lAlturaDupla) {\n\n if ($lAlturaDupla) {\n $sComando = chr(100) . \"1\";\n } else {\n $sComando = chr(100) . \"0\";\n }\n parent::addComando($sComando);\n }", "public function setSelect($selectArray)\n {\n $this->select = $selectArray;\n }", "public function setSelect2Value($originalId, $value, $multiSelect = false)\n {\n $select2selector = '#s2id_' . $originalId;\n\n // Wait for select2 to appear\n $select2link = $this->tc->wd->wait()->until(\n WebDriverExpectedCondition::presenceOfElementLocated(\n WebDriverBy::cssSelector($select2selector . ' ' . ($multiSelect ? 'input' : 'a'))\n )\n );\n\n // Click on element to open dropdown - to copy users behavior\n $select2link->click();\n\n $this->log('Sending keys to select2: %s', $value);\n\n // Insert searched term into s2 generated input\n $this->tc->wd\n ->findElement(WebDriverBy::cssSelector($multiSelect ? $select2selector . ' input' : '#select2-drop input'))\n ->sendKeys($value);\n\n // Wait until result are rendered (or maybe loaded with ajax)\n $firstResult = $this->tc->wd->wait()->until(\n WebDriverExpectedCondition::presenceOfElementLocated(\n WebDriverBy::cssSelector('.select2-drop .select2-result.select2-highlighted')\n )\n );\n\n $this->log('Dropdown detected, selecting the first result: %s', $firstResult->getText());\n\n // Select first item in results\n $firstResult->click();\n }", "public function setSelected($value){\n\t\t$previous = $this->getSelected();\n\t\tif(count($previous) == 1){\n\t\t\t$previous = $previous[0];\n\t\t}\n\n\t\t$this->selected = array();\n\t\tif(is_string($value)){\n\t\t\t$this->selected[] = $value;\n\t\t}elseif(is_array($selected)){\n\t\t\t$this->selected = $value;\n\t\t}\n\t\t\n\t\treturn $previous;\n\t}", "public function getSelected() {}", "public function getSelected() {}", "function setLabel($value){\r\n\t\t$this->label = $value;\r\n\t}", "public function setConvertido($lConvertido) {\n $this->lConvertido = $lConvertido;\n }", "public function select()\n {\n\n }", "public function setValue($value, $load = false);", "function psts_levels_select($name, $selected) {\r\n\tglobal $psts;\r\n\t$psts->levels_select($name, $selected);\r\n}", "public function setValue($value){\n $this->_value = $value;\n }", "public function setLine($line) {\n $this->line = $line;\n }", "function testSelectedOption(){\n\t\t#mdx:SelectedOption\n\t\t$select = new HtSelect('id_category');\n\t\t$select->options([1=>'Category1',2=>'Category2',3=>'Category3']);\n\t\t$select->context(['id_category'=>2]);\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/option.*?2.*selected/\");\n\t\techo $select;\n\t}", "function evt__5__salida()\n\t{\n\t\tunset($this->pant_sel_temp);\n\t\t$this->get_entidad()->tabla('pantallas')->resetear_cursor();\n\t}", "function setAlinhamento($sAlinhamento = 'L') {\n\n if (strtoupper($sAlinhamento) == \"L\") {\n $sComando = chr(27) . chr(97) . \"0\";\n } else {\n $sComando = chr(27) . chr(97) . \"1\";\n }\n parent::addComando($sComando);\n }", "public function select($value = null)\n {\n $this->select = $value;\n\n return $this;\n }", "public function setOption($name, $value)\n {\n curl_setopt($this->_handle, $name, $value);\n }", "public function setValue($v){\n $this->value = $v;\n }", "function listcolores($value, $opc){\r\n if($opc == 1){\r\n $funcion = 'showResult(this.value, 5, 3)';\r\n $funcion2 = '';\r\n $disabled = '';\r\n \r\n }else if($opc == 2){\r\n $funcion = '';\r\n $funcion2 = 'selobjeto(this,'.$value.')';\r\n $disabled = ''; \r\n }else if($opc == 3){\r\n $funcion = 'showResult(this.value, 5, 4)';\r\n $funcion2 = '';\r\n $disabled = ''; \r\n }else if($opc == 4){\r\n $funcion = 'showResult(this.value, 5, 6)';\r\n $funcion2 = '';\r\n $disabled = ''; \r\n }else\r\n $disabled = 'disabled';\r\n ?>\r\n \r\n<select class=\"select-css\" id=\"<? echo \"COLOR_ID\".$value;?>\" onclick=\"<? echo $funcion2;?>\" style=\"font-size: medium; font-weight: bold;\" title=\"COLORES\" \r\n onchange=\"<? echo $funcion;?>\" class=\"form-control col-lg-12 col-12 col-sm-12 sinpadding \" <? echo $disabled;?> >\r\n <? objcolor(1);?>\r\n </select>\r\n<?}" ]
[ "0.63304245", "0.5807434", "0.55175644", "0.5515794", "0.5488576", "0.53979456", "0.5384474", "0.538411", "0.5373435", "0.5353351", "0.534887", "0.52631354", "0.52240914", "0.5222219", "0.5209941", "0.51794404", "0.51688194", "0.5096457", "0.50768954", "0.50678724", "0.5059663", "0.5057363", "0.50408405", "0.50299484", "0.4982768", "0.4963692", "0.49606472", "0.496061", "0.4946161", "0.49316084", "0.4915231", "0.48750025", "0.48670298", "0.48558274", "0.48353902", "0.48275194", "0.48118326", "0.4810537", "0.48067793", "0.48049605", "0.48035166", "0.4797557", "0.47970307", "0.479009", "0.47839794", "0.478178", "0.47744676", "0.47715703", "0.47684035", "0.47490928", "0.47480014", "0.47445658", "0.47408253", "0.4725324", "0.4724738", "0.47154206", "0.4711958", "0.47094625", "0.47090176", "0.47090176", "0.47090176", "0.47090176", "0.4703186", "0.4692522", "0.46910968", "0.4677235", "0.46734062", "0.46681836", "0.46578923", "0.46572474", "0.46544603", "0.4651178", "0.46494833", "0.4633335", "0.46291813", "0.46281394", "0.461908", "0.46140102", "0.46092847", "0.4598497", "0.4597868", "0.45975417", "0.4594591", "0.45944443", "0.45918038", "0.45918038", "0.45913726", "0.45889843", "0.4584772", "0.45775142", "0.45743194", "0.45673117", "0.45620745", "0.4559046", "0.4548773", "0.45470202", "0.4545101", "0.45444077", "0.4542414", "0.45423743" ]
0.65138483
0
Get the value of sello.
public function getSello() { return $this->sello; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelected() {}", "public function getSelected() {}", "protected function getSelectedValue() {}", "public function get_value() {\n return $this->get_selected_options();\n }", "function get_selected()\n {\n }", "function get_row_sub_value($selector)\n{\n}", "public function getSelected()\n {\n return $this->selected;\n }", "public function getSelected()\n {\n return $this->selected;\n }", "public function getSelectionId()\n {\n return $this->selection_id;\n }", "function getPara($para,$value)\n{\n\t\t$str9=\"select \".$value.\" from options where name='\".$para.\"'\";\n\t\t$result9=mysql_query($str9) or die(mysql_error());\n\t\t$row9=mysql_fetch_array($result9);\n\t\t$t=$row9[$value]; \n\t\tmysql_free_result($result9);\n\t\treturn $t;\n}", "private function getSelectedValueFromSelect(Crawler $select)\n {\n return $select->element()->selectedValues();\n }", "function getSelectedValue ( $cd, $str )\n {\n $sql = \"SELECT \".$str.\" FROM Qst WHERE cd = \".$cd.\";\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute();\n $row = $stm->fetch(PDO::FETCH_ASSOC);\n return $row[$str];\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function value()\n {\n return $this->app->input->get('option');\n }", "public function getSelector() {\n return $this->response[\"error\"][\"args\"][1];\n }", "function select() {\n\t\t$raw = shmop_read($this -> id, 0, $this -> size);\n\t\tif ($this -> raw === false) {\n\t\t\t$this -> val = unserialize($raw);\n\n\t\t} else {\n\t\t\t$i = strpos($raw, \"\\0\");\n\t\t\tif ($i === false) {\n\t\t\t\t$this -> val = $raw;\n\t\t\t}\n\t\t\t$this -> val = substr($raw, 0, $i);\n\n\t\t}\n\n\t\treturn $this -> val;\n\n\t}", "public function getSelectedElement() {\n $value = null;\n\n if(($selectedIndex = $this->getSelectedIndex()) >= 0) {\n $value = $this->model->getElementAt($selectedIndex);\n }\n\n return $value;\n }", "public function getSelectedIndex() {\n return wb_get_selected($this->controlID);\n }", "function getValNode(){\n\t\t$clase=$this->nmclass;\n\t\t$node=$this->anode;\n\t\t$valor=$this->nodos[$clase][$node];\n\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}", "public function getSelectValue(Classes\\getSelectValueRequest $arg) {\n\t\treturn $this->makeSoapCall(\"getSelectValue\", $arg);\n\t}", "static function select_value($sql, $params = array()) {\n $sth = static::execute($sql, $params);\n\n $result = $sth->fetch();\n\n if ($result === false) {\n return null;\n } else {\n return array_shift($result);\n }\n }", "public function getSelect();", "public function getSelect();", "public function getSelected(){\n\t\tif(count($this->selected) == 0){\n\t\t\treturn false;\n\t\t}elseif(count($this->selected) == 1){\n\t\t\treturn $this->selected[0];\n\t\t}else{\n\t\t\t$options = array();\n\t\t\tforeach($this->selected as $key){\n\t\t\t\t$options[] = $this->options[$key];\n\t\t\t}\n\t\t\treturn $options;\n\t\t}\n\t}", "public function getSelection(): ?FilterValue\n {\n return $this->selection;\n }", "public function getSelection()\n {\n if( count($this->selection) === 0 ) {\n $this->setSelection();\n }\n return $this->selection;\n\n }", "public function getSelect() {\r\n return $this->_select;\r\n }", "function getValue() {\n\t\treturn $this->sValue;\n\t}", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "public function getQSelo()\n {\n return $this->qSelo;\n }", "protected function getSelection() : string {\n\n\t\t\t$selection = [];\n\n\t\t\tforeach ($this->definition->getParamsSecure() as $field) $selection[] = ('ent.' . $field);\n\n\t\t\t# ------------------------\n\n\t\t\treturn implode(', ', $selection);\n\t\t}", "function selOperator($selboxid, $opval) {\n\tglobal $trs;\n\techo \"<SELECT ID=$selboxid CLASS=selope>\\n\";\n\techo \"<OPTION VALUE='eq'\";\n\tif ($opval == \"eq\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \"> = </OPTION>\\n\";\n\techo \"<OPTION VALUE='gt'\";\n\tif ($opval == \"gt\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \"> &gt; </OPTION>\\n\";\n\techo \"<OPTION VALUE='lt'\";\n\tif ($opval == \"lt\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \"> &lt; </OPTION>\\n\";\n\techo \"<OPTION VALUE='dx'\";\n\tif ($opval == \"dx\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">\" . $trs[\"op_dx\"] . \"</OPTION>\\n\";\n\techo \"</SELECT>\\n\";\n\t\n\techo \"<SCRIPT>\\$(\\\"#$selboxid\\\").selectmenu({width : 'auto'});</SCRIPT>\\n\";\n}", "public function getChoix()\n {\n return $this->valeur;\n }", "public function val() {\n\treturn $this->attr(\"value\");\n }", "public function getValue(){\n \treturn $this->value;\n }", "function getValue() { return $this->readText(); }", "public function gluu_db_query_select($gluu_action){\n return self::$gluuDB->query(\"SELECT `gluu_value` FROM `gluu_table` WHERE `gluu_action` LIKE '\".$gluu_action.\"'\")->fetchAll(PDO::FETCH_COLUMN, 0)[0];\n }", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "public function getSelect() {\n return $this->select;\n }", "public function getSelect()\n {\n return $this->select;\n }", "public function getSelect()\n {\n return $this->select;\n }", "function valorCampo($nombreCampo){\n\t if($this->val!=\"\")\n\t\tforeach($this->val as $indice => $valor){\n\t\t\tif($nombreCampo==$indice){\n\t\t\t\treturn $valor;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "function get_value_edit()\n\t{\n\t\treturn $this->value;\n\t}", "public function commandValue()\n {\n return $this->parseCommand()[1];\n }", "function getValue() { return $this->readText(); }", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "public function select_umenu(){\n// ORDER BY pathid ASC\";\n $sql = \"SELECT info FROM \".$this ->db ->dbprefix('wx_umenu');\n $data = $this ->db ->query($sql)->result_array();\n return $data[0]['info'];\n }", "function GetDropDownValue(&$sv, $parm) {\n\t\tif (ewrpt_IsHttpPost())\n\t\t\treturn FALSE; // Skip post back\n\t\tif (isset($_GET[\"sv_$parm\"])) {\n\t\t\t$sv = ewrpt_StripSlashes($_GET[\"sv_$parm\"]);\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "function GetDropDownValue(&$sv, $parm) {\n\t\tif (ewrpt_IsHttpPost())\n\t\t\treturn FALSE; // Skip post back\n\t\tif (isset($_GET[\"sv_$parm\"])) {\n\t\t\t$sv = ewrpt_StripSlashes($_GET[\"sv_$parm\"]);\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "function get_value() {return $this->get();}", "public static function getValue()\n {\n $args = func_get_args();\n if (count($args) == 1) {\n return isset(self::$SEO[$args[0]]) ? self::$SEO[$args[0]] : null;\n } else if (count($args) == 2) {\n return isset(self::$SEO[$args[0]][$args[1]]) ? self::$SEO[$args[0]][$args[1]] : null;\n } else {\n trigger_error(\"SEOError:getValue: Número de argumentos inválidos.\", E_USER_NOTICE);\n }\n }", "public function getValue()\n {\n\treturn $this->value;\n }", "public function getValue(){\n return $this->_value;\n }", "public function getValue()\n\t{\n\t\treturn $this->_value;\n\t}", "public function getValue()\n\t{\n\t\treturn $this->_value;\n\t}", "protected function getLanguageSelection() {}", "private function selectUserToken()\n {\n return $this->selectParsedData( ['id_komisu'] );\n }", "public function getValue() {\n\t\treturn $this -> value;\n\t}", "public function select() {\n\t\t// PHP doesn't allow direct use as function argument\n\t\t$_args=func_get_args();\n\t\treturn call_user_func_array(array($this,'lookup'),$_args);\n\t}", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "public function getValue()\r\n\t{\r\n\t\treturn $this->value;\r\n\t}", "public function getValue()\n {\n\t\treturn $this->value;\n\t}", "protected function getValue() {\r\n return $this->_value;\r\n }", "function getValue()\n {\n return $this->getAttribute(\"value\");\n }", "function getFieldMainLanguageID($val = null){\n\t\tinclude('axcelerate_link_array_list.php');\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_MainLanguageID');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_MainLanguageID');\n\t\t$tooltip = setToolTipNotification(\"MainLanguageID\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('mlanguage') === 'mlanguage' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><select name='MainLanguageID' id='MainLanguageID' class='srms-field \".(get_axl_req_fields('mlanguage') === 'mlanguage' ? 'input-select-required' : '').\"'><option value=''> -- Select Language -- </option>\";\n\t\t\tasort($sacc_languages);\n\t\t\tforeach ($sacc_languages as $key => $value) {\n\t\t\t\tif(isLanguageDisabled($key)){\n\t\t\t\t\t$form_ret .= \"<option value='\".$key.\"' \".($val == $key ? 'selected' : '').\">\".$value.\"</option>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t$form_ret .= \"</select></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public static function getSelect()\n {\n return Hash::combine(self::getConstants(), '{s}.value', '{s}.name');\n }", "public function get_value()\n\t{\n\t\treturn $this->value;\n\t}", "public function setSello($sello)\n {\n $this->sello = $sello;\n\n return $this;\n }", "public function selector_rol(){\n $sql = \"SELECT * FROM tblrol WHERE tblestado_general_est_gen_id=1\";\n $result = mysqli_query($this->conection,$sql);\n return $result;\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "static public function singleSelect($sql){\n\t\t$db = DbBase::rawConnect();\n\t\tif(substr(ltrim($sql), 0, 7)!='SELECT') {\n\t\t\t$sql = 'SELECT '.$sql;\n\t\t}\n\t\t$db->setFetchMode(DbBase::DB_NUM);\n\t\t$num = $db->fetchOne($sql);\n\t\t$db->setFetchMode(DbBase::DB_ASSOC);\n\t\treturn $num[0];\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n\t\treturn $this->value;\n\t}" ]
[ "0.6334542", "0.6334542", "0.63337886", "0.631297", "0.61618686", "0.6120975", "0.59983075", "0.59983075", "0.59582776", "0.57944804", "0.5782223", "0.5778463", "0.57723373", "0.57586753", "0.57356316", "0.5723842", "0.5657574", "0.5653187", "0.5647564", "0.5634387", "0.5616691", "0.5608677", "0.5608677", "0.5582794", "0.55611104", "0.5529978", "0.54929453", "0.5483302", "0.5480231", "0.5463788", "0.5454217", "0.5433945", "0.5432706", "0.5432454", "0.54118675", "0.5370736", "0.53686625", "0.5366523", "0.5366523", "0.53599095", "0.53518045", "0.53518045", "0.5346117", "0.53431123", "0.53369975", "0.5329546", "0.5326873", "0.531698", "0.5313707", "0.5313707", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.52951163", "0.5288249", "0.5288249", "0.5284279", "0.5277976", "0.5271743", "0.52685285", "0.52679366", "0.52499485", "0.52499485", "0.5238775", "0.5233021", "0.5230631", "0.522078", "0.5208559", "0.5206634", "0.52026963", "0.5201491", "0.5200287", "0.5197556", "0.51929307", "0.5182598", "0.5180375", "0.5170262", "0.5170174", "0.5170174", "0.5164119", "0.51568264", "0.51568264", "0.51568264" ]
0.79327035
0
Set the value of nemotecnia.
public function setNemotecnia($nemotecnia) { $this->nemotecnia = $nemotecnia; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setNValue($nVal) {}", "function setValorNota($nValorNota) {\n \n $this->nValorNota = $nValorNota;\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function setNodeValue($value) {\n $this->nodeValue = $value;\n }", "public function setEstaNoti($value) {\n\t\t$this->esta_noti = $value;\n\t\treturn true;\n\t}", "public function setNuTelefone($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->nu_telefone !== $v) {\n\t\t\t$this->nu_telefone = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::NU_TELEFONE;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setValue($value) {\n $this->node->setAttribute('value', iconv(xp::ENCODING, 'utf-8', $value));\n }", "public function testSetNumero() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "public function testSetNumeroNoeudLocal() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroNoeudLocal(10);\n $this->assertEquals(10, $obj->getNumeroNoeudLocal());\n }", "public function setNe($x) { $this->ne = $x; }", "public function setCodiNoti($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_noti = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function setNotaAttribute($value)\n {\n $this->attributes['nota'] = (trim($value) !== '' ? $value : ' ');\n }", "public function setCodiEmis($value) {\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_emis = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function setNuCelular($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->nu_celular !== $v) {\n\t\t\t$this->nu_celular = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::NU_CELULAR;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function testSetNumeroAvenant() {\n\n $obj = new PointBonTrav();\n\n $obj->setNumeroAvenant(10);\n $this->assertEquals(10, $obj->getNumeroAvenant());\n }", "public function testSetNumero() {\n\n $obj = new Employes();\n\n $obj->setNumero(\"numero\");\n $this->assertEquals(\"numero\", $obj->getNumero());\n }", "public function setmnem($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->mnem !== $v) {\n $this->mnem = $v;\n $this->modifiedColumns[] = ActionTypePeer::MNEM;\n }\n\n\n return $this;\n }", "function setNota_num($inota_num = '')\n {\n // adminto ',' como separador decimal.\n $inota_num = str_replace(\",\", \".\", $inota_num);\n $this->inota_num = $inota_num;\n }", "public function setNota($nota){\n $this->nota = $nota;\n }", "public function __set($nome, $valor) {\n $this->nome = $valor;\n }", "public function set($n,$v)\n\t{\n\t\tif (isset($this->prefs[$n])) {\n\t\t\t$this->prefs[$n]['value'] = $v;\n\t\t}\n\t}", "public function set($value = null);", "function __construct($value) {\n if ($value != self::ADDR_NOMEN_FULL && $value != self::ADDR_NOMEN_PARTIAL ) {\n $this->_value = self::ADDR_NOMEN_NO;\n } else {\n $this->_value = $value;\n }\n }", "public function setValor($valor)\n {\n $this->valor = $valor;\n }", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "public function testSetNumeroFiche() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setNumeroFiche(10);\n $this->assertEquals(10, $obj->getNumeroFiche());\n }", "function setValue($value) {\n $this->value = $value;\n }", "function setNapetiKlima(int $napetiKlima):int {\n $this->napetiKlima = $napetiKlima;\n }", "public function setNota($nota){\n\t\t$this->nota = $nota;\n\t}", "public function setNumeroIP( $numero ) {\n $this->numero_ip=$numero;\n $this->enviarNumero();\n $this->activarPantalla();\n //activar y enviar numero\n }", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "public function setCodiCasa($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_casa = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setNome(string $nome)\n {\n $this->nome = $nome;\n }", "public function setValue($v){\n $this->value = $v;\n }", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setAno($ano)\n {\n $this->ano = $ano;\n }", "public function testSetCodeNaf() {\n\n $obj = new Employes();\n\n $obj->setCodeNaf(10);\n $this->assertEquals(10, $obj->getCodeNaf());\n }", "function setValSubNode($nombre,$valor){\n\t\t$clase=$this->nmclass;\n\t\t$this->nodos[$clase][$nombre]=$valor;\n\t\t$this->anode=$nombre;\n\t\treturn 0;\n\t}", "public function setnx($key, $value)\n {\n return (int) $this->command('setnx', [$key, $value]);\n }", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function testSetNiveau() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveau(10);\n $this->assertEquals(10, $obj->getNiveau());\n }", "public function setNom($value)\n\t{\n\t\t$this -> _nom = $value;\n\t}", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value){\n $this->_value = $value;\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "protected function setMesto_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->mesto_id = $value; }\n\t}", "public function set(int $value): void {}", "public function setNid($nid) {\n $this->nid = $nid;\n }", "public function setFechaNacimientoAttribute($value)\n {\n if(!empty($value))\n {\n $this->attributes['fecha_nacimiento'] = date_format(date_create(substr($value, 3, 2) . '/' . substr($value, 0, 2) . '/' . substr($value, 6, 4)), 'Y-m-d');\n }\n }", "public function setNonce($nonce) {}", "public function setTerminalId($value) {\n if(strlen($value) > 8 ){\n throw new ValueException(\"Value \".$value.\" is higher than 8\");\n }\n $this->TerminalID = $value;\n }", "function setValue ($value) {\n\t\t$this->_value = $value;\n\t}", "protected function setVida() {\n $this->vida = 200;\n }", "public function set()\n {\n if ( ! $this->value ) {\n $this->generate();\n }\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function setValue($value)\n {\n $value = arr::get($value, 'value', NULL);\n\n if ($value !== NULL)\n {\n //pokud prisla prazdna hodnota, tak do modelu ukladam NULL\n if (empty($value))\n {\n $value = NULL;\n }\n\n parent::setValue($value);\n }\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setBobotNilai($bobot_nilai);", "public function set_nome($nome) : void\n {\n try {\n $this->obj_contato_anunciante->set_nome(Validador::Contato_Anunciante()::validar_nome($nome));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['nome'] = \"erro\";\n }\n }", "public function setValue($value) {\n $this->value = $value->value;\n }", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }", "public function setValorAttribute($value)\n {\n $this->attributes['valor'] = str_replace(\",\", \".\", str_replace(\".\", \"\", $value));\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function testSetNet()\n\t{\n\t\t$net = new PNPetrinet('test');\n\t\t$this->object->setNet($net);\n\t\t$this->assertEquals($net, TestReflection::getValue($this->object, 'net'));\n\t}", "public function testSetNationalite() {\n\n $obj = new Employes();\n\n $obj->setNationalite(\"nationalite\");\n $this->assertEquals(\"nationalite\", $obj->getNationalite());\n }", "public function _set($number)\n {\n }", "function set_value($value)\n\t{\n\t\t$this->value = $value;\n\t}", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setNombre($n){\n\t\t$this->nombre = $n;\n\t}", "public function set_value( $value ) {\n $this->value = $value;\n }" ]
[ "0.66100246", "0.5965958", "0.586519", "0.58343524", "0.5765253", "0.5729486", "0.5705174", "0.5672666", "0.56711143", "0.56290406", "0.55302256", "0.5457199", "0.54337746", "0.539572", "0.53818697", "0.53318447", "0.53255785", "0.5322524", "0.531651", "0.530248", "0.5301422", "0.5297176", "0.5262514", "0.52533555", "0.5234792", "0.52310944", "0.52272475", "0.5223095", "0.52229244", "0.5215034", "0.52028507", "0.51867366", "0.5185349", "0.51602566", "0.51602566", "0.5134721", "0.5125446", "0.51203614", "0.51202315", "0.5114261", "0.50959164", "0.5095887", "0.50821394", "0.5077521", "0.5077521", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.507703", "0.5068448", "0.5048923", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50486356", "0.50401616", "0.5038552", "0.5026254", "0.5025505", "0.5021691", "0.5008895", "0.5008388", "0.49943393", "0.4993658", "0.49876618", "0.4983301", "0.49816865", "0.4981507", "0.49739006", "0.49658835", "0.49643257", "0.49632752", "0.4961086", "0.4960368", "0.4960368", "0.4960368", "0.4960368", "0.49500564", "0.4942853", "0.49394986", "0.4934632", "0.49318728", "0.49253377", "0.49149922", "0.4909667", "0.49094966", "0.49091515" ]
0.51803696
33
Get the value of nemotecnia.
public function getNemotecnia() { return $this->nemotecnia; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}", "public function getNValue() {}", "public function obtenerValor() {\n return $this->valor;\n }", "public function getNossoNumero();", "public function getNetValue()\n {\n return $this->netValue;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getNprcifecha()\n {\n return $this->nprcifecha;\n }", "function getValNode(){\n\t\t$clase=$this->nmclass;\n\t\t$node=$this->anode;\n\t\t$valor=$this->nodos[$clase][$node];\n\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}", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValor(){\n return $this->_data['valor'];\n }", "public function getNit_empresa(){\n return $this->nit_empresa;\n }", "public function getNcm()\n {\n return $this->ncm;\n }", "public function getValor_moeda()\n {\n return $this->valor_moeda;\n }", "public function value(): string\n {\n return $this->get('value');\n }", "public function get_value()\n {\n return $this->value;\n }", "public function get_value() {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValue(): string\n {\n return $this->value;\n }", "public function getValorVenta()\n {\n return $this->valorVenta;\n }", "public function getValue() {\n return $this->value;\n }", "public function getValue() {\n return $this->value;\n }", "public function getValue() {\n return $this->value;\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function get_value()\n\t{\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n return self::decodeValue($this->value);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue() {\n return $this->node->hasAttribute('value') ? iconv('utf-8', xp::ENCODING, $this->node->getAttribute('value')) : NULL;\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function getValue(): string\n {\n return gmp_strval($this->value);\n }", "public function getValorAnulado() {\n return $this->nValorAnulado;\n }", "public function getValue()\n {\n\treturn $this->value;\n }", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function get_nim()\n\t{\n\t\treturn $this->nim;\n\t}", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function value() { return $this->_m_value; }", "public function getValue()\r\n {\r\n return $this->value;\r\n }", "public function getValue(): mixed;", "public function getValue(): mixed;", "public function getMontoCuota()\n {\n return $this->monto_cuota;\n }", "public function getValue()\n {\n return $this->getOriginData('value');\n }", "public function getNombPropietario(){\n $app = App::getSingleton();\n $conn = $app->conexionBd();\n $IDpropietario = self::getPropietario();\n $query = sprintf(\"SELECT nombre FROM usuarios WHERE id = %s\",$conn->real_escape_string($IDpropietario));\n $consulta = $conn->query($query);\n if($consulta->num_rows > 0){\n $fila = $consulta->fetch_assoc();\n $nombPropietario = $fila['nombre'];\n }else{\n $nombPropietario = \"Anonimo\";\n }\n return $nombPropietario;\n }", "public function value(): Number\n {\n return $this->value;\n }", "public function getValue()\n {\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }" ]
[ "0.642976", "0.6421447", "0.6395026", "0.63858616", "0.6271816", "0.62452567", "0.62452567", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.62151086", "0.6212925", "0.6212925", "0.6212925", "0.6212925", "0.6212925", "0.62051094", "0.6163385", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.61586785", "0.6111528", "0.6095133", "0.6085223", "0.6001942", "0.5946322", "0.59404725", "0.59278226", "0.59126365", "0.59126365", "0.59126365", "0.59126365", "0.59126365", "0.59126365", "0.5891806", "0.58650863", "0.58650863", "0.58650863", "0.58639896", "0.58639896", "0.58586454", "0.58521146", "0.5843661", "0.5843661", "0.5836379", "0.5836379", "0.5836302", "0.5836302", "0.58362615", "0.5829321", "0.5821887", "0.58180565", "0.5817832", "0.58075523", "0.58009577", "0.5800359", "0.5794633", "0.5777174", "0.5775401", "0.5775401", "0.5773903", "0.5771497", "0.5766745", "0.57661206", "0.5765936", "0.5760618", "0.5760618", "0.5760618", "0.5760618", "0.5760618", "0.5760618", "0.5760618" ]
0.6570487
0
Set the value of ultima_carga.
public function setUltimaCarga($ultima_carga) { $this->ultima_carga = $ultima_carga; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUltimaCarga()\n {\n return $this->ultima_carga;\n }", "public function setValor($valor)\n {\n $this->valor = $valor;\n }", "public function setEscalaValor( $escalaValor ){\n\t\t\t$this->escalaValor = $escalaValor ;\n\t\t}", "public function calidadImagen($valor){\r\n\t\tif ($valor>=0&&$valor<=100) {\r\n\t\t\t$this->calidadImagen=$valor;\r\n\t\t}else{\r\n\t\t\t$this->calidadImagen=100;\r\n\t\t}\r\n\t}", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function SetIdConvocatoria($valor){\n\t\t $this->id_convocatoria= $valor;\n\t }", "public function setCarrera($carrera) {\n $this->carrera = $carrera;\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "private function cargarDatosValores(){\n\n\t\t$colaboradores = $this->user_model->getPagination(null);\n\n\t\tforeach ($colaboradores as $colaborador){\n\t\t\t\n\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,1);\n\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,2);\n\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,3);\n\t\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,4);\n\t\t\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,5);\n\t\t\t\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,6);\n\t\t}\n\t}", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function setMontacargasC($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->montacargas_c !== $v) {\n $this->montacargas_c = $v;\n $this->modifiedColumns[] = MontacargasPeer::MONTACARGAS_C;\n }\n\n\n return $this;\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function otorgarPrestamo(){\n $fecha = date('d-m-y');\n $this->setFechaOtorgado($fecha);\n $cantidadCuotas = $this->getCantidadCuotas();\n $monto = $this->getMonto();\n $colObjCuota = array();\n for($i=0; $i<$cantidadCuotas; $i++){\n $montoCuota = $monto / $cantidadCuotas;\n $montoInteres = $this->calcularInteresPrestamo($i);\n $colObjCuota[$i] = new Cuota($i, $montoCuota, $montoInteres);\n }\n $this->setColObjCuota($colObjCuota);\n }", "public function setMontacargasCiclosiniciales($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->montacargas_ciclosiniciales !== $v) {\n $this->montacargas_ciclosiniciales = $v;\n $this->modifiedColumns[] = MontacargasPeer::MONTACARGAS_CICLOSINICIALES;\n }\n\n\n return $this;\n }", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public static function calculaVenda()\n {\n Marca::query()->update([\n 'dataultimacompra' => null,\n 'itensabaixominimo' => null,\n 'itensacimamaximo' => null,\n 'vendabimestrevalor' => null,\n 'vendasemestrevalor' => null,\n 'vendaanovalor' => null,\n 'vendaanopercentual' => null,\n ]);\n\n // Monta classificacao ABC\n $totalvendaano_geral = Marca::sum('vendaanovalor');\n $totalvendaano = Marca::where('abcignorar', '=', false)->sum('vendaanovalor');\n $posicao = 0;\n $percentual_acumulado = 0;\n\n foreach (Marca::orderByRaw('vendaanovalor DESC NULLS LAST')->orderBy('marca', 'ASC')->get() as $marca) {\n $abccategoria = 0;\n $abcposicao = null;\n\n if (!$marca->abcignorar) {\n $posicao++;\n $abcposicao = $posicao;\n $percentual_acumulado += (($marca->vendaanovalor / $totalvendaano) * 100);\n if ($percentual_acumulado <= 20) {\n $abccategoria = 3;\n } elseif ($percentual_acumulado <= 50) {\n $abccategoria = 2;\n } elseif ($percentual_acumulado <= 90) {\n $abccategoria = 1;\n } else {\n $abccategoria = 0;\n }\n }\n\n $marca->update([\n 'abccategoria' => $abccategoria,\n 'abcposicao' => $abcposicao,\n 'vendaanopercentual' => (($marca->vendaanovalor / $totalvendaano_geral) * 100),\n ]);\n\n $afetados++;\n }\n\n return $afetados;\n }", "public function setFechaInicialAttribute($value)\n {\n return $this->attributes['fecha_inicial'] = date($this->setDateFormatTarifasVehiculo,strtotime(Carbon::createFromFormat('d/m/Y', $value)->toDateTimeString()));\n }", "public function setValorAttribute($value)\n {\n $this->attributes['valor'] = str_replace(\",\", \".\", str_replace(\".\", \"\", $value));\n }", "public function setCargaMaxima($cargaMaxima)\n {\n $this->cargaMaxima = $cargaMaxima;\n\n return $this;\n }", "public function setFechaCargueAttribute($value)\n {\n $string_date = ($value instanceof DateTime) ? $value->format('Y-m-d') : $value;\n $this->attributes['fecha_cargue'] = date('Y-m-d', strtotime($string_date === NULL ? '' : $string_date));\n }", "function carregaValors($id,$autor){\t\r\n\t\t\t\t$this->set_aut_idautor($id);\r\n\t\t\t\t$this->set_aut_autor($autor);\r\n\t\t}", "protected function calidadImagenDefaut(){\r\n\t\t$this->calidadImagen=100;\r\n\t}", "function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t}", "public function setdia_semana($valor)\n {\n if (($valor <= 0) || ($valor > 7)) :\n echo \"Tentou atribuir {$valor} para dia da semana!\";\n die();\n endif;\n\n $this->data['dia_semana'] = $valor;\n }", "function asignar_valores(){\n\t\t$this->tabla=$_POST['tabla'];\n\t\t$this->pertenece=$_POST['pertenece'];\n\t\t$this->asunto=$_POST['asunto'];\n\t\t$this->descripcion=$_POST['contenido'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->hora=$_POST['hora'];\n\t\t$this->fechamod=$_POST['fechamod'];\n\t}", "public function getCargaMaxima()\n {\n return $this->cargaMaxima;\n }", "public function setPaginaAtual($pagina){\n $this->PaginaAtual = $pagina;\n }", "public function setValoracion($valoracion) {\n if($valoracion > 0 && $valoracion <= 10 ){\n $this->valoracion = $valoracion;\n return true;\n } else {\n return false;\n }\n }", "public function setVoti(float $voto){\n if($voto>2 && $voto <= 10 ){\n \n $this->voti[] = $voto;\n \n } else {\n\n $messaggio = new Exception(\"Il valore $voto è errato\");\n throw $messaggio;\n\n }\n }", "function asignar_valores3(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->temporada=$_POST['temporada'];\n\t\t$this->nombre=$_POST['nombre_plan'];\n\t\t$this->descripcion=$_POST['descripcion_plan'];\n\t\t$this->precio=$_POST['precio_plan'];\n\t\t$this->maxadultos=$_POST['maxadultos'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t}", "private function calcolaValutazione()\n {\n\n $media=0;\n $i=0;\n foreach ($this->valutazioni as &$value){\n $media=$media+$value->getvoto();\n $i++;}\n $this->valutazione=$media/$i;\n\n }", "function asignar_valores(){\n\t\t$this->codigo=$_POST['codigo'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->hotel=$_POST['hoteles'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->lugar=$_POST['lugar'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->detal=$_POST['detal'];\n\t\t$this->mayor=$_POST['mayor'];\n\t\t$this->limite=$_POST['limite'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->segmento=$_POST['segmento'];\n\t\t$this->principal=$_POST['principal'];\n\t\t\n\t\t\n\t}", "public function testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\n }", "public function edit_tra_carga_mercaderia_transito ($valores=NULL){\n return \"\n UPDATE tra_carga_mercaderia_transito\n SET id_tra_carga_mercaderia_transito_proc = -2\n WHERE id_tra_carga_mercaderia_transito = $valores[0]\n ;\n \";\n }", "function setMaCauHoi($ma_cau_hoi){\r\n\t\t$this->ma_cau_hoi = $ma_cau_hoi;\r\n\t}", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setFechaIngresoAttribute($value)\n {\n if(!empty($value))\n {\n $this->attributes['fecha_ingreso'] = date_format(date_create(substr($value, 3, 2) . '/' . substr($value, 0, 2) . '/' . substr($value, 6, 4)), 'Y-m-d');\n }\n }", "public function calcularValorLlamada();", "public function testSetCumJourTrav() {\n\n $obj = new Employes();\n\n $obj->setCumJourTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getCumJourTrav());\n }", "public function Cambiar_Estado_permiso($data){\n date_default_timezone_set('America/Bogota'); \n $fecha_actual = date('Y-m-d');\n try{\n $idusuario = $_SESSION['idUsuario'];\n $modelo = new HojaVida();\n \n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n\n $accion = \"Se Actualiza de Estado la Solicitud de Permiso de Estudio \";\n $detalle = utf8_encode($_SESSION['nombre']).\" \".\"Se actualiza una Solicitud de Permiso \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n \n $idusuario = $_SESSION['idUsuario'];\n $dato_sec = $modelo->get_max_cons_resolucion();\n while($row = $dato_sec->fetch()){\n $contador = $row['con_consecutivo']+1;\n }\n $max = $contador;\n if($contador >= 0 && $contador <= 9){$contador = \"00\".$contador;}\n if($contador > 9 && $contador <= 99){$contador = \"0\".$contador;}\n\n if( $data->estado == 1){\n $valor = \"Se Aprueba \";\n }else if ($data->estado == 2){\n $valor = \"No Se Aprueba \";\n }else{\n $valor = \" \";\n }\n if($data->estado == 1)\n {\n $this->pdo->exec(\"UPDATE th_contador_resoluciones SET con_consecutivo ='$max'\");\n $sql = \"UPDATE th_permiso_estudio SET \n per_est_num_resolucion = ?, \n per_est_id_usuarioE = ?,\n per_est_fechaE = ?,\n per_est_estado = ?,\n per_est_observaciones = ?\n WHERE per_est_id = ?\";\n\n $this->pdo->prepare($sql)\n ->execute(\n array( \n $contador, \n $idusuario,\n $fecha_actual,\n $data->estado,\n $data->observaciones,\n $data->id\n )\n ); \n }\n else if ($data->estado == 2)\n {\n $sql = \"UPDATE th_permiso_estudio SET \n per_est_id_usuarioE = ?,\n per_est_fechaE = ?,\n per_est_estado = ?,\n per_est_observaciones = ?\n WHERE per_est_id = ?\";\n\n $this->pdo->prepare($sql)\n ->execute(\n array( \n $idusuario,\n $fecha_actual,\n $data->estado,\n $data->observaciones,\n $data->id\n )\n ); \n }\n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n\n /*$bandera=1;\n if ($bandera == 1){ \n echo 'son las variables iguales';\n echo '<script language=\"javascript\">notifyMe();</script> ';\n } else {echo \"No son iguales!\";}*/\n } \n catch (Exception $ex) \n {\n die($ex->getMessage());\n }\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function getFechaCargaAttribute($value)\n {\n return date('d/m/Y', strtotime($value));\n }", "public function setIdmontacargas($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->idmontacargas !== $v) {\n $this->idmontacargas = $v;\n $this->modifiedColumns[] = MontacargasPeer::IDMONTACARGAS;\n }\n\n\n return $this;\n }", "public function puestaACero() {\n $this -> horas = 0;\n $this -> minutos = 0;\n $this -> segundos = 0;\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "function Cuerpo($acceso,$id_contrato)\n\t{\n\t\t//echo \"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT tarifa_ser FROM vista_tarifa where id_serv='BM00001'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$costo_inst=utf8_decode(trim($row['tarifa_ser']));\n\t\t}\n\t\t//echo \"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\");\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\");\n\t\tif($row=row($acceso)){\n\t\t\n\t\t\t$observacion=utf8_decode(trim($row['observacion']));\n\t\t\t$costo_contrato=utf8_decode(trim($row['costo_contrato']));\n\t\t\t$tipo_cliente=utf8_decode(trim($row['tipo_cliente']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombrecli']));\n\t\t\t$apellidocli=utf8_decode(trim($row['apellido']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombre']));\n\t\t\t$etiqueta=utf8_decode(trim($row['etiqueta']));\n\t\t\t$cedulacli=utf8_decode(trim($row['cedula']));\n\t\t\t\n\t\t\t$fecha=formatofecha(trim($row[\"fecha_contrato\"]));\n\t\t\t$fecha_nac=formatofecha(trim($row[\"fecha_nac\"]));\n\t\t\t\n\t\t\t\n\t\t\t$nro_contrato=trim($row['nro_contrato']);\n\t\t\t$id_contrato=trim($row['id_contrato']);\n\t\t\n\t\t\n\t\t\t$puntos=utf8_decode(trim($row['puntos']));\n\t\t\t$deuda=utf8_decode(trim($row['deuda']));\n\t\t\tif($deuda==\"\"){\n\t\t\t\t$deuda=0;\n\t\t\t}\n\t\t\t\n\t\t\t$deuda=number_format($deuda, 2, ',', '.');\n\t\t\t$nombre_zona=utf8_decode(trim($row['nombre_zona']));\n\t\t\t$nombre_sector=utf8_decode(trim($row['nombre_sector']));\n\t\t\t$nombre_calle=utf8_decode(trim($row['nombre_calle']));\n\t\t\t$numero_casa=utf8_decode(trim($row['numero_casa']));\n\t\t\t$telefono=utf8_decode(trim($row['telefono']));\n\t\t\t$telf_casa=utf8_decode(trim($row['telf_casa']));\n\t\t\t$telf_adic=utf8_decode(trim($row['telf_adic']));\n\t\t\t$email=utf8_decode(trim($row['email']));\n\t\t\t$direc_adicional=utf8_decode(trim($row['direc_adicional']));\n\t\t\t$id_persona=utf8_decode(trim($row['id_persona']));\n\t\t\t$postel=utf8_decode(trim($row['postel']));\n\t\t\t$taps=utf8_decode(trim($row['taps']));\n\t\t\t$pto=utf8_decode(trim($row['pto']));\n\t\t\t$edificio=utf8_decode(trim($row['edificio']));\n\t\t\t$numero_piso=utf8_decode(trim($row['numero_piso']));\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT nombre,apellido FROM persona where id_persona='$id_persona' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$vendedor=utf8_decode(trim($row['nombre'])).\" \".utf8_decode(trim($row['apellido']));\n\t\t\t\n\t\t}\n\n\t\tif($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}\n\t\t\n\t\t\n\t\t$this->Ln();\t\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetXY(10,35);\t\t\n\t\t$this->Cell(195,10,\"Abonado: $nro_contrato\",\"0\",0,\"R\");\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t$this->SetXY(40,50);\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA JURIDICA.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Razón Social.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Actividad.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Telef.\",\"1\",0,\"J\");\n\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Representante Legal\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cargo en la Empresa.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA NATURAL.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: $nombrecli $apellidocli\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: $fecha_nac\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ingreso Mensual: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Deposito en Garantia: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Tipo Vivienda: Propia ___ Alquilado ___ Canon Mensual: ____\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(65,6,\"Vencimiento del Contrato: / / \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DATOS DEL CONYUGUE.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Ingreso Mensual.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DOMICILIO DEL SERVICIO\",\"1\",0,\"C\");\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Apellidos: $apellidocli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Vendedor: $vendedor\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Suscriptor Nº: $nro_contrato\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha: $fecha\",\"1\",0,\"J\");*/\n\t\t\t\t\n\t\n\t\t/*if($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}*/\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I. $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Ocupación: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Grupo Familiar Nº:\",\"1\",0,\"J\");\n\t\tif($fecha_nac=='11/11/1111'){\n\t\t\t$fecha_nac='';\n\t\t}\n\t\t$this->Cell(65,6,\"Fecha de Nacimiento : $fecha_nac\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"DOMICILIO DE SERVICIO\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb o Sector: $nombre_sector\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Calle n°: \",\"1\",0,\"J\");\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Avenida o Calle: $nombre_calle\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Vereda : \",\"1\",0,\"J\");\t\t\n\t\t\n\t\tif($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Piso:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"N° de Casa o Apto: $numero_casa $apto\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Referencia o Zona: $nombre_zona N°Poste:$postel\",\"1\",0,\"J\");\n\t\t//$this->Cell(65,6,\"N° de Poste: $postel\",\"0\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ruta Cuenta: \",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Zona: $nombre_zona\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Manzana: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb.: $nombre_sector\",\"1\",0,\"J\");*/\n\t\t\n\t\t/*if($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Cell(97,6,\"Apto.: $apto\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cod. Postal: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t//Rect( float x, float y, float w, float h [, string style])\n\t\t$this->Cell(98,6,\"Vivienda Alquilada: SI ____ NO ____\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha de Vencimineto de Alquiler: \",\"1\",0,\"J\");\n\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Proveedor de Internet: \",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\");\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"SERVICIOS \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,6,\"CANT.\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"P. UNITARIO \",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"P. TOTAL \",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Instalación Principal\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"1\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Tomas Adicionales\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Cable Coaxial\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Conectores\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Espliter\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\" \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(60,5,\"TOTAL A PAGAR BS\",\"1\",0,\"R\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"FECHA ESTIMADA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"HORA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"TOTAL A\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"$costo_contrato\",\"LRT\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"DE INSTALACION\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"SUGERIDA\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"PAGAR Bs.\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"\",\"LRB\",0,\"C\");*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PROGRAMACIÓN\",\"1\",0,\"C\");\t\t\t\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Descripción.\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Descripción\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Familiar Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Extendido Bs \",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Adulto Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Comercial I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Monto de Contrato: Bs. $costo_inst\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Firma del Abonado:_________________________ \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Puntos Adicionales:_________________________\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Costo Punto Adicional:_______________________\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Tiempo de Instalación:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Total a Cancelar Mensual:\",\"1\",0,\"J\");\n\t\t$this->Cell(30,6,\"Total:\",\"1\",0,\"J\");\n\t\t$this->Cell(35,6,\"Contrato:\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Observaciones.\",\"1\",0,\"J\");\n\t\t\t\t\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"$observacion\",\"1\",0,\"J\");*/\n\t\t\n\t/*\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"RECIBO DE PAGO\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"*EL PRECIO INCLUYE EL IMPUESTO DE LEY\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Efectivo\",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"Cheque\",\"1\",0,\"C\");\n\t\t$this->Cell(65,6,\"Cargo Cta. Cte.\",\"1\",0,\"C\");\n\t\t$this->Cell(60,6,\"Tarjeta de Credito:\",\"1\",0,\"C\");\n\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Bs. $costo_contrato\",\"1\",0,\"L\");\n\t\t$this->Cell(35,6,\"Nº.\",\"1\",0,\"L\");\n\t\t$this->Cell(65,6,\"Cta. Nº Bco.\",\"1\",0,\"L\");\n\t\t$this->Cell(60,6,\"Nombre:\",\"1\",0,\"L\");\n\t\t\n\t\n\t\t\n\t\t\n\t\t$this->Ln(15);\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Nota:\",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"En caso de que el televisor no acepte la señal de todos los canales del cable, es posible que amerite la instalación de un amplificador de sintonia, el cual deberá ser adquirido por el SUSCRIPTOR\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Atención: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"La Empresa. No autoriza el retiro de televisores y/o VHS por el personal de la empresa. El SUSCRIPTOR conoce y acepta las condiciones del contrato del servicio que apacen al dorso del presente\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Aviso: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"Se le informa a todos los suscriptores y publico en general de acuerdo a la Ley Orgánica de Telecomunicaciones, en el Artículo 189, Literal 2: será penado con prisión de uno (1) a cuatro (4) años, el que utilizando equipos o tecnologías de cualquier tipo, proporciones a un tercero el acceso o disfrute en forma fraudulenta o indebida de un serbicio o facilidad de telecomunicaciones \",\"0\",\"J\");\n\t\t\n\t\t\n\t\t\n\t\t$this->Ln(10);\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,5,\"________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"_________________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"__________________________\",\"0\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Firma del Vendedor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Nombre y Apellido del Suscriptor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Firma del Suscriptor\",\"0\",0,\"C\");*/\n\t\t\n\t\t/*$this->Ln(4);\n\t\t\n\t\t$this->SetDrawColor(76,136,206);\n\t\t$this->SetLineWidth(.4);\n\t\t$this->SetFont('times','I',12);\n\t\t$this->SetX(10);\n\t\t$this->MultiCell(195,5,'Av. Perimetral, Centro Comercial Residencial Central. P.B. Local Nº 07. Cúa, Edo. Miranda.\[email protected] / [email protected]',\"TB\",\"C\");*/\n\t\t\n\t\t//$this->clausulas();\n\t\t\n\t\treturn $cad;\n\t}", "public function set_atletas_resultados_viento($atletas_resultados_viento) {\n $this->atletas_resultados_viento = $atletas_resultados_viento;\n }", "public function setValorInicial($nValorInicial) {\n $this->nValorInicial = $nValorInicial;\n }", "public function setParcela(int $parcela)\n {\n $this->parcela = $parcela;\n }", "public static function update_valores($id_categoria,$valor){\n global $baseDatos;\n \n $res = $baseDatos->query(\"UPDATE `art_categoria` SET `valor`='$valor'\n WHERE id_categoria = $id_categoria\"); \n \n return $res;\n }", "public function cargarAsistencia($fecha, $tipo, $valor, $dni_alumno, $id_curso) {\n //date_default_timezone_set('UTC');\n //$fecha = date(\"Y\") . \"-\" . date(\"m\") . \"-\" . date(\"d\");\n $con = ConexionBD::getConexion();\n $con->insertar(\"INSERT INTO `asistencia`(`idasistencia`, `fecha`, `tipo`, `valor`, `alumnoxcurso_alumno_dni`, `alumnoxcurso_curso_idcurso`) VALUES (default,'\" . $fecha . \"','\" . $tipo . \"','\" . $valor . \"','\" . $dni_alumno . \"','\" . $id_curso . \"')\");\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "function valor($valor) {\n\n $this->_valorUpdate = $valor;\n\n if (in_array($this->_tipo, $this->_controlesMultiples)) {\n\n foreach ($this->_selectoresOpcion as $key => $selector) {\n if ($selector->attr('value') == $valor) {\n $selector->attr('checked', 'checked');\n }\n }\n\n } else\n if ($this->type == 'select') {\n foreach ($this->_selectoresOpcion as $key => $selector) {\n if ($selector->attr('value') == $valor) {\n $selector->attr('selected', 'selected');\n }\n }\n\n } elseif ($this->type == \"textarea\") {\n $this->innerHTML($valor);\n } else {\n $this->attr('value', $valor);\n }\n\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->icono=$_POST['icono'];\n\t}", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function testSetTauxAncien() {\n\n $obj = new Employes();\n\n $obj->setTauxAncien(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxAncien());\n }", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "function procesar_carga ($datos){\n \n if(strcmp($datos['tipo'], \"Definitiva\")==0){\n $this->s__dia=$datos['dia_semana'];\n \n //if($this->validar_datos($datos['hora_inicio'], $datos['hora_fin'])){\n //if($this->existe_definitiva($datos)){\n $secuencia= recuperar_secuencia('asignacion_id_asignacion_seq');\n $this->registrar_asignacion($datos);\n $this->registrar_asignacion_definitiva($datos);\n //agregamos el equipo de catedra si existe\n if(count($this->s__docentes_seleccionados)>0){\n foreach($this->s__docentes_seleccionados as $clave=>$docente){\n $catedra=array(\n 'id_asignacion' => $secuencia,\n 'nro_doc' => $docente['nro_doc'],\n 'tipo_doc' => $docente['tipo_doc']\n );\n \n $this->dep('datos')->tabla('catedra')->nueva_fila($catedra);\n $this->dep('datos')->tabla('catedra')->sincronizar();\n $this->dep('datos')->tabla('catedra')->resetear();\n }\n }\n //}\n// else{\n// $mensaje=\" Está intentando solapar asignaciones \";\n// //$mensaje=\"Error Horario Repetido {$this->s__error}\";\n// toba::notificacion()->agregar(utf8_d_seguro($mensaje));\n// }\n// }\n// else{\n// $mensaje=\" La hora de inicio debe ser menor a la hora de fin \";\n// toba::notificacion()->agregar($mensaje);\n// }\n }\n else{\n if($this->validar_datos($datos['hora_inicio'], $datos['hora_fin'], $datos['fecha_inicio'], $datos['fecha_fin'])){\n if($this->existe_periodo($datos)){\n $this->registrar_asignacion($datos);\n $this->registrar_asignacion_periodo($datos);\n }\n else{\n $mensaje=\" Está intentando solapar asignaciones \";\n toba::notificacion()->agregar(utf8_decode($mensaje), $nivel);\n }\n }\n else{\n $mensaje=\" Datos inconsistentes en la fecha u hora \";\n toba::notificacion()->agregar($mensaje, $nivel);\n }\n }\n }", "public function Estado_Civil()\n {\n include('conexion.php');\n $Consulta_Estado_Civil = \"SELECT * FROM p_estado_civil ORDER BY civ_nombre\";\n $Resultado_Consulta_Estado_Civil = $conexion->prepare($Consulta_Estado_Civil);\n $Resultado_Consulta_Estado_Civil->execute();\n while ($a = $Resultado_Consulta_Estado_Civil->fetch())\n {\n echo '<option value=\"'.$a[civ_codigo].'\">'.$a[civ_nombre].'</option>';\n }\n\n }", "public function set_correlativo( $param )\n {\n #uniendo con el detalle de venta\n $corr = 0;\n $data_update = array();\n switch ($param['tipo']) {\n case 'F':\n $data_update['correlativo_factura'] = $param['corr'];\n break;\n case 'B':\n $data_update['correlativo_boleta'] = $param['corr'];\n break;\n }\n DB::table('config')\n ->where('id', 1)\n ->update( $data_update );\n #\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "function setCita($usuario, $fecha, $hora, $motivo){\n\t\t\t\n\t\t$resultado = conectar()->query( \"SELECT * FROM citas WHERE fecha LIKE '$fecha' AND hora LIKE '$hora'\");\n\t\t\t\n\t\tif($resultado->num_rows == 0){\n\t\t\tconectar()->query(\"INSERT INTO citas (usuario, fecha, hora, motivo) VALUES ('\" . $usuario . \"','\" . $fecha . \"','\" . $hora . \"','\" . $motivo .\"')\");\n\t\t\techo \"<script>alert('Se ha hecho la reserva correctamente!');document.location.reload();</script>\";\n\t\t}\n\t}", "public function testSetPeriodeEmploiFin() {\n\n // Set a Date/time mock.\n $periodeEmploiFin = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setPeriodeEmploiFin($periodeEmploiFin);\n $this->assertSame($periodeEmploiFin, $obj->getPeriodeEmploiFin());\n }", "public function set_civilite($_civilite)\n {\n $this->_civilite = $_civilite;\n\n return $this;\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setDataCadastro($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_cadastro !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_cadastro !== null && $tmpDt = new DateTime($this->data_cadastro)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_cadastro = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_CADASTRO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setFecha($fecha) {\n $date = Funciones::gConvertirFecha($fecha, TRUE);\n $orden = $this->orden;\n if ($date && $date != $this->fecha) {\n // Si cambia la fecha, recarga los datos.\n $this->cargarAsistentes($date, $orden);\n }\n }", "public function suma_compras_anio_mes_grafica($fecha){\n\n $conectar=parent::conexion();\n parent::set_names();\n \n //se usa para traducir el mes en la grafica\n //imprime la fecha por separado ejemplo: dia, mes y año\n $meses = array(\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n\n \n\n //SI EXISTE EL ENVIO POST ENTONCES SE MUESTRA LA FECHA SELECCIONADA\n if(isset($_POST[\"year\"])){\n\n $fecha=$_POST[\"year\"];\n\n $sql=\"SELECT YEAR(fecha_compra) as ano, MONTHname(fecha_compra) as mes, SUM(total) as total_compra_mes FROM compras WHERE YEAR(fecha_compra)=? and estado='1' GROUP BY MONTHname(fecha_compra) desc\";\n \n $sql=$conectar->prepare($sql);\n $sql->bindValue(1,$fecha);\n $sql->execute();\n\n $resultado= $sql->fetchAll();\n \n //recorro el array y lo imprimo\n foreach($resultado as $row){\n\n\n $ano= $output[\"mes\"]=$meses[date(\"n\", strtotime($row[\"mes\"]))-1];\n $p = $output[\"total_compra_mes\"]=$row[\"total_compra_mes\"];\n\n echo $grafica= \"{name:'\".$ano.\"', y:\".$p.\"},\";\n\n }\n\n\n } else {\n\n\n//sino se envia el POST, entonces se mostraria los datos del año actual cuando se abra la pagina por primera vez\n\n $fecha_inicial=date(\"Y\");\n\n\n $sql=\"SELECT YEAR(fecha_compra) as ano, MONTHname(fecha_compra) as mes, SUM(total) as total_compra_mes FROM compras WHERE YEAR(fecha_compra)=? and estado='1' GROUP BY MONTHname(fecha_compra) desc\";\n \n $sql=$conectar->prepare($sql);\n $sql->bindValue(1,$fecha_inicial);\n $sql->execute();\n\n $resultado= $sql->fetchAll();\n \n //recorro el array y lo imprimo\n foreach($resultado as $row){\n\n $ano= $output[\"mes\"]=$meses[date(\"n\", strtotime($row[\"mes\"]))-1];\n $p = $output[\"total_compra_mes\"]=$row[\"total_compra_mes\"];\n\n echo $grafica= \"{name:'\".$ano.\"', y:\".$p.\"},\";\n\n }//cierre del foreach\n\n\n }//cierre del else\n\n\n }", "function evt__cuadro_fechas__seleccionar ($fecha_cuadro){\n }", "public function __construct($valor){\n\t\tif(is_numeric($valor)){\n\t\t\t$this->arabigo = intval($valor);\n\t\t\t$this->romano = CRomano::arabigo2romano($this->arabigo);\n\t\t}\n\t\telse{\n\t\t\t$this->arabigo = CRomano::romano2arabigo($valor);\n\t\t\t$this->romano = CRomano::arabigo2romano($this->arabigo);\n\t\t}\n\t}", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "public function setDataRescisao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_rescisao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_rescisao !== null && $tmpDt = new DateTime($this->data_rescisao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_rescisao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_RESCISAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }", "public function testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "public function setValue($valor)\n {\n $this->_value = $valor;\n return $this;\n }", "public function setValorDiaria($valorDiaria)\n {\n $this->valorDiaria = $valorDiaria;\n\n \n\n }", "function setCobrar($tarjeta1,$tarjeta2,$tarjeta3,$tarjeta4,$tarjeta5,$partida){\n\t$tarjetas=array(0=>$tarjeta1,1=>$tarjeta2,2=>$tarjeta3,3=>$tarjeta4,4=>$tarjeta5);\n\t$tarjeta_cambio;\n\t$veces_entre_foreach=0;\n\t$cantidad=0;\n\t\t\t//pregunta si el usuario saco tarjeta en la ronda, si no saco no puede cambiar ninguna de las que ya tiene(por esto ese if)\n\tif($partida->turno_usuario->getSaqueTarjeta() == 1){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tforeach($tarjetas as $tarjeta){\n\t\t\t\tif($tarjeta == 1){\n\t\t\t\t\tif($partida->turno_usuario->getTarjeta($veces_entre_foreach)!=NULL ){\n\t\t\t\t\t\t\t//solamente puede tomar una tarjeta, porque es cobrar, si hay mas de una seleccionadada cantidad de hace mas de 1 y el cambio no se realiza\n\t\t\t\t\t\tif($cantidad < 1){\n\t\t\t\t\t\t\t\t//digo que la tarjeta que esta en la posicion $avanzar_arreglo del usuario fue seleccionada\n\t\t\t\t\t\t\t$tarjeta_cambio=$partida->turno_usuario->getTarjeta($veces_entre_foreach);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$cantidad++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$veces_entre_foreach++;\n\t\t\t}//foreach($tarjetas as $tarjeta){\n\t\t\t\n\t\t\t\t//si se selecciono una y solo una tarjeta\n\t\t\tif($cantidad == 1){\n\t\t\t\t\t//compruebo si la tarjeta esta en estado de ser cambiada\n\t\t\t\tif($tarjeta_cambio->getEstado() == 0 ){\n\t\t\t\t\t\t\n\t\t\t\t\t$id_pais=$tarjeta_cambio->getIdPais();\n\t\t\t\t\t\t//recorro todos los paises \n\t\t\t\t\tforeach($partida->paises as $pais){\t\n\t\t\t\t\t\t\t//compruebo si id del usuario en turno es igual al del propietario del pais que selecciona el foreach Y aparte compruebo que \n\t\t\t\t\t\t\t//el pais al que hace referencia la tarjeta sea el seleccionado por el foreach\n\t\t\t\t\t\tif($id_pais == $pais->getId() && $partida->turno_usuario->getId() == $pais->getPropietario()->getId() )\t{\n\t\t\t\t\t\t\t\t//cambio el estado de la tarjeta\n\t\t\t\t\t\t\t$tarjeta_cambio->setEstado(1);\n\t\t\t\t\t\t\t\t//le entrego al pais al que hace referencia 2 fichas\n\t\t\t\t\t\t\t$pais->setFichas(2);\n\t\t\t\t\t\t\t\t//reseteo el saco tarjeta, para que en la misma ronda no pueda cobrar dos tarjetas\n\t\t\t\t\t\t\t$partida->turno_usuario->setSaqueTarjetaReset();\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//if($cantidad == 1){\n\t\t\t\n\t}//if($partida->turno_usuario->getSaqueTarjeta() == 1){\t\n}", "public function set( $atributo = '', $valor ) {\n $this->$atributo = $atributo;\n return $this;\n }", "public function atualizarVitima(){\n $this->validaAutenticacao();\n $vitima = Container::getModel('Vitimas');\n $tmp = json_decode($_POST['vtm']);\n $vitima->__set('id', $tmp->id);\n $vitima->__set('nome', $tmp->nome);\n $vitima->__set('idade', $tmp->idade);\n $vitima->__set('descricao', $tmp->descricao);\n $vitima->__set('legenda', $tmp->legenda);\n $vitima->__set('cidade', $tmp->cidade);\n $vitima->__set('status', $tmp->status);\n $vitima->atualizarVitima();\n\n $tmp = json_encode($vitima->getVitima());\n echo $tmp;\n }", "public function setEstadoCivil($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->estado_civil !== $v) {\n\t\t\t$this->estado_civil = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::ESTADO_CIVIL;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function applyDefaultValues()\n {\n $this->montacargas_baja = 0;\n }", "function asignar_valores(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->cedula=$_POST['cedula'];\n\t\t$this->correo=$_POST['correo'];\n\t}", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function asignar_valores(){\n $this->nombre=$_POST['nombre'];\n $this->prioridad=$_POST['prioridad'];\n $this->etiqueta=$_POST['etiqueta'];\n $this->descripcion=$_POST['descripcion'];\n $this->claves=$_POST['claves'];\n $this->tipo=$_POST['tipo'];\n }", "public function setDataNascimento($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_nascimento !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_nascimento !== null && $tmpDt = new DateTime($this->data_nascimento)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_nascimento = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_NASCIMENTO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setCodiCasa($value) {\n\t\t//validando de que el valor sea un id\n\t\tif ($this->validateId($value)) {\n\t\t\t//seteando valor a la variable codigo\n\t\t\t$this->codi_casa = $value;\n\t\t\t//retornar true\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//retornar respuesta falso\n\t\t\treturn false;\n\t\t}\n\t}", "public function setCentrosEmergencia(\\Atezate\\Model\\Raw\\CentrosEmergencia $data)\n {\n $this->_CentrosEmergencia = $data;\n\n $primaryKey = $data->getPrimaryKey();\n if (is_array($primaryKey)) {\n $primaryKey = $primaryKey['id'];\n }\n\n if (!is_null($primaryKey)) {\n $this->setCentrosEmergenciaId($primaryKey);\n }\n\n $this->_setLoaded('CubosIbfk6');\n return $this;\n }", "public function testSetPrimeHComplMaj() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHComplMaj(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHComplMaj());\n }", "public function setKieToiletCuciTangan($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kie_toilet_cuci_tangan !== $v) {\n $this->kie_toilet_cuci_tangan = $v;\n $this->modifiedColumns[] = SanitasiPeer::KIE_TOILET_CUCI_TANGAN;\n }\n\n\n return $this;\n }", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "function setRetiro($monto, $cheque = DEFAULT_CHEQUE,\t$tipo_de_pago = \"cheque\", $recibo_fiscal = DEFAULT_RECIBO_FISCAL,\n\t\t\t\t\t\t$observaciones = \"\", $grupo = DEFAULT_GRUPO, $fecha = false, $recibo = false){\n\t\t$iduser\t\t= getUsuarioActual();\n\n\t\t/**\n\t\t * verifica el maximo Retirable\n\t\t * Si forzar es VERDADERO, el Maximo retirable es igual al SALDO\n\t\t */\n\t\t if ( $this->mForceOperations == true){\n\t\t \t$maximo_ret\t\t\t= $this->mSaldoActual;\n\t\t \t$this->mMessages \t.= \"WARN\\tLa Operacion sera FORZADA \\r\\n\";\n\t\t } else {\n\t\t\t$maximo_ret\t= $this->getMaximoRetirable($fecha);\n\t\t }\n\t\tif ( $monto > $maximo_ret) {\n\t\t\t$this->mMessages \t.= \"ERROR\\tEl Monto a Retirar($monto) es Mayor al Retirable($maximo_ret) \\r\\n\";\n\t\t\t$monto\t= 0;\n\t\t\t$recibo\t= false;\n\t\t}\n\t\tif ( $monto > 0){\n\t\t\t\tif ( in_array($this->mEstatusActual, $this->mEstatusNoOperativos) == true OR ($monto > $this->mSaldoActual) ){\n\n\t\t\t\t\t$this->mMessages \t.= \"ERROR\\tLa Cuenta no esta permitida para recibir Operacion, tiene estatus \" . $this->mEstatusActual .\" \";\n\t\t\t\t\t$this->mMessages \t.= \"o su saldo(\" . $this->mSaldoActual . \") es Mayor al Monto a retirar($monto) \\r\\n\";\n\t\t\t\t\t$this->mSucess\t\t= false;\n\t\t\t\t} else {\n\n\t\t\t\t\tif ( setNoMenorQueCero($this->mPeriodoCuenta) == 0 ){ $this->mPeriodoCuenta\t= 1; }\n\t\t\t\t\tif ( setNoMenorQueCero($this->mSocioTitular) <= DEFAULT_SOCIO){\t$this->init();\t}\n\n\t\t\t\t\tif ($fecha == false ){\n\t\t\t\t\t\tif ( isset($this->mFechaOperacion) AND ($this->mFechaOperacion != false)) {\n\t\t\t\t\t\t\t$fecha = $this->mFechaOperacion;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$fecha = fechasys();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$fecha\t\t\t\t\t= setFechaValida($fecha);\n\t\t\t\t\t$this->mFechaOperacion\t= $fecha;\n\t\t\t\t\t$socio\t\t\t\t\t= $this->mSocioTitular;\n\n\t\t\t\t\t$CRecibo = new cReciboDeOperacion(8, true);\n\t\t\t\t\t//Set a Mvto Contable\n\t\t\t\t\t//Agregar recibo si no hay\n\t\t\t\t\tif ( setNoMenorQueCero($recibo) == 0 ){\n\t\t\t\t\t\t$recibo = $CRecibo->setNuevoRecibo($socio, $this->mNumeroCuenta,\n\t\t\t\t\t\t\t\t\t\t\t\t$this->mFechaOperacion, $this->mPeriodoCuenta, 8,\n\t\t\t\t\t\t\t\t\t\t\t\t$observaciones, $cheque, $tipo_de_pago, $recibo_fiscal, $grupo );\n\t\t\t\t\t\tif (setNoMenorQueCero( $recibo ) == 0 ){\n\t\t\t\t\t\t\t$this->mMessages\t.= \"OK\\tSe Agrego Exitosamente el Recibo [$recibo] de la Cuenta \" . $this->mNumeroCuenta . \" \\r\\n\";\n\t\t\t\t\t\t\t$this->mReciboDeOperacion\t= $recibo;\n\t\t\t\t\t\t\t$this->mSucess\t\t= true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->mMessages\t.= \"ERROR\\tSe Fallo al Agregar el Recibo [$recibo] de la Cuenta \" . $this->mNumeroCuenta . \" \\r\\n\";\n\t\t\t\t\t\t\t$this->mSucess\t\t= false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->mReciboDeOperacion\t= $recibo;\n\n\t\t\t\t\tif ( setNoMenorQueCero($recibo) > 0 ){\n\t\t\t\t\t//Agregar el Movimiento\n\t\t\t\t\t\t$CRecibo->setNumeroDeRecibo($recibo);\n\t\t\t\t\t\t$CRecibo->setNuevoMvto($fecha, $monto, $this->mOperacionRetiro, $this->mPeriodoCuenta, $observaciones, -1, TM_CARGO, $socio, $this->mNumeroCuenta);\n\t\t\t\t\t\t$CRecibo->setFinalizarRecibo(true);\n\t\t\t\t\t\t$CRecibo->setFinalizarTesoreria();\n\t\t\t\t\t\t$this->mNuevoSaldo\t= $this->mSaldoAnterior - $monto;\n\n\t\t\t\t\t\t$this->mSucess\t= true;\n\t\t\t\t\t\t///Actualizar el recibo\n\t\t\t\t\t\t$this->mReciboDeOperacion\t= $recibo;\n\t\t\t\t\t\t//Actualizar la Cuenta\n\t\t\t\t\t\t$this->setUpdateSaldo();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->mMessages\t.= \"ERROR\\tNo Existe Recibo con el cual trabajar($recibo) \\r\\n\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->mMessages\t.= $CRecibo->getMessages();\n\t\t\t\t\t$this->mORec\t\t= $CRecibo;\n\t\t\t\t}\n\t\t}\n\n\t\treturn $recibo;\n\t}", "public function actualizaCompra(){\n\n\n\t\tif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n\n\t\t\t$datosController = array(\"id\" => $_POST[\"id\"],\n\t\t\t\t\"operacion\" => $_POST[\"operacion\"],\n\t\t\t\t\"proveedor\" => $_POST[\"proveedor\"],\n\t\t\t\t\"productor\" =>$_POST[\"productor\"],\n\t\t\t\t\"codProd\" => $_POST[\"codProd\"],\n\t\t\t\t\"lote\" => $_POST[\"lote\"],\n\t\t\t\t\"unidad\" => $_POST[\"unidad\"],\n\t\t\t\t\"unidad1\" => $_POST[\"unidad1\"],\n\t\t\t\t\"op\" => $_POST[\"op\"],\n\t\t\t\t\"kg\" => $_POST[\"kg\"],\n\t\t\t\t\"um\" => $_POST[\"um\"],\n\t\t\t\t\"precio\" => $_POST[\"precio\"],\n\t\t\t\t\"calidad\" => $_POST[\"calidad\"],\n\t\t\t\t\"origen\" => $_POST[\"origen\"],\n\t\t\t\t\"destino\" => $_POST[\"destino\"],\n\t\t\t\t\"comision\" => $_POST[\"comision\"],\n\t\t\t\t\"flete\" => $_POST[\"flete\"],\n\t\t\t\t\"maniobra\" => $_POST[\"maniobra\"],\n\t\t\t\t\"anticipo\" => $_POST[\"anticipo\"],\n\t\t\t\t\"costoTotal\" => $_POST[\"costoTotal\"],\n\t\t\t\t\"totalCompra\" => $_POST[\"totalCompra\"],\n\t\t\t\t\"formaPago\" => $_POST[\"formaPago\"],\n\t\t\t\t\"fecha\" => $_POST[\"fecha\"]);\n\n\t\t\t$respuesta = Datos::mdlActualizaCompras($datosController, \"entradas\");\n\n\n\n\t\t\tif($respuesta == \"success\"){\n\t\t\t\techo'<script type=\"text/javascript\">\n\t\t\t\t alert(\"Registro Actualizado\");\n\t\t\t\t window.location.href=\"listaCompras.php\";\n\t\t\t\t </script>';\n\n\t\t\t}\n\n\t\t\telse{\n\t\t\t\techo'<script type=\"text/javascript\">\n\t\t\t\t alert(\"Error!\");\n\t\t\t\t window.location.href=\"listaCompras.php\";\n\t\t\t\t </script>';\n\n\n\t\t\t}\n\n\t\t}\n\n\t}", "public function actualizarMunicipios()\n\t\t{\n\t\t\t$this->load->model(\"modpersona\");\n\t\t\t$dpto=$this->input->post(\"id\");\n\t\t\t$mpio=$this->modpersona->consultarMpio($dpto);\n\t\t\techo '<option value=\"\">Seleccione el municipio</option>';\n \t\t\tfor($i=0;$i<count($mpio);$i++)\n \t\t\t{\n \t\t\t\techo '<option value=\"'.$mpio[$i][\"VALOR_MINIMO\"].'\">'.$mpio[$i][\"DESCRIPCION\"].'</option>';\n \t\t\t}\n\t\t}", "function setF_inicio($f_inicio){\n\t\t\n\t\t$this->f_inicio = $f_inicio;\n\t\t$this->cambios = true;\n\t}", "public function setMarca($marca)\n {\n $this->marca = $marca;\n }", "public function getValorLancar(){\n return $this->nValorLancar;\n }" ]
[ "0.63314986", "0.5678584", "0.560267", "0.5431688", "0.5347435", "0.5326011", "0.52876127", "0.52784324", "0.5265703", "0.52637476", "0.52577883", "0.5199346", "0.5178404", "0.5173059", "0.5168489", "0.5159841", "0.51488596", "0.5134402", "0.507958", "0.50773853", "0.5051547", "0.503703", "0.5028941", "0.5016078", "0.50037247", "0.49890754", "0.4978136", "0.49694055", "0.49641532", "0.4960184", "0.49513125", "0.49410167", "0.4939138", "0.49367732", "0.49162763", "0.49140647", "0.4907503", "0.49041542", "0.49021435", "0.48994392", "0.48933348", "0.4891588", "0.48889592", "0.48848933", "0.48728848", "0.48705205", "0.48695764", "0.48648936", "0.48604324", "0.4858253", "0.4852715", "0.48502108", "0.48465574", "0.48156917", "0.4811353", "0.48057482", "0.48056033", "0.4790225", "0.47890174", "0.478791", "0.4776799", "0.47732183", "0.47700834", "0.47651434", "0.47634733", "0.47493035", "0.47446018", "0.47394934", "0.47347113", "0.4734478", "0.47324613", "0.47318655", "0.47315922", "0.4731308", "0.47310582", "0.47305325", "0.4722439", "0.4722049", "0.47185218", "0.47182205", "0.47139168", "0.47129238", "0.47077417", "0.47043112", "0.47024918", "0.4697592", "0.4697592", "0.46950498", "0.46875304", "0.46872205", "0.468586", "0.46840948", "0.468394", "0.46839333", "0.46704006", "0.46681538", "0.46678543", "0.46648246", "0.46640256", "0.46603668" ]
0.7261275
0
Get the value of ultima_carga.
public function getUltimaCarga() { return $this->ultima_carga; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCargaMaxima()\n {\n return $this->cargaMaxima;\n }", "public function setUltimaCarga($ultima_carga)\n {\n $this->ultima_carga = $ultima_carga;\n\n return $this;\n }", "public function getValorUltimaReavaliacao() {\n\n if ($this->getTotalDeReavaliacoes() > 0) {\n\n $oDaoReavaliacaoBem = db_utils::getDao(\"inventariobem\");\n\n $sWhere = \"t77_bens = {$this->getCodigoBem()} and \";\n $sWhere .= \"t75_situacao = 3 \";\n $sOrder = \"t75_dataabertura desc limit 1\";\n\n $sSqlReavaliacaoBem = $oDaoReavaliacaoBem->sql_query_inventario(null,\n \"(t77_valordepreciavel +\n t77_valorresidual) as valor \",\n $sOrder,\n $sWhere\n );\n\n $rsReavaliacaoBem = $oDaoReavaliacaoBem->sql_record($sSqlReavaliacaoBem);\n if ($oDaoReavaliacaoBem->numrows == 1) {\n return db_utils::fieldsMemory($rsReavaliacaoBem, 0)->valor;\n }\n } else {\n return $this->getValorAquisicao();\n }\n }", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "public function getValor(){\n return $this->_data['valor'];\n }", "public function getValoracion() {\n return $this->valoracion;\n }", "public function getSalarioMinimoAtual(){\r\n\t $aux = $this->getAll([\"status=1\"]);\r\n\t return $aux[0]->valor;\r\n\t}", "public function ultimoRegistro() {\n \n //FUNCION CON LA CONSULTA A REALIZAR\n $sql = \"SELECT MAX(MAQUICODIGO) AS CODIGO FROM MAQUINA\";\n $this->_conexion->ejecutar_sentencia($sql);\n return $this->_conexion->retorna_select();\n \n }", "public function gerencial_valorInventario(){\n\t\t\n\t\t$resultado = 0;\n\t\t\n\t\t$query = \"SELECT cantidad, idProducto\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_productos_sucursal\";\n\t\t\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n \tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n \t\n\t\t\t\t$idproducto = $filas['idProducto'];\n\t\t\t\t$cantidad\t= $filas['cantidad']; \n\t\t\t\t\n\t\t\t\t$query2 = \"SELECT precio \n\t\t\t\t\t\t\tFROM tb_productos WHERE idProducto = '$idproducto'\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif($res2 = $conexion->query($query2)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t while ($filas2 = $res2->fetch_assoc()) {\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t$precio = str_replace('.', '',$filas2['precio']);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$subtotal = $precio * $cantidad;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t $resultado = $resultado + $subtotal;\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\n\t\t\t\t\t\t}\t\n\t\t\t\t\n } \n \n }//fin if\n\t\t\n return $resultado;\t\n\t\t\n\t}", "public function calcularValorLlamada();", "public function getValor()\n {\n return $this->valor;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValorParcela()\n {\n return $this->valorParcela;\n }", "function get_convocatoria_actual_otro(){\n $actual=date('Y-m-d');\n $anio_actual= date(\"Y\", strtotime($actual));\n \n $sql=\"select id_conv from convocatoria_proyectos \"\n .\" where fec_inicio<='\".$actual.\"' and fec_fin >='\".$actual.\"'\"\n . \" and id_tipo=2\";\n $resul=toba::db('designa')->consultar($sql);\n if(count($resul)>0){\n return $resul[0]['id_conv'];\n }else \n return null;\n }", "public function getEscalaValor( ){\n\t\t\treturn $this->escalaValor;\n\t\t}", "public function obtenerValor() {\n return $this->valor;\n }", "public function getValorVenta()\n {\n return $this->valorVenta;\n }", "public function getValorInventario()\n {\n return $this->valorInventario;\n }", "public function ultimoProduto()\n {\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(id)id FROM tbproduto c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n }", "public function get_valor() {\n\t\t\n\t\t$dato = self::get_dato();\n\t\t/*\n\t\t$separator = ' , ';\n\t\tif($this->modo=='list') $separator = '<br>';\n\n\t\tif (is_array($valor)) {\n\t\t\t# return \"Not string value\";\n\t\t\t$string \t= '';\n\t\t\t$n \t\t\t= count($valor);\n\t\t\tforeach ($valor as $key => $value) {\n\n\t\t\t\tif(is_array($value)) $value = print_r($value,true);\n\t\t\t\t$string .= \"$key : $value\".$separator;\n\t\t\t}\n\t\t\t$string = substr($string, 0,-4);\n\t\t\treturn $string;\n\n\t\t}else{\n\t\t\t\n\t\t\treturn $valor;\n\t\t}\n\t\t*/\n\t\tif(isset($dato['counter'])) {\n\t\t\t$valor = $this->tipo.'-'.$dato['counter'];\n\t\t}else{\n\t\t\t$valor = $this->tipo;\n\t\t}\n\n\t\treturn $valor;\n\t}", "public function getValorInicial() {\n return $this->nValorInicial;\n }", "public function getValorLancar(){\n return $this->nValorLancar;\n }", "public function getCittaArrivo() {\n if (isset($_REQUEST['citta_arrivo'])) {\n return $_REQUEST['citta_arrivo'];\n } else\n return 0;\n }", "public function getCambio($moneda, $fecha){\n\n $sql = \"SELECT tc.TIPCAMC_FactorConversion FROM cji_tipocambio tc WHERE tc.TIPCAMC_Fecha BETWEEN '$fecha 00:00:00' AND '$fecha 23:59:59' AND tc.COMPP_Codigo = $this->compania AND tc.TIPCAMC_MonedaDestino = '$moneda'\";\n\n $query = $this->db->query($sql);\n\n if ($query->num_rows() > 0){\n $tasa = $query->result();\n return $tasa[0]->TIPCAMC_FactorConversion;\n }\n else\n return 0;\n }", "public function pegaUm()\n\t{\n\t\t// return mysqli_fetch_assoc($this->resultado);\n\t\treturn $this->resultado->fetch(PDO::FETCH_ASSOC);\n\t}", "function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }", "function get_convocatoria_actual($tipo){\n $actual=date('Y-m-d');\n $anio_actual= date(\"Y\", strtotime($actual));\n switch ($tipo) {\n case 3:$id_tipo=1;//3 es reco\n break;\n default:$id_tipo=2;\n break;\n }\n $sql=\"select id_conv from convocatoria_proyectos \"\n //. \" where anio=$anio_actual and id_tipo=$id_tipo\";\n .\" where fec_inicio<='\".$actual.\"' and fec_fin >='\".$actual.\"'\"\n . \" and id_tipo=$id_tipo\";\n $resul=toba::db('designa')->consultar($sql);\n if(count($resul)>0){\n return $resul[0]['id_conv'];\n }else \n return null;\n }", "public function ultimaTerritorial()\n {\n $query = \"SELECT id_territorial,nombre_territorial FROM `territorial` ORDER BY `territorial`.`id_territorial` DESC LIMIT 1\";\n $result = mysqli_query($this->link, $query);\n $data = array();\n while ($data[] = mysqli_fetch_assoc($result));\n array_pop($data);\n return $data;\n }", "public function getValor_moeda()\n {\n return $this->valor_moeda;\n }", "public function get_valor() {\n\t\t\n\t\t$ar_list_of_values\t= $this->get_ar_list_of_values();\n\t\t$dato \t\t\t\t= $this->get_dato();\n\t\t\n\t\tif (is_array ($ar_list_of_values)) foreach ($ar_list_of_values as $value => $rotulo) {\n\t\t\t\t\t\t\t\t\t\n\t\t\tif( $dato == $value ) {\n\t\t\t\t\n\t\t\t\t$this->valor = $rotulo; \n\t\t\t\t\n\t\t\t\treturn $this->valor;\n\t\t\t}\n\t\t\t#echo \"<br> - $dato - $value => $rotulo \";\n\t\t}\t\t\t\t\t\n\t}", "public function getValorPrevistoFormatado()\n {\n $util = new Util();\n return $util->formataMoedaReal($this->valor_previsto);\n }", "public function cesta_con_iva(){\r\n\t\t\t$total = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$precio = $elArticulo->oferta_iva>0?$elArticulo->oferta_iva:$elArticulo->precio_iva;\r\n\t\t\t\t$total+= round($elArticulo->unidades*$precio,2);\r\n\t\t\t}\r\n\t\t\treturn $total;\r\n\t\t}", "public function iva_articulos(){\r\n\t\t\t$total = $this->cesta_con_iva()-$this->cesta_sin_iva();\t\t\t\r\n\t\t\treturn $total;\r\n\t\t}", "public function getValorArrecadado() {\n return $this->nValorArrecadado;\n }", "public function getTempatCuciTangan()\n {\n return $this->tempat_cuci_tangan;\n }", "public function getValorAtual() {\n return $this->nValorAtual;\n }", "public function getValorCofins()\n {\n return $this->valorCofins;\n }", "public function obtenerUltimoCodigoTipoResiduo(){\n //Insertar provincia se invoca al metodo en datos\n $this->tipoResiduoAccesoDatos->conectar();\n $resultado = $this->tipoResiduoAccesoDatos->obtenerUltimoCodigoTipoResiduo();\n $this->tipoResiduoAccesoDatos->cerrarConexion();\n return $resultado;\n }", "public function vr_hora()\n {\n\n $valor=$this->vr_hora;\n\n if ($this->id_tipotitulo == 3)\n {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 4) {\n $valor='15122';\n } elseif ($this->id_tipotitulo == 5) {\n $valor='19096';\n } elseif ($this->id_tipotitulo == 7) {\n $valor='23252';\n } elseif ($this->id_tipotitulo == 10) {\n $valor='27014';\n } elseif ($this->id_tipotitulo == 9) {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 11) {\n $valor='10208'; }\n elseif ($this->id_tipotitulo == 12) {\n $valor='0';\n }\n\n\n return $valor;\n\n }", "public function getMontacargasT()\n {\n\n return $this->montacargas_t;\n }", "function ventas_totales(){\n\t\tglobal $link;\n\t\n\t\t$sql =\"SELECT SUM(importe) FROM consumos\";\n\t\t$query = mysqli_query($link,$sql);\n\t\t$total = mysqli_fetch_assoc($query);\n\t\t\n\t\treturn $total[\"SUM(importe)\"];\n}", "function get_tarifKilometrique() {\n return $this->tarifKilometrique;\n }", "public function getValorAnulado() {\n return $this->nValorAnulado;\n }", "public static function ConsultarTemporalCid() {\r\n $db = new Conexion();\r\n\t\t$sql = $db->query(\"select MAX(idcompra) as id from compra;\");\r\n\t\t$dato3 = $db->recorrer($sql);\r\n return $dato3[0];\r\n }", "public function getValor($atributo){//retornar algún valor\n \treturn $this->$atributo;\n }", "public function getPartitaIVAClinica() {\r\n return $this->_partitaIVA;\r\n }", "public function ultimoPedido(){\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(idpedido)idpedido FROM tbpedidos c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n\n }", "public static function calculaVenda()\n {\n Marca::query()->update([\n 'dataultimacompra' => null,\n 'itensabaixominimo' => null,\n 'itensacimamaximo' => null,\n 'vendabimestrevalor' => null,\n 'vendasemestrevalor' => null,\n 'vendaanovalor' => null,\n 'vendaanopercentual' => null,\n ]);\n\n // Monta classificacao ABC\n $totalvendaano_geral = Marca::sum('vendaanovalor');\n $totalvendaano = Marca::where('abcignorar', '=', false)->sum('vendaanovalor');\n $posicao = 0;\n $percentual_acumulado = 0;\n\n foreach (Marca::orderByRaw('vendaanovalor DESC NULLS LAST')->orderBy('marca', 'ASC')->get() as $marca) {\n $abccategoria = 0;\n $abcposicao = null;\n\n if (!$marca->abcignorar) {\n $posicao++;\n $abcposicao = $posicao;\n $percentual_acumulado += (($marca->vendaanovalor / $totalvendaano) * 100);\n if ($percentual_acumulado <= 20) {\n $abccategoria = 3;\n } elseif ($percentual_acumulado <= 50) {\n $abccategoria = 2;\n } elseif ($percentual_acumulado <= 90) {\n $abccategoria = 1;\n } else {\n $abccategoria = 0;\n }\n }\n\n $marca->update([\n 'abccategoria' => $abccategoria,\n 'abcposicao' => $abcposicao,\n 'vendaanopercentual' => (($marca->vendaanovalor / $totalvendaano_geral) * 100),\n ]);\n\n $afetados++;\n }\n\n return $afetados;\n }", "public static function GetTotalVendas(){\n self::$results = self::query(\"SELECT sum(vlTotal) from tbComanda\");\n if (is_array(self::$results) || is_object(self::$results)){\n foreach(self::$results as $result){\n $result[0] = str_replace('.', ',', $result[0]);\n array_push(self::$resultRetorno, $result);\n return $result[0];\n }\n }\n return 0;\n }", "function cunsultas()\n {\n \t $data['categoria']=categoria::get();\n \t\t$data['unidad']=unidad::get();\n\n \t\treturn $data;\n }", "public function getMontoCuota()\n {\n return $this->monto_cuota;\n }", "public function getValorPago()\n {\n return $this->valorPago;\n }", "public function getMontantTva() {\n return $this->montantTva;\n }", "function valorLlamada($tipo)\n{\n if ($tipo == \"internacional\")\n {\n return 2;\n }\n else if ($tipo == \"larga\")\n {\n return 0.75;\n }\n\n return 0.2; // corta\n}", "public function getCarrera() {\n return $this->carrera;\n }", "public function getLargura() \r\n\t{\r\n\t\treturn $this->iLargura;\r\n\t}", "function getcantidad(){\n\t\treturn $this->cantidad;\n\t}", "public function getDataCalculo() {\n return $this->dtDataCalculo;\n }", "public function obtenerUltimoCodigoCanton() {\n\n $resultado = mysqli_query($this->connection, \"select max(codigoCanton) as ultimoCodigoCanton from tbcanton \");\n $ultimoCodigoCanton = 0;\n\n while ($filaTemporal = mysqli_fetch_array($resultado)) {\n $ultimoCodigoCanton = $filaTemporal['ultimoCodigoCanton'];\n }\n return $ultimoCodigoCanton;\n }", "function convertir_moneda($valor){\n\t\t//echo \"Entro: \".$valor;\n\t\t$sql=\"SELECT * FROM configuracion\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\t\tif(isset($_SESSION['moneda_temp']) && $_SESSION['moneda_temp']==\"dollar\")\n\t\t\t$valor=ceil($valor/$resultado['dolar_conf']);\n\t\tif(isset($_SESSION['moneda_temp']) && $_SESSION['moneda_temp']==\"euro\")\n\t\t\t$valor=ceil($valor/$resultado['euro_conf']);\n\t\treturn $valor;\n\t}", "public function obtener_fecha_minima_factura()\n {\n \t$query = $this->query_fecha_minima_factura();\n\n\t\tif($query)\n\t\t{\n\t\t\treturn formatear_respuesta($query, 'Fecha minima de factura', 200);\n\n\t\t}else{\n\n\t\t\treturn formatear_respuesta('No se pudo obtnener la fecha minima de factura', 404);\n\t\t}\n }", "public function smanjiCenu(){\n if($this->getGodiste() < 2010){\n $discount=$this->cenapolovnogauta*0.7;\n return $this->cenapolovnogauta=$discount;\n }\n return $this->cenapolovnogauta; \n }", "function getLastMvtCpt($id_cpte) {\n global $dbHandler, $global_id_agence;\n $db = $dbHandler->openConnection();\n $sql = \"SELECT MAX(date_comptable) FROM ad_mouvement m,ad_ecriture e WHERE e.id_ag = m.id_ag AND m.id_ag = $global_id_agence AND cpte_interne_cli='$id_cpte' AND m.id_ecriture=e.id_ecriture\";\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $dbHandler->closeConnection(true);\n $retour = $result->fetchrow();\n return $retour[0];\n}", "function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }", "public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}", "function getEmperor(){\r\n\t\t$this->retriveDataRow();\r\n\r\n\t\tif(!is_null($this->data)){\r\n\t\t\treturn $this->data['czlonek_1'];\r\n\t\t}else{\r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t}", "private function query_fecha_minima_factura(){\n\n \t$respuesta = false;\n\n\t\ttry {\n\n \t\t\t$this->db->select_min('cao_fatura.data_emissao');\n\t\t\t$this->db->from('cao_fatura');\t\t\n\n\t\t\t$query = $this->db->get();\n\n\t\t if ($query && $query->num_rows() > 0)\n\t\t {\n\t\t\t\t$respuesta = $query->result_array();\n\n\t\t }else{\n\n\t\t throw new Exception('Error al intentar obtener la factura de menor fecha');\n\t\t\t log_message('error', 'Error al intentar obtener la factura de menor fecha');\t\t \n\n\t\t $respuesta = false;\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\n\t\t\t$respuesta = false;\n\t\t}\t\t\t\n\n\t\treturn $respuesta;\n }", "static public function ctrCalcularIva(){\r\n\t\t$tabla = \"banco1219\";\r\n\r\n\t\t$respuesta = ModeloBanco1219Diario::mdlCalcularIva($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getValorAttribute($valor){\n return number_format($valor / 100, 2, '.', '');\n }", "public function ultimosPedidos(){\n //$conexao = $c->conexao();\n\n\n $sql = \"SELECT a.*, c.nome,date_format(data_inc, '%H:%i') AS hora FROM tbpedidos a,tbclientes c where c.reg = a.reg and a.status = 'A' order by a.idpedido desc;\";\n $sql = $this->conexao->query($sql);\n\n $dados = array();\n\n while ($row = $sql->fetch_assoc()) {\n \n $dado = array();\n\n $dado['idpedido'] = $row[\"idpedido\"];\n $dado['reg'] = $row[\"reg\"];\n $dado['tipo'] = $row[\"tipo\"];\n $dado['nome'] = $row[\"nome\"];\n $dado['status'] = $row[\"status\"];\n $dado['titulo'] = $row[\"titulo\"];\n $dado['hora'] = $row[\"hora\"];\n $dado['valor'] = number_format($row[\"valor\"], 2, \",\", \".\");\n $dados[] = $dado;\n\n }\n\n return $dados;\n\n }", "public function cesta_con_iva_formato(){\r\n\t\t\t$importe = $this->cesta_con_iva();\r\n\t\t\t$formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);\t\t\t\r\n\t\t\treturn $formatter->formatCurrency($importe, 'EUR');\r\n\t\t}", "public function getMarca() {\n return $this->iMarca;\n }", "private function calcolaValutazione()\n {\n\n $media=0;\n $i=0;\n foreach ($this->valutazioni as &$value){\n $media=$media+$value->getvoto();\n $i++;}\n $this->valutazione=$media/$i;\n\n }", "public function getPrecioConMonedaAttribute()\r\n {\r\n // capturar la moneda que ha configurado el usuario\r\n $simbolo = \"$\";\r\n $tipo_cambio = 1;\r\n return $simbolo . $this->precio * $tipo_cambio;\r\n }", "public function getESTADOCIVIL()\r\n {\r\n return $this->ESTADO_CIVIL;\r\n }", "public function getMonto(){\n\n $var_sum = CarritoProductosWeb::model()->findBySql('select ROUND(sum(`precio_total`), 2) as `precio_total` from carrito_productos_web \n WHERE id_pedido ='.$this->id_pedido, array());\n\n return $var_sum->precio_total;\n }", "public function getTempatCuciTanganRusak()\n {\n return $this->tempat_cuci_tangan_rusak;\n }", "public static function executaCalculo(){\n self::set(date(\"d/m/Y H:i:s\", mktime(self::getHora(), self::getMinuto(), self::getSegundo(), self::getMes(), self::getDia(), self::getAno())));\n return self::getDataEHoraCompleta('BR');\n }", "public function VerIVA()\r\n {\r\n\t\r\n\t$reg=mysql_query(\"SELECT Valor FROM impret WHERE Nombre='IVA'\", $this->con) or die('no se pudo conectar: ' . mysql_error());\r\n\t$reg=mysql_fetch_array($reg);\t\r\n\t$impuesto=$reg[\"Valor\"];\r\n\treturn($impuesto);\r\n\t}", "private function ultima_salida($codart,$deposito){\n\n $query1 = (new \\yii\\db\\Query())\n ->select(\"max(PE_fecha) as fecha\")\n ->from('valefar')\n ->join('INNER JOIN', 'consmed', 'consmed.PE_nroval = valefar.va_nrovale')\n ->where(['va_codart' => $codart,'VA_DEPOSITO' => $deposito]);\n\n $query2 = (new \\yii\\db\\Query())\n ->select(\"max(am_fecha) as fecha\")\n ->from('ambu_ren')\n ->join('INNER JOIN', 'ambu_enc', 'ambu_enc.am_numvale = ambu_enc.am_numvale')\n ->where(['am_codart' => $codart,'ambu_enc.AM_DEPOSITO' => $deposito]);\n\n\n $unionQuery = (new \\yii\\db\\Query())\n ->select(\"max(fecha) as ult_fecha\")\n ->from(['salidas' => $query1->union($query2)]);\n \n \n return $unionQuery->one()['ult_fecha'];\n\n }", "static public function mdlMostrarTemporalTotal($valor){\n\n $stmt = Conexion::conectar()->prepare(\"SELECT\n\t\t\t\t\t\t\t\t\t\t\t\tdt.codigo,\n\t\t\t\t\t\t\t\t\t\t\t\tSUM(total) AS totalArt\n\t\t\t\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t\t\t\tdetalle_ing_sal dt\n\t\t\t\t\t\t\t\t\t\t\tWHERE dt.codigo = $valor\");\n\n $stmt -> execute();\n\n return $stmt -> fetch();\n\n\t\t$stmt -> close();\n\n\t\t$stmt = null;\n\n }", "public function cesta_sin_iva(){\r\n\t\t\t$total = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$precio = $elArticulo->oferta>0?$elArticulo->oferta:$elArticulo->precio;\r\n\t\t\t\t$total+= round($elArticulo->unidades*$precio,2);\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn $total;\r\n\t\t}", "public function getAtraso() \n {\n // verifica se o atras ja foi calculado\n if (!$this->atraso) { \n $dataAtual = time();\n $vencimento = strtotime(Helper::dateUnmask($this->data_vencimento, Helper::DATE_DEFAULT));\n $diferenca = $dataAtual - $vencimento;\n\n // calcula o atraso e\n // não considera o dia do vencimento\n $this->atraso = round($diferenca / (60 * 60 * 24)) - 1;\n \n // valida o atraso negativo\n if ($this->atraso < 0) {\n $this->atraso = 0;\n }\n }\n \n return $this->atraso;\n }", "public function peso_cesta(){\r\n\t\t\t$peso = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$peso+=($elArticulo->peso*$elArticulo->unidades);\r\n\t\t\t\tparent::$log->debug(\"Peso $elArticulo->articulo= $elArticulo->peso(kg) * $elArticulo->unidades(u) = \".($elArticulo->unidades*$elArticulo->peso).\" Peso acumulado de la cesta=\".$peso);\r\n\t\t\t}\r\n\t\t\treturn $peso;\r\n\t\t}", "public function totalMes(){\n //$conexao = $c->conexao();\n\n $sql = \" SELECT ifnull(sum(c.valor+c.troco),0) as total from tbpedido_pagamento c WHERE MONTH(c.data_pagamento) = MONTH(now()) and c.status = 'F';\";\n $rstotal = $this->conexao->query($sql);\n $result = $rstotal->fetch_assoc();\n $totalgeral = $result['total'];\n\n return $totalgeral;\n }", "public function getDataNascimentoConjuge() {\n\n if (!empty($this->oDataNascimentoConjuge)) {\n return $this->oDataNascimentoConjuge->getDate(DBDate::DATA_PTBR);\n }\n }", "public function getValeur() {\n return floatval($this->valeur);\n }", "public function getPrecioVenta()\n\t{\n\t\treturn $this->precio_venta;\n\t}", "static Public function mdlgetUltNumCancelado(){\n\ttry{ \n\t $stmt=Conexion::conectar()->prepare(\"SELECT MAX(num_cancelacion)+1 AS num_cancelacion FROM cancela_venta\");\n\n\t $stmt->execute();\n\t \n\t return $stmt->fetch();\n\n\t} catch (Exception $e) {\n\t\techo \"Failed: \" . $e->getMessage();\n }\n\t //$stmt->close();\n\t \n\t $stmt=null;\n }", "public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}", "public function getDataPagamento()\n {\n return $this->dataPagamento ?? date('Y-m-d');\n }", "public function getTipoValor()\n {\n return $this->tipoValor;\n }", "static public function ctrCalcularIva(){\r\n\t\t$tabla = \"banco6278\";\r\n\r\n\t\t$respuesta = ModeloBanco6278Diario::mdlCalcularIva($tabla);\r\n\r\n\t\treturn $respuesta;\r\n\t}", "public function getStrPaginaUltima()\r\n\t\t\t\t{\r\n\t\t\t\t\treturn $this->strPaginaUltima;\r\n\t\t\t\t}", "public function getNumeroCivico() {\n return $this->numeroCivico;\n }", "public function getMontacargasE()\n {\n\n return $this->montacargas_e;\n }", "public function somarValores()\n {\n return $this->bd->sum($this->tabela, \"valor\");\n }", "function valore_totale_mio_ordine($idu,$usr){\r\n$sql=\"SELECT\r\nSum(retegas_dettaglio_ordini.qta_arr*retegas_articoli.prezzo) AS somma_valore_ordine\r\nFROM\r\nretegas_ordini\r\nInner Join retegas_dettaglio_ordini ON retegas_ordini.id_ordini = retegas_dettaglio_ordini.id_ordine\r\nInner Join retegas_articoli ON retegas_dettaglio_ordini.id_articoli = retegas_articoli.id_articoli\r\nWHERE\r\nretegas_ordini.id_ordini = '$idu' AND\r\nretegas_dettaglio_ordini.id_utenti='$usr'\r\nGROUP BY\r\nretegas_ordini.id_ordini,\r\nretegas_ordini.id_listini,\r\nretegas_ordini.descrizione_ordini,\r\nretegas_ordini.costo_trasporto,\r\nretegas_ordini.costo_gestione\r\nLIMIT 1\";\r\n$ret = mysql_query($sql);\r\n $row = mysql_fetch_row($ret);\r\n return $row[0];\r\n \r\n}", "function valorDoBtcComEncargosSaque($param_valor)\n{\n\n//pega o btc e soma valor final do btc com todos encargos\n\n\t$percentual = 0.70 / 100.0; // 15%\n\t$valor_final = $param_valor - ($percentual * $param_valor);\n\t//comissoes 1,99 + 2,90\n\t$percentual2 = 2.0 / 100.0;\n\t$valorTotal = $percentual2 * $param_valor;\n\t\n\t\n\t\n\t$finalTodos = $valor_final - $valorTotal - 3;\n\n\t\treturn $finalTodos;\n}", "public function getValorDepreciavel() {\n return $this->nValorDepreciavel;\n }" ]
[ "0.6484742", "0.63590187", "0.6262433", "0.6255732", "0.62440497", "0.6213362", "0.61570513", "0.6125437", "0.59932", "0.5942775", "0.59411466", "0.59411466", "0.5938758", "0.59313446", "0.59239733", "0.58884555", "0.587881", "0.586586", "0.5861279", "0.5818288", "0.5779129", "0.5764804", "0.5750299", "0.5748103", "0.5731696", "0.57223123", "0.57162285", "0.5690377", "0.56773734", "0.565877", "0.5651065", "0.56473964", "0.5614941", "0.561202", "0.56113577", "0.55934185", "0.559038", "0.5590206", "0.5580934", "0.5577422", "0.5577257", "0.55611", "0.5550238", "0.5536753", "0.55337757", "0.5530451", "0.5517777", "0.5508804", "0.5508226", "0.54987615", "0.5491489", "0.54895777", "0.54876626", "0.5486927", "0.5474857", "0.54663956", "0.54657435", "0.54513353", "0.5449289", "0.54463047", "0.54426664", "0.54398656", "0.54370475", "0.5421593", "0.54206616", "0.5415988", "0.54136235", "0.54106855", "0.53970844", "0.5393633", "0.53919065", "0.5373446", "0.5359942", "0.5353799", "0.5351116", "0.53466946", "0.5339609", "0.5336299", "0.53315717", "0.5331359", "0.532101", "0.53205174", "0.5319585", "0.53156316", "0.5314766", "0.5314305", "0.5302418", "0.5301319", "0.5298899", "0.5298044", "0.52931565", "0.5288594", "0.52869445", "0.5284385", "0.52823", "0.52762145", "0.5266959", "0.52568877", "0.52553743", "0.52544796" ]
0.81332225
0
Set the value of obstaculos.
public function setObstaculos($obstaculos) { $this->obstaculos = $obstaculos; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getObstaculos()\n {\n return $this->obstaculos;\n }", "public function setObservacionesAttribute($value)\n\t{\n\t\t$this->attributes['observaciones'] = mb_strtoupper($value);\n\t}", "public function setObservacao( $observacao )\n {\n \t$this->observacao = $observacao;\n }", "function setObservaciones($observaciones) {\r\n $this->observaciones = $observaciones;\r\n }", "public function setObservacao($sObservacao){\n $this->sObservacao = $sObservacao;\n }", "public function mudarStatus(){\n //CO_STATUS = 5 se refere ao caso clinico Disponivel na base publica\n\n //busca e atualiza todos os casos clinicos que tenham CO_STATUS = 4 para o CO_STATUS = 5\n CasoClinico::where('CO_STATUS', '=', 4)->update(['CO_STATUS' => '5']);\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function setCot_observaciones($cot_observaciones){\n $this->cot_observaciones = $cot_observaciones;\n }", "public function updating(AreaConhecimento $area_conhecimento)\n {\n $area_conhecimento->ativo = $area_conhecimento->ativo ?? 0;\n }", "public function setIntentos($intentos){\n $this->intentos = $intentos;\n }", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setCoEquipo($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setCoRegion($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setCoNegocio($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCoDivision($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCoTipo($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCoCustodio($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setTxEtiquetaSti($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCoEstado($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setTxNombreEquipo($value);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t$this->setTxFunsionEquipo($value);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t$this->setCoSo($value);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t$this->setTxEtiquetaActivo($value);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$this->setTxSerialHardware($value);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$this->setTxMarcaHardware($value);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$this->setTxModeloHardware($value);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\t$this->setCoCiudad($value);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\t$this->setCoEdificio($value);\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\t$this->setTxDireccionUbicacion($value);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t$this->setTxDetalleUbicacion($value);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\t$this->setCoCentroDato($value);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\t$this->setCoRack($value);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\t$this->setTxUbicacionLlave($value);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\t$this->setInRespaldoAutomatizado($value);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\t$this->setInBloqueoInactividad($value);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\t$this->setInAdiministradoresPersonalizados($value);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\t$this->setInPoliticaPassword($value);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\t$this->setInSincronizacionReloj($value);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\t$this->setInMonitoreado($value);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\t$this->setInInfActualizada($value);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\t$this->setInLogActivo($value);\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\t$this->setCoNivelCriticidad($value);\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\t$this->setTxObservaciones($value);\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\t$this->setTxRutaRespaldoConfiguraciones($value);\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\t$this->setCoNumInventario($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function setOrganizations(?int $value): void {\n $this->getBackingStore()->set('organizations', $value);\n }", "protected function setOpcao($sNome, $mValor) \r\n\t{\r\n\t\t$this->aOpcoes[$sNome] = $mValor;\r\n\t}", "public function updateAtivo(Patrocinio $Patrocinio) {\n $conn = $this->conex->connectDatabase();\n if($Patrocinio->getStatus()==\"0\"){\n $Patrocinio->setStatus(\"1\");\n }\n else {\n $Patrocinio->setStatus(\"0\");\n }\n //Query de update\n $sql = \"update tbl_patrocinio set ativo=? where id_patrocinio=?\";\n $stm = $conn->prepare($sql);\n //Setando os valores\n $stm->bindValue(1, $Patrocinio->getStatus());\n $stm->bindValue(2, $Patrocinio->getId());\n //Executando a query\n $stm->execute();\n $this->conex->closeDataBase();\n }", "public function setPrejuizos_Acumulados($object){\n\t\tif($object->getrelacao_cr_db()->getCr() == '2.3.3.02') {\n\t\t\t$this->Prejuizos_Acumulados -= $object->getvalor();\n\t\t}\n\t\t\n\t\t// Debita no prejuizos acumulados.\n\t\tif($object->getrelacao_cr_db()->getDb() == '2.3.3.02') {\n\t\t\t$this->Prejuizos_Acumulados += $object->getvalor();\n\t\t}\n\t}", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function setEmprestimos_Bancarios($object){\n\t\tif(substr($object->getrelacao_cr_db()->getCr(), 0, -3) == '2.1.2') {\n\t\t\t$this->Emprestimos_Bancarios += $object->getvalor();\n\t\t}\n\t\t\n\t\t// Debita do emprestimo (Efetua o pagamento total ou parcial do emprestimo).\n\t\tif(substr($object->getrelacao_cr_db()->getDb(), 0, -3) == '2.1.2') {\n\t\t\t$this->Emprestimos_Bancarios -= $object->getvalor();\n\t\t}\n\t}", "public function setByPosition($pos, $value)\n\t{\n\t\tswitch($pos) {\n\t\t\tcase 0:\n\t\t\t\t$this->setCoParticipante($value);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->setCoUsuarioElabora($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setCoForense($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setCoInformeRecomendaciones($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCoInformeIncidente($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCoInformeForense($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setCoInformeDepuracion($value);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->setCoMantenimiento($value);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->setCoDoumentoNormativo($value);\n\t\t\t\tbreak;\n\t\t} // switch()\n\t}", "public function setTxObservaciones($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->tx_observaciones !== $v) {\n\t\t\t$this->tx_observaciones = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::TX_OBSERVACIONES;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setStato($status)\n {\n $this->stato = $status;\n }", "public function setCot_estado($cot_estado){\n $this->cot_estado = $cot_estado;\n }", "public function edit(){\n $carros = array();\n\n $nomes[] = 'Astra';\n $nomes[] = 'Caravan';\n $nomes[] = 'Ipanema';\n $nomes[] = 'Kadett';\n $nomes[] = 'Monza';\n $nomes[] = 'Opala';\n $nomes[] = 'Veraneio';\n\n $this->set('carros',$nomes);\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public static function updateServizi()\n {\n //arrivano i servizi modificati\n if (isset($_REQUEST['update_servizi'])) {\n $_SESSION['update_servizi'] = $_REQUEST['update_servizi'];\n }\n // effettua la registrazione dell'azienda\n $update = UtenteFactory::updateServizi();\n if ($update == 1) {\n $_SESSION['errore'] = 6;\n } elseif ($update == 0) {\n $_SESSION['errore'] = 5;\n }\n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_modifica_profilo.php\");\n $vd->setContentFile(\"../view/in/azienda/modifica_servizi.php\");\n $vd->setErrorFile(\"../view/in/error_in.php\");\n $vd->setFooterFile(\"../view/in/footer_empty.php\");\n \n require_once '../view/Master.php';\n }", "public function setListar($value)\n\t{\n\t\t$this->listar = $value;\n\t}", "public function buscarObligaciones($valor) {\n return $this->conexionObligaciones->buscar($valor, \"CARNET\", \"ASC\");\n }", "public function setObservacion($Observacion)\r\n {\r\n $this->Observacion = $Observacion;\r\n\r\n return $this;\r\n }", "public function getCot_observaciones(){\n return $this->cot_observaciones;\n }", "function modificarCuentaServSoc()\n {\n // TODO: Implement modificarCuentaServSoc() method.\n }", "public function actualizarMunicipiosTodos()\n\t\t{\n\t\t\t$this->load->model(\"modpersona\");\n\t\t\t$dpto=$this->input->post(\"id\");\n\t\t\t$mpio=$this->modpersona->consultarTodosMpios($dpto);\n\t\t\techo '<option value=\"\">Seleccione el municipio</option>';\n \t\t\tfor($i=0;$i<count($mpio);$i++)\n \t\t\t{\n \t\t\t\techo '<option value=\"'.$mpio[$i][\"VALOR_MINIMO\"].'\">'.$mpio[$i][\"DESCRIPCION\"].'</option>';\n \t\t\t}\n\t\t}", "public function setCusto($custo) {\n $this->custo = $custo;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setIdmontacargas($value);\n break;\n case 1:\n $this->setIdsucursal($value);\n break;\n case 2:\n $this->setMontacargasModelo($value);\n break;\n case 3:\n $this->setMontacargasMarca($value);\n break;\n case 4:\n $this->setMontacargasC($value);\n break;\n case 5:\n $this->setMontacargasK($value);\n break;\n case 6:\n $this->setMontacargasP($value);\n break;\n case 7:\n $this->setMontacargasT($value);\n break;\n case 8:\n $this->setMontacargasE($value);\n break;\n case 9:\n $this->setMontacargasVolts($value);\n break;\n case 10:\n $this->setMontacargasAmperaje($value);\n break;\n case 11:\n $this->setMontacargasNombre($value);\n break;\n case 12:\n $this->setMontacargasNumserie($value);\n break;\n case 13:\n $this->setMontacargasComprador($value);\n break;\n case 14:\n $this->setMontacargasCiclosmant($value);\n break;\n case 15:\n $this->setMontacargasCiclosiniciales($value);\n break;\n case 16:\n $this->setMontacargasBaja($value);\n break;\n } // switch()\n }", "protected function doSet($value)\n {\n }", "public function actualizar_estado() {\n }", "public function setObservacoes($observacoes)\n {\n $this->observacoes = $observacoes;\n\n return $this;\n }", "public function setActiveDevices(?int $value): void {\n $this->getBackingStore()->set('activeDevices', $value);\n }", "public function salirSistema( ) {\n $this->setComando(\"OFF\");\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "public function setOwnerAppIds(?array $value): void {\n $this->getBackingStore()->set('ownerAppIds', $value);\n }", "function setTarjeta($objeto_tarjeta){\n\t\tfor($i=0;$i<5;$i++){\n\t\t\t//Guardo la tarjeta en el primer lugar libre del arreglo\n\t\t\tif($this->objetos_tarjetas[$i]==NULL){\n\t\t\t\t$this->objetos_tarjetas[$i]=$objeto_tarjeta;\n\t\t\t\t//Fuerzo la salida del for de lo contrario seguiria guardando la tarjeta\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public function setObservacao($observacao)\n {\n $this->observacao = $observacao;\n\n return $this;\n }", "public function setFinanciamentos_Bancarios($object){\n\t\tif(substr($object->getrelacao_cr_db()->getCr(), 0, -3) == '2.2.1') {\n\t\t\t$this->Financiamentos_Bancarios += $object->getvalor();\n\t\t}\n\t}", "public function setStatus(?OperationStatus $value): void {\n $this->getBackingStore()->set('status', $value);\n }", "public function __set($nome, $valor) {\n $this->nome = $valor;\n }", "public function __set($nome, $valor) {\n $this->dados[$nome] = $valor;\n }", "public function setStatusAttribute($value)\n {\n $this->attributes['status'] = $value ? 'open' : 'close';\n }", "public function setCliNombreAttribute($value)\n {\n $this->attributes['cli_nombre'] = strtoupper($value);\n }", "public function setValue($value)\n {\n $value = arr::get($value, 'value', NULL);\n\n if ($value !== NULL)\n {\n //pokud prisla prazdna hodnota, tak do modelu ukladam NULL\n if (empty($value))\n {\n $value = NULL;\n }\n\n parent::setValue($value);\n }\n }", "public function set()\n {\n // to reflect the current bar.\n\n // Why?\n\n // Otherwise the bar count gets repeated. And that people notice.\n\n $this->variables->setVariable(\"count\", $this->bar_count);\n $this->variables->setVariable(\"max_bar_count\", $this->max_bar_count);\n\n $this->variables->setVariable(\"refreshed_at\", $this->current_time);\n }", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function __set($name, $value)\n {\n $this->m_current_clusternode->$name = $value;\n }", "function siguienteEstadoSolObligacion()\r\n {\r\n $this->procedimiento = 'tes.ft_solicitud_obligacion_pago_ime';\r\n $this->transaccion = 'TES_SOSIGESTOB_IME';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_obligacion_pago', 'id_obligacion_pago', 'int4');\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('id_depto_lb', 'id_depto_lb', 'int4');\r\n $this->setParametro('obs', 'obs', 'text');\r\n $this->setParametro('json_procesos', 'json_procesos', 'text');\r\n $this->setParametro('instruc_rpc', 'instruc_rpc', 'varchar');\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 }", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "private function ExibirTamanhos(){\r\n $oDadosCamiseta;\r\n $sSql = \"SELECT * FROM tamanho_camiseta\";\r\n $oDadosCamiseta = $this->Fbd->PesquisarSQL($sSql);\r\n \r\n foreach($oDadosCamiseta as $oRegistro){\r\n echo \"<option value='\".$oRegistro->sigla.\"' class='sctOptTamanho'>\".$oRegistro->nome.\"</option>\";\r\n }\r\n }", "function setValSubNode($nombre,$valor){\n\t\t$clase=$this->nmclass;\n\t\t$this->nodos[$clase][$nombre]=$valor;\n\t\t$this->anode=$nombre;\n\t\treturn 0;\n\t}", "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setSekolahId($value);\n break;\n case 1:\n $this->setSemesterId($value);\n break;\n case 2:\n $this->setSumberAirId($value);\n break;\n case 3:\n $this->setSumberAirMinumId($value);\n break;\n case 4:\n $this->setCreateDate($value);\n break;\n case 5:\n $this->setLastUpdate($value);\n break;\n case 6:\n $this->setSoftDelete($value);\n break;\n case 7:\n $this->setLastSync($value);\n break;\n case 8:\n $this->setUpdaterId($value);\n break;\n case 9:\n $this->setKetersediaanAir($value);\n break;\n case 10:\n $this->setKecukupanAir($value);\n break;\n case 11:\n $this->setMinumSiswa($value);\n break;\n case 12:\n $this->setMemprosesAir($value);\n break;\n case 13:\n $this->setSiswaBawaAir($value);\n break;\n case 14:\n $this->setToiletSiswaLaki($value);\n break;\n case 15:\n $this->setToiletSiswaPerempuan($value);\n break;\n case 16:\n $this->setToiletSiswaKk($value);\n break;\n case 17:\n $this->setToiletSiswaKecil($value);\n break;\n case 18:\n $this->setJmlJambanLG($value);\n break;\n case 19:\n $this->setJmlJambanLTg($value);\n break;\n case 20:\n $this->setJmlJambanPG($value);\n break;\n case 21:\n $this->setJmlJambanPTg($value);\n break;\n case 22:\n $this->setJmlJambanLpG($value);\n break;\n case 23:\n $this->setJmlJambanLpTg($value);\n break;\n case 24:\n $this->setTempatCuciTangan($value);\n break;\n case 25:\n $this->setTempatCuciTanganRusak($value);\n break;\n case 26:\n $this->setASabunAirMengalir($value);\n break;\n case 27:\n $this->setJambanDifabel($value);\n break;\n case 28:\n $this->setTipeJamban($value);\n break;\n case 29:\n $this->setASediaPembalut($value);\n break;\n case 30:\n $this->setKegiatanCuciTangan($value);\n break;\n case 31:\n $this->setPembuanganAirLimbah($value);\n break;\n case 32:\n $this->setAKurasSeptitank($value);\n break;\n case 33:\n $this->setAMemilikiSolokan($value);\n break;\n case 34:\n $this->setATempatSampahKelas($value);\n break;\n case 35:\n $this->setATempatSampahTutupP($value);\n break;\n case 36:\n $this->setACerminJambanP($value);\n break;\n case 37:\n $this->setAMemilikiTps($value);\n break;\n case 38:\n $this->setATpsAngkutRutin($value);\n break;\n case 39:\n $this->setAAnggaranSanitasi($value);\n break;\n case 40:\n $this->setAMelibatkanSanitasiSiswa($value);\n break;\n case 41:\n $this->setAKemitraanSanDaerah($value);\n break;\n case 42:\n $this->setAKemitraanSanPuskesmas($value);\n break;\n case 43:\n $this->setAKemitraanSanSwasta($value);\n break;\n case 44:\n $this->setAKemitraanSanNonPem($value);\n break;\n case 45:\n $this->setKieGuruCuciTangan($value);\n break;\n case 46:\n $this->setKieGuruHaid($value);\n break;\n case 47:\n $this->setKieGuruPerawatanToilet($value);\n break;\n case 48:\n $this->setKieGuruKeamananPangan($value);\n break;\n case 49:\n $this->setKieGuruMinumAir($value);\n break;\n case 50:\n $this->setKieKelasCuciTangan($value);\n break;\n case 51:\n $this->setKieKelasHaid($value);\n break;\n case 52:\n $this->setKieKelasPerawatanToilet($value);\n break;\n case 53:\n $this->setKieKelasKeamananPangan($value);\n break;\n case 54:\n $this->setKieKelasMinumAir($value);\n break;\n case 55:\n $this->setKieToiletCuciTangan($value);\n break;\n case 56:\n $this->setKieToiletHaid($value);\n break;\n case 57:\n $this->setKieToiletPerawatanToilet($value);\n break;\n case 58:\n $this->setKieToiletKeamananPangan($value);\n break;\n case 59:\n $this->setKieToiletMinumAir($value);\n break;\n case 60:\n $this->setKieSelasarCuciTangan($value);\n break;\n case 61:\n $this->setKieSelasarHaid($value);\n break;\n case 62:\n $this->setKieSelasarPerawatanToilet($value);\n break;\n case 63:\n $this->setKieSelasarKeamananPangan($value);\n break;\n case 64:\n $this->setKieSelasarMinumAir($value);\n break;\n case 65:\n $this->setKieUksCuciTangan($value);\n break;\n case 66:\n $this->setKieUksHaid($value);\n break;\n case 67:\n $this->setKieUksPerawatanToilet($value);\n break;\n case 68:\n $this->setKieUksKeamananPangan($value);\n break;\n case 69:\n $this->setKieUksMinumAir($value);\n break;\n case 70:\n $this->setKieKantinCuciTangan($value);\n break;\n case 71:\n $this->setKieKantinHaid($value);\n break;\n case 72:\n $this->setKieKantinPerawatanToilet($value);\n break;\n case 73:\n $this->setKieKantinKeamananPangan($value);\n break;\n case 74:\n $this->setKieKantinMinumAir($value);\n break;\n } // switch()\n }", "public function offsetSet($offset, $value) {\n \n //warunek sprawdzający czy nie została przekroczona ilość elementów w tablicy\n if ($offset > count($this->container)) {\n throw new \\Exception('zakres przekroczony');\n }\n\n //warunek sprawdzający czy istnieje klucz w tablicy\n if (!array_key_exists($offset, $this->container)) {\n throw new \\Exception('nie ma takiego klucza w tablicy');\n }\n\n //warunek sprawdzający czy zmieniana wartość nie jest liczbą typu int\n if (!is_int($value)){\n throw new \\Exception('zmieniana wartość musi być typu Int');\n }\n\n //warunek sprawdzający czy wprowadzona wartość jest 0 lub 1\n if ($value != 0 || $value != 1){\n throw new \\Exception('zmieniana wartość musi być 0 lub 1');\n }\n\n $this->container[$offset] = $value;\n }", "public function set() {\n if (!isset($_SESSION[\"session\"])) {\n show_404();\n }\n\n $respuesta = \"\";\n\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n if (isset($_POST[\"c1\"], $_POST[\"c2\"], $_POST[\"c3\"], $_POST[\"c4\"], $_POST[\"c5\"], $_POST[\"c6\"], $_POST[\"c7\"])) {\n\n\n #capturar datos \n $documento = $this->test_input($_POST[\"c1\"]);\n $nombre = $this->test_input($_POST[\"c2\"]);\n $rol = $this->test_input($_POST[\"c3\"]);\n $correo = $this->test_input($_POST[\"c4\"]);\n $contra = $this->test_input($_POST[\"c5\"]);\n $direccion = $this->test_input($_POST[\"c6\"]);\n $telefono = $this->test_input($_POST[\"c7\"]);\n\n //----------------------------------------------------\n #limpiarlos \n //----------------------------------------------------\n //---------------------------------------------------\n #comprobar que no se repita cedula y correo \n $objModelo = new UsuarioModelo();\n $resultado = $objModelo->comprobarDocCorreo($documento, $correo);\n if (count($resultado) > 0) {\n $respuesta = \"Error, Documento o Correo ya existen\";\n } else {\n #Guardar datos \n $respuesta = $objModelo->insert($documento, $nombre, $rol, $correo, $contra, $direccion, $telefono);\n if ($respuesta) {\n $respuesta = \"Usuario creado exitosamente\";\n }\n }\n \n }\n }\n\n #llenar array datos\n $datos[\"respuesta\"] = $respuesta;\n \n #llamar a la vista\n $this->load->view('plantillas/Cabecera');\n $this->load->view('back/UsuarioSet', $datos);\n $this->load->view('plantillas/Pie');\n }", "function setNuevaCuenta($origen, $subproducto, $socio,\n\t\t\t\t\t\t\t$observaciones = \"\", $credito = 1,\n\t\t\t\t\t\t\t$mancomunado1 = \"\", $mancomunado2 = \"\",\n\t\t\t\t\t\t\t$grupo = false, $fecha_de_alta = false,\n\t\t\t\t\t\t\t$tipo_de_cuenta = CAPTACION_TIPO_VISTA, $tipo_de_titulo = 99, $DiasInvertidos = false,\n\t\t\t\t\t\t\t$tasa = false, $CuentaDeInteres\t= false, $FechaVencimiento = false\n\t\t\t\t\t\t\t){\n\n\n\t\t$xT\t\t\t\t= new cTipos(0);\n\t\t$xF\t\t\t\t= new cFecha();\n\t\t$xLog\t\t\t= new cCoreLog();\n\t\t$socio\t\t\t= setNoMenorQueCero($socio);\n\t\t$ready\t\t\t= true;\n\t\t$tipo_de_cuenta\t= setNoMenorQueCero($tipo_de_cuenta);\n\t\t$tipo_de_titulo\t= setNoMenorQueCero($tipo_de_titulo);\n\t\t$credito\t\t= setNoMenorQueCero($credito);\n\t\t$grupo\t\t\t= setNoMenorQueCero($grupo);\n\t\t$DiasInvertidos\t= setNoMenorQueCero($DiasInvertidos);\n\t\t$tasa\t\t\t= setNoMenorQueCero($tasa, 4);\n\t\t$CuentaDeInteres= setNoMenorQueCero($CuentaDeInteres);\n\t\t$estado\t\t\t= 10;\n\t\t//Corrige el numero de persona\n\t\tif($socio <= DEFAULT_SOCIO AND $this->mSocioTitular > DEFAULT_SOCIO ){\n\t\t\t$xLog->add(\"WARN\\tCAMBIO Persona $socio a \" . $this->mSocioTitular . \"\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$socio\t\t= $this->mSocioTitular;\n\t\t}\n\t\t$xSoc\t\t\t\t= new cSocio($socio);\n\t\tif($xSoc->init() == true){\n\t\t\t//$cuenta\t\t\t= $xSoc->getIDNuevoDocto($tipo_de_cuenta, $subproducto);\n\t\t\t$cuenta\t\t\t= $xSoc->getIDNuevoDocto(iDE_CAPTACION);\n\t\t\t$CuentaDeInteres= $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES);\n\t\t\tif($grupo == DEFAULT_GRUPO OR $grupo == 0){ $grupo = $xSoc->getClaveDeGrupo(); }\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tAl cargar la Persona $socio\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$ready\t\t\t= false; //el socio existe\n\t\t}\n\t\t$xLog->add($xSoc->getMessages(), $xLog->DEVELOPER);\n\t\t//corrige la Cuenta de Intereses\n\t\t$CuentaDeInteres\t= ($CuentaDeInteres <= 0) ? DEFAULT_CUENTA_CORRIENTE : $CuentaDeInteres;\n\n\t\t$fecha_de_alta\t\t\t= $xF->getFechaISO($fecha_de_alta);\n\t\t$FechaVencimiento\t\t= $xF->getFechaISO($FechaVencimiento);\n\t\tif($tipo_de_cuenta == CAPTACION_TIPO_PLAZO){\n\t\t\t$DiasInvertidos\t\t= ($DiasInvertidos <=0 ) ? $this->mDiasInvertidos : $DiasInvertidos;\n\t\t\t$tasa\t\t\t\t= ($tasa <= 0) ? $this->mTasaInteres : $tasa;\n\t\t\t$FechaVencimiento\t= ($xF->getInt($FechaVencimiento) <= $xF->getInt($fecha_de_alta) ) ? $xF->setSumarDias($DiasInvertidos, $fecha_de_alta) : $FechaVencimiento;\n\t\t\t$estado\t\t\t\t= 20;\n\t\t\t$xLog->add(\"WARN\\tInversion Dias $DiasInvertidos Tasa $tasa Vencimiento $FechaVencimiento\\r\\n\", $xLog->DEVELOPER);\n\t\t\tif($xF->setRestarFechas($FechaVencimiento, $fecha_de_alta) != $DiasInvertidos){\n\t\t\t\t$DiasInvertidos\t= $xF->setRestarFechas($FechaVencimiento, $fecha_de_alta);\n\t\t\t\t$xLog->add(\"WARN\\tCAMBIO Inversion Dias $DiasInvertidos ($FechaVencimiento, $fecha_de_alta)\\r\\n\", $xLog->DEVELOPER);\n\t\t\t}\n\t\t} else {\n\t\t\t$xLog->add(\"WARN\\tVista $socio Producto $tipo_de_cuenta sub-producto $subproducto Origen $origen\\r\\n\", $xLog->DEVELOPER);\n\t\t}\n\t\t\n\t\t$xCta\t\t= new cCaptacion_cuentas();\n\t\t$xCta->cuenta_de_intereses($CuentaDeInteres);\n\t\t$xCta->dias_invertidos($DiasInvertidos);\n\t\t$xCta->eacp(EACP_CLAVE);\n\t\t$xCta->estatus_cuenta($estado);\n\t\t$xCta->fecha_afectacion($fecha_de_alta);\n\t\t$xCta->fecha_apertura($fecha_de_alta);\n\t\t$xCta->fecha_baja($xF->getFechaMaximaOperativa());\n\t\t$xCta->fecha_conciliada($fecha_de_alta);\n\t\t$xCta->idusuario(getUsuarioActual());\n\t\t$xCta->inversion_fecha_vcto($FechaVencimiento);\n\t\t$xCta->inversion_periodo(0);\n\t\t$xCta->minimo_mancomunantes(0);\n\t\t$xCta->nombre_mancomunado1($mancomunado1);\n\t\t$xCta->nombre_mancomunado2($mancomunado2);\n\t\t$xCta->numero_cuenta($cuenta);\n\t\t$xCta->numero_grupo($grupo);\n\t\t$xCta->numero_socio($socio);\n\t\t$xCta->numero_solicitud($credito);\n\t\t$xCta->observacion_cuenta($observaciones);\n\t\t$xCta->oficial_de_captacion(getUsuarioActual());\n\t\t$xCta->origen_cuenta($origen);\n\t\t$xCta->saldo_conciliado(0);\n\t\t$xCta->saldo_cuenta(0);\n\t\t$xCta->sucursal(getSucursal());\n\t\t$xCta->tasa_otorgada($tasa);\n\t\t$xCta->tipo_cuenta($tipo_de_cuenta);\n\t\t$xCta->tipo_titulo($tipo_de_titulo);\n\t\t$xCta->tipo_subproducto($subproducto);\n\t\t$xCta->ultimo_sdpm(0);\n\t\tif($ready == true){ \n\t\t\t$rs \t= $xCta->query()->insert()->save();\n\t\t\t$ready \t= ($rs == false) ? false : true;\n\t\t}\n\t\t//Asignar valores cargados\n\t\tif ( $ready == true) {\n\t\t\t$xLog->add(\"OK\\tSe Agrego Existosamente la Cuenta $cuenta del subproducto $subproducto \\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= true;\n\t\t\t$this->mSocioTitular\t\t= $socio;\n\t\t\t$this->mGrupoAsociado\t\t= $grupo;\n\t\t\t$this->mCreditoAsoc\t\t\t= $credito;\n\t\t\t$this->mNumeroCuenta\t\t= $cuenta;\n\t\t\t$this->mDiasInvertidos\t\t= $DiasInvertidos;\n\t\t\t$this->mFechaVencimiento\t= $FechaVencimiento;\n\t\t\t$this->mTasaInteres\t\t\t= $tasa;\n\t\t\t$this->mFechaOperacion\t\t= $fecha_de_alta;\n\t\t\t$this->init();\t\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tError al agregar la Cuenta $cuenta del subproducto $subproducto\\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= false;\n\t\t}\n\t\t//setLog($xLog->getMessages());\n\t\t$this->mMessages\t\t\t\t.= $xLog->getMessages();\n\t\treturn $this->mNumeroCuenta;\n\t}", "public function setContas_a_Pagar_C($object, $ano){\n\t\tif(substr($object->getrelacao_cr_db()->getCr(), 0, -3) == '2.1.5') {\n\t\t\t$this->Contas_a_Pagar_C += $object->getvalor();\n\t\t}\n\t\t\n\t\t// Debita em contas a pagar (subtrai o valor já pago).\n\t\tif(substr($object->getrelacao_cr_db()->getDb(), 0, -3) == '2.1.5') {\n\t\t\t$this->Contas_a_Pagar_C -= $object->getvalor();\n\t\t}\t\t\n\t}", "public function getObservacao(){\n return $this->sObservacao;\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "function setValue($value) {\n $this->value = $value;\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function set_clientes(objeto_cliente $cliente){\n\t$consulta_insertar = new Conectar();\n\t$consulta_insertar = $consulta_insertar->conexion();\n\t$query=\"insert into clientes (cliente_id, nombre, celular, pais, correo) values (:cl_id, :nom, :cel, :pais, :corr)\";\n\n\t$resultado=$consulta_insertar->prepare($query);\n\n\t$resultado->execute(array(\":cl_id\"=>$cliente->get_cliente_id(),\":nom\"=>$cliente->get_nombre(),\":cel\"=>$cliente->get_celular(),\":pais\"=>$cliente->get_pais(),\":corr\"=>$cliente->get_correo()));\n\n\n\t}", "function setCausaleEvasione($codice)\n {\n $this->cauEvasione = $codice; \n }", "public function actualizarMunicipios()\n\t\t{\n\t\t\t$this->load->model(\"modpersona\");\n\t\t\t$dpto=$this->input->post(\"id\");\n\t\t\t$mpio=$this->modpersona->consultarMpio($dpto);\n\t\t\techo '<option value=\"\">Seleccione el municipio</option>';\n \t\t\tfor($i=0;$i<count($mpio);$i++)\n \t\t\t{\n \t\t\t\techo '<option value=\"'.$mpio[$i][\"VALOR_MINIMO\"].'\">'.$mpio[$i][\"DESCRIPCION\"].'</option>';\n \t\t\t}\n\t\t}", "public function change()\n {\n \n $this->execute('DELETE FROM cotz_cotizaciones_catalogo WHERE id = 12');\n \n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Abierta', etiqueta='abierta' WHERE id = '7'\");\n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Ganada', etiqueta='ganada' WHERE id = '9'\");\n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Perdida', etiqueta='perdida' WHERE id = '10'\");\n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Anulada', etiqueta='anulada' WHERE id = '11'\");\n \n $this->execute(\"UPDATE cotz_cotizaciones SET estado='abierta' WHERE estado = 'aprobado'\");\n $this->execute(\"UPDATE cotz_cotizaciones SET estado='ganada' WHERE estado = 'ganado'\");\n $this->execute(\"UPDATE cotz_cotizaciones SET estado='perdida' WHERE estado = 'perdido'\");\n $this->execute(\"UPDATE cotz_cotizaciones SET estado='anulada' WHERE estado = 'anulado'\");\n }", "function setSoporte($soporte) {\r\n $this->soporte = $soporte;\r\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }", "function setCobrar($tarjeta1,$tarjeta2,$tarjeta3,$tarjeta4,$tarjeta5,$partida){\n\t$tarjetas=array(0=>$tarjeta1,1=>$tarjeta2,2=>$tarjeta3,3=>$tarjeta4,4=>$tarjeta5);\n\t$tarjeta_cambio;\n\t$veces_entre_foreach=0;\n\t$cantidad=0;\n\t\t\t//pregunta si el usuario saco tarjeta en la ronda, si no saco no puede cambiar ninguna de las que ya tiene(por esto ese if)\n\tif($partida->turno_usuario->getSaqueTarjeta() == 1){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tforeach($tarjetas as $tarjeta){\n\t\t\t\tif($tarjeta == 1){\n\t\t\t\t\tif($partida->turno_usuario->getTarjeta($veces_entre_foreach)!=NULL ){\n\t\t\t\t\t\t\t//solamente puede tomar una tarjeta, porque es cobrar, si hay mas de una seleccionadada cantidad de hace mas de 1 y el cambio no se realiza\n\t\t\t\t\t\tif($cantidad < 1){\n\t\t\t\t\t\t\t\t//digo que la tarjeta que esta en la posicion $avanzar_arreglo del usuario fue seleccionada\n\t\t\t\t\t\t\t$tarjeta_cambio=$partida->turno_usuario->getTarjeta($veces_entre_foreach);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$cantidad++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$veces_entre_foreach++;\n\t\t\t}//foreach($tarjetas as $tarjeta){\n\t\t\t\n\t\t\t\t//si se selecciono una y solo una tarjeta\n\t\t\tif($cantidad == 1){\n\t\t\t\t\t//compruebo si la tarjeta esta en estado de ser cambiada\n\t\t\t\tif($tarjeta_cambio->getEstado() == 0 ){\n\t\t\t\t\t\t\n\t\t\t\t\t$id_pais=$tarjeta_cambio->getIdPais();\n\t\t\t\t\t\t//recorro todos los paises \n\t\t\t\t\tforeach($partida->paises as $pais){\t\n\t\t\t\t\t\t\t//compruebo si id del usuario en turno es igual al del propietario del pais que selecciona el foreach Y aparte compruebo que \n\t\t\t\t\t\t\t//el pais al que hace referencia la tarjeta sea el seleccionado por el foreach\n\t\t\t\t\t\tif($id_pais == $pais->getId() && $partida->turno_usuario->getId() == $pais->getPropietario()->getId() )\t{\n\t\t\t\t\t\t\t\t//cambio el estado de la tarjeta\n\t\t\t\t\t\t\t$tarjeta_cambio->setEstado(1);\n\t\t\t\t\t\t\t\t//le entrego al pais al que hace referencia 2 fichas\n\t\t\t\t\t\t\t$pais->setFichas(2);\n\t\t\t\t\t\t\t\t//reseteo el saco tarjeta, para que en la misma ronda no pueda cobrar dos tarjetas\n\t\t\t\t\t\t\t$partida->turno_usuario->setSaqueTarjetaReset();\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//if($cantidad == 1){\n\t\t\t\n\t}//if($partida->turno_usuario->getSaqueTarjeta() == 1){\t\n}", "public function versionarObjetosNaoVersionados()\n\t{\n\t\t//salvando log de inicio da operação\n\t Basico_OPController_LogOPController::getInstance()->salvaLogFS(LOG_MSG_CREATE_CVC_INICIO);\n\n\t // setando as diretrizes administraticas para execucao de metodos administrativos e recuperando as configuracoes atuais do servidor\n\t $arrayConfigAtualPHP = Basico_OPController_UtilOPController::setaDiretivasAdministrativasPHP();\n\t \n\t\t// desabilitado o pool de ids de objetos manipulados (p/log)\n\t\tself::desabilitaPoolIdsObjetosManipulados();\n\n\t\t// recuperando todos os modelos dos sistema\n\t\t$arrayNomesModelosSistema = Basico_OPController_UtilOPController::retornaArrayNomeTodosModelosSistema(true);\n\n\t\t// recuperando array de objetos que nao devem ser versionados\n\t\t$arrayNomesObjetosNaoVersionais = self::retornaArrayNomesObjetosNaoVerionaveis();\n\n\t\t// loop para remover os objetos nao verionaveis do array de modelos do sistema\n\t\tforeach ($arrayNomesObjetosNaoVersionais as $nomeObjetoNaoVersionavel) {\n\t\t\t// localizando o objeto nao versionavel no array de modelos do sistema\n\t\t\tif (($chaveObjetoNaoVersionavel = array_search($nomeObjetoNaoVersionavel, $arrayNomesModelosSistema)) !== false) {\n\t\t\t\t// removendo elemento\n\t\t\t\tunset($arrayNomesModelosSistema[$chaveObjetoNaoVersionavel]);\n\t\t\t}\n\n\t\t\t// limpando memória\n\t\t\tunset($nomeObjetoNaoVersionavel);\n\t\t}\n\n\t\t// limpando variáveis\n\t\tunset($arrayNomesObjetosNaoVersionais);\n\n\t\t// iniciando transacao\n\t\tBasico_OPController_PersistenceOPController::bdControlaTransacao();\n\n\t\t// loop para recuperar todos os objetos dos modelos\n\t\tforeach ($arrayNomesModelosSistema as $nomeModelo) {\n\t\t\ttry {\t\t\t\n\t\t\t\t// instanciando o modelo\n\t\t\t\t$modelo = new $nomeModelo();\n\n\t\t\t\t// verificando se o modelo possui mapper\n\t\t\t\tif ((property_exists($modelo, '_mapper')) and (method_exists($modelo, 'getMapper'))) {\n\t\t\t\t\t// recuperando os objetos\n\t\t\t\t\t$objetos = $modelo->getMapper()->fetchAll();\n\n\t\t\t\t\t// verificando se houve recuperacao de objetos\n\t\t\t\t\tif (count($objetos)) {\n\t\t\t\t\t\t// loop para verificar se o objeto foi versionado\n\t\t\t\t\t\tforeach ($objetos as $objeto) {\n\t\t\t\t\t\t\t// versionando objetos nao versionados\n\t\t\t\t\t\t\t$versaoObjeto = self::retornaUltimaVersao($objeto, true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// limpando memória\n\t\t\t\t\t\tunset($objeto);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// limpando modelo e objetos\n\t\t\t\tunset($modelo);\n\t\t\t\tunset($objetos);\n\t\t\t\tunset($versaoObjeto);\n\t\t\t} catch (Exception $e) {\n\t\t\t\t// voltando a transacao\n\t\t\t\tBasico_OPController_PersistenceOPController::bdControlaTransacao(DB_ROLLBACK_TRANSACTION);\n\n\t\t\t\t// estourando excessao\n\t\t\t\tthrow new Exception(MSG_ERRO_CVC_FALHOU . $nomeModelo . \" \" . $e->getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// salvando a transacao\n\t\tBasico_OPController_PersistenceOPController::bdControlaTransacao(DB_COMMIT_TRANSACTION);\n\n\t\t// voltando as diretrizes administrativas\n\t\tBasico_OPController_UtilOPController::setaDiretivasAdministrativasPHP($arrayConfigAtualPHP);\n\n\t\t// inicializando atributo $this->_arrayObjetosManipulados\n\t\t$this->limpaArrayIdsObjetosManipulados();\n\n\t\t// salvando log de sucesso na operação\n\t Basico_OPController_LogOPController::getInstance()->salvaLogFS(LOG_MSG_CREATE_CVC_SUCESSO);\n\n\t\t// retornando sucesso\n\t\treturn true;\n\t}", "public function setIdusuario($value){\n $this->idusuario = $value;\n }", "public function updating(Materia $model)\n {\n $model->ativo = $model->ativo ?? 0;\n }", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "function setCodigoMovimentos($aCodigosMovimentos) {\n $this->aCodigoMovimentos = $aCodigosMovimentos; \n }", "public function setCliApellidoAttribute($value)\n {\n $this->attributes['cli_apellido'] = strtoupper($value);\n }", "public function ispisiObavestenja() {\n //Iscitavanje id obavestenja metodom get\n $idOba = $this->input->get('id');\n \n //Iscitavanje obavestenja iz baze\n $obavestenja = ['obavestenja' => $this->ObavModel->dohvatiObavestenje($idOba)];\n \n //Ispisivanje obavestenja pozivanjem metode iz view-a\n echo $this->load->view('obavestenja/ispisObavestenja', $obavestenja, true);\n \n }", "public function set(int $value): void {}", "public function setProducto($pro){ $this->producto = $pro;}", "public function setCoEstado($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->co_estado !== $v) {\n\t\t\t$this->co_estado = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::CO_ESTADO;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setValue ($value) {\n\t\t$this->_value = $value;\n\t}", "private function desabilitaPoolIdsObjetosManipulados()\n {\n \t// setando para null o atributo _arrayObjetosManipulados\n \t$this->_arrayObjetosManipulados = null;\n }", "public function setValue($value) {}", "public function setValue($value) {}", "public function setAuditorias(PropelCollection $auditorias, PropelPDO $con = null)\n\t{\n\t\t$this->auditoriasScheduledForDeletion = $this->getAuditorias(new Criteria(), $con)->diff($auditorias);\n\n\t\tforeach ($auditorias as $auditoria) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($auditoria->isNew()) {\n\t\t\t\t$auditoria->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addAuditoria($auditoria);\n\t\t}\n\n\t\t$this->collAuditorias = $auditorias;\n\t}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}" ]
[ "0.6220983", "0.6162618", "0.59482956", "0.59216595", "0.5631759", "0.55945915", "0.5564325", "0.5384262", "0.5372312", "0.525373", "0.5240773", "0.5212396", "0.5153227", "0.5122069", "0.51148236", "0.51033217", "0.507673", "0.5052149", "0.50516367", "0.50332904", "0.5023979", "0.5021607", "0.5019468", "0.50168145", "0.49760956", "0.4958774", "0.49289423", "0.49147022", "0.49056637", "0.48721272", "0.48684973", "0.4858871", "0.48313594", "0.48227644", "0.4812897", "0.48046246", "0.48017466", "0.47876334", "0.47864068", "0.4783277", "0.47581977", "0.4745169", "0.4737426", "0.47366285", "0.47363997", "0.47070825", "0.46929288", "0.4691082", "0.46869242", "0.4686695", "0.46789905", "0.46783218", "0.46758902", "0.4672433", "0.46689305", "0.46676654", "0.46537626", "0.46536645", "0.46497172", "0.46470645", "0.46367958", "0.46355283", "0.46180522", "0.4609745", "0.46042627", "0.45957148", "0.4595369", "0.45901257", "0.4589121", "0.4584936", "0.45844647", "0.45841512", "0.45820218", "0.45779833", "0.45776784", "0.45699167", "0.45698225", "0.45592445", "0.45517027", "0.45483688", "0.45457813", "0.4540866", "0.45308027", "0.45307425", "0.45292407", "0.45227903", "0.4522121", "0.45197904", "0.45158213", "0.45158213", "0.45158118", "0.45157424", "0.45157424", "0.45157424", "0.45157424", "0.45157424", "0.45157424", "0.45157424", "0.45157424", "0.45157424" ]
0.6789048
0
Get the value of obstaculos.
public function getObstaculos() { return $this->obstaculos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCot_observaciones(){\n return $this->cot_observaciones;\n }", "public function getObservacao(){\n return $this->sObservacao;\n }", "protected function getOpcoes() \r\n\t{\r\n\t\treturn $this->aOpcoes;\r\n\t}", "public function getObservacao()\n {\n return $this->observacao;\n }", "public function getObservacion()\r\n {\r\n return $this->Observacion;\r\n }", "public function getCot_estado(){\n return $this->cot_estado;\n }", "public function getAtivo()\n {\n return $this->ativo;\n }", "public function getAtivo()\n {\n return $this->ativo;\n }", "public function getAtivo()\n {\n return $this->ativo;\n }", "public function somarValores()\n {\n return $this->bd->sum($this->tabela, \"valor\");\n }", "public function buscarObligaciones($valor) {\n return $this->conexionObligaciones->buscar($valor, \"CARNET\", \"ASC\");\n }", "public function getVehiculosCreados()\n {\n return $this->vehiculosCreados;\n }", "public function getListadoObligacioness() {\n return $this->conexionObligaciones->listaLlaves(\"CARNET\", \"ASC\");\n }", "public function getOCUPACION()\r\n {\r\n return $this->OCUPACION;\r\n }", "public function getAtivo()\n\t{\n\t\treturn $this->ativo;\n\t}", "private function verLoMasBuscado ()\r\n {\r\n $tags = new DiccionarioTag();\r\n return $tags->getLoMasBuscado();\r\n }", "public function get_valor() {\n\t\t\n\t\t$ar_list_of_values\t= $this->get_ar_list_of_values();\n\t\t$dato \t\t\t\t= $this->get_dato();\n\t\t\n\t\tif (is_array ($ar_list_of_values)) foreach ($ar_list_of_values as $value => $rotulo) {\n\t\t\t\t\t\t\t\t\t\n\t\t\tif( $dato == $value ) {\n\t\t\t\t\n\t\t\t\t$this->valor = $rotulo; \n\t\t\t\t\n\t\t\t\treturn $this->valor;\n\t\t\t}\n\t\t\t#echo \"<br> - $dato - $value => $rotulo \";\n\t\t}\t\t\t\t\t\n\t}", "public function getAtocom()\n {\n return $this->atocom;\n }", "public function getSectoreconomicoAccion()\n\t{\n\t\treturn $this->sectoreconomicoAccion;\n\t}", "public function getOpis()\n {\n return $this->opis;\n }", "public function getValue()\n {\n return $this->objects;\n }", "public function getcontrole_aulas()\n {\n return $this->controle_aulas;\n }", "public function getCosto()\n {\n return $this->costo;\n }", "public function setObstaculos($obstaculos)\n {\n $this->obstaculos = $obstaculos;\n\n return $this;\n }", "public function getSencillos()\n {\n return $this->sencillos;\n }", "function getObservaciones() {\r\n return $this->observaciones;\r\n }", "public function get_valor() {\n\t\t\n\t\t$dato = self::get_dato();\n\t\t/*\n\t\t$separator = ' , ';\n\t\tif($this->modo=='list') $separator = '<br>';\n\n\t\tif (is_array($valor)) {\n\t\t\t# return \"Not string value\";\n\t\t\t$string \t= '';\n\t\t\t$n \t\t\t= count($valor);\n\t\t\tforeach ($valor as $key => $value) {\n\n\t\t\t\tif(is_array($value)) $value = print_r($value,true);\n\t\t\t\t$string .= \"$key : $value\".$separator;\n\t\t\t}\n\t\t\t$string = substr($string, 0,-4);\n\t\t\treturn $string;\n\n\t\t}else{\n\t\t\t\n\t\t\treturn $valor;\n\t\t}\n\t\t*/\n\t\tif(isset($dato['counter'])) {\n\t\t\t$valor = $this->tipo.'-'.$dato['counter'];\n\t\t}else{\n\t\t\t$valor = $this->tipo;\n\t\t}\n\n\t\treturn $valor;\n\t}", "public function getProdutos()\n {\n return $this->produtos;\n }", "public function getValorInventario()\n {\n return $this->valorInventario;\n }", "public function getCittaArrivo() {\n if (isset($_REQUEST['citta_arrivo'])) {\n return $_REQUEST['citta_arrivo'];\n } else\n return 0;\n }", "public function getObservacoes()\n {\n return $this->observacoes;\n }", "public function getCusto() {\n return $this->custo;\n }", "public function getCognome() {\n return $this->cognome;\n }", "public function getNIVELSOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }", "public function getCognome()\n {\n return $this->cognome;\n }", "public function getStatusAto()\n {\n return $this->status_ato;\n }", "public function getSabores(){\n $sabores = TcSabor::where('id_estado','=',1)->get();\n return $sabores;\n }", "public function getSobrenome()\n {\n return $this->sobrenome;\n }", "public function getCusto()\n {\n return $this->custo;\n }", "public function getValoracion() {\n return $this->valoracion;\n }", "public function getMontoCuota()\n {\n return $this->monto_cuota;\n }", "public function getCriacao()\n {\n return $this->criacao;\n }", "public function totalColecao(){\r\n\t\t$oSicasAtendimentoBD = new SicasAtendimentoBD();\r\n\t\treturn $oSicasAtendimentoBD->totalColecao();\r\n\t}", "private function listado_obras(){\n \treturn Sesion::where(\"inicio\",\">\",Carbon::now())->distinct()->get(['nombre_obra']);\n }", "public function todosLosEstados(){\r\n $arraySolicitudes =$this->controlDelivery->getSolicitudesDelivery();\r\n return $arraySolicitudes;\r\n }", "public function getIntentos(){\n return $this->intentos;\n }", "public function getSolicitacao()\n {\n return $this->solicitacao;\n }", "public function getCargos()\n {\n return $this->cargos;\n }", "public function totalColecao(){\r\n\t\t$oSicasSalarioMinimoBD = new SicasSalarioMinimoBD();\r\n\t\treturn $oSicasSalarioMinimoBD->totalColecao();\r\n\t}", "public function getNIVEL_SOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }", "public function getValorCofins()\n {\n return $this->valorCofins;\n }", "public function getCuotas() {\n\t\treturn $this->cuotas;\n\t}", "function getCreditosComprometidos(){ return $this->getOEstats()->getTotalCreditosSaldo(); }", "public function getValor(){\n return $this->_data['valor'];\n }", "public function getDataCriacao()\n {\n return $this->data_criacao;\n }", "public function getValue(){\n return $this->getData();\n }", "public function getValue(){\n \treturn $this->value;\n }", "function getSoporte() {\r\n return $this->soporte;\r\n }", "public function getValue()\r\n\t{\r\n\t\treturn $this->getValues(true);\r\n\t}", "public function getObs()\n {\n return $this->obs;\n }", "public function getObservateurs()\n {\n return $this->observateurs;\n }", "public function getCOMENTARIOS()\r\n {\r\n return $this->COMENTARIOS;\r\n }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "public function getAnulacao(){\n return $this->oAnulacao;\n }", "public function getAppuntamenti() {\r\n return ($this->_appuntamenti);\r\n }", "public function getCriado()\n {\n return $this->criado;\n }", "public function getCriado()\n {\n return $this->criado;\n }", "public function GetNoticias(){\r\n return $this -> __buscar; \r\n \r\n }", "public function getCsoi()\n {\n return $this->csoi;\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "function getConsiglio() {\n\t\treturn $this->soc->getConsiglio();\n\t}", "function siguiente() {\n\t\treturn $this->aObjeto();\n\t}", "public function getCartera() {\n\n $result = Array(\n \"opc\" => $this->miempresa->getCartera()\n );\n\n $this->output->set_content_type('application/json')->set_output(json_encode($result));\n }", "public function getCarrera() {\n return $this->carrera;\n }", "public function value()\n {\n return $this->getValue();\n }", "public function getNbObservateurs()\n {\n return $this->nbObservateurs;\n }", "public function getInformacionOtro()\n {\n return $this->informacion_otro;\n }", "public function getVarComentario()\n {\n return $this->varComentario;\n }", "public function DatosConfiguracionTiposSolicitudes()\n {\n\n $buscar = ConfiguracionTiposSolicitudes::find()->where(\"impuesto=:impuesto\", [\":impuesto\" => 2])\n ->andwhere(\"descripcion=:descripcion\", [\":descripcion\" => 'CAMBIO DE NUMERO CATASTRAL'])\n ->asArray()->all();\n\n\n return $buscar[0][\"id_tipo_solicitud\"]; \n\n }", "static public function ctrListadoInsumos($valor){\n\n $tabla1 = \"Receta\";\n\n $tabla2 = \"RecetaDetalle\";\n\n $tabla3 = \"Insumos\";\n\n $respuesta = ModeloRecetas::mdlListadoInsumos($tabla1, $tabla2, $tabla3, $valor);\n\n return $respuesta;\n \n }", "public function getCodServico()\n {\n return $this->cod_servico;\n }", "public function obterCor($nome){\n $cores = Mage::getModel('cores/cores')->getCollection();\n $cor = $cores->addFieldToFilter('nome', $nome)->getFirstItem();\n\n if($cor->getImagem()){\n return $cor->getImagem();\n }else{\n return $cor->getCor();\n }\n }", "public function getAnoVeiculo()\n {\n return $this->anoVeiculo;\n }", "public function getArrValores()\n {\n return $this->arrValores;\n }", "public function getSectoreconomicoOculto()\n\t{\n\t\treturn $this->sectoreconomicoOculto;\n\t}", "public function getCoEstado()\n\t{\n\t\treturn $this->co_estado;\n\t}", "public function getCorVeiculo()\n {\n return $this->corVeiculo;\n }", "public function listaProyectosTerminados(){\n\t\t$query = \"SELECT * FROM alm_proyecto WHERE ISNULL(alm_proy_usr_baja) AND \talm_proy_estado='13'\";\n\t\treturn $this->mysql->query($query);\n\t}", "public function getSectoreconomicocodigo()\n\t{\n\t\treturn $this->sectoreconomicocodigo;\n\t}", "public function getCedente() {\n return $this->oCedente;\n }", "function getContadorAccesos() {\n return $this->contadorAccesos;\n }", "public function getObs()\n {\n return isset($this->obs) ? $this->obs : null;\n }", "public function getPoznamka()\n {\n return $this->poznamka;\n }", "public function getOSList()\n {\n $data = $this->doGet('compute/list/os');\n return collect($data['__data']);\n }", "public function obtenerTiposResiduos(){\n $this->tipoResiduoAccesoDatos->conectar();\n $resultado = $this->tipoResiduoAccesoDatos->obtenerTiposResiduos();\n $this->tipoResiduoAccesoDatos->cerrarConexion();\n return $resultado;\n }", "public function getProductos(){\n\t\n\treturn $this->productos;\n\t}", "protected function armaColeccionObligatorios() {\n $dao = new PGDAO();\n $result = array();\n $where = $this->strZpTprop();\n if ($where != '') {\n $colec = $this->leeDBArray($dao->execSql($this->COLECCIONZPCARACOBLIG . \" and tipoprop in (\" . $where . \")\"));\n } else {\n $colec = $this->leeDBArray($dao->execSql($this->COLECCIONZPCARACOBLIG));\n }\n foreach ($colec as $carac) {\n $result[$carac['id_zpcarac']] = 0;\n }\n return $result;\n }" ]
[ "0.6479409", "0.6451691", "0.62739384", "0.617748", "0.61759734", "0.599547", "0.5985156", "0.5985156", "0.5985156", "0.59491277", "0.59355354", "0.59142995", "0.59053075", "0.5896911", "0.5872419", "0.58461213", "0.57853746", "0.57657754", "0.57656413", "0.57489264", "0.5746778", "0.574549", "0.5689673", "0.5680437", "0.563297", "0.5627372", "0.56173974", "0.559808", "0.55943334", "0.5575827", "0.5570787", "0.55631554", "0.55562675", "0.5542718", "0.5541543", "0.55353355", "0.5531948", "0.5527369", "0.5520903", "0.55101484", "0.55069804", "0.5495126", "0.5494659", "0.5491783", "0.54913706", "0.5485418", "0.5485035", "0.5480019", "0.5477494", "0.54728234", "0.5472278", "0.5470222", "0.5467385", "0.5455728", "0.5447874", "0.5445675", "0.5433988", "0.5427266", "0.54172075", "0.54101366", "0.5406587", "0.53910744", "0.5389404", "0.5389404", "0.5382712", "0.53779906", "0.5367782", "0.5367782", "0.5365465", "0.53639436", "0.5356546", "0.5356546", "0.5350777", "0.53494793", "0.5347645", "0.533727", "0.53365976", "0.5335496", "0.53296506", "0.5326177", "0.53232366", "0.53229064", "0.5321283", "0.53203744", "0.53187066", "0.5316202", "0.5315432", "0.5311326", "0.5304867", "0.5296392", "0.5296392", "0.5294357", "0.52888125", "0.52869725", "0.5277215", "0.5275933", "0.5274142", "0.5273195", "0.5270308", "0.5266703" ]
0.79224384
0
Set the value of ruedas.
public function setRuedas($ruedas) { $this->ruedas = $ruedas; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRuedas(){\r\n\t\t\treturn $this->ruedas;\r\n\t\t}", "public function getRuedas()\n {\n return $this->ruedas;\n }", "public function setRound( $rx )\n {\n $this->addAttribute('rx', $rx );\n }", "public function setUrx($urx) {}", "public function getRut()\n {\n return $this->rut;\n }", "public function getRut(): array\n {\n return $this->rut;\n }", "public function setR($r) {}", "public function setUry($ury) {}", "public function setNumerator($value): TURational\n\t{\n\t\t$value = min(max(0, $value), TBitHelper::PHP_INT32_UMAX);\n\t\tif (PHP_INT_SIZE > 4 || $value <= PHP_INT_MAX) {\n\t\t\t$this->_numerator = (int) $value;\n\t\t} else {\n\t\t\t$this->_numerator = (float) $value;\n\t\t}\n\t\treturn $this;\n\t}", "public function testSetNbHeuresRs() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresRs(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresRs());\n }", "function setSecondsElapsed( $value )\r\n {\r\n $this->SecondsElapsed = $value;\r\n }", "public function setDenominator($value): TURational\n\t{\n\t\t$value = min(max(0, $value), TBitHelper::PHP_INT32_UMAX);\n\t\tif (PHP_INT_SIZE > 4 || $value <= PHP_INT_MAX) {\n\t\t\t$this->_denominator = (int) $value;\n\t\t} else {\n\t\t\t$this->_denominator = (float) $value;\n\t\t}\n\t\treturn $this;\n\t}", "public function set_totals( $value = array() ) {\n\t\t$this->totals = wp_parse_args( $value, $this->default_totals );\n\t}", "public function setRseed($value)\n {\n return $this->set(self::_RSEED, $value);\n }", "public function setRseed($value)\n {\n return $this->set(self::_RSEED, $value);\n }", "public function setRseed($value)\n {\n return $this->set(self::_RSEED, $value);\n }", "public function setRseed($value)\n {\n return $this->set(self::_RSEED, $value);\n }", "public function setRseed($value)\n {\n return $this->set(self::_RSEED, $value);\n }", "public function setRseed($value)\n {\n return $this->set(self::_RSEED, $value);\n }", "public function setRawValue($value) {\n\n $this->rawValue = $value;\n }", "public function r_height($value = null)\n {\n $this->r_height = $value;\n }", "public function setTrendDelta()\n {\n $highLow = self::getHighLowByName($this->getName());\n $this->_trendDelta = $this->getRate() - $highLow->rate / $this->getRate();\n }", "public function setRainUnit($rainUnit) {\n $this->cRainUnit = $rainUnit;\n $this->cLatestObservations.setOutputRainUnit($rainUnit);\n }", "public function r_width($value = null)\n {\n $this->r_width = $value;\n }", "public function setRise($rise) {}", "public function setQuaternion(array $value)\n {\n $this->quaternion = self::mutateToPgArray($value);\n }", "private function calcolaValutazione()\n {\n\n $media=0;\n $i=0;\n foreach ($this->valutazioni as &$value){\n $media=$media+$value->getvoto();\n $i++;}\n $this->valutazione=$media/$i;\n\n }", "public function setRdate($rdate) {\n $this->rdate = $rdate;\n }", "function USR() {\n }", "public static function setRounds($rounds)\n {\n }", "public function set_value($value) {\n\t\t$this->_value = $value + 0;\n\t}", "public function testSetHeuresRrAcquises() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHeuresRrAcquises(10.092018);\n $this->assertEquals(10.092018, $obj->getHeuresRrAcquises());\n }", "function setValue(&$value) {\n if (!is_array($value) || count($value) != 4) {\n trigger_error(\"Array of four PdfNumericType values only accepted\\n\" . var_export($value, true), E_USER_ERROR);\n }\n $this->_value = & $value;\n }", "public function setRue(?string $rue):self\n {\n $this->rue = $rue;\n\n return $this;\n }", "public function setRates($rates)\n {\n $this->_rates = $rates;\n }", "private function __set_arm($arm) {\n # tau(r+1) - tau(r) episodes.\n $this->current_arm = $arm;\n $this->next_update += max(1.0, $this->__tau($this->r[$arm] + 1.0) - $this->__tau($this->r[$arm]));\n $this->r[$arm] += 1;\n }", "public function setRechargeSum($value)\n {\n return $this->set(self::_RECHARGE_SUM, $value);\n }", "function __set($name, $value) {\r\n if ($name == 'mr') {\r\n $this->max_rating = intval($value);\r\n } else if ($name == 'st') {\r\n $this->step = intval($value);\r\n } else if ($name == 'vis') {\r\n $this->visible = $value == '1';\r\n } else if ($name == 'seq') {\r\n $this->sequence = intval($value);\r\n } else if ($name == 'cr') {\r\n $this->created = DateTime::createFromFormat('Y-m-d H:i:s', $value);\r\n } else if ($name == 'upd') {\r\n $this->updated = DateTime::createFromFormat('Y-m-d H:i:s', $value);\r\n } else if ($name == 'num') {\r\n $this->num_ratings = intval($value);\r\n } else if ($name == 'total') {\r\n $this->tot_ratings = floatval($value);\r\n }\r\n\r\n }", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\n }", "public function setValue( array $values ) {\n\t\t\t$this->value = $values;\n\t\t}", "function setRawLogSeq($value)\n {\n $this->_props['RawLogSeq'] = $value;\n }", "public function testSetJoursRttAcquis() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJoursRttAcquis(10.092018);\n $this->assertEquals(10.092018, $obj->getJoursRttAcquis());\n }", "public function setRimsFrontRight($value) {\n switch ($value) {\n case 0 : // Sin da�o\n return 0;\n break;\n case 14 : // 10\n return 10;\n break;\n case 15 : // 20\n return 20;\n break;\n case 16 : // 30\n return 30;\n break;\n case 17 : // 40\n return 40;\n break;\n case 18 : // 50\n return 50;\n break;\n case 19 : // 60\n return 60;\n break;\n case 20 : // 70\n return 70;\n break;\n case 21 : // 80\n return 80;\n break;\n case 22 : // 90\n return 90;\n break;\n }\n }", "public function setDeltas(array $deltas)\n {\n $this->_deltas = $deltas;\n }", "public function getR() {\n return $this->y;\n }", "public function setValue($value)\n {\n $r = $value['r'] / 255;\n $g = $value['g'] / 255;\n $b = $value['b'] / 255;\n\n $this->out = sprintf($this->format, $r, $g, $b, $value['t']);\n }", "public function setSeconds(int|float|string $set): self {\n\t\t$this->duration = $this->parse($set);\n\t\tif ($this->duration < 0) {\n\t\t\t$this->duration = -$this->duration;\n\t\t\t$this->invert = true;\n\t\t} else {\n\t\t\t$this->invert = false;\n\t\t}\n\t\treturn $this;\n\t}", "public function setATpsAngkutRutin($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->a_tps_angkut_rutin !== $v) {\n $this->a_tps_angkut_rutin = $v;\n $this->modifiedColumns[] = SanitasiPeer::A_TPS_ANGKUT_RUTIN;\n }\n\n\n return $this;\n }", "public function setRang($rang)\n\t{\n\t\t// Si c'en était déjà un, rien ne changera.\n\t\t// Sinon, la conversion donnera le nombre 0 (à quelques exceptions près, mais rien d'important ici).\n\t\t$rang = (int) $rang;\n \n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($rang > 0)\n\t\t{\n\t\t\t// Si c'est le cas, c'est tout bon, on assigne la valeur à l'attribut correspondant.\n\t\t\t$this->rang = $rang;\n\t\t}\n\t}", "public function testSetHeuresRcAcquises() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHeuresRcAcquises(10.092018);\n $this->assertEquals(10.092018, $obj->getHeuresRcAcquises());\n }", "public function set_due_duration_by( $value ) {\n\t\t$this->set_prop( 'due_duration_by', $value ) ;\n\t}", "public function setValues($values) {\n $this->values = $values;\n }", "function compute_rsi () {\n\n if (empty($this->rsi_gains) OR $this->value == $this->prev_value) {\n array_push($this->rsi_gains, 0);\n array_push($this->rsi_losses, 0);\n\n } elseif ($this->value > $this->prev_value) {\n array_push($this->rsi_gains, $this->value - $this->prev_value);\n array_push($this->rsi_losses, 0);\n\n } else {\n array_push($this->rsi_losses, $this->prev_value - $this->value);\n array_push($this->rsi_gains, 0);\n }\n\n if (count($this->rsi_gains) > $this->period) {\n array_shift($this->rsi_gains);\n array_shift($this->rsi_losses);\n }\n\n $gain_avg = array_sum($this->rsi_gains) / count($this->rsi_gains);\n $loss_avg = array_sum($this->rsi_losses) / count($this->rsi_gains);\n\n if ($loss_avg > 0) {\n $this->rsi = round(100-(100/(1+($gain_avg/$loss_avg))),3);\n\n } else {\n $this->rsi = 100;\n }\n }", "public function setDur($dur) {\n\t\t$this->attributes['dur'] = $dur;\n\t\t$this->dur = $dur;\n\t\treturn $this;\n\t}", "public function setPer($value)\n {\n return $this->set(self::_PER, $value);\n }", "public function setValues($values)\n {\n $this->values = $values;\n }", "public function testSetTxHoraireRs() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTxHoraireRs(10.092018);\n $this->assertEquals(10.092018, $obj->getTxHoraireRs());\n }", "public function setRemediationScriptParameters(?array $value): void {\n $this->getBackingStore()->set('remediationScriptParameters', $value);\n }", "public function setUnits($value)\n {\n return $this->set('Units', $value);\n }", "public function setUnits($value)\n {\n return $this->set('Units', $value);\n }", "public function setUnits($value)\n {\n return $this->set('Units', $value);\n }", "public function setUnits($value)\n {\n return $this->set('Units', $value);\n }", "public function setUnits($value)\n {\n return $this->set('Units', $value);\n }", "public function setUnits($value)\n {\n return $this->set('Units', $value);\n }", "public function setRealations(){\n\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "private function setTamanhoProporcional($r){\n\n if($r == 0){\n return;\n }\n $cont = 0;\n $tproporcional;\n while ($cont < sizeof($this -> tamanhosPadrao)) {\n $tproporcional = $this -> tamanhosPadrao[$cont] / $r;\n if($tproporcional < 10){\n $tproporcional = $this -> tamanhosPadrao[$cont] * $r;\n }\n array_push($this -> tamanhosProporcionais, $tproporcional);\n $cont++;\n }\n return $this -> tamanhosProporcionais;\n }", "public function setValue($v){\n $this->value = $v;\n }", "public function roll()\n {\n foreach ($this->dices as $aDice) {\n array_push($this->values, $aDice->roll());\n }\n }", "public function setUpQuality(GildedRose $gildedRose, int $times): void\n {\n for ($x = 0; $x < $times; $x++) {\n $gildedRose->updateQuality();\n }\n }", "public function getRainUnit() {\n return $this->cRainUnit;\n }", "public function getArrears(): float\n {\n return $this->arrears;\n }", "public function setSequenceValue() { $args = func_get_args(); return $this->__call(__FUNCTION__, $args); }", "public function setRadius($radius)\r\n {\r\n if (is_numeric($radius))\r\n {\r\n $this->radius = (int)$radius;\r\n }\r\n }", "function runden($value){\r\n\tglobal $eqdkp;\r\n\t$ret_val\t\t= $value;\r\n\t$precision\t= $eqdkp->config['pk_round_precision'];\r\n\r\n\tif (($precision < 0) or ($precision > 5) ){\r\n\t\t$precision = 2;\r\n\t}\r\n\r\n\tif ($eqdkp->config['pk_round_activate'] == \"1\"){\r\n\t\t$ret_val = round($value,$precision)\t;\r\n\t}\r\n\treturn $ret_val;\r\n}", "function update($mult){\nglobal $hrsPerSample,$sumpRate,$sumpCnt,$rainRate,$rainCnt,$oldRainCnt,$pwrCnt,$curPwrCnt,$pwrTime,$curPwrTime,$StempCnt,$StempAvg,$StempSum,$RtempCnt,$RtempAvg,$RtempSum,$sample,$oldSumpCnt,$daysAgo,$rainTot,$rainTotOld,$rainZero,$rzThresh,$logtime,$lineTS,$now,$WtempCnt,$WtempAvg,$WtempSum,$OtempCnt,$OtempAvg,$OtempSum,$waterRate,$waterCnt,$oldWaterCnt,$waterTot,$waterTotOld,$waterZero,$wzThresh,$spinnerCal;\n\nif ($mult> 100) {$mult=100;} # just in case\n\n// here's a timestamp in days everybody can use, indexed by $sample:\n$daysAgo[]=($lineTS-$now)/(3600*24);\n\n\n//print \"Sample $sample sumpCnt $sumpCnt oldSumpCnt $oldSumpCnt\\n\";\n$sumpRate[$sample]=$mult*($sumpCnt-$oldSumpCnt)/$hrsPerSample; # cycles/hr\nif($sumpRate[$sample]<0){$sumpRate[$sample]=\"\";}\n$oldSumpCnt=$sumpCnt;\n\n\n//$rainRate[$sample]=$mult*((($rainCnt-$oldRainCnt)/$hrsPerSample)/100)+.0048; //inches/hr\n$rainRate[$sample]=$mult*((($rainCnt-$oldRainCnt)/$hrsPerSample)/100); //inches/hr\nif($rainRate[$sample]<0){$rainRate[$sample]=\"\";}\n$oldRainCnt=$rainCnt;\n//print \"$sample:$rainRate[$sample]<br>\\n\";\n\n\nif($rainCnt<$rainTotOld){$rainTotOld=$rainCnt;}\n$rainTot[$sample]=($rainCnt-$rainTotOld)/100;\nif(($rainRate[$sample]==0) && ($rainTot[$sample]>0)){$rainZero++;}\nelse{$rainZero=0;}\nif($rainZero>$rzThresh){$rainTotOld=$rainCnt;}\n//print \"$sample:$rainCnt[$sample]<br>\\n\";\n\t\t\n\t\t\n$waterRate[$sample]=$mult*((($waterCnt-$oldWaterCnt)/$hrsPerSample)/$spinnerCal); //gal/hr?\nif($waterRate[$sample]<0){$waterRate[$sample]=\"\";}\n$oldWaterCnt=$waterCnt;\n//print \"$sample:$rainRate[$sample]<br>\\n\";\n\n\nif($waterCnt<$waterTotOld){$waterTotOld=$waterCnt;}\n$waterTot[$sample]=(($waterCnt-$waterTotOld)/$spinnerCal);\nif(($waterRate[$sample]==0) && ($waterTot[$sample]>0)){$waterZero++;}\nelse{$waterZero=0;}\nif($waterZero>$wzThresh){$waterTotOld=$waterCnt;}\n//print \"$sample:w:$waterTot[$sample]<br>\\n\";\n\t\t\n\t\t\n$pC=$curPwrCnt-$oldPwrCnt;\n$pwrCnt[$sample]=($pC<0)?\"\":$pC;\n$oldPwrCnt=$curPwrCnt;\n\n\n$pT=$curPwrTime-$oldPwrTime;\n$pwrTime[$sample]=($pT<0)?\"\":$pT;\n$oldPwrTime=$curPwrTime;\n\n\nif($StempCnt!=0){$StempAvg[$sample]=$StempSum/$StempCnt+.04;}\nelse{$StempAvg[$sample]=\"\";}\n$StempSum=0;$StempCnt=0;\n\n\t\t\nif($RtempCnt!=0){$RtempAvg[$sample]=$RtempSum/$RtempCnt+.04;}\nelse{$RtempAvg[$sample]=\"\";}\n$RtempSum=0;$RtempCnt=0;\n\t\t\nif($WtempCnt!=0){$WtempAvg[$sample]=$WtempSum/$WtempCnt+.04;}\nelse{$WtempAvg[$sample]=\"\";}\n$WtempSum=0;$WtempCnt=0;\n\n\t\t\nif($OtempCnt!=0){$OtempAvg[$sample]=$OtempSum/$OtempCnt+.04;}\nelse{$OtempAvg[$sample]=\"\";}\n$OtempSum=0;$OtempCnt=0;\n\n//print\"S R W O $StempAvg[$sample] $RtempAvg[$sample] $WtempAvg[$sample] $OtempAvg[$sample] <br>\\n\";\n\t\t\n$sample++;\n//print \".\";\n\n\n}", "public function setNumRue(?int $numRue): self\n {\n $this->numRue = $numRue;\n\n return $this;\n }", "public function setRoues( $roues )\n\t\t{\n\t\t\ttry //on essaye le code suivant\n\t\t\t{\n\t\t\t\t//if( !preg_match('/^[1-9]{1}$/', $roues) )\n\t\t\t\tif( $roues < 4 ) //erreur si le nombre de roues < 2\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception( 'Nombre de roues invalide!' ); //envoi d'un message d'erreur personnalisé\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->_roues = $roues;\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $e)// en cas d'erreur\n\t\t\t{\n\t\t\t\t// on affiche le message d'erreur qui a été recupéré grâce à getMessage()\n\t\t\t\techo '<erreur>Erreur: '.$e->getMessage().'</erreur><br/>';\n\t\t\t\t\n\t\t\t\t//on arrête l'exécution s'il y a du code après\n\t\t\t\texit();\n\t\t\t}\n\t\t}", "public function setResetTimes($value)\n {\n return $this->set(self::_RESET_TIMES, $value);\n }", "public function setResetTimes($value)\n {\n return $this->set(self::_RESET_TIMES, $value);\n }", "public function setTotalTime($val){\n $this->totalTime = $val;\n return $this;\n }", "public function setTiers(array $tiers): void\n {\n $this->_tiers = $tiers;\n }", "public function testValueOfRoll()\n {\n $dice = new DiceHand();\n\n $dice->roll();\n $res = $dice->values();\n $this->assertLessThan(7, $res[0]);\n $this->assertLessThan(7, $res[1]);\n $this->assertLessThan(7, $res[2]);\n $this->assertLessThan(7, $res[3]);\n }", "public function setRain( $rain ) {\n\n $this->rain = $rain;\n }", "public function setDuration($value)\n {\n $this->duration = $value;\n }", "public function setExposureDenominator(?float $value): void {\n $this->getBackingStore()->set('exposureDenominator', $value);\n }", "public function set_values( $values = array() ) {\n\t\t\n\t\t$this->values = $values;\n\t\t\n\t}", "public function setTargetRoas($var)\n {\n GPBUtil::checkDouble($var);\n $this->target_roas = $var;\n\n return $this;\n }", "public function setTargetRoas($var)\n {\n GPBUtil::checkDouble($var);\n $this->target_roas = $var;\n\n return $this;\n }", "public function setTipRtbus($value) {\n return $this->set(self::TIP_RTBUS, $value);\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "public function setTotalTime($value)\n {\n return $this->set(self::TOTAL_TIME, $value);\n }", "public function setAverageRoundTripTime($val)\n {\n $this->_propDict[\"averageRoundTripTime\"] = $val;\n return $this;\n }", "public function setValues(array $values): void\n {\n $this->values = $values;\n }", "public function setValues($values = []);", "public function setValue($value)\n\t{\n\t\tif(is_array($value))\n\t\t{\n\t\t\t$this->setStart(new ilDateTime($value['start'], IL_CAL_UNIX));\n\t\t\t$this->setEnd(new ilDateTime($value['end'], IL_CAL_UNIX));\n\t\t}\n\t}", "public function setPercentageTiers(array $percentage_tiers): void\n {\n $this->_percentage_tiers = $percentage_tiers;\n }", "function setReal($real) {/*{{{*/\n $this->real = floatval($real);\n }", "public function updateTotal() {\n //get the scans for this user\n $scans = $this->scans();\n //create running total\n $newTotal = 0; \n //for each scan, add the total pups and virus to the total\n foreach ($scans as $scan) {\n $newTotal += $scan->pups + $scan->troj_mal;\n }\n //sets and saves the new total for this user\n $this->total = $newTotal;\n $this->save();\n }", "public function setValues(array $values);" ]
[ "0.5805011", "0.57149035", "0.49423087", "0.47472173", "0.47226667", "0.46816975", "0.46659195", "0.4657129", "0.4638568", "0.45803925", "0.45348647", "0.45066184", "0.45061773", "0.4503006", "0.45028406", "0.45028406", "0.45028406", "0.45028406", "0.45028406", "0.44816065", "0.44730222", "0.4469097", "0.44487974", "0.44386604", "0.4424523", "0.43773705", "0.43605432", "0.4311725", "0.42825273", "0.42761725", "0.42631277", "0.4261066", "0.42572275", "0.42516002", "0.42478293", "0.42350578", "0.423115", "0.42012995", "0.41879883", "0.41730732", "0.41717497", "0.416513", "0.4164955", "0.41583928", "0.41372353", "0.41167748", "0.41069996", "0.4102915", "0.40983889", "0.40965775", "0.40724516", "0.40589705", "0.40520775", "0.4049574", "0.40477026", "0.4044343", "0.40441525", "0.4041384", "0.4040074", "0.4040074", "0.4040074", "0.4040074", "0.40381888", "0.40381888", "0.40363547", "0.40334544", "0.40279964", "0.40253076", "0.40249398", "0.40064806", "0.4001073", "0.399673", "0.39964402", "0.39920214", "0.39917424", "0.3968245", "0.39663067", "0.39621872", "0.39583302", "0.39583302", "0.39569888", "0.39539897", "0.39532232", "0.3949711", "0.39483133", "0.39471433", "0.39422145", "0.39404833", "0.39404833", "0.3934231", "0.39326826", "0.39304474", "0.39293915", "0.39287382", "0.39285806", "0.39255506", "0.3921534", "0.39212772", "0.391006", "0.3905739" ]
0.55156904
2
Get the value of ruedas.
public function getRuedas() { return $this->ruedas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRuedas(){\r\n\t\t\treturn $this->ruedas;\r\n\t\t}", "public function getRut()\n {\n return $this->rut;\n }", "public function getRut(): array\n {\n return $this->rut;\n }", "final public function getValue($rsq) {\n\n if (is_string($rsq)) {\n $rsq = $this->query($rsq);\n }\n\n if ($rsq) {\n $r = $this->getRow($rsq, 'num');\n return $r[0];\n }\n }", "public function getR() {\n return $this->y;\n }", "public function getTotalRawTime()\n {\n return floatval(\n round($this->start->diffInMinutes($this->end) / 60, 5)\n );\n }", "public function getValue()\n {\n return (float) $this->value;\n }", "public function getTotalValue(): float\n {\n return $this->totalValue;\n }", "public function getRun()\n {\n return array_sum($this->_totalTime);\n }", "public function getSum()\n {\n return array_sum($this->values);\n }", "private function getRadianValue(Measurement $angle): float\n {\n return $angle->convertTo(UnitAngle::radians())->value();\n }", "public function getRunAsArray()\n {\n return $this->_totalTime;\n }", "public function getresistanceValue()\n {\n return $this->value;\n }", "public function get_rainmeters() {\n\t\t//Returns true or false. Values are set in $rainmeters.\n\t\treturn $this->_get_rainmeters();\n\t}", "public function getRainUnit() {\n return $this->cRainUnit;\n }", "public function getDur() {\n\t\treturn $this->dur;\n\t}", "public function getRevenue()\n {\n $order = $this->checkoutSession->getLastRealOrder();\n\n return $order->getData('total_due');\n }", "public function get_valor() {\n\t\t\n\t\t$ar_list_of_values\t= $this->get_ar_list_of_values();\n\t\t$dato \t\t\t\t= $this->get_dato();\n\t\t\n\t\tif (is_array ($ar_list_of_values)) foreach ($ar_list_of_values as $value => $rotulo) {\n\t\t\t\t\t\t\t\t\t\n\t\t\tif( $dato == $value ) {\n\t\t\t\t\n\t\t\t\t$this->valor = $rotulo; \n\t\t\t\t\n\t\t\t\treturn $this->valor;\n\t\t\t}\n\t\t\t#echo \"<br> - $dato - $value => $rotulo \";\n\t\t}\t\t\t\t\t\n\t}", "public function getTotalPracRechazadas() {\n return $this->totalPracRechazadas;\n }", "public function getSum(): float;", "public function getVal()\n {\n return $this->val_arr;\n }", "public function getUnitValue(): float\n\t{\n\t\treturn $this->unitValue;\n\t}", "public function getResult(): float\n {\n return $this->result;\n }", "public function getInputRainUnit() {\n return $this->cInputRainUnit;\n }", "public function get_uvmeters() {\n\t\t//Returns true or false. Values are set in $uvmeters.\n\t\treturn $this->_get_uvmeters();\n\t}", "public function somarValores()\n {\n return $this->bd->sum($this->tabela, \"valor\");\n }", "public function getRrAcquis(): ?float {\n return $this->rrAcquis;\n }", "public function getRtime() {\n\t\treturn $this->rtime;\n\t}", "public function getNValue() {}", "public function getResponseRateValue()\n {\n return isset($this->ResponseRateValue) ? $this->ResponseRateValue : null;\n }", "public function getRRecupAcquis(): ?float {\n return $this->rRecupAcquis;\n }", "public function getValorTotal(){\n $sum = 0;\n foreach($this->itens as $i):\n $sum += $i->getPreco() * $i->getQuantidade();\n endforeach;\n\n return $sum;\n }", "public function getDice()\n {\n return $this->value;\n }", "public function sum() {\n\t\treturn array_sum($this->_value);\n\t}", "protected function LiveRawTableValue()\n {\n // if (! isset(self::$temp_raw_table_value[$this->OrderID])) {\n $currentRate = $this->LiveCurrentRate();\n $currentCountry = $this->LiveCountry();\n $itemsTax = $this->workoutOrderItemsTax($currentRate, $currentCountry);\n $modifiersTax = $this->workoutModifiersTax($currentRate, $currentCountry);\n return $itemsTax + $modifiersTax;\n }", "public function getArrears(): float\n {\n return $this->arrears;\n }", "public function getMotifRupture() {\n return $this->motifRupture;\n }", "public function getTotalDuration(): float\r\n\t{\r\n\t\t$time = 0;\r\n\t\tforeach ($this->data as $command) {\r\n\t\t\t$time += $command['duration'];\r\n\t\t}\r\n\r\n\t\treturn $time;\r\n\t}", "public function getRainProbability(): ?float\n {\n return isset($this->details['pop']) ? $this->details['pop'] : null;\n }", "public function getQueryPlansPerMinuteValue()\n {\n return $this->readWrapperValue(\"query_plans_per_minute\");\n }", "public function getRechargeSum()\n {\n return $this->get(self::_RECHARGE_SUM);\n }", "public function obtenerValor() {\n return $this->valor;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getRawValue() {\n\n return $this->rawValue;\n }", "public function getRiverValueAttribute()\n {\n // $river = River::where(['id_dist' => $this->id_dist])->get();\n\n // $getLatestUpdateDate = River::orderBy('tanggal', 'DESC')->first();\n\n // $rivers = River::where('tanggal', $getLatestUpdateDate->tanggal)->get();\n\n $rivers = River::where('id_dist')->get();\n\n $rivers = $rivers->avg('tinggi');\n\n return $rivers;\n }", "public function getValue()\r\n\t{\r\n\t\treturn $this->getValues(true);\r\n\t}", "public function getRrPris(): ?float {\n return $this->rrPris;\n }", "public function getRound()\n {\n return $this->getAttribute('rx');\n }", "public function getTotalDuration()\n {\n return $this->totalDuration;\n }", "public function value(): Number\n {\n return $this->value;\n }", "public function getRainVolume(): float\n {\n return (float)($this->details['rain']['3h'] ?? 0);\n }", "public function getRoundSum()\n {\n return $this->roundSum;\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function values(): array\n {\n return $this->rolls;\n }", "public function getValueAttribute()\n\t{\n\t\treturn $this->attributes['valor_total'];\n\t}", "public function getQr()\n {\n return $this->qr;\n }", "public static function results($id=NULL) {\n\t\tif ($id==NULL) $id = self::$id;\n\n\t\t$results = array();\n\t\t$array_size = count(self::$timers[$id]['timer']);\n\t\tfor($i = 0; $i < $array_size; $i++) {\n\t\t\t$results[$i] = self::$timers[$id]['timer'][$i]->duration();\n\t\t}\n\n\t\t$return = array();\n\t\t$return['total'] = array_sum($results);\n\t\t$return['min'] = min($results);\n\t\t$return['max'] = max($results);\n\t\t$return['avg'] = $return['total'] / $array_size;\n\t\t\n\t\treturn $return;\n\t}", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "public function getValue()\n {\n\treturn $this->value;\n }", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getRawTime(): float\n {\n return $this->endTime - $this->startTime;\n }", "public function getValue()\n {\n\t\treturn $this->value;\n\t}", "public function getValor(){\n return $this->_data['valor'];\n }", "public function getTotalTime()\n {\n $value = $this->get(self::TOTAL_TIME);\n return $value === null ? (integer)$value : $value;\n }", "public function getRise() {}", "public function getTotal(): float;", "public function getValueFrom():float {\n return $this->valueFrom;\n }", "public function getTotalTime() {\n return (float) $this->profile->userTotals->totalDuration;\n }", "public function getSvrtime()\n {\n $value = $this->get(self::SVRTIME);\n return $value === null ? (integer)$value : $value;\n }", "public function getValue() {\n \n return $this->toScalar();\n }", "public function getValue()\r\n\t{\r\n\t\treturn $this->value;\r\n\t}", "public function getR() {}", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }" ]
[ "0.6970173", "0.6071464", "0.5815043", "0.5787635", "0.55069786", "0.5465796", "0.53694826", "0.53281754", "0.53098536", "0.5300082", "0.529827", "0.5294834", "0.52669823", "0.52635026", "0.5217152", "0.5205744", "0.5175358", "0.5170617", "0.51068556", "0.5101553", "0.5100669", "0.50949687", "0.5087386", "0.5079746", "0.50706303", "0.50637656", "0.5063037", "0.5051036", "0.50288117", "0.50134706", "0.5003146", "0.50028807", "0.49981886", "0.49972272", "0.4996937", "0.49864942", "0.49835634", "0.4983515", "0.49639016", "0.4957068", "0.49565205", "0.49493548", "0.49443555", "0.49443555", "0.49367303", "0.49339586", "0.49128035", "0.48915988", "0.4890721", "0.48898903", "0.4887611", "0.48872995", "0.48809478", "0.48731178", "0.48731178", "0.4868599", "0.4867065", "0.4861128", "0.48496544", "0.48448414", "0.48416957", "0.4835334", "0.48311186", "0.48303458", "0.48281693", "0.4826525", "0.48131323", "0.4809637", "0.4795335", "0.4791729", "0.4780514", "0.4777457", "0.47729865", "0.47698566", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057", "0.47685057" ]
0.679418
1
Set the value of senalamientos.
public function setSenalamientos($senalamientos) { $this->senalamientos = $senalamientos; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSenalamientos()\n {\n return $this->senalamientos;\n }", "public function setKinoseiShokuhinAttribute($value) {\n \t$this->attributes['kinosei_shokuhin'] = implode(',', $value);\n }", "function setCli_senha($cli_senha) {\n //O md5 vai criptografar a senha\n //$this->cli_senha = md5($cli_senha); \n //$this->cli_senha = hash('SHA512', $cli_senha);// SHA512 e uma senha com 128 digitos\n $this->cli_senha = Sistema::Criptografia($cli_senha);\n \n \n }", "public function setSenha($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->senha !== $v) {\n\t\t\t$this->senha = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::SENHA;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "private function setSesion($usuario)\n {\n if( !$this->session->userdata('logged_in') ){\n $sesion = array(\n 'id' => $usuario->id,\n 'logged_in' => TRUE,\n 'ciudad' => $usuario->ciudad,\n 'UsuarioTipo_id' => $usuario->UsuarioTipo_id\n );\n if($sesion['UsuarioTipo_id']==5){\n $profesor = $this->m_profesores->getsalon($usuario->login);\n $sesion['salon'] = $profesor->salon;\n }\n $this->session->set_userdata($sesion);\n }\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "public function getSenha(){\n return $this->senha;\n }", "public function set_atletas_sexo($atletas_sexo) {\n if ($atletas_sexo != 'M' && $atletas_sexo != 'm') {\n $this->atletas_sexo = 'F';\n } else {\n $this->atletas_sexo = 'M';\n }\n }", "public function setSitoWeb($sito_web)\n\t\t{\n\t\t$this->sito_web = $sito_web;\n\t\t}", "public function setSalaire($salaire)\n {\n $this->salaire = $salaire;\n }", "public function sets(array $atributos){\n\t\tforeach ($atributos as $atributo=>$valor){\n\t\t\tswitch ($atributo){\n\t\t\t\tcase 'senha':\t $this->$atributo = sha1($_POST[$atributo]); break;\n\t\t\t\tdefault:\t\t $this->$atributo = $_POST[$atributo];break;\n\t\t\t}\n\t\t}\n\t}", "public function altSenha()\n {\n $this->Dados = filter_input_array(INPUT_POST, FILTER_DEFAULT);\n if (!empty($this->Dados['AltSenha']))\n {\n unset($this->Dados['AltSenha']);\n $altSenhaBd = new \\App\\adms\\Models\\AdmsAlterarSenha();\n $altSenhaBd->altSenha($this->Dados);\n if ($altSenhaBd->getResultado()) {\n\n $UrlDestino = URLADM . 'ver-perfil/perfil';\n header(\"Location: $UrlDestino\");\n\n }\n else {\n\n $listarMenu = new \\App\\adms\\Models\\AdmsMenu();\n $this->Dados['menu'] = $listarMenu->itemMenu();\n\n $carregarView = new \\Core\\ConfigView(\"adms/Views/usuario/alterarSenha\", $this->Dados);\n $carregarView->renderizar();\n\n }\n\n }\n else {\n\n $listarMenu = new \\App\\adms\\Models\\AdmsMenu();\n $this->Dados['menu'] = $listarMenu->itemMenu();\n\n $carregarView = new \\Core\\ConfigView(\"adms/Views/usuario/alterarSenha\", $this->Dados);\n $carregarView->renderizar();\n\n\n }\n\n\n\n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "function setUsers($users) {\n if (is_array($users)) {\n $users = implode(',', $users);\n }\n $this->users = $users;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function set() {\n if (!isset($_SESSION[\"session\"])) {\n show_404();\n }\n\n $respuesta = \"\";\n\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n if (isset($_POST[\"c1\"], $_POST[\"c2\"], $_POST[\"c3\"], $_POST[\"c4\"], $_POST[\"c5\"], $_POST[\"c6\"], $_POST[\"c7\"])) {\n\n\n #capturar datos \n $documento = $this->test_input($_POST[\"c1\"]);\n $nombre = $this->test_input($_POST[\"c2\"]);\n $rol = $this->test_input($_POST[\"c3\"]);\n $correo = $this->test_input($_POST[\"c4\"]);\n $contra = $this->test_input($_POST[\"c5\"]);\n $direccion = $this->test_input($_POST[\"c6\"]);\n $telefono = $this->test_input($_POST[\"c7\"]);\n\n //----------------------------------------------------\n #limpiarlos \n //----------------------------------------------------\n //---------------------------------------------------\n #comprobar que no se repita cedula y correo \n $objModelo = new UsuarioModelo();\n $resultado = $objModelo->comprobarDocCorreo($documento, $correo);\n if (count($resultado) > 0) {\n $respuesta = \"Error, Documento o Correo ya existen\";\n } else {\n #Guardar datos \n $respuesta = $objModelo->insert($documento, $nombre, $rol, $correo, $contra, $direccion, $telefono);\n if ($respuesta) {\n $respuesta = \"Usuario creado exitosamente\";\n }\n }\n \n }\n }\n\n #llenar array datos\n $datos[\"respuesta\"] = $respuesta;\n \n #llamar a la vista\n $this->load->view('plantillas/Cabecera');\n $this->load->view('back/UsuarioSet', $datos);\n $this->load->view('plantillas/Pie');\n }", "public function setSuelo_idsuelo($suelo_idsuelo){\n $this->suelo_idsuelo = $suelo_idsuelo;\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function getSenha()\n\t{\n\t\treturn $this->senha;\n\t}", "function set(Profesor $profesor){\n $parametrosSet=array();\n $parametrosSet['tel']=$profesor->getTelefono();\n $parametrosSet['nombre']=$profesor->getNombre();\n $parametrosSet['apellido']=$profesor->getApellido();\n $parametrosSet['clave']=$profesor->getClave();\n $parametrosSet['activo']=$profesor->getActivo();\n $parametrosSet['administrador']=$profesor->getAdministrador();\n $parametrosSet['email']=$profesor->getEmail();\n $parametrosWhere = array();\n $parametrosWhere['tel'] = $profesor->getTelefono();\n return $this->bd->update($this->tabla, $parametrosSet, $parametrosWhere);\n \n }", "public function setSearchKanyoAttribute($value) {\n \t$this->attributes['search_kanyo'] = implode(',', $value);\n }", "public function alterarSenhaAction() {\n \n $formSenha = new Form_Salao_Senha();\n $formSenha->submit->setLabel(\"Alterar Senha\");\n $this->view->form = $formSenha;\n \n if ($this->getRequest()->isPost() && $formSenha->isValid($this->getRequest()->getPost())) {\n \n $autenticacao_senha_atual = $formSenha->getValue(\"autenticacao_senha_atual\");\n $autenticacao_senha = $formSenha->getValue(\"autenticacao_senha\");\n $autenticacao_senha_repetir = $formSenha->getValue(\"autenticacao_senha_repetir\");\n \n if ($autenticacao_senha === $autenticacao_senha_repetir) {\n \n try {\n $modelAutenticacao = new Model_DbTable_Autenticacao();\n $adpter = $modelAutenticacao->getDefaultAdapter();\n $where = $adpter->quoteInto(\"autenticacao_email = ?\", Zend_Auth::getInstance()->getIdentity()->autenticacao_email);\n $update = array(\n 'autenticacao_senha' => md5($autenticacao_senha)\n );\n $modelAutenticacao->update($update, $where);\n \n $this->_helper->flashMessenger->addMessage(array(\n 'success' => 'Senha alterada com sucesso!'\n ));\n \n $this->_redirect('salao/');\n \n } catch (Exception $ex) {\n\n }\n \n } else {\n $this->_helper->flashMessenger->addMessage(array(\n 'danger' => 'A repetição da senha é diferente da senha digitada!'\n ));\n $this->_redirect('salao/config/alterar-senha');\n }\n \n }\n \n }", "public function setIdusuario($value){\n $this->idusuario = $value;\n }", "public function setTokenSenha($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->token_senha !== $v) {\n\t\t\t$this->token_senha = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::TOKEN_SENHA;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setProyectorMuteado( $muteado ) {\n $this->proyector_muteatu=$muteado;\n \n\tif($muteado){\n\t $this->proyector_pizarra->mutear();\n\t}else{\n\t $this->proyector_pizarra->desmutear();\n\t}\n\t$this->enviarComandoMute();\n //$this->activarPantalla();\n }", "public function setObservacionesAttribute($value)\n\t{\n\t\t$this->attributes['observaciones'] = mb_strtoupper($value);\n\t}", "public function setSenderOrAuthors(?array $value): void {\n $this->getBackingStore()->set('senderOrAuthors', $value);\n }", "public function seniority($seniority): self\n {\n $this->seniority = array_filter((array) $seniority, function ($val) {\n return in_array($val, ['junior', 'senior', 'executive']);\n });\n\n return $this;\n }", "public function setSenha($sSenha) {\n $this->sSenha = $sSenha;\n }", "public function salvar(){\n \n\t\t/*\n\t\t\tReceber dados vindos do formulario.\n\t\t*/\n\n\t\t$login = $this->post(\"login\");\n\t\t$senha = $this->post(\"senha\");\n\t\t$senha = md5($senha);\n\t\t$tipo = 2;\n\n\t\t/*\n\t\t\tInserindo dados na tabela usuário.\n\t\t*/\n\t\t$campos = \"(login,senha,tipo)\";\t\t\n\t\t$valores = \"('\".$login.\"','\".$senha.\"','\".$tipo.\"')\";\t\t\n\t\t$tabela = \"usuarios\";\n\t\t\n\t\t$this->insert( $tabela, $campos, $valores );\t\n\t\t\n\t}", "public function setIntentos($intentos){\n $this->intentos = $intentos;\n }", "public function setSexo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->sexo !== $v) {\n\t\t\t$this->sexo = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::SEXO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setUtilisateur(array $utilisateur): void\n {\n $this->utilisateur = $utilisateur;\n }", "function AlterarSenha($senha,$email){\n \n $this->setSenha($senha);\n $this->setEmail($email);\n \n $query =\"UPDATE \".$this->prefix.\"user SET user_pw = :senha WHERE user_email = :email\";\n \n $params = array(':senha'=> $this->getSenha(),':email'=> $this->getEmail());\n \n if($this->ExecuteSQL($query, $params)):\n return TRUE;\n \n else:\n \n return FALSE;\n endif;\n \n }", "public function set_suara($suara1){\n $this->suara = $suara1;\n return $this;\n }", "public function setEstaNoti($value) {\n\t\t$this->esta_noti = $value;\n\t\treturn true;\n\t}", "public function setPaisAttribute($value)\n\t{\n\t\t$this->attributes['pais'] = mb_strtoupper($value);\n\t}", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "function modificarCuentaServSoc()\n {\n // TODO: Implement modificarCuentaServSoc() method.\n }", "public function testSetSexe() {\n\n $obj = new Employes();\n\n $obj->setSexe(\"sexe\");\n $this->assertEquals(\"sexe\", $obj->getSexe());\n }", "function setSoporte($soporte) {\r\n $this->soporte = $soporte;\r\n }", "public function setIduser($value)\n {\n $this->iduser = $value;\n }", "public function setSurname($surname);", "public function setSenha($senha)\n {\n $this->senha = $senha;\n\n return $this;\n }", "public function setSenha($senha)\n {\n $this->senha = $senha;\n\n return $this;\n }", "public function setSenha($senha)\n {\n $this->senha = $senha;\n\n return $this;\n }", "public function set_users_id($value) {\r\n $this->users_id = $value;\r\n data::add(\"users_id\", $this->users_id == \"\" ? session::get(CURRENT_USER_SESSION_NAME) : $this->users_id, $this->table_fields);\r\n }", "public function esperarSalirSistema() {\n $this->setComando(\"SALIENDO\");\n }", "public function setStUsuario($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\tif (is_string($v)) {\n\t\t\t\t$v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n\t\t\t} else {\n\t\t\t\t$v = (boolean) $v;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->st_usuario !== $v) {\n\t\t\t$this->st_usuario = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::ST_USUARIO;\n\t\t}\n\n\t\treturn $this;\n\t}", "function set_llamado(){\n\n\t\tif($this->input->post()){\n\n\t\t\t//Obtener datos del cliente\n\n\t\t\t$cliente = applib::get_table_field(applib::$clientes_table,array('id' => $this->session->userdata('cliente_id')),'*');\n\n\t\t\t//Guardar llamado\n\n\t\t\tapplib::update(array('vendedor_id' => $cliente['vendedor_id']),applib::$orden_vendedor_table,array('status' => 1));\n\n\t\t\t//Guardar llamado a vendedor\n\n\t\t\tapplib::create(applib::$llamado_vendedor_table,array('vendedor_id' => $cliente['vendedor_id'],'tipo_llamado_id' => 2,'created_at' => applib::fecha(),'cliente_id' => $cliente['id']));\n\n\t\t\techo \"success\";\n\n\t\t}\n\t}", "public function setSaldo($nuevo_saldo, $id_empresa){\n }", "function setNuevaCuenta($origen, $subproducto, $socio,\n\t\t\t\t\t\t\t$observaciones = \"\", $credito = 1,\n\t\t\t\t\t\t\t$mancomunado1 = \"\", $mancomunado2 = \"\",\n\t\t\t\t\t\t\t$grupo = false, $fecha_de_alta = false,\n\t\t\t\t\t\t\t$tipo_de_cuenta = CAPTACION_TIPO_VISTA, $tipo_de_titulo = 99, $DiasInvertidos = false,\n\t\t\t\t\t\t\t$tasa = false, $CuentaDeInteres\t= false, $FechaVencimiento = false\n\t\t\t\t\t\t\t){\n\n\n\t\t$xT\t\t\t\t= new cTipos(0);\n\t\t$xF\t\t\t\t= new cFecha();\n\t\t$xLog\t\t\t= new cCoreLog();\n\t\t$socio\t\t\t= setNoMenorQueCero($socio);\n\t\t$ready\t\t\t= true;\n\t\t$tipo_de_cuenta\t= setNoMenorQueCero($tipo_de_cuenta);\n\t\t$tipo_de_titulo\t= setNoMenorQueCero($tipo_de_titulo);\n\t\t$credito\t\t= setNoMenorQueCero($credito);\n\t\t$grupo\t\t\t= setNoMenorQueCero($grupo);\n\t\t$DiasInvertidos\t= setNoMenorQueCero($DiasInvertidos);\n\t\t$tasa\t\t\t= setNoMenorQueCero($tasa, 4);\n\t\t$CuentaDeInteres= setNoMenorQueCero($CuentaDeInteres);\n\t\t$estado\t\t\t= 10;\n\t\t//Corrige el numero de persona\n\t\tif($socio <= DEFAULT_SOCIO AND $this->mSocioTitular > DEFAULT_SOCIO ){\n\t\t\t$xLog->add(\"WARN\\tCAMBIO Persona $socio a \" . $this->mSocioTitular . \"\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$socio\t\t= $this->mSocioTitular;\n\t\t}\n\t\t$xSoc\t\t\t\t= new cSocio($socio);\n\t\tif($xSoc->init() == true){\n\t\t\t//$cuenta\t\t\t= $xSoc->getIDNuevoDocto($tipo_de_cuenta, $subproducto);\n\t\t\t$cuenta\t\t\t= $xSoc->getIDNuevoDocto(iDE_CAPTACION);\n\t\t\t$CuentaDeInteres= $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES);\n\t\t\tif($grupo == DEFAULT_GRUPO OR $grupo == 0){ $grupo = $xSoc->getClaveDeGrupo(); }\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tAl cargar la Persona $socio\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$ready\t\t\t= false; //el socio existe\n\t\t}\n\t\t$xLog->add($xSoc->getMessages(), $xLog->DEVELOPER);\n\t\t//corrige la Cuenta de Intereses\n\t\t$CuentaDeInteres\t= ($CuentaDeInteres <= 0) ? DEFAULT_CUENTA_CORRIENTE : $CuentaDeInteres;\n\n\t\t$fecha_de_alta\t\t\t= $xF->getFechaISO($fecha_de_alta);\n\t\t$FechaVencimiento\t\t= $xF->getFechaISO($FechaVencimiento);\n\t\tif($tipo_de_cuenta == CAPTACION_TIPO_PLAZO){\n\t\t\t$DiasInvertidos\t\t= ($DiasInvertidos <=0 ) ? $this->mDiasInvertidos : $DiasInvertidos;\n\t\t\t$tasa\t\t\t\t= ($tasa <= 0) ? $this->mTasaInteres : $tasa;\n\t\t\t$FechaVencimiento\t= ($xF->getInt($FechaVencimiento) <= $xF->getInt($fecha_de_alta) ) ? $xF->setSumarDias($DiasInvertidos, $fecha_de_alta) : $FechaVencimiento;\n\t\t\t$estado\t\t\t\t= 20;\n\t\t\t$xLog->add(\"WARN\\tInversion Dias $DiasInvertidos Tasa $tasa Vencimiento $FechaVencimiento\\r\\n\", $xLog->DEVELOPER);\n\t\t\tif($xF->setRestarFechas($FechaVencimiento, $fecha_de_alta) != $DiasInvertidos){\n\t\t\t\t$DiasInvertidos\t= $xF->setRestarFechas($FechaVencimiento, $fecha_de_alta);\n\t\t\t\t$xLog->add(\"WARN\\tCAMBIO Inversion Dias $DiasInvertidos ($FechaVencimiento, $fecha_de_alta)\\r\\n\", $xLog->DEVELOPER);\n\t\t\t}\n\t\t} else {\n\t\t\t$xLog->add(\"WARN\\tVista $socio Producto $tipo_de_cuenta sub-producto $subproducto Origen $origen\\r\\n\", $xLog->DEVELOPER);\n\t\t}\n\t\t\n\t\t$xCta\t\t= new cCaptacion_cuentas();\n\t\t$xCta->cuenta_de_intereses($CuentaDeInteres);\n\t\t$xCta->dias_invertidos($DiasInvertidos);\n\t\t$xCta->eacp(EACP_CLAVE);\n\t\t$xCta->estatus_cuenta($estado);\n\t\t$xCta->fecha_afectacion($fecha_de_alta);\n\t\t$xCta->fecha_apertura($fecha_de_alta);\n\t\t$xCta->fecha_baja($xF->getFechaMaximaOperativa());\n\t\t$xCta->fecha_conciliada($fecha_de_alta);\n\t\t$xCta->idusuario(getUsuarioActual());\n\t\t$xCta->inversion_fecha_vcto($FechaVencimiento);\n\t\t$xCta->inversion_periodo(0);\n\t\t$xCta->minimo_mancomunantes(0);\n\t\t$xCta->nombre_mancomunado1($mancomunado1);\n\t\t$xCta->nombre_mancomunado2($mancomunado2);\n\t\t$xCta->numero_cuenta($cuenta);\n\t\t$xCta->numero_grupo($grupo);\n\t\t$xCta->numero_socio($socio);\n\t\t$xCta->numero_solicitud($credito);\n\t\t$xCta->observacion_cuenta($observaciones);\n\t\t$xCta->oficial_de_captacion(getUsuarioActual());\n\t\t$xCta->origen_cuenta($origen);\n\t\t$xCta->saldo_conciliado(0);\n\t\t$xCta->saldo_cuenta(0);\n\t\t$xCta->sucursal(getSucursal());\n\t\t$xCta->tasa_otorgada($tasa);\n\t\t$xCta->tipo_cuenta($tipo_de_cuenta);\n\t\t$xCta->tipo_titulo($tipo_de_titulo);\n\t\t$xCta->tipo_subproducto($subproducto);\n\t\t$xCta->ultimo_sdpm(0);\n\t\tif($ready == true){ \n\t\t\t$rs \t= $xCta->query()->insert()->save();\n\t\t\t$ready \t= ($rs == false) ? false : true;\n\t\t}\n\t\t//Asignar valores cargados\n\t\tif ( $ready == true) {\n\t\t\t$xLog->add(\"OK\\tSe Agrego Existosamente la Cuenta $cuenta del subproducto $subproducto \\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= true;\n\t\t\t$this->mSocioTitular\t\t= $socio;\n\t\t\t$this->mGrupoAsociado\t\t= $grupo;\n\t\t\t$this->mCreditoAsoc\t\t\t= $credito;\n\t\t\t$this->mNumeroCuenta\t\t= $cuenta;\n\t\t\t$this->mDiasInvertidos\t\t= $DiasInvertidos;\n\t\t\t$this->mFechaVencimiento\t= $FechaVencimiento;\n\t\t\t$this->mTasaInteres\t\t\t= $tasa;\n\t\t\t$this->mFechaOperacion\t\t= $fecha_de_alta;\n\t\t\t$this->init();\t\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tError al agregar la Cuenta $cuenta del subproducto $subproducto\\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= false;\n\t\t}\n\t\t//setLog($xLog->getMessages());\n\t\t$this->mMessages\t\t\t\t.= $xLog->getMessages();\n\t\treturn $this->mNumeroCuenta;\n\t}", "public function valorpasaje();", "protected function setVida() {\n $this->vida = 200;\n }", "public function setNuestroSonido( $comando ) {\n \n $this->nuestroSonido=$comando;\n $this->enviarNuestroSonido();\n $this->activarPantalla();\n //activar y enviar comando\n }", "public function setAMelibatkanSanitasiSiswa($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->a_melibatkan_sanitasi_siswa !== $v) {\n $this->a_melibatkan_sanitasi_siswa = $v;\n $this->modifiedColumns[] = SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA;\n }\n\n\n return $this;\n }", "function asignar_valores(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->cedula=$_POST['cedula'];\n\t\t$this->correo=$_POST['correo'];\n\t}", "public function set($name, $value){\n\t\t$_SESSION['tmobi'][$name] = $value;\n\t}", "public function setAsins($s)\n {\n if (is_string($s)) {\n $s = [$s];\n }\n if (is_array($s)) {\n $this->resetSKUs();\n $this->resetASINs();\n $i = 1;\n foreach ($s as $x) {\n $this->options['ASINList.Id.'.$i] = $x;\n $i++;\n }\n } else {\n return false;\n }\n }", "public function setFilas($filas){\n $this->_filas = $filas;\n }", "function setSecure($secure)\n {\n $this->secure = $secure;\n }", "public function setEsamiClinica($esami) {\r\n $this->_esami = $esami;\r\n }", "public function setSchoolsIds(?array $value): void {\n $this->getBackingStore()->set('schoolsIds', $value);\n }", "function setUsername($s)\n\t{\n\t\t$this->Info['Username'] = $s;\n\t\tupdateTableByUser('Developer', 'Username', $s, $this->Username);\n\t}", "protected function setUsers()\n {\n $this->users = new Users;\n $this->users->read();\n \n $this->data['users'] = $this->users;\n }", "public function salirSistema( ) {\n $this->setComando(\"OFF\");\n }", "public function setUsuario( $usuario ){\n\t\t \t$this->usuario = $usuario;\n\t\t }", "public function modify_estado($texto)\n {\n \t$datos = json_decode($texto);\n \t$aux_user=Proveedor::find($datos->id_prov);\n \t$aux_user->estado=$datos->estado;\n \tif($aux_user->save()){\n \t\treturn response()->json(['success' => 0]); //ok\n \t}else{\n \t\treturn response()->json(['success' => 1]); //error al modificar el estado\n \t}\n }", "public function set($user, array $input);", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "public function getSenhaAdmin(){\n\t\t\treturn $this-> senha_admin;\n\t\t}", "function setEstanteria($_codigoEstanteria){\r\n $this->estanteria=$_codigoEstanteria;\r\n }", "public function testSetSaisiePvInterdite() {\n\n $obj = new Collaborateurs();\n\n $obj->setSaisiePvInterdite(true);\n $this->assertEquals(true, $obj->getSaisiePvInterdite());\n }", "public function setObservacao($sObservacao){\n $this->sObservacao = $sObservacao;\n }", "public function cierraSesion()\r\n\t{\r\n $fecha =date('Y-m-d H:m:i');\r\n\t\t$usuario = $this->session->userdata('nom_usuario');\r\n\r\n\t\t$this->db->set('final_sesion',$fecha);\r\n\t\t$this->db->where('nom_usuario',$usuario);\r\n\t\t$this->db->update('sesiones'); \r\n }", "public function setSaldo($saldo){\n\t\t\t$this->saldo = $saldo;\n\t\t}", "private function setData($data){\n if (!empty($data['nis'])){ \n $siswa = $this->em->find('SiswaEntity', $data['nis']);\n $this->sertifikat->setSiswa($siswa); \n }\n if (!empty($data['tempat_ujian'])) : $this->sertifikat->setTempat_ujian($data['tempat_ujian']); endif;\n if (!empty($data['tgl_ujian'])) {\n $tgl_arr = explode('-', $data['tgl_ujian']);\n $tgl = new DateTime();\n $tgl->setDate($tgl_arr[0], $tgl_arr[1], $tgl_arr[2]);\n $this->sertifikat->setTgl_ujian($tgl);\n }\n if (!empty($data['juz'])) : $this->sertifikat->setJuz($data['juz']); endif;\n if (!empty($data['nilai'])) : $this->sertifikat->setNilai($data['nilai']); endif;\n if (!empty($data['predikat'])) : $this->sertifikat->setPredikat($data['predikat']); endif;\n if (!empty($data['keterangan'])) : $this->sertifikat->setKeterangan($data['keterangan']); endif;\n }", "public function setToiletSiswaPerempuan($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->toilet_siswa_perempuan !== $v) {\n $this->toilet_siswa_perempuan = $v;\n $this->modifiedColumns[] = SanitasiPeer::TOILET_SISWA_PEREMPUAN;\n }\n\n\n return $this;\n }", "function setWebsiteS(string $websiteS): void{\n\t\t$this->websiteS = $websiteS;\n\t}", "public function setUtente($utente) \n\t{\n $this->utente = $utente;\n }", "public function set($identifier, $value) {\n\t\t$this->data[$identifier] = $value;\n\t\t$GLOBALS['TSFE']->fe_user->setKey('ses', $this->namespace, $this->data);\n\t\t$GLOBALS['TSFE']->fe_user->storeSessionData();\n\t}", "public function setSecure( $secure )\n {\n $this->secure = ub($secure);\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function mudarSenhaUpdate(Request $request)\n {\n $this->repository->findOrFail(Auth::user()->codusuario);\n $data = $request->all();\n \n Validator::extend('igual', function ($attribute, $value, $parameters) {\n if ($value == $parameters[0]) {\n return true;\n } else {\n return false;\n }\n }); \n \n Validator::extend('senhaAntiga', function ($attribute, $value, $parameters) {\n if (password_verify($value, $this->repository->model->senha)) {\n return true;\n } else {\n return false;\n }\n }); \n \n $mensagens = [\n 'senha.igual' => 'A confirmação de senha é diferente da senha',\n 'senhaantiga.senha_antiga' => 'Senha antiga incorreta'\n ];\n \n // Valida dados\n Validator::make($data, [\n 'senhaantiga' => 'required|senhaAntiga',\n 'senha' => 'required|igual:'. $data['repetir_senha']\n ], $mensagens)->validate(); \n \n $data['senha'] = bcrypt($data['senha']);\n\n // autorizacao\n $this->repository->fill($data);\n $this->repository->authorize('update');\n \n // salva\n if (!$this->repository->update()) {\n abort(500);\n } \n \n Session::flash('flash_update', 'Senha alterada!');\n\n // redireciona para view\n return redirect(\"usuario/{$this->repository->model->codusuario}\"); \n }", "public function testSetSuiviMessages() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuiviMessages(true);\n $this->assertEquals(true, $obj->getSuiviMessages());\n }", "function setPorc_asistencia($porc_asistencia){\n\t\t\n\t\t$this->porc_asistencia = $porc_asistencia;\n\t\t$this->cambios = true;\n\t}", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function set_login($data){\n\t\t\tif( is_array($data) ){\n\t\t\t\tforeach($data as $i=>$v){\n\t\t\t\t\t$this->set($i, $v);\n\t\t\t\t}\n\t\t\t\t$this->extend_login();\n\t\t\t}\n\t\t}", "public function setKaina($x) {\n $this->kaina = $x; //privati reiksme tai kaina\n }", "public function setTermsOfService(?string $tos): void\n {\n $this->tos = $tos;\n }", "public function set_saida(Saida $object)\n {\n $this->saida = $object;\n $this->ref_saida = $object->id;\n }", "protected function setSurname(string $surname) {\n $this->surname = $surname;\n }", "function setUserAdmin( $value )\n {\n $this->UserAdmin = $value;\n }", "function sobreMeSalvar() {\n \n $usuario = new Estado_pessoal();\n $api = new ApiUsuario();\n $usuario->codgusuario = $_SESSION['unia']->codgusario;\n $this->dados = $api->Listar_detalhe_usuario($usuario);\n if (empty($this->dados->codgusuario) && $this->dados->codgusuario == NULL) {\n \n $this->dados = array('dados'=>$api->Insert_sobreMe(new Estado_pessoal ('POST')) );\n header(\"Location:\" .APP_ADMIN.'usuario/detalhe_usuario');\n } else {\n $this->dados = array('dados'=>$api->Actualizar_sobreMe(new Estado_pessoal ('POST')) );\n header(\"Location:\" .APP_ADMIN.'usuario/detalhe_usuario');\n }\n \n }", "public function set($key,$value) {\n\t\t$this->getFrontendUser()->setKey('ses', self::SESSIONNAMESPACE.$key, $value);\n\t\t$this->getFrontendUser()->storeSessionData();\n return true;\n\t}" ]
[ "0.6566053", "0.59533155", "0.5923462", "0.58537394", "0.5829918", "0.56695664", "0.5499926", "0.5499926", "0.54376364", "0.538597", "0.53750044", "0.5349478", "0.5303382", "0.5302118", "0.5290931", "0.5275466", "0.52609384", "0.52609384", "0.52609384", "0.52609384", "0.5254595", "0.5213967", "0.5211533", "0.5200545", "0.5175772", "0.5172474", "0.5171452", "0.51672435", "0.51555485", "0.5154341", "0.5141941", "0.51331455", "0.5132186", "0.5125999", "0.50846297", "0.5080904", "0.5067628", "0.50573003", "0.5051139", "0.5038181", "0.5029622", "0.5029497", "0.50271386", "0.5018894", "0.50005776", "0.49982032", "0.49969223", "0.49914193", "0.49799567", "0.49799567", "0.49799567", "0.49740145", "0.4971869", "0.49631065", "0.49466437", "0.49273145", "0.4927105", "0.49240598", "0.49235904", "0.49220607", "0.4917096", "0.49157313", "0.48934692", "0.48804078", "0.48642105", "0.48567352", "0.48551363", "0.48495248", "0.483477", "0.48337302", "0.48330212", "0.48282325", "0.48243335", "0.48154292", "0.48106182", "0.4810348", "0.48080966", "0.4803378", "0.48020527", "0.47994417", "0.4774166", "0.47692892", "0.47686744", "0.4763847", "0.47579828", "0.475506", "0.47543943", "0.47538143", "0.47411534", "0.47392535", "0.47382134", "0.47341955", "0.47273946", "0.47249216", "0.4724731", "0.4720449", "0.4718793", "0.47179183", "0.47171387", "0.47147515" ]
0.67107004
0
Get the value of senalamientos.
public function getSenalamientos() { return $this->senalamientos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSenha(){\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n {\n return $this->senha;\n }", "public function getSenha()\n\t{\n\t\treturn $this->senha;\n\t}", "public function getTokenSenha()\n\t{\n\t\treturn $this->token_senha;\n\t}", "public function getSenhaAdmin(){\n\t\t\treturn $this-> senha_admin;\n\t\t}", "public function getSukunimi(){\n return $this->sukunimi;\n }", "public function getSenhaProfessor()\r\n {\r\n return $this->senhaProfessor;\r\n }", "public function use_obtener_sucursal_actual(){\n $sucursal_actual = $this->ci->session->userdata('sucursal');//sucursal_id sid\n $usuario = $this->ci->arixkernel->select_one_content('numero, nombre','config.sucursales', array('sucursal_id' => $sucursal_actual));\n return $usuario;\n }", "public function getSuelo_idsuelo(){\n return $this->suelo_idsuelo;\n }", "public function getToiletSiswaPerempuan()\n {\n return $this->toilet_siswa_perempuan;\n }", "public static function getSeniorStaff(){\n $senior = YumUser::model()->findAll('id IN (1,8,11)');\n return CHtml::listData($senior, 'id', 'username');\n }", "public function getSalaire()\n {\n return $this->salaire;\n }", "public function getSalaire()\n {\n return $this->salaire;\n }", "public function getSucursal()\n {\n return $this->sucursal;\n }", "public function valorpasaje();", "public function getAMelibatkanSanitasiSiswa()\n {\n return $this->a_melibatkan_sanitasi_siswa;\n }", "function getSorpresa(){\r\n return $this->sorpresa;\r\n }", "public function getSECUENCIAL()\r\n {\r\n return $this->SECUENCIAL;\r\n }", "public function poliSesuaiJadwal()\n {\n $poliTujuan = JadwalDokter::where('kd_poli',$this->kodePoli())->where('hari_kerja', $this->dayToHari())->first();\n $poliSesuaiJadwal = $poliTujuan->poli['nm_poli'];\n return $poliSesuaiJadwal;\n }", "private function socioLoguedo()\n {\n $socio = Auth()->user()->Socio;\n // STRTPUPPER - Transforma un string A mayusciula\n $patrocinador = strtoupper($socio->nombresSocio . ' ' . $socio->apellidoPaternoSocio . ' ' . $socio->apellidoMaternoSocio);\n return $patrocinador;\n }", "public function getSalons()\r\n {\r\n return $this->salons;\r\n }", "public function getSens() {\n return $this->sens;\n }", "public function getStamina()\n {\n return $this->getXml()->getElementsByTagName('StaminaSkill')->item(0)->nodeValue;\n }", "public function getAsientos(){ return $this->asientos;}", "public function getNombre_sala()\n {\n return $this->nombre_sala;\n }", "public function getAKemitraanSanSwasta()\n {\n return $this->a_kemitraan_san_swasta;\n }", "public function getTIPO_SANGUINEO()\r\n {\r\n return $this->TIPO_SANGUINEO;\r\n }", "public function getToiletSiswaKk()\n {\n return $this->toilet_siswa_kk;\n }", "public static function getVSeStranke(){\n $db = DBInit::getInstance();\n\n $statement = $db->prepare(\"SELECT id_stranke, ime, priimek, email, geslo, naslov, telefon FROM stranke\");\n \n $statement->execute();\n\n return $statement->fetchAll();\n }", "public function getToiletSiswaLaki()\n {\n return $this->toilet_siswa_laki;\n }", "function getEstanteria(){\r\n return $this->estanteria;\r\n }", "public function getEstudio_seguridad(){\n return $this->estudio_seguridad;\n }", "public function getCriarSenha()\n {\n return view('auth.externo.criarSenha');\n }", "public function getAKemitraanSanPuskesmas()\n {\n return $this->a_kemitraan_san_puskesmas;\n }", "public function getVestiAdmin(){\n\t\t\t$this->db->where('skolaId', 0);\n\t\t\t$query = $this->db->get('vesti');\n\t\t\treturn $query->result_array();\n\t\t}", "public function getSolicitacao()\n {\n return $this->solicitacao;\n }", "function getSoporte() {\r\n return $this->soporte;\r\n }", "public function valordelospasajesplus();", "public function jml_permohonan_selesai()\n {\n $this->db->select('id_permohonan_ptsp, COUNT(id_permohonan_ptsp) as permohonan_selesai');\n $this->db->from('permohonan_ptsp');\n $this->db->where(\n 'status',\n 'Selesai'\n );\n $this->db->where('status_delete', 0);\n\n $hasil = $this->db->get();\n return $hasil;\n }", "public function setSenalamientos($senalamientos)\n {\n $this->senalamientos = $senalamientos;\n\n return $this;\n }", "public function use_obtener_otros_sucursales(){\n $cuenta = $this->ci->session->userdata('usuario'); \n $suc = $this->ci->session->userdata('sucursal');\n $sucursales = $this->ci->arixkernel->select_all_content_where('sucursal_id serial, numero, nombre','config.v_cuenta_sucursal', array('cuenta_id' => $cuenta, 'sucursal_id !=' => $suc, 'estado' => true));\n return $sucursales;\n }", "public function getTeknisi(){\n //Query untuk mengambil data semua user dengan level 'Technician'\n $this->db->where('level', 'Technician');\n return $this->db->get('user');\n }", "public function getSentido()\n\t{\n\t\treturn $this->sentido;\n\t}", "public function getUsermidas()\n {\n return $this->get(self::_USERMIDAS);\n }", "public function getIdfisicaSuelo(){\n return $this->idfisicaSuelo;\n }", "public function getLembagaSiswa()\n\t{\n\t\t$this->load->database();\n\t\t$query = $this->db->query\n\t\t\t\t(\"\n\t\t\t\t\tSELECT lembaga\n\t\t\t\t\tFROM psb_calonsiswa\n\t\t\t\t\tWHERE \n\t\t\t\t\t\tiduser = '$this->iduser'\t\n\t\t\t\t\");\n\t\t$this->db->close();\n\t\treturn $query;\n\t}", "function getSemaforo() {\n\t\tglobal $usr;\n\n\t\tif ($this->extra[\"imprimir\"]) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telseif ($usr->orientacion_semaforo == 0) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telse {\n\t\t\t$this->resultado = $this->__getSemaforoInvertido();\n\t\t}\n\t}", "public function getStrata() {\t\t\n\t\t$rows = $this->db->get('Strata')->result();\t\n\t\treturn $this->getPairs($rows, 'STRATAID', 'STRATA');\n\t}", "public function getUtentes()\n {\n return $this->utentes;\n }", "static function listaStilova(){\n\t\t$stilovi=\"\";\n\t\treturn $stilovi;\n\t}", "function pobierz_studentow() {\n\t\t$baza = polacz_z_baza();\n\n\t\t$zapytanie = 'select * from studenci';\n\t\t$wynik = mysqli_query($baza, $zapytanie);\n\n\t\tzakoncz_polaczenie($baza);\n\n\t\treturn $wynik;\n\t}", "public function validaSenha()\n {\n $valido = '';\n\n if (strlen($this->__get('senha')) < 4) {\n $valido = 'senha-invalida';\n }\n\n if ($this->__get('senha') != $this->__get('conf_senha')) {\n $valido = 'senhas-diferentes';\n }\n\n return $valido;\n }", "public function getSalutations()\n {\n $salutations = ['', 'Mr.', 'Ms.', 'Dr.', 'Rev.', 'Prof.'];\n\n return array_combine($salutations, $salutations);\n }", "public function getMinumSiswa()\n {\n return $this->minum_siswa;\n }", "public function getJenisSidang() {\n return CHtml::listData(Jenissidang::model()->findAll(), 'IDJenisSidang', 'NamaSidang');\n }", "public function getStUsuario()\n\t{\n\t\treturn $this->st_usuario;\n\t}", "public function Get_Esta()\n {\n\t\t\t$empr_id = empresa();\n\t\t\t//$url = 'http://localhost:9132/oeosft/api/rest/esta';\n\t\t\t$url = AJST.'/services/asp/ALMDataService/establecimientos/empresa/'.$empr_id;\n $array = $this->rest->callAPI(\"GET\",$url);\n $resp = json_decode($array['data']);\t\t\n return $resp->establecimientos->establecimiento;\n\t}", "public function getSlogan()\n {\n return $this->get(self::_SLOGAN);\n }", "public function getId_sala()\n {\n return $this->id_sala;\n }", "function get_seguro($mes='',$anio='',$id_sucursal=''){\n\t\t$sQuery=\"SELECT \n\t\t\t\tcontrol_salida_extra.*,\n\t\t\t\ttransportista.id as t_id, transportista.nombre as t_nombre , transportista.apellido as t_apellido\n\t\t\t\tFROM control_salida_extra\n\t\t\t\tInner Join transportista ON control_salida_extra.id_transportista = transportista.id\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWHERE control_salida_extra.tipo=1 AND control_salida_extra.status<>'2' \";\n\t\t\n\t\tif($mes) {\t$sQuery.=\" AND month(control_salida_extra.fecha)='$mes' \";\t}\n\t\tif($anio) {\t$sQuery.=\" AND year(control_salida_extra.fecha)='$anio' \";\t}\n\t\tif($id_sucursal) {\t$sQuery.=\" AND control_salida_extra.id_sucursal = '$id_sucursal' \";\t}\n\t\t\n\t\t$sQuery.=\" ORDER BY control_salida_extra.id DESC \";\n\t//\techo ($sQuery);\n\t\t\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\n\t\t\n\t\t\t\t\n\t}", "public function getMataPelajaran();", "public function get_usuario_auditor($login=''){\n\n $this->db->select('*');\n $this->db->from('siava.tbl_params');\n $this->db->where('sec',1);\n $res1 = $this->db->get();\n $auditor ='';\n \n if ($res1->num_rows() > 0){\n \n $res2 = $res1->result_array();\n $result = $res2[0]['valor'];\n \n $sep_user = explode(\",\",$result);\n $count_us = count($sep_user);\n \n for($i=0;$i<$count_us;$i++){\n \n if($login == $sep_user[$i]){\n $auditor = $sep_user[$i];\n break;\n }else{\n $auditor = 'Nohay';\n }\n \n \n \n }\n // var_dump($auditor);\n \n }\n \n \n return $auditor;\n\n\n }", "public function getKinoseiShokuhinAttribute($value) {\n return ($value) ? explode(',', $value) : $this->default_values['kinosei_shokuhin'];\n }", "function obtenerSesion(){\n\t\t\n\t\t$query1 = ('select sesion.id, sesion.checkin, sesion.pagada, sesion.id_servicio, sesion.id_usuario, sesion.id_agenda, sesion.ejecutada, usuario.nombre,\n\t\t\t\t\tusuario.apellido, servicio.descripcion , cliente.nombre as nombre_cliente , cliente.apellido as apellido_cliente from sesion \n\t\t\t\t\tInner JOIN usuario\n\t\t\t\t\ton sesion.id_usuario = usuario.id\n\t\t\t\t\tInner Join servicio\n\t\t\t\t\ton sesion.id_servicio = servicio.id\n\t\t\t\t\tInner Join cliente\n\t\t\t\t\ton sesion.id_cliente = cliente.id'); //QUERY PARA OBTENER TODO DE UNA VEZ.\n\t\t$query = $this->db->query($query1);\n\t\t\n\t\t\n\t //$query = $this->db->get('sesion');\n\t if($query-> num_rows() > 0) return $query->result_array();\n\t else return false ;\n\t \n\t \n\t}", "public function v_satuan()\r\n\t\t{\r\n\t\t\t$hasil = $this->db->get('tbl_satuan');\r\n\t\t\tif($hasil->num_rows()>0){\r\n\t\t\t\treturn $hasil->result();\r\n\t\t\t}else{\r\n\t\t\t\treturn array();\r\n\t\t\t}\r\n\t\t}", "public function getDecscricionfisicaSuelo(){\n return $this->decscricionfisicaSuelo;\n }", "public function allSiswa()\n\t{\n\t\treturn $this->db->get('tb_siswa')->result();\n\t}", "public function getIdSoin() {\r\n return $this->idSoin;\r\n }", "public function showlisteannoncepro()\n {\n $userauth = JWTAuth::parseToken()->authenticate();\n $obj = json_decode($userauth , true);\n $first = array_values($obj)[0];\n $annonces = Annonce::where('users_id', $first )->get();\n return $annonces;\n \n }", "public function getSex()\n {\n $result = null;\n if (isset($this->userInfo['sex'])) {\n $result = $this->userInfo['sex'] == 1;\n }\n return $result;\n }", "private function getSaldo()\n {\n return $this->saldo;\n }", "public function sintomas_get()\n {\n $status = 1;\n $message = null;\n\n $sintomas = $this->SintomaModel->getAll();\n \n if($sintomas == null)\n {\n $status = 0;\n $message = 'No se han encontrado sintomas.';\n }\n \n $this->response(\n array(\n \"status\" => $status,\n \"message\" => $message,\n \"data\" => $sintomas\n ), \n REST_Controller::HTTP_OK\n );\n\n }", "public function getsukien($masukien){\n\t\t\t$this->db->where(\"iMa_SuKien\", $masukien);\n\t\t\t$res = $this->db->get(\"tbl_sukien\")->row_array();\n\t\t\treturn $res;\n\t\t}", "public function getEsamiClinica() {\r\n return $this->_esami;\r\n }", "public function get_session_wise_student() {\n\t\t$checker = array(\n\t\t\t'session' => $this->active_session,\n\t\t\t'school_id' => $this->school_id\n\t\t);\n\t\treturn $this->db->get_where('enrols', $checker);\n\t}", "public function getUcenike($skola){\n\t\t\t$this->db->where('skolaId',$skola);\n\t\t\t$ucenik = $this->db->get(\"ucenik\");\n\t\t\treturn $ucenik;\n\t\t}", "public function getSencillos()\n {\n return $this->sencillos;\n }", "public function getSingularValues() {\n return $this->s;\n }", "public function getCategorieSal() {\n return $this->categorieSal;\n }", "public function getIdsucursal()\n {\n\n return $this->idsucursal;\n }", "public function getSex() {\n return (new Query())->select('sex')->from('user_cv')\n ->where(['user_id' => $this->id, 'is_default' => true])\n ->limit(1)->scalar();\n }", "public function getSiglaunidad()\n {\n return $this->siglaunidad;\n }", "public function getSectoreconomicouser()\n\t{\n\t\treturn $this->sectoreconomicouser;\n\t}", "public function getStudent()\r\n {\r\n $sql=\"SELECT * FROM users WHERE role_id=2\";\r\n $query=$this->db->query($sql);\r\n return $query->result_array();\r\n }", "public function devuelve_secciones(){\n \n $sql = \"SELECT * FROM secciones ORDER BY nombre\";\n $resultado = $this -> db -> query($sql); \n return $resultado -> result_array(); // Obtener el array\n }", "public function getPessoa(){\n return $this->pessoa;\n }", "public function getPessoa(){\n return $this->pessoa;\n }", "public function getPessoa(){\n return $this->pessoa;\n }", "public function getSituacao()\n {\n return $this->situacao;\n }", "public function seniorContributors()\n {\n $query = \"SELECT identifier FROM \".$this->_name.\" WHERE status='Active' AND profile_type='senior'\";\n if(($result = $this->getQuery($query,true)) != NULL)\n {\n for($i=0; $i<count($result); $i++)\n {\n $result[$i]= $result[$i]['identifier'];\n }\n return $result;\n }\n else\n return \"NO\";\n }", "public function getSekolahId()\n {\n return $this->sekolah_id;\n }", "public function getSekolahId()\n {\n return $this->sekolah_id;\n }", "public function getSekolahId()\n {\n return $this->sekolah_id;\n }", "public function getSekolahId()\n {\n return $this->sekolah_id;\n }", "public function getSexo()\n {\n return $this->sexo;\n }", "public function getSumberDanaSekolahId()\n {\n return $this->sumber_dana_sekolah_id;\n }", "function porEstudiante($cod_clase, $cod_interno = null) {\n\t\t\t$estudiantes = TAsistencia::all($cod_clase);\n\t\t\tif($estudiantes == null)\n\t\t\t\treturn null;\n\t\t\t$asistencias = array();\n\t\t\tforeach ($estudiantes as $estudiante) {\n\t\t\t\t$asistencias[$estudiante['cod_interno']] = array('asiste' => $estudiante['asiste'], 'cod_motivo' => $estudiante['cod_motivo']);\n\t\t\t}\n\t\t\treturn $asistencias;\n\t\t}" ]
[ "0.7195093", "0.7119711", "0.7119711", "0.7119711", "0.7119711", "0.7076725", "0.6382938", "0.6368121", "0.6317262", "0.6264009", "0.61144257", "0.59345067", "0.5910968", "0.59104353", "0.58592665", "0.58592665", "0.5832153", "0.5811388", "0.5780429", "0.57673883", "0.5733344", "0.5716495", "0.57158697", "0.5707419", "0.56909066", "0.56867474", "0.5675875", "0.56729686", "0.5616387", "0.5584287", "0.55790323", "0.55685675", "0.5561734", "0.55486715", "0.5548163", "0.5540956", "0.5523238", "0.5520204", "0.5516539", "0.55075365", "0.5507505", "0.5506368", "0.55006355", "0.5500171", "0.5494074", "0.54661447", "0.5447958", "0.5431092", "0.5406252", "0.53853905", "0.5380136", "0.5373709", "0.53700167", "0.5364347", "0.53641737", "0.5354714", "0.53482807", "0.53460485", "0.53410333", "0.5340832", "0.5335262", "0.53344977", "0.5331909", "0.53226477", "0.5320258", "0.53110653", "0.5305578", "0.53043073", "0.5303189", "0.52994955", "0.52984375", "0.5298217", "0.52967435", "0.5293647", "0.528717", "0.5286818", "0.5284383", "0.5281389", "0.5268886", "0.5268561", "0.526855", "0.5252869", "0.5248715", "0.5239288", "0.52381444", "0.523434", "0.52289623", "0.52288955", "0.52078706", "0.52078706", "0.52078706", "0.5194305", "0.51920956", "0.51885015", "0.51885015", "0.51885015", "0.51885015", "0.5182261", "0.5173774", "0.5168384" ]
0.78849196
0
Set the value of danos.
public function setDanos($danos) { $this->danos = $danos; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDados($d){\n\t\t$this->dados = $d;\n\t}", "protected function setVida() {\n $this->vida = 200;\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setInstance(DobleOS $os);", "protected function doSet($value)\n {\n }", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "public function setValorDiaria($valorDiaria)\n {\n $this->valorDiaria = $valorDiaria;\n\n \n\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "function setSoporte($soporte) {\r\n $this->soporte = $soporte;\r\n }", "public function setValue($value)\n {\n $value = arr::get($value, 'value', NULL);\n\n if ($value !== NULL)\n {\n //pokud prisla prazdna hodnota, tak do modelu ukladam NULL\n if (empty($value))\n {\n $value = NULL;\n }\n\n parent::setValue($value);\n }\n }", "function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function getDanos()\n {\n return $this->danos;\n }", "public function setEdad($valor){\n\t\t\t$this->edad = $valor;\n\t\t}", "function setSuperada($bsuperada = 'f')\n {\n $this->bsuperada = $bsuperada;\n }", "public function setdia_semana($valor)\n {\n if (($valor <= 0) || ($valor > 7)) :\n echo \"Tentou atribuir {$valor} para dia da semana!\";\n die();\n endif;\n\n $this->data['dia_semana'] = $valor;\n }", "function setValue ($value) {\n\t\t$this->_value = $value;\n\t}", "public function setValue($value){\n $this->_value = $value;\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setListar($value)\n\t{\n\t\t$this->listar = $value;\n\t}", "function set_value($value)\n\t{\n\t\t$this->value = $value;\n\t}", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setDaten(array $daten)\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // pruefe ob ein passender Setter existiert\n if (method_exists($this, $setterName)) {\n $this->$setterName($v); // Setteraufruf\n }\n }\n }\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function setedadPaciente($value){\n\n\t\t$this->_edadPaciente = $value;\n\t}", "private function setDados() {\n $Cover = $this->dados['post_capa']; //Esse indice não pode ser limpo pelo trim nem o array_map\n $Content = $this->dados['post_conteudo']; //Esse indice não pode ser limpo pelo trim nem o array_map\n unset($this->dados['post_capa'], $this->dados['post_conteudo']); //Como os itens anteriores ja foram guardados em váriáveis então podemos dar unset neles, assim podemos pegar eles após limpesa dos dados\n\n $this->dados = array_map('strip_tags', $this->dados); //Realizando a limpesa dos dados de entrada com metoto strip_tags, assim evitando entrada de códigos maliciosos\n $this->dados = array_map('trim', $this->dados); //Realizando a limpesa dos dados de entrada com metoto trim, assim evitando entrada de códigos maliciosos\n\n $this->dados['post_nome'] = Check::Name($this->dados['post_titulo']); //Adicionando ao atributo Dados no indice post_name com checagem pelo metodo statico Check::Name\n $this->dados['post_data'] = Check::Data($this->dados['post_data']); //Adicionando ao atributo Dados no indice post_date com checagem pelo metodo statico Check::Data\n \n\n $this->dados['post_capa'] = $Cover; //Adicionando ao atributo Dados no indice post_capa o conteudo da variável $Cover\n $this->dados['post_conteudo'] = $Content; //Adicionando ao atributo Dados no indice post_content o conteudo da váriável $Content\n $this->dados['post_categoria_pai'] = $this->getCatParent(); //Adicionando ao atributo Dados no indice post_categoria_pai o conteudo do metodo getCatParent\n }", "function setDetalle($sdetalle = '')\n {\n $this->sdetalle = $sdetalle;\n }", "public function setSaldo($saldo){\n\t\t\t$this->saldo = $saldo;\n\t\t}", "public function setDiamonds($value)\n {\n return $this->set(self::_DIAMONDS, $value);\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function __set($nome, $valor) {\n $this->dados[$nome] = $valor;\n }", "public function setDps($value)\n {\n return $this->set(self::_DPS, $value);\n }", "public function setDps($value)\n {\n return $this->set(self::_DPS, $value);\n }", "public function setDps($value)\n {\n return $this->set(self::_DPS, $value);\n }", "public function set($value = null);", "public function setValue($value = true)\n {\n $this->value = $value;\n }", "public function setAno($ano)\n {\n $this->ano = $ano;\n }", "public function setSodiumContent($value)\n {\n $this->sodiumContent = $value;\n }", "public function set_estado($estado) : void\n {\n try {\n $this->estado = Validador::Estado()::validar_id($estado);\n } catch (Exception $e) {\n $this->estado = Validador::Estado()::filtrar_id($estado);\n }\n }", "public function setValue($value) {\n $this->value = $value->value;\n }", "public function __set($varible, $value) {\n\t\t$this->$varible = $value;\n\t}", "public function set()\n {\n if ( ! $this->value ) {\n $this->generate();\n }\n }", "protected function setDNINumber($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\t$value = number_format($value,\"0\",\"\",\".\");\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 298, 623, 'UTF-8');\n\t\t}\n\t\t\n\t}", "public function setNuestroSonido( $comando ) {\n \n $this->nuestroSonido=$comando;\n $this->enviarNuestroSonido();\n $this->activarPantalla();\n //activar y enviar comando\n }", "public function setEntityDun($value)\n {\n return $this->set('EntityDun', $value);\n }", "private function setData($data) {\r\n\t\t$this->set_cd_jogo($data[\"cd_jogo\"]);\r\n\t\t$this->set_nm_jogo($data[\"nm_jogo\"]);\r\n\t\t$this->set_vl_jogo($data[\"vl_jogo\"]);\r\n\t\t$this->set_ds_sinopse(utf8_decode($data[\"ds_sinopse\"]));\r\n\t\t$this->set_dt_lancamento($data[\"dt_lancamento_jogo\"]);\r\n\t\t$this->set_ds_requisito_minimo($data[\"ds_requesito_minimo\"]);\r\n\t\t$this->set_ds_requisito_sugerido($data[\"ds_requesito_sugerido\"]);\r\n\t}", "abstract public function setValue($value);", "public function __set($name, $value)\n {\n $this->m_current_clusternode->$name = $value;\n }", "public function setDiaBaja($data)\n {\n\n if ($data == '0000-00-00 00:00:00') {\n $data = null;\n }\n\n if ($data === 'CURRENT_TIMESTAMP') {\n $data = \\Zend_Date::now()->setTimezone('UTC');\n }\n\n if ($data instanceof \\Zend_Date) {\n\n $data = new \\DateTime($data->toString('yyyy-MM-dd HH:mm:ss'), new \\DateTimeZone($data->getTimezone()));\n\n } elseif (!is_null($data) && !$data instanceof \\DateTime) {\n\n $data = new \\DateTime($data, new \\DateTimeZone('UTC'));\n }\n\n if ($data instanceof \\DateTime && $data->getTimezone()->getName() != 'UTC') {\n\n $data->setTimezone(new \\DateTimeZone('UTC'));\n }\n\n\n if ($this->_diaBaja != $data) {\n $this->_logChange('diaBaja');\n }\n\n\n $this->_diaBaja = $data;\n return $this;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue(array $arr){\r\n $this->_valores = $arr;\r\n }", "public function sethiddenObj(array $value)\n {\n $this->hiddenbuildings = self::mutateToPgArray($value);\n }", "function value( $value )\n\t{\n\t\t$this->value = $value;\n\t}", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function set($data);", "public function setPaisAttribute($value)\n\t{\n\t\t$this->attributes['pais'] = mb_strtoupper($value);\n\t}", "public function setValue($value)\n {\n $this->value = $value;\n }", "public function setValue($value)\n {\n $this->value = $value;\n }", "public function setValue($value)\n {\n $this->value = $value;\n }", "public function setValue($value)\n {\n $this->value = $value;\n }", "public function setDevices(?array $value): void {\n $this->getBackingStore()->set('devices', $value);\n }", "public function setDoubanId($value)\n {\n if (!array_key_exists('douban_id', $this->fieldsModified)) {\n $this->fieldsModified['douban_id'] = $this->data['fields']['douban_id'];\n } elseif ($value === $this->fieldsModified['douban_id']) {\n unset($this->fieldsModified['douban_id']);\n }\n\n $this->data['fields']['douban_id'] = $value;\n }", "public function setMaster($value){\n $this->master = $value;\n }", "public function setValue( $value )\r\n\t{\r\n\t\t$this->value = $value;\r\n\t}", "public function set_value( $value ) {\n $this->value = $value;\n }", "public function SetValue($value)\n\t{\n\t\t$this->value = $value;\n\t}", "public function setValue($v){\n $this->value = $v;\n }", "public function setOrden($orden) {\n $ord = ($orden != 0 && $orden != 1 && $orden != 2) ? 0 : $orden;\n if ($ord != $this->orden) {\n // Si cambia el orden, recarga los datos.\n $fecha = $this->fecha;\n $this->cargarAsistentes($fecha, $ord);\n }\n }", "public function __set($name, $value){\n\t\t\t//echo $name.'<br>'.$value.'<br>';\n\t\t\t//IMP po tozi na4in zadavam klu4 imeto na promenlivata ! i stoinost \n\t\t\t//ravna na stoinostta na promenlivata !!!\n\t\t\t//oba4e ne mi dava da go 4eta i polzvam __GET !\n\t\t\t$this->data[$name] = $value;\n\t\t}", "public function setSets(?array $value): void {\n $this->getBackingStore()->set('sets', $value);\n }", "public function setIntentos($intentos){\n $this->intentos = $intentos;\n }", "function setValSubNode($nombre,$valor){\n\t\t$clase=$this->nmclass;\n\t\t$this->nodos[$clase][$nombre]=$valor;\n\t\t$this->anode=$nombre;\n\t\treturn 0;\n\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function setSlogan($value)\n {\n return $this->set(self::_SLOGAN, $value);\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->icono=$_POST['icono'];\n\t}" ]
[ "0.61246985", "0.60416", "0.59048545", "0.57893616", "0.5762632", "0.5621915", "0.56176287", "0.5563497", "0.5555149", "0.5554704", "0.55324835", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.552063", "0.55206186", "0.55206186", "0.55005205", "0.5495994", "0.54942805", "0.5448756", "0.54243946", "0.5422619", "0.54216915", "0.5409458", "0.53986126", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.53954625", "0.538375", "0.53808826", "0.5373092", "0.5341816", "0.5329006", "0.5320872", "0.531022", "0.5306475", "0.52898663", "0.5288958", "0.5261522", "0.52606577", "0.52606577", "0.5254917", "0.5235549", "0.5234483", "0.52337176", "0.5230644", "0.5201121", "0.51874435", "0.5185284", "0.5181462", "0.51788497", "0.51683486", "0.51635426", "0.51614296", "0.51597095", "0.5134379", "0.513264", "0.513264", "0.513264", "0.513264", "0.5119235", "0.5118484", "0.5114004", "0.5110109", "0.5094013", "0.5093361", "0.5088047", "0.5088047", "0.5088047", "0.5088047", "0.50876284", "0.5084735", "0.5084722", "0.5083937", "0.5082985", "0.50828475", "0.5080892", "0.5074436", "0.50706255", "0.5068986", "0.5060398", "0.5042241", "0.5040142", "0.50400597", "0.5033006" ]
0.6355969
0
Get the value of danos.
public function getDanos() { return $this->danos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_valor() {\n\t\t\n\t\t$ar_list_of_values\t= $this->get_ar_list_of_values();\n\t\t$dato \t\t\t\t= $this->get_dato();\n\t\t\n\t\tif (is_array ($ar_list_of_values)) foreach ($ar_list_of_values as $value => $rotulo) {\n\t\t\t\t\t\t\t\t\t\n\t\t\tif( $dato == $value ) {\n\t\t\t\t\n\t\t\t\t$this->valor = $rotulo; \n\t\t\t\t\n\t\t\t\treturn $this->valor;\n\t\t\t}\n\t\t\t#echo \"<br> - $dato - $value => $rotulo \";\n\t\t}\t\t\t\t\t\n\t}", "public function getDyna()\n {\n return $this->get(self::_DYNA);\n }", "public function getDyna()\n {\n return $this->get(self::_DYNA);\n }", "public function getDyna()\n {\n return $this->get(self::_DYNA);\n }", "public function getDyna()\n {\n return $this->get(self::_DYNA);\n }", "public function getDyna()\n {\n return $this->get(self::_DYNA);\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValor(){\n return $this->_data['valor'];\n }", "public function get_valor() {\n\t\t\n\t\t$dato = self::get_dato();\n\t\t/*\n\t\t$separator = ' , ';\n\t\tif($this->modo=='list') $separator = '<br>';\n\n\t\tif (is_array($valor)) {\n\t\t\t# return \"Not string value\";\n\t\t\t$string \t= '';\n\t\t\t$n \t\t\t= count($valor);\n\t\t\tforeach ($valor as $key => $value) {\n\n\t\t\t\tif(is_array($value)) $value = print_r($value,true);\n\t\t\t\t$string .= \"$key : $value\".$separator;\n\t\t\t}\n\t\t\t$string = substr($string, 0,-4);\n\t\t\treturn $string;\n\n\t\t}else{\n\t\t\t\n\t\t\treturn $valor;\n\t\t}\n\t\t*/\n\t\tif(isset($dato['counter'])) {\n\t\t\t$valor = $this->tipo.'-'.$dato['counter'];\n\t\t}else{\n\t\t\t$valor = $this->tipo;\n\t\t}\n\n\t\treturn $valor;\n\t}", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function getValorDiaria()\n {\n return $this->valorDiaria;\n }", "public function obtenerValor() {\n return $this->valor;\n }", "private function verLoMasBuscado ()\r\n {\r\n $tags = new DiccionarioTag();\r\n return $tags->getLoMasBuscado();\r\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getDod();", "public function getValue(){\n return $this->getData();\n }", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "private function obtener_valor($nombre, $seccion, $valores_nuevos){\n\n\t\t// Si existe cargo el valor que se pasó diréctamente al generador de metas\n\t\tif(array_key_exists($nombre, $valores_nuevos)){\n\t\t\treturn $valores_nuevos[ $nombre ];\n\t\t}\n\n\t\t// Cargo el valor actual de la meta desde la configuración, si no está vacío\n\t\t// Las prioridades son: idioma actual, el por defecto o cualquier otro\n\t\t$valores = $this->config->secciones[ $seccion ];\n\t\tforeach(Idioma::idiomasDisponibles() as $idioma){\n\t\t\tif(array_key_exists($idioma, $valores) AND $valores[ $idioma ][ $nombre ]){\n\t\t\t\treturn $valores[ $idioma ][ $nombre ];\n\t\t\t}\n\t\t}\n\n\t\t// Cargo el valor por defecto si hiciera falta\n\t\t// Las prioridades son: idioma actual, el por defecto o cualquier otro\n\t\t$valores_defecto = $this->config->defecto;\n\t\tforeach(Idioma::idiomasDisponibles() as $idioma){\n\t\t\tif(array_key_exists($idioma, $valores_defecto)){\n\t\t\t\treturn $valores_defecto[ $idioma ][ $nombre ];\n\t\t\t}\n\t\t}\n\t\treturn '';\n\t}", "public function getValue() {\n\t\t$db = Loader::db();\n\t\t$value = $db->GetOne('select value from atDefault where avID = ?', array($this->getAttributeValueID()));\n\t\t\n\t\t$jsonHelper = Loader::helper('json');\n\t\treturn $jsonHelper->decode($value);\n\t}", "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "public function getValue()\n {\n\treturn $this->value;\n }", "function getValue() {\n return $this->value;\n }", "public function getValue(){\n return $this->_value;\n }", "public function somarValores()\n {\n return $this->bd->sum($this->tabela, \"valor\");\n }", "public function getValoracion() {\n return $this->valoracion;\n }", "public function value();", "public function value();", "public function value();", "public function getDobd() {\n\t\treturn $this->container['dobd'];\n\t}", "public function value() { }", "public function value() { }", "public function getValue() {\n return $this->value;\n }", "public function getValue() {\n return $this->value;\n }", "public function getValue() {\n return $this->value;\n }", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "public function getSumberDanaSekolahId()\n {\n return $this->sumber_dana_sekolah_id;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValor()\n {\n return $this->valor;\n }", "public function getValue(){ }", "public function get()\n {\n \n return $this->value;\n \n }", "public function getD() {}", "public function getValue()\n {\n return $this->segment->value;\n }", "function getValNode(){\n\t\t$clase=$this->nmclass;\n\t\t$node=$this->anode;\n\t\t$valor=$this->nodos[$clase][$node];\n\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}", "public function value()\n {\n return $this->value;\n }", "public function value()\n {\n return $this->value;\n }", "public function value()\n {\n return $this->value;\n }", "public function value()\n {\n return $this->value;\n }", "public function value()\n {\n return $this->value;\n }", "public function value()\n {\n return $this->value;\n }", "public function get_value()\n {\n return $this->value;\n }", "public function getValue() {\n\n }", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n\t\treturn $this->value;\n\t}", "static function get($key){\n \n //si existe te retorna\n if (array_key_exists($key, self::$dades)) \n { \n return self::$dades[$key]; //si existe le pasamos el valor\n }else \n { \n return null; //ni no existe le pasamos null\n } \n \n }", "public function getValue()\r\n {\r\n return $this->value;\r\n }", "public function ambil_satu_baris()\r\n\t{\r\n\t\t$this->jalankan_sql();\r\n\t\treturn $this->kendaraan->fetch(PDO::FETCH_ASSOC);\r\n\t}" ]
[ "0.63192356", "0.5875379", "0.5875379", "0.5875379", "0.5875379", "0.5875379", "0.58709145", "0.58709145", "0.58709145", "0.58709145", "0.58709145", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.58708566", "0.5851336", "0.58382523", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58287907", "0.58247966", "0.58247966", "0.5804062", "0.57832646", "0.5710599", "0.57067776", "0.56803787", "0.56803787", "0.56782806", "0.5658427", "0.56346333", "0.5629115", "0.56266975", "0.5622551", "0.55881083", "0.55851376", "0.5544761", "0.5528918", "0.552482", "0.5521571", "0.5516947", "0.5516947", "0.5516947", "0.5516035", "0.55150664", "0.55150664", "0.55137223", "0.55137223", "0.55137223", "0.54817986", "0.5472157", "0.5464624", "0.5464624", "0.5459042", "0.54574686", "0.5455684", "0.54523414", "0.5447908", "0.54476106", "0.54476106", "0.54476106", "0.54476106", "0.54476106", "0.54476106", "0.5446616", "0.5435138", "0.54211545", "0.54211545", "0.54201144", "0.5415998", "0.54156226", "0.5410023" ]
0.70327616
0
Set the value of created_at.
public function setCreatedAt($created_at) { $this->created_at = $created_at; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCreatedAtAttribute($value)\n {\n $this->attributes['created_at'] = $value;\n }", "public function setDateTime($value)\n {\n $this->createdAt=$value;\n }", "public function setCreatedAtValue()\n {\n $this->createdAt = new \\DateTime();\n }", "public function setCreatedAtAttribute($value)\n {\n $this->attributes['created_at'] = date('Y-m-d');\n }", "public function setCreatedAt($created_at)\n {\n $this->created_at = $created_at;\n }", "public function setCreatedAt(string $created_at): void\n {\n $this->_created_at = $created_at;\n }", "public function setCreatedAt(string $created_at): void\n {\n $this->_created_at = $created_at;\n }", "public function setCreatedAt()\n {\n $this->createdAt = new \\DateTime();\n }", "public function setCreatedAtAttribute($value)\n {\n $this->attributes['created_at'] = Carbon::parse($value);\n }", "public function setCreatedAt($value)\n {\n if (!array_key_exists('created_at', $this->fieldsModified)) {\n $this->fieldsModified['created_at'] = $this->data['fields']['created_at'];\n } elseif ($value === $this->fieldsModified['created_at']) {\n unset($this->fieldsModified['created_at']);\n }\n\n $this->data['fields']['created_at'] = $value;\n }", "public function setCreatedAt(?string $createdAt): void\n {\n $this->createdAt = $createdAt;\n }", "public function setCreatedAt(?string $createdAt): void\n {\n $this->createdAt = $createdAt;\n }", "public function setCreatedAtAttribute($value) {}", "public function setCreatedAt(string $createdAt): void\n {\n $this->createdAt = $createdAt;\n }", "public function setCreatedAt($createdAt) \r\n {\r\n $this->createdAt = $createdAt;\r\n }", "public function setCreatedAt($createdAt);", "public function setCreatedAt($createdAt);", "public function setCreatedAt($createdAt);", "public function setCreatedAt($createdAt);", "public function setCreatedAt($createdAt);", "public function setCreatedat(\\DateTime $createdAt);", "public function setCreatedAt($createdAt)\n {\n $this->createdAt = $createdAt;\n }", "public function setCreatedAt($createdAt)\n {\n $this->createdAt = $createdAt;\n }", "public function setCreatedAt($createdAt)\n {\n $this->createdAt = $createdAt;\n }", "public function setCreatedAt(\\Datetime $createdAt);", "public function setCreatedAtAttribute( $value ) {\n if (config('database.default') == 'mysql') {\n $this->attributes['created_at'] = (new Carbon($value))->format('Y-m-d H:i:s');\n }elseif(config('database.default') == 'sqlsrv'){\n $this->attributes['created_at'] = (new Carbon($value))->format('Ymd H:i:s');\n }else{\n $this->attributes['created_at'] = (new Carbon($value))->format('Y-m-d H:i:s');\n }\n }", "private function SetCreated(\\DateTime $value)\n\t\t{\n\t\t\t$this->created = $value;\n\t\t}", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreated_at($created_at) {\n $this->_created_at = (int)$created_at;\n $this->_params['created_at'] = (int)$created_at;\n return $this;\n }", "public function setCreated_at($created_at)\n {\n $this->created_at = $created_at;\n \n return $this;\n }", "public function setCreatedAt(string $createdAt): self;", "public function setCreatedAt(string $createdAt): self;", "public function setCreatedAt(\\DateTime $createdAt = null);", "public function setCreated(\\DateTime $created) {\n\n $this->created = $created->format('Y-m-d H:i:s');\n\n }", "public function updateCreatedAt()\n {\n $this->setCreatedAt(new \\Datetime());\n $this->updateUpdatedAt();\n }", "public function setCreatedAt($createdAt){\n return $this->setData(self::CREATED_AT, $createdAt);\n }", "public function setCreatedAt(DateTime $date);", "public function setCreatedAt($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Timestamp::class);\n $this->created_at = $var;\n\n return $this;\n }", "public function setCreatedAt($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Timestamp::class);\n $this->created_at = $var;\n\n return $this;\n }", "public function setCreatedAt($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->created_at !== null || $dt !== null) {\n if ($this->created_at === null || $dt === null || $dt->format(\"Y-m-d H:i:s\") !== $this->created_at->format(\"Y-m-d H:i:s\")) {\n $this->created_at = $dt === null ? null : clone $dt;\n $this->modifiedColumns[UserTableMap::COL_CREATED_AT] = true;\n }\n } // if either are not null\n\n return $this;\n }", "public function setCreatedAt(DateTime $createdAt): self;", "public function setCreationTimestamp(?DateTime $value): void {\n $this->getBackingStore()->set('creationTimestamp', $value);\n }", "public function setCreatedAt($_created_at)\n {\n $this->_created_at = $_created_at;\n\n return $this;\n }", "public function setCreatedAt(?\\DateTime $created_at): self\n {\n $this->created_at = $created_at;\n\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setCreatedDateTime($val)\n {\n $this->_propDict[\"createdDateTime\"] = $val;\n return $this;\n }", "public function setValueDefault()\n {\n $this->createdAt = new \\DateTime();\n }", "public function setCreatedAt($var)\n {\n GPBUtil::checkInt64($var);\n $this->CreatedAt = $var;\n\n return $this;\n }", "public function setDateCreated($value)\n {\n $this->validateDate('DateCreated', $value);\n $this->validateNotNull('DateCreated', $value);\n\n if ($this->data['date_created'] === $value) {\n return;\n }\n\n $this->data['date_created'] = $value;\n $this->setModified('date_created');\n }", "public function setCreatedAt(\\DateTime $createdAt) : self\n {\n $this->initialized['createdAt'] = true;\n $this->createdAt = $createdAt;\n return $this;\n }", "public function setCreatedAt(?\\DateTime $createdAt): self\n {\n $this->initialized['createdAt'] = true;\n $this->createdAt = $createdAt;\n\n return $this;\n }", "public function setCreatedAt(?\\DateTime $createdAt): self\n {\n $this->initialized['createdAt'] = true;\n $this->createdAt = $createdAt;\n\n return $this;\n }", "public function setCreatedAt(?\\DateTime $createdAt): self\n {\n $this->initialized['createdAt'] = true;\n $this->createdAt = $createdAt;\n\n return $this;\n }", "public function setCreatedAt(?\\DateTime $createdAt): self\n {\n $this->initialized['createdAt'] = true;\n $this->createdAt = $createdAt;\n\n return $this;\n }", "public function setCreatedAt($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->created_at !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->created_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);\n\t\t\t\t$this->modifiedColumns[] = UserPeer::CREATED_AT;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setCreatedAt($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->created_at !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->created_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);\n\t\t\t\t$this->modifiedColumns[] = UserPeer::CREATED_AT;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setCreated(\\DateTime $created = null)\n {\n $this->created = $created;\n }", "public function setCreated($created);", "public function setCreated($created);", "public function setCreated(&$var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Timestamp::class);\n $this->created = $var;\n }", "public function setCreated_at(string $created_at)\n {\n $this->created_at = $created_at;\n\n return $this;\n }", "public function setCreatedAt($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->created_at !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->created_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);\n\t\t\t\t$this->modifiedColumns[] = CampaignPeer::CREATED_AT;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setCreatedAt(\\DateTime $createdAt){\n $this->createdAt = $createdAt;\n return $this;\n }", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "public function setCreatedAt($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->created_at !== null || $dt !== null) {\n $currentDateAsString = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $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->created_at = $newDateAsString;\n $this->modifiedColumns[] = EventPeer::CREATED_AT;\n }\n } // if either are not null\n\n\n return $this;\n }", "public function setcreateDatetime($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->createdatetime !== null || $dt !== null) {\n $currentDateAsString = ($this->createdatetime !== null && $tmpDt = new DateTime($this->createdatetime)) ? $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->createdatetime = $newDateAsString;\n $this->modifiedColumns[] = ActionTypePeer::CREATEDATETIME;\n }\n } // if either are not null\n\n\n return $this;\n }", "public function beforeCreate()\n {\n $this->created_at = date('Y-m-d H:i:s');\n }", "public function setCreatedAt($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->created_at !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->created_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);\n\t\t\t\t$this->modifiedColumns[] = PostPeer::CREATED_AT;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setCreated(\\DateTime $created)\n {\n $this->entity->setCreated($created);\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreate_at()\n {\n return $this->create_at;\n }", "public function getCreate_at()\n {\n return $this->create_at;\n }", "function setCreated($value) {\n\t\treturn $this->setColumnValue('created', $value, Model::COLUMN_TYPE_INTEGER_TIMESTAMP);\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function getCreateAt()\n {\n return $this->create_at;\n }", "public function createdAt(?string $value): self\n {\n $this->instance->setCreatedAt($value);\n return $this;\n }", "public function onPrePersist()\r\n {\r\n $this->created_at = new \\DateTime(\"now\");\r\n }", "public function setCreated($created)\n {\n $this->created = $created;\n }", "public function setCreated_at($created_at)\n {\n $this->created_at = $created_at;\n\n return $this;\n }", "public function setCreated_at($created_at)\n {\n $this->created_at = $created_at;\n\n return $this;\n }", "public function beforeSave()\n {\n $this->CreatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "public function setCreatedDate(DateTime $createdDate);" ]
[ "0.7891366", "0.7798655", "0.777094", "0.77542716", "0.7639238", "0.76269203", "0.76269203", "0.7590847", "0.75023264", "0.74835193", "0.7378189", "0.7378189", "0.737002", "0.73690885", "0.72879", "0.72867376", "0.72867376", "0.72867376", "0.72867376", "0.72867376", "0.72583723", "0.7182729", "0.7182729", "0.7182729", "0.70230454", "0.7003725", "0.7003018", "0.69419193", "0.69419193", "0.69419193", "0.69419193", "0.69419193", "0.69419193", "0.69419193", "0.69419193", "0.6940779", "0.6927432", "0.6924743", "0.6924743", "0.6893475", "0.6879693", "0.68534386", "0.6840034", "0.68315727", "0.68218297", "0.68218297", "0.6814662", "0.67873394", "0.67789674", "0.6756307", "0.67539567", "0.6715235", "0.6715235", "0.6715235", "0.6715235", "0.6715235", "0.6715235", "0.6715235", "0.6715235", "0.6637906", "0.66360676", "0.6626006", "0.6606888", "0.66043687", "0.66043687", "0.66043687", "0.66043687", "0.66016364", "0.66016364", "0.66001505", "0.6578932", "0.6578932", "0.65768594", "0.65752447", "0.6550324", "0.6544217", "0.6532028", "0.652407", "0.652407", "0.6518444", "0.6506458", "0.6500736", "0.6469753", "0.6467157", "0.64635473", "0.64635473", "0.64635473", "0.64635473", "0.64405245", "0.64405245", "0.64283276", "0.64028305", "0.64028305", "0.6392284", "0.63873357", "0.63718194", "0.6366034", "0.63550144", "0.63550144", "0.63541687", "0.6347519" ]
0.0
-1
Get the value of created_at.
public function getCreatedAt() { return $this->created_at; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function created_at()\n {\n return $this->object->created_at;\n }", "public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}", "public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}", "public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}", "public function created_at()\n {\n return $this->date($this->created_at);\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreated_at()\n {\n return $this->created_at;\n }", "public function getCreatedAt(){\n return $this->_getData(self::CREATED_AT);\n }", "public function getCreated_at() {\n return $this->_created_at;\n }", "protected static function created_at(): mixed\n\t{\n\t\treturn self::$query->created_at;\n\t}", "protected static function created_at(): mixed\n\t{\n\t\treturn self::$query->created_at;\n\t}", "public function getCreatedAt() {\n return $this->attributes['created_at'];\n }", "public function getCreatedAt()\n {\n return $this->data['fields']['created_at'];\n }", "public function getCreatedAt(): Datetime\n {\n return $this->created_at;\n }", "public function getCreate_at()\n {\n return $this->create_at;\n }", "public function getCreate_at()\n {\n return $this->create_at;\n }", "public function getCreatedAt()\n {\n return $this->getProperty(self::CREATED_AT);\n }", "public function createdAt() {\n return $this->_formatDate($this->created_at);\n }", "public function getCreatedAt()\n {\n return $this->_created_at;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function createdAt()\n {\n // TODO: Implement createdAt() method.\n return self::$user['created_at'];\n }", "public function getDate()\n {\n return $this->getData('created_at');\n }", "public function getCreatedAt () {\n return $this->createdAt;\n }", "public function getCreatedAt()\n {\n return $this->getIfSetDateTime('createdAt');\n }", "public function getCreatedAt() \r\n {\r\n return $this->createdAt;\r\n }", "public function getCreatedAt()\n {\n return $this->createdAt;\n }", "public function getCreateAt()\n {\n return $this->create_at;\n }", "public function getCreatedAt()\n {\n return $this->CreatedAt;\n }", "public function getCreatedAt()\n\t{\n\t\treturn $this->createdAt;\n\t}", "public function getCreatedAt(){\n return $this->createdAt;\n }", "public function createdAt(){\n return $this->created_at->format('d/m/Y H:i:s');\n }", "public function createdAt(): string\n {\n return $this->createdAt;\n }", "public function getCreatedAt(): string\n {\n return $this->createdAt;\n }", "public function getCreatedAt(): string\n {\n return $this->createdAt;\n }", "public function getCreatedAt(): ?string\n {\n return $this->get('created_at');\n }", "public function getCreated()\n {\n\n if (!$this->createdat instanceof DateTime) {\n return new DateTime();\n }\n\n return $this->createdat;\n }", "public function getCreatedAtAttribute()\n {\n return strtotime($this->attributes['created_at']);\n }", "public function created_at()\n {\n return ExpressiveDate::make($this->created_at)->getRelativeDate();\n }", "public function getCreatedAt()\n {\n return $this->object->getCreatedAt();\n }", "public function getCreatedAt()\n {\n return $this->object->getCreatedAt();\n }", "public function createdAt();", "public function createdAt();", "public function getCreatedAt():DateTime\n {\n return $this->createdAt;\n }", "public function created_at()\n {\n if (is_null($this->resource->created_at)) {\n return Carbon::now()->diffForHumans();\n }\n\n return $this->resource->created_at->diffForHumans();\n }", "public function getCreatedAt()\n {\n return $this->getResolved()->getCreatedAt();\n }", "public function getCreatedAt() : \\DateTime\n {\n return $this->createdAt;\n }", "public function getCreatedAtAttribute()\n {\n return \\Carbon\\Carbon::createFromFormat('Y-m-d H:i:s', $this->attributes['created_at'])->format('d/m/Y H:i');\n }", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();", "public function getCreatedAt();" ]
[ "0.84370875", "0.84328794", "0.84328794", "0.84328794", "0.8405296", "0.83591294", "0.83591294", "0.83591294", "0.83591294", "0.8268939", "0.82494086", "0.82438", "0.82438", "0.8200891", "0.8200823", "0.8168908", "0.81230587", "0.81230587", "0.811937", "0.81077904", "0.8107099", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80859804", "0.80679226", "0.80673754", "0.8033267", "0.80239016", "0.79997444", "0.7998676", "0.7990177", "0.7947562", "0.7941314", "0.7937418", "0.79186416", "0.7911706", "0.7900909", "0.7900909", "0.78836393", "0.78792685", "0.78511614", "0.7831445", "0.7819183", "0.7819183", "0.7795635", "0.7795635", "0.7697745", "0.76764256", "0.7667584", "0.76567703", "0.7656665", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904", "0.76324904" ]
0.8171545
34
trigger method runs a onetime manually started stored procedure
public function trigger($type=0, $rule_id=null) { $currentUser = $this->get_currentUser(); $customerid = $currentUser['Member']['customer_id']; $conditions = array( 'type' => $type, 'rule_id' => $rule_id, 'customer_id' => $customerid ); $cacheName = 'lastid.'.$this->formatCacheConditions($conditions); $lastid = Cache::read($cacheName, 'short'); if (!$lastid) { $lastid = $this->CustomerStatus->find('first', array( 'conditions' => $conditions, 'fields' => array('endid') ) ); Cache::write($cacheName, $lastid, 'short'); } $conditions = array_keys($this->get_customerSystems()); $cacheName = 'maxid.'.$this->formatCacheConditions($conditions); $maxid = Cache::read($cacheName, 'short'); if (!$maxid) { $maxid = $this->Action->find('first', array( 'contain' => array( 'System' ), 'conditions' => array( 'System.id' => $conditions, ), 'fields' => array('MAX(Action.id) as maxid'), ) ); Cache::write($cacheName, $maxid, 'short'); } //Define the latest action id for the customer $maxid = (int)$maxid[0]['maxid']; //Define the last id processed for the customer $lastid = (int)$lastid['CustomerStatus']['endid']; //Compare values and only process if new actions exist since last procedure update if($maxid > $lastid) { //Call process based on the type switch($type) { case 1: $proc_results = $this->CustomerStatus->query("CALL map_users_to_person($customerid);"); break; case 2: $proc_results = $this->CustomerStatus->query("CALL map_groups_to_course($customerid);"); break; case 3: $proc_results = $this->CustomerStatus->query("CALL aggregate_summed_actions($customerid, $lastid, $maxid);"); break; case 4: $proc_results = $this->CustomerStatus->query("CALL aggregate_summed_rule_conditions($customerid, $lastid, $maxid, $rule_id);"); break; case 5: $proc_results = $this->CustomerStatus->query("CALL aggregate_summed_ip_conditions($customerid, $lastid, $maxid, 2);"); break; } $this->Session->setFlash(__('Data processed: '.$proc_results[0]['loop_cntr'].' / '.$proc_results[0]['num_rows'])); $this->redirect(array('controller' => 'CustomerStatuses', 'action' => 'index')); }elseif($maxid == $lastid) { $this->Session->setFlash(__('There are no new actions since the last data sync - nothing to do.')); $this->redirect(array('controller' => 'CustomerStatuses', 'action' => 'index')); }elseif($maxid < $lastid) { $this->Session->setFlash(__('The latest action is less than last sync - contact support.')); $this->redirect(array('controller' => 'CustomerStatuses', 'action' => 'index')); }else{ $this->Session->setFlash(__('Something has gone wrong - contact support.')); $this->redirect(array('controller' => 'CustomerStatuses', 'action' => 'index')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n $conn = oci_connect('APPS', 'APPS', '192.168.7.1:1521/PROD');\n if (!$conn) {\n $e = oci_error();\n trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);\n }\n $sql = \"BEGIN KHS_INSERT_DOSPB_BACKUP(sysdate); END;\";\n //Statement does not change\n $stmt = oci_parse($conn, $sql);\n // oci_bind_by_name($stmt, ':P_PARAM1', $rm);\n //---\n // if (!$data) {\n // $e = oci_error($conn); // For oci_parse errors pass the connection handle\n // trigger_error(htmlentities($e['message']), E_USER_ERROR);\n // }\n //---\n // But BEFORE statement, Create your cursor\n $cursor = oci_new_cursor($conn);\n // Execute the statement as in your first try\n oci_execute($stmt);\n // and now, execute the cursor\n oci_execute($cursor);\n }", "public function execute()\n {\n $this->sinch->startCronStockPriceImport();\n }", "public function _exec_trigger($params = [])\n {\n }", "public function execute()\n {\n $this->sinch->startCronFullImport();\n }", "public function execute()\n\t{\n\t\t$this->executeCall();\n\t\t$this->executeReminder();\n\t}", "public function schedule(){\n $this->executeAllTransferts();\n }", "public function begin(){\n $this->db->exec('SAVEPOINT xyz;');\n }", "function StartRun()\n {\n $this->transaction_in_progress =true;\n $this->db->StartTrans();\n }", "public function cronAction()\n {\n $force = Mage::app()->getRequest()->getParam('force', false);\n $generator = Mage::getModel('smartassistant/generator');\n $generator->scheduleRun($force);\n }", "public function run()\n {\n DB::table('start_stops')->insert( [\n 'parameter'=>'null',\n 'startstop'=>false\n ] );\n }", "public function run()\n {\n DB::table('cron_master_lists')->insert([\n \t\t 'description' => 'Advertising Performance',\n \t\t 'route' => 'UpdateCampaignAdvertising',\n \t\t 'sequence' => 10\n \t\t]);\n }", "public function start()\n {\n $model = $this->getModel();\n $model->started_at = date('Y-m-d H:i:s');\n $model->save(false);}", "public function vtigerCronJob(){\r\n $this->load->model('Projects_model');\r\n $projects = $this->db->select('*')->from('projects')->where_in('connection_type',[1,3])->get()->result_array();\r\n if(!empty($projects)){\r\n foreach ($projects as $p_key => $p_value) {\r\n $projectId = $p_value['id'];\r\n if($this->Projects_model->getValue('cms', $projectId)!='vtiger')\r\n continue;\r\n $enabled = $this->Projects_model->getValue('enabled', $projectId);\r\n // check if the last execution time is satisfy the time checking.\r\n if($enabled == '1'){\r\n $import_option = $this->Projects_model->getValue('vtiger_import_option', $projectId)?$this->Projects_model->getValue('vtiger_import_option', $projectId):'';\r\n if($import_option == 'invoices'){\r\n $this->createInvoice($projectId);\r\n } else if($import_option == 'salesentry'){\r\n $this->createSalesEntry($projectId);\r\n }\r\n }\r\n }\r\n } \r\n }", "public function startWorking(){\r\n }", "public function run()\n {\n Assigned_sp::insert([\n \t\t'sp_id'=>'2018040003',\n\t\t\t'assigned_to'=>'3',\n ]);\n\n Assigned_sp::insert([\n \t\t'sp_id'=>'29739',\n\t\t\t'assigned_to'=>'3',\n ]);\n\n\n Assigned_sp::insert([\n \t\t'sp_id'=>'29737',\n\t\t\t'assigned_to'=>'3',\n ]);\n }", "public function run()\n {\n DB::table('job_service')->insert([\n 'jobId' => 1,\n 'serviceId' => 1,\n 'isActive' => 1,\n 'isComplete' => 1,\n 'isVoid' => 0,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n \n DB::table('job_service')->insert([\n 'jobId' => 2,\n 'serviceId' => 1,\n 'isActive' => 1,\n 'isComplete' => 1,\n 'isVoid' => 0,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n }", "public function preExecute(){\n\n\t\n\t}", "public function execute()\n\t{\n\t\t$this->run();\n\t}", "public function trigger($data);", "public function execute() {\n\t}", "public function execute()\n {\n $this->run();\n }", "public function __invoke()\n {\n $this->execute();\n }", "public function run()\n {\n DB::table('parameters')->insert(\n [\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]\n );\n DB::table('parameters')->insert(\n [\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]\n );\n }", "public function run() {\n\t\tif ($this->schedule->isRun()) {\n\t\t\t$this->excuteHandle->excute();\n\t\t}\n\t}", "public function run()\n {\n \t$lineprocesses = $this->getData();\n foreach ($lineprocesses as $key => $lineprocess ) {\n \t$id = $lineprocess->id;\n \tLineprocessStart::insert([\n \t\t'lineprocess_id' => $id,\n \t\t'start_id' => $id,\n \t]);\n }\n }", "public function run()\n {\n DB::table('tblproductvariance')->insert([\n 'strProductVarianceID' => 'PV00001',\n 'strProductVarianceQty' => '55',\n 'strUOMID' => 'UOM00001',\n 'strProductVarianceDesc' => 'for bullets',\n 'strStatus' => 'Active',\n 'created_at' => '2000-01-01 01:00:00',\n ]);\n DB::table('tblproductvariance')->insert([\n 'strProductVarianceID' => 'PV00002',\n 'strProductVarianceQty' => '7',\n 'strUOMID' => 'UOM00002',\n 'strProductVarianceDesc' => 'for ammunition',\n 'strStatus' => 'Active',\n 'created_at' => '2000-01-01 02:00:00',\n ]);\n }", "public function execute() {\n\t\t\t$connection = \\Leap\\Core\\DB\\Connection\\Pool::instance()->get_connection($this->data_source);\n\t\t\tif ($this->before !== NULL) {\n\t\t\t\tcall_user_func_array($this->before, array($connection));\n\t\t\t}\n\t\t\t$connection->execute($this->command());\n\t\t\tif ($this->after !== NULL) {\n\t\t\t\tcall_user_func_array($this->after, array($connection));\n\t\t\t}\n\t\t}", "public function start() {\n $this->getPidFile()->write($this->getPidManager()->getCurrent());\n $this->getIpc()->setVar('pid', $this->getPidManager()->getCurrent());\n $this->_run();\n }", "public function start_tran();", "public function run()\n {\n DB::table('sales_product')->insert([\n 'salesId' => 1,\n 'productId' => 2,\n 'quantity' => 5,\n 'isActive' => 1,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n DB::table('inventory')->where('productId',2)->decrement('quantity',5);\n }", "public function run()\n {\n factory(App\\GuideSadt::class, 62)->create()->each(function ($guide) {\n $guide->procedures()->sync([\n 4 => [\n 'execution_date' => now()->format('Y-m-d'),\n 'request_amount' => 1,\n 'permission_amount' => 1,\n 'unity_price' => 24.02\n ]\n ]);\n });\n }", "public function execute()\n {\n }", "public function run()\n {\n $stage = new Stage();\n $stage->text = 'Waiting Approval';\n $stage->save();\n\n $stage = new Stage();\n $stage->text = 'Approved';\n $stage->save();\n }", "public function start_harvest(){\n $this->checkinit();\n $this->harvest_laststart = $this->dt();\n $this->save_flags();\n }", "public function execute()\n {\n $lastRotationFlag = $this->_flagFactory->create()->loadSelf();\n $lastRotationTime = $lastRotationFlag->getFlagData();\n $rotationFrequency = 3600 * 24 * (int)$this->_coreConfig->getValue('system/rotation/frequency', 'default');\n if (!$lastRotationTime || $lastRotationTime < time() - $rotationFrequency) {\n $this->eventFactory->create()->rotate(\n 3600 * 24 * (int)$this->_coreConfig->getValue('system/rotation/lifetime', 'default')\n );\n }\n $lastRotationFlag->setFlagData(time())->save();\n }", "public function resume () {\n if ($this->started) {\n $this->run = true;\n $this->lapTmstmp = now();\n\n } else {\n $this->restart();\n }\n }", "public function execute() {\n }", "public function trigger($hook) {\n }", "public function execute() { }", "public function onRun()\n {\n\n $sql = new \\mysqli($this->host, $this->username, $this->pass, $this->database, $this->port);\n\n $this->sql->setElo($sql, $this->winner, $this->queue, $this->winnerElo);\n $this->sql->setElo($sql, $this->loser, $this->queue, $this->loserElo);\n }", "public function handle()\n {\n #Comentei pq o supervisor fica subindo toda hora e o arquivo fica gigante\n #como já testei e vi que fucniona tá tranquilo\n// do {\n// \\Log::info(\"Command --- initial\");\n// } while (true);\n }", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function handle()\n { \n $this->pullSQ();\n }", "public function run()\n {\n $type_procedure = [\n ['name' => 'Massagem'],\n ['name' => 'Depilação'],\n ];\n foreach ($type_procedure as $key => $value) {\n TypeProcedures::create($value);\n }\n }", "public function postExec()\n {\n }", "public function run()\n {\n $now = Carbon::now();\n DB::table('prices')->insert([\n 'unit_in_USD'=>'35.70',\n 'current_price'=>'200.00',\n 'currency' => Str::random(24),\n 'sale'=>'.1',\n 'special_sale'=>'21',\n 'number_urchase_for_special_sale'=>'4',\n 'previous_price_unit'=>'111.50',\n 'future_price_unit'=>'500.50',\n 'future_price_unit_start_time'=>$now\n ]);\n }", "public function start_tran()\n {\n $this->execute('START TRANSACTION;');\n }", "public function execute()\n {\n }", "public function execute()\n {\n }", "public function run()\n {\n $task = new \\App\\Task();\n $task->id = 1;\n $task->sprint_id = 1;\n $task->nr= '1.1';\n $task->name = 'Testtask';\n $task->estimatedtime = '00:30:00';\n $task->save();\n }", "public function execute()\n {\n // $GLOBALS['BE_USER']->simplelog('Scheduler started: '.date('Y-m-d h:i:s'), ST9FISSYNC_EXTKEY);\n // use own logger here too\n\n tx_st9fissync::getInstance()->getSyncProcessHandle()->launch();\n\n //\t$GLOBALS['BE_USER']->simplelog('Scheduler ended: '.date('Y-m-d h:i:s'), ST9FISSYNC_EXTKEY);\n // use own logger here too\n return TRUE;\n }", "public function preExecute() {\n }", "public function dbAnalysisStoreExec() {}", "public function execute()\n {\n\n }", "public function startStartup($conexao,$id_pessoa){\n $query = \"insert into empresa_startup(id_pessoa) values(?); \";\n $stmt = $conexao->prepare($query);\n $stmt->execute([$id_pessoa]);\n\n }", "public function run()\n {\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificado No Atentado contra la Autonomía Universitaria',\n 'requirements_procedure' => '<p>&bull; Carta de solicitud dirigida al Secretario General de la UMSS&nbsp;\n (<strong>Dra. Carmen Quiroz G&oacute;mez- Secretaria General a.i</strong>).<br />\n &bull; Portar su C&eacute;dula de Identidad durante el proceso de tr&aacute;mite.</p>',\n 'value_procedure' =>'20 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificación de notas de colegio',\n 'requirements_procedure' => '<p>&bull; Fotocopia de la libreta escolar\n (<strong>Anverso y Reverso</strong>).<br />\n &bull; Diploma de Bachiller (<strong>Documento original</strong>)</p>',\n 'value_procedure' => '0 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificación de notas obtenidas por profesionales egresados en la UMSS',\n 'requirements_procedure' => '<p>&bull; Notas expedidas por &ldquo;Registros e Inscripciones&rdquo;\n <br />&nbsp;</p>',\n 'value_procedure' => '10 Bs. por semestre/ 20 Bs. por año',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificado de Acreditación Diploma de Bachiller',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Diploma de Bachiller emitido por la UMSS para bachilleres\n egresados hasta la gesti&oacute;n 2009 (<strong>Anverso y reverso</strong>).</p>',\n 'value_procedure' => '100 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => '<p>Bachilleres egresados a partir de la gesti&oacute;n 2009 realizar su tr&aacute;mite en<br />\n SEDUCA.</p>',\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificado de Acreditación Diploma Académico',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Diploma Acad&eacute;\n mico(<strong>Anverso y reverso</strong>).</p>',\n 'value_procedure' => '130 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificado de Acreditación Título en Provisión Nacional',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Titulo en Provisi&oacute;n\n Nacional (<strong>Anverso y reverso</strong>).</p>',\n 'value_procedure' => '150 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Certificado de Acreditación Título de Posgrado',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Titulo de Posgrado (<strong>\n Anverso y reverso</strong>).</p>',\n 'value_procedure' => '160 Bs.',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Certificacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia de Diploma de Bachiller',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Diploma de Bachiller emitido por la UMSS\n (<strong>Anverso y reverso</strong>).<br /> &bull; Portar su c&eacute;dula de identidad durante\n el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '72 Bs. Nacional y 150 Bs. Extranjero',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => '72',\n 'advice' => '<p>Bachilleres egresados a partir de la gesti&oacute;n 2010 realizar su tr&aacute;mite en SEDUCA.</p>',\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia de Diploma Académico',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Diploma Acad&eacute;mico (<strong>\n Anverso y reverso</strong>).<br /> &bull; Portar su c&eacute;dula\n de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '112 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia Titulo en Provisión Nacional',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Titulo en Provisi&oacute;n Nacional\n (<strong>Anverso y reverso</strong>).<br /> &bull; Portar su c&eacute;dula de identidad\n durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '132 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'D',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Titulo de Posgrado (<strong>\n Anverso y reverso</strong>).<br /> &bull; Portar su c&eacute;dula de identidad durante\n el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '162 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalizaciones para el PTAANG',\n 'requirements_procedure' => '<p>&bull; Fotocopia Diploma de Bachiller (<strong>\n Anverso y reverso</strong>).<br /> &bull; Fotocopia del valorado por pago al PTAANG.<br />\n &bull; Fotocopia del certificado de habilitaci&oacute;n para el tr&aacute;mite de t&iacute;tulo\n profesional.<br /> &bull; Portar su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '16 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización de fotocopia de Carnet de Identidad',\n 'requirements_procedure' => '<p>&bull; Fotocopia de Carnet de Identidad (<strong>Anverso y\n reverso</strong>)<br /> &bull; C.I. (Documento original)</p>',\n 'value_procedure' => '10 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '0',\n 'external_time' => '0',\n 'advice' => '<p>V&aacute;lido solo para tr&aacute;mite al interior de la UMSS.<br />\n Para inscripciones a las diferentes carreras.<br />\n Para postularse a los ex&aacute;menes de ingresos a la UMSS.<br />\n Para tramitar su Diploma Acad&eacute;mico.</p>',\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia libreta escolar P/Otras universidades',\n 'requirements_procedure' => '<p>&bull; Fotocopia de la libreta escolar (<strong>\n Anverso y reverso).</strong><br /> &bull; Diploma de Bachiller (<strong>Documento\n original</strong>).<br /> &bull; Portar su c&eacute;dula de identidad durante el\n proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '32 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '0',\n 'external_time' => '24',\n 'advice' => '<p>Para universidades privadas, legalizaci&oacute;n de la libreta que se custodia junto al Diploma de Bachiller. Bachilleres egresados a partir de la gesti&oacute;n 2010 realizar su tr&aacute;mite en SEDUCA.</p>',\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia de Internado rotatorio',\n 'requirements_procedure' => '<p>&bull; Fotocopia internado rotatorio.<br />&bull; Portar\n su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.<br /> &nbsp;</p>',\n 'value_procedure' => '50 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '72',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia RR-RCU-RS-RVR',\n 'requirements_procedure' => '<p>&bull; Fotocopia RR-RCU-RS-RVR.<br /> &bull; Carta de\n solicitud dirigida al Secretario General de la UMSS (<strong>Dra. Carmen Quiroz G&oacute;mez-\n Secretaria General a.i</strong>).<br /> &bull; Portar su c&eacute;dula de identidad durante el\n proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '20 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia RR por Excelencia',\n 'requirements_procedure' => '<p>&bull; Fotocopia RR por Excelencia.<br />\n &bull; Carta de solicitud dirigida al Secretario General de la UMSS (<strong>Dra.\n Carmen Quiroz G&oacute;mez- Secretaria General a.i</strong>).<br /> &bull; Portar\n su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '50 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia RR que emite el Diploma Académico y Título en Provisión Nacional',\n 'requirements_procedure' => '<p>&bull; Fotocopia que emite el Diploma Acad&eacute;mico\n y T&iacute;tulo en Provisi&oacute;n Nacional.<br /> &bull; Portar su c&eacute;dula de identidad\n durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '50 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia RR de reválida de Diploma Académico Extranjero',\n 'requirements_procedure' => '<p>&bull; Fotocopia RR de rev&aacute;lida de Diploma Acad&eacute;mico\n Extranjero.<br /> &bull; Portar su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '150 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización fotocopia RR que Homologa Cert. de Policías y Militares emitido por la UMSS',\n 'requirements_procedure' => '<p>&bull; Fotocopia RR que Homologa Cert. de Polic&iacute;as\n y Militares<br /> &bull; Portar su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '100 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalización concentrado de Notas en General',\n 'requirements_procedure' => '<p>&bull; Notas expedidas por &ldquo;<strong>Registros e\n Inscripciones</strong>&ldquo;.<br /> &bull; Portar su c&eacute;dula de identidad durante\n el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '10 Bs. Notas Semestral/ 20 Bs. Notas Anual',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => null,\n 'external_time' => '72',\n 'advice' => null,\n 'type_pro' => 'Legalizacion',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Búsqueda de Documentos Archivados',\n 'requirements_procedure' => '<p>&bull; Fotocopia y referencias del documento.<br />\n &bull; Portar su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '10 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Otros',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Transcripción notas de secundaria P/Otras universidades',\n 'requirements_procedure' => '<p>&bull; Fotocopia libretas de secundaria (<strong>Anverso\n y reverso</strong>)<br /> &bull; Portar su c&eacute;dula de identidad durante el proceso del tr&aacute;mite.</p>',\n 'value_procedure' => '100 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '48',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Otros',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('procedures')->insert([\n 'name_procedure' => 'Legalizaciones para el PTAANG',\n 'requirements_procedure' => '<p>&bull; Fotocopia del Diploma de Bachiller (<strong>anverso y reverso</strong>)<br />\n &bull; Fotocopia del valorado por el pago al PTAANG.<br /> &bull; Fotocopia del certificado de habilitaci&oacute;n\n para el tr&aacute;mite del t&iacute;tulo profesional.<br /> &nbsp;</p>',\n 'value_procedure' => '16 Bs',\n 'img_procedure' => 'noimage.jpg',\n 'internal_time' => '24',\n 'external_time' => null,\n 'advice' => null,\n 'type_pro' => 'Otros',\n 'posted_by' => '3',\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),\n ]);\n\n }", "public function run()\n {\n DB::table('stock_opdetail')->insert([\n 'id_so' => '1',\n 'id_partname' => '1',\n 'qty_sistem' => '10',\n 'qty_fisik' => '12',\n 'total_qty_selisih' => '-2',\n 'created_at' => \\Carbon\\Carbon::now(),\n 'updated_at' => \\Carbon\\Carbon::now(),\n ]);\n }", "public function run()\n {\n $this->container->make('db')->table('pw_task_group')->insert([\n ['taskid' => 1, 'gid' => -1, 'is_auto' => 1, 'end_time' => '4197024000'],\n ['taskid' => 2, 'gid' => -1, 'is_auto' => 0, 'end_time' => '4197024000'],\n ['taskid' => 3, 'gid' => -1, 'is_auto' => 0, 'end_time' => '4197024000'],\n ['taskid' => 4, 'gid' => -1, 'is_auto' => 1, 'end_time' => '4197024000'],\n ]);\n }", "public function execute(): void\n {\n $this->provider->execute();\n }", "public function setStartTime() {\n\t\t$this->pg_start = $this->getStartTime();\n\t}", "protected function doExecute()\n\t{\n\t\t// Your application routines go here.\n\t}", "public function run()\n {\n\n \tProfissional::insert(\n [ \n 'id_pessoa' => 1,\n 'codigo_cadastro' => '1231231',\n ],\n [ \n \t'id_pessoa' => 3,\n \t'codigo_cadastro' => '9999999',\n \t]\n );\n }", "public function run()\n {\n \n DB::table('tblquotation')->insert([\n 'strQuoteID' => 'QR-00001',\n 'strCustomerID' => 'CUST00001',\n 'strTermID' => 'TERM00001',\n \t 'strCostingID' => 'PC00001',\n 'strQuoteDescription' => 'description',\n \t 'strQuoteStatus' => 'For Approval',\n 'created_at' => '2000-01-01 01:00:00',\n ]);\n }", "public function run()\n {\n DB::table('processes')->delete();\n Process::Create([\n 'id' =>1,\n \t'type'\t\t=>1,\n \t'time'\t =>'2016-07-15 00:00:00',\n ]);\n Process::Create([\n 'id' =>2,\n 'type' =>2,\n 'time' =>'2016-08-12 00:00:00',\n ]);\n Process::Create([\n 'id' =>3,\n 'type' =>3,\n 'time' =>'2016-09-16 00:00:00',\n ]);\n }", "public function run()\n {\n DB::connection('tenant')->beginTransaction();\n\n factory(\\App\\Model\\Master\\Customer::class, 10)->create();\n factory(\\App\\Model\\Master\\Supplier::class, 10)->create();\n factory(\\App\\Model\\Master\\Warehouse::class, 2)->create();\n\n $this->importChartOfAccount();\n $this->seedItems();\n\n DB::connection('tenant')->commit();\n }", "public function run()\n {\n factory(App\\ReportProductSold::class, 100)->create()->each(function ($product_sold) {\n $product_sold->save();\n });\n $this->command->info('Product sold seeded!');\n }", "public function start()\n {\n $this->startTime = Carbon::now();\n }", "public function run()\n {\n $schedule = new Schedule();\n $schedule->schedule_year = '2019';\n $schedule->schedule_month = '01';\n $schedule->save();\n\n $schedule = new Schedule();\n $schedule->schedule_year = '2019';\n $schedule->schedule_month = '02';\n $schedule->save();\n\n $schedule = new Schedule();\n $schedule->schedule_year = '2019';\n $schedule->schedule_month = '03';\n $schedule->save();\n\n $schedule = new Schedule();\n $schedule->schedule_year = '2019';\n $schedule->schedule_month = '04';\n $schedule->save();\n }", "public function run()\n {\n //\n\n $sql = \"ALTER SEQUENCE tipo_convocatoria_id_seq RESTART WITH 1;\";\n $sql .= 'TRUNCATE tipo_convocatoria CASCADE;';\n DB::connection()->getPdo()->exec($sql);\n\n DB::insert(\"insert into tipo_convocatoria (id, nombre, created_at, updated_at, deleted_at) values('1','Sector Productivo',NULL,NULL,NULL);\");\n DB::insert(\"insert into tipo_convocatoria (id, nombre, created_at, updated_at, deleted_at) values('2','Ciudadanía',NULL,NULL,NULL);\");\n DB::insert(\"insert into tipo_convocatoria (id, nombre, created_at, updated_at, deleted_at) values('3','Gestión Pública',NULL,NULL,NULL);\");\n \n }", "public function markExecution() {}", "public function execute(): void\n {\n }", "public function run()\n {\n DB::table('paralelo')->insert([\n 'nombre' => 'A',\n 'activo' => true,\n 'created_by' => 'admin',\n 'updated_by' => 'admin',\n ]);\n }", "public function execute() {\n $oldMigrations = new Filesystem(\"App/system/databases/migrations\");\n $oldMigrations->addFilter(new MigrationFilter($this->model->getShortModelName()));\n\n\n //todo: write custom iterator\n $oldMigrations->customCallback([$this, \"applyOldMigrations\"]);\n //todo: get the current model and get the diffrences between that and the migration\n //todo: write a new migration.\n //\n // $this->buildChangeSet();\n //do stuff execute all the things\n $this->createNewMigration();\n\n }", "public function run()\n {\n \\App\\Sql::truncate(); //清空資料庫\n\n \\App\\Sql::create([\n 'name'=>'2019-03-06_init.sql',\n 'install'=>'1',\n ]);\n }", "public function end()\n {\n parent::end();\n if ($this->_createTrigger) {\n $this->_base->createAutoincrementTrigger($this->_name, $this->_createTrigger);\n }\n }", "function run_triggers() {\n// 2. run those triggers that are activated.\n// 3. update locked pins (locked by triggers)\n$trigger1_go = false;\n$trigger_laistisana_go = false;\n$trigger_internets_riits_vakars = false;\n$process_trigger_combined_laistisana = false;\n\n$static_db = open_static_data_db(true);\n$results = $static_db->query('SELECT id FROM `triggers` where state = 1;');\nwhile ($row = $results->fetchArray()) {\n\t\t$trigger_id = $row['id'];\n\t\tif ($trigger_id == 1) $trigger1_go = true;\n\t\tif ($trigger_id == 3) $trigger_laistisana_go = true;\n\t\tif ($trigger_id == 4) $trigger_internets_riits_vakars = true;\n\t\tif ($trigger_id == 5) $process_trigger_combined_laistisana = true;\n\t\t\t//print (\"process trigger $trigger_id\");\n}\n$static_db->close();\n\nif ($trigger1_go) process_trigger_1();\nif ($trigger_laistisana_go) process_trigger_laistisana();\nif ($trigger_internets_riits_vakars) trigger_internets_riits_vakars ();\nif ($process_trigger_combined_laistisana) process_trigger_combined_laistisana ();\n}", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();" ]
[ "0.6137662", "0.61314064", "0.61301", "0.6019051", "0.58601207", "0.5828314", "0.5805179", "0.57539743", "0.5682616", "0.5675839", "0.5580096", "0.5542799", "0.5486717", "0.54480004", "0.53852", "0.5372374", "0.536828", "0.53625923", "0.53509706", "0.53453225", "0.5342433", "0.5340434", "0.5336466", "0.5295882", "0.5273511", "0.5252334", "0.5247732", "0.5217219", "0.5202595", "0.51826596", "0.5178611", "0.5177702", "0.5172549", "0.51685923", "0.5167828", "0.51383895", "0.5124185", "0.51195216", "0.51154363", "0.5114056", "0.5091897", "0.5086273", "0.5086273", "0.5086273", "0.5086273", "0.5086273", "0.5086273", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085473", "0.5085339", "0.5085339", "0.5081269", "0.50730556", "0.5067214", "0.506543", "0.5059557", "0.5057757", "0.5057757", "0.5055017", "0.5042629", "0.50407445", "0.5038288", "0.50340414", "0.5032233", "0.5024585", "0.50229615", "0.50216466", "0.50150925", "0.4999294", "0.49968818", "0.49926797", "0.4960896", "0.49581194", "0.49497637", "0.49465698", "0.49430943", "0.49337578", "0.49228776", "0.49104527", "0.4909226", "0.49068812", "0.49059573", "0.4898049", "0.4897643", "0.48903748", "0.4889017", "0.4889017", "0.4889017", "0.4889017", "0.4889017" ]
0.0
-1
A sub property of result. The review that resulted in the performing of the action.
public function resultReview($value) { $this->setProperty('resultReview', $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReviewstate() {}", "public function get_review() {\n return $this->targets;\n }", "public function getReview()\n {\n return $this->review;\n }", "public function _getReportedResult() {\n\t\treturn $this->_reportedResult;\n\t}", "public function getReviewText() : string {\n\t\treturn ($this->reviewText);\n\t}", "public function getTestResult()\n {\n return $this->_testResult;\n }", "private function reviewDestiny()\n {\n $this->setExpectations();\n return $this->reviewTicket();\n }", "public function getHumanReviewOperation()\n {\n return $this->human_review_operation;\n }", "public function _getTestResult1() {\n\t\treturn $this->_testResult1;\n\t}", "public function getRemarketingActionResult()\n {\n return $this->readOneof(43);\n }", "public function getResult()\n {\n return $this->information[ self::INFORMATION_RESULT ];\n }", "public function getReview(){\r\n\t\treturn $this->SupportReviews();\r\n\t}", "public function isReviewed() {\n\t\t$this->getReviewed();\n\t}", "public function getExplanation(){\n\t\treturn $this->_explanation;\n\t}", "public function _getTestResult2() {\n\t\treturn $this->_testResult2;\n\t}", "public function getResult()\n {\n if ( $this->analysisResult == null )\n {\n $this->analyze();\n }\n return $this->analysisResult;\n }", "private function evaluateThisResult($result, $data){\n\t\t\t//Test to make sure this result has everything we need.\n\n\t\t\tif(array_key_exists('action', $result)){\n\t\t\t\treturn (bool) $this->processResult($result, $data);\n\t\t\t} else {\n\t\t\t\treturn (bool) false;\n\t\t\t}\n\t\t}", "public function getModifyResult(){\n \n return $this->modify_result;\n \n }", "public function getExplanation() \n {\n return $this->explanation;\n }", "protected function getResult()\n {\n return $this->getOwningAnalyser()->getResult();\n }", "public function submitUserReview($result) {\n\t\t\treturn $this->submitReview($result, 0);\n\t\t}", "public function getLastReviewed()\n {\n return $this->lastReviewed;\n }", "public function getPotherinreview()\n {\n return $this->potherinreview;\n }", "public function getRESULT()\n {\n return $this->RESULT;\n }", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getResult()\n\t{\n\t\treturn parent::getResult();\n\t}", "public function getFrontendResult()\n\t{\t\t\n\t\t// not implement yet.\n\t}", "public function _getTestResult3() {\n\t\treturn $this->_testResult3;\n\t}", "public function getEvaluation()\n {\n return $this->evaluation;\n }", "function act() {\n return $this->value;\n }", "function testFormatRubricEvaluationResult()\n {\n\n $event= array('Event' => array('template_id' => 1, 'self_eval' => 1), 'group_id' => 1, 'group_event_id' => 1);\n $displayFormat = 'Detail';\n $studentView = 0;\n $currentUser = array ('id' => 1);\n // $result = $this->EvaluationComponentTest->formatRubricEvaluationResult($event, $displayFormat, $studentView, $currentUser);\n }", "public function getResult()\n {\n return $this->_result;\n }", "public function result()\n {\n if ($this->isNew() || !$this->_repository->getSchema()->isFunction()) {\n return null;\n }\n\n return $this->_properties[':result'];\n }", "public function getResult()\n {\n return $this->result;\n }", "public function getResult(){\n return $this->Result;\n }", "public function printResults() {\n $assertions = $this->getAssertions();\n $failures = $this->getFailures();\n $errors = $this->getErrors();\n return \"Assertions: \" . $assertions . \", Failures: \" . $failures . \" and \" . $errors . \" errors.\";\n }", "function getRCCACountUnderReview()\n{\n\tglobal $dbObjMirrors;\n\n\t$RCCAQuery = \"SELECT State,count(*) as cnt\n\t\t\t\t\tFROM [mirrors].[dbo].[View_LSIP2_RCCA]\n\t\t\t\t\tWHERE [mirrors].[dbo].[View_LSIP2_RCCA].[Ready_For_Arch_Review]='Yes' and State='Submitted'\n\t\t\t\t\tGROUP BY State\";\n\n\t$RCCAResult = $dbObjMirrors->executeQuery($RCCAQuery);\n\n\treturn $RCCAResult;\n}", "public function getResult()\n {\n return parent::getResult();\n }", "public function getValidationResult()\n {\n return $this->validationResult;\n }", "function get_summary() {\n return $this->summary;\n }", "public function getResult() {\n\n return $this->result;\n }", "public function status()\n {\n $decisions = array(\n 'nominateAdmit',\n 'nominateDeny',\n 'finalAdmit',\n 'finalDeny',\n 'acceptOffer',\n 'declineOffer'\n );\n $final = '';\n foreach ($decisions as $decision) {\n if ($this->$decision) {\n $final = $decision;\n }\n }\n\n return $final;\n }", "public function getReviewRating() : int {\n\t\treturn ($this->reviewRating);\n\t}", "public function getReviewDate() {\n\t\t\t\treturn ($this->reviewDate);\n\t\t\t}", "public function executeRatingDetails()\n {\n if ($this->object)\n {\n $details = $this->object->getRatingDetails(true);\n $total_ratings = array_sum($details);\n $full_details = array();\n foreach ($details as $rating => $nb_ratings)\n {\n if ($total_ratings > 0)\n {\n $percent = $nb_ratings / $total_ratings * 100;\n } else $percent = 0;\n $full_details[$rating] = array('count' => $nb_ratings,\n 'percent' => $percent);\n }\n $this->rating_details = $full_details;\n $this->object_type = get_class($this->object);\n }\n }", "public function getamountEvaluation()\n {\n return $this->amountevaluation;\n }", "public function getResult()\n {\n return $this->event[\"link\"][\"result\"];\n }", "public function get_Eval(){\n return $this->eval_note;\n }", "function score()\r\n {\r\n return $this->Score;\r\n }", "public function evaluate() {\n\t\treturn \\TYPO3\\Flow\\var_dump($this->tsRuntime->getCurrentContext(), '', TRUE);\n\t}", "private function gateResult($result)\n {\n if ($result instanceof Response) {\n return $result->allowed() ? 'allowed' : 'denied';\n }\n\n return $result ? 'allowed' : 'denied';\n }", "public function getResult(): string\n {\n return $this->result;\n }", "public function getReviewedBy()\n {\n return $this->reviewedBy;\n }", "public function calculate()\n\t{\n\t\t$this->sold();\n\t\t$this->rank();\n\t\t$this->feedback();\n\t\t$this->storeActive();\n\t\t$this->cod();\n\t\t$this->accountAge();\n\t\t$this->imageCount();\n\n\t\treturn $this->score;\n\t}", "public function setReviewResult(?string $value): void {\n $this->getBackingStore()->set('reviewResult', $value);\n }" ]
[ "0.61537766", "0.600622", "0.59492135", "0.585063", "0.57784796", "0.5736593", "0.5701577", "0.56882864", "0.5675858", "0.56165534", "0.5592192", "0.55617815", "0.5557047", "0.5548995", "0.5513296", "0.5498537", "0.5466284", "0.5455885", "0.54222786", "0.5401238", "0.5374018", "0.53537935", "0.53519195", "0.5341768", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.5337705", "0.53370017", "0.5328022", "0.5311448", "0.5305092", "0.5301457", "0.5300926", "0.5295926", "0.52940756", "0.528618", "0.5280869", "0.52772814", "0.5274528", "0.527104", "0.5257899", "0.5235876", "0.52216256", "0.52123713", "0.5206536", "0.5199365", "0.51886517", "0.5153727", "0.5151436", "0.51392686", "0.5117337", "0.51170075", "0.51108694", "0.51089495", "0.5097112", "0.5093451" ]
0.6474481
0
Get the registered name of the component.
protected static function getFacadeAccessor() { return 'otp'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getComponentName()\n {\n return $this->_componentName;\n }", "public function getComponentName()\n {\n $component = $this->argument('component') ?: app('components')->getUsedNow();\n\n $component = app('components')->findOrFail($component);\n\n return $component->getStudlyName();\n }", "public function get_component_name() {\n return $this->plugintype.'_'.$this->pluginname;\n }", "public function get_name() {\n if(get_config(constants::M_COMPONENT,'customname')){\n return get_config(constants::M_COMPONENT,'customname');\n }else {\n return get_string('pluginname', constants::M_COMPONENT);\n }\n }", "public function getComponentName(): string;", "public function get_component() : string\n {\n return $this->component;\n }", "protected function getComponentName(): string {\n if ($this->isPageTemplate()) {\n return \"{$this->layout}-{$this->post->post_type}\";\n }\n\n if (str_contains($this->componentId, '-')) {\n return implode('', \\__::chain($this->componentId)\n ->split('-')\n ->map(fn ($string) => \\__::capitalize($string))\n ->value());\n }\n\n return \\__::chain($this->componentId)\n ->camelCase()\n ->capitalize()\n ->value();\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n\t{\n\t\treturn $this->name ?: class_basename($this);\n\t}", "public function getName()\n\t{\n\t\treturn isset($this->_name) ? $this->_name : spl_object_hash($this);\n\t}", "public function getName() {\n return $this->get(self::NAME);\n }", "public function getName() {\n return $this->get(self::NAME);\n }", "public function getName() {\n return $this->get(self::NAME);\n }", "protected static function _getName()\n {\n return isset(static::$_name) ? static::$_name : get_called_class();\n }", "public function getName()\n {\n return $this->get(self::NAME);\n }", "public function getName()\n {\n return $this->get(self::NAME);\n }", "public static function getName(): string\n {\n return static::$name;\n }", "function getComponentName()\n {\n $p = get_class($this);\n\n $reflector = new ReflectionClass($p);\n $path = dirname($reflector->getFileName());\n\n $component = str_replace(BW_PATH_COMPONENTS . DS, '', $path);\n $component = str_replace(DS . 'models', '', $component);\n\n if (bwFolder::is(BW_PATH_COMPONENTS . DS . $component)) {\n return $component;\n } else {\n return NULL;\n }\n }", "public function getName() {\n return ($this->isInit()) ? $this->name : null;\n }", "function getName() {\n return $this->instance->getName();\n }", "public function name() : string\n {\n return call_user_func([get_called_class(), 'resolveName']);\n }", "public static function name()\n {\n return isset(static::$name) ? static::$name : self::getClassShortName();\n }", "public function get_registered_component( $name );", "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "public function getName()\n {\n return $this->str_name;\n }", "public function getName()\n\t{\n\t\treturn str_replace('\\\\', '_', __CLASS__);\n\t}", "function get_name()\n {\n return $this->get_default_property(self :: PROPERTY_NAME);\n }", "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "public function getName(): string\n {\n return $this->getIdentifier()->getName();\n }", "public function name()\n {\n $name = get_class($this);\n\n return substr($name, strrpos($name, '\\\\') + 1);\n }", "public function get_name() {\n\n\t\treturn $this->name;\n\t}", "public static function getName();", "public function getName()\n {\n return implode(',', $this->components['CN']);\n }", "function get_name()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_NAME);\r\n }", "public function getName() {\n\t\t\n\t\t// cut last part of class name\n\t\treturn substr( get_class( $this ), 0, -11 );\n\t\t\n\t}", "static public function getName(): string\n {\n return static::$name;\n }", "public function getName()\n {\n return $this->__get(\"name\");\n }", "public function getName()\n {\n return $this->__get(\"name\");\n }", "public function get_name() {\n return get_string('pluginname', 'forumngtype_' . $this->get_id());\n }", "public function getName()\n {\n switch ($this->queriedContext) {\n case $this->i8n('context-keyword'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-keyword') . ' : ' . $this->getInput('q');\n break;\n case $this->i8n('context-group'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-group') . ' : ' . $this->getKey('group');\n break;\n case $this->i8n('context-talk'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-talk') . ' : ' . $this->getTalkTitle();\n break;\n default: // Return default value\n return static::NAME;\n }\n }", "public function getName(): string {\n\t\t\treturn $this->name;\n\t\t}", "public function get_component_name() {\n return 'user';\n }", "public function name() {\n\t\treturn $this->name;\n\t}", "function getName () {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function get_name() {\n\t\treturn $this->name;\n\t}", "public function getName(): string\n {\n\t\treturn $this->name;\n\t}", "public function getName ()\n {\n return $this->getLabel();\n }", "public function getName() {\n $path = explode('\\\\', get_class($this->object[\"data\"]));\n return array_pop($path);\n }", "public function getName() {\n return self::NAME;\n }", "public function getName() {\n\t\treturn $this->current_name;\n\t}", "public function getName () {\n\t\treturn $this->name;\n\t}", "public function getName()\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }", "public function getName() {\n\t\treturn ($this->name);\n\t}", "public function getName()\n {\n return $this->getConfig ( 'name' );\n }", "public function getName(): string {\n return $this->name;\n }", "public function getName() {\n\t\treturn $this->_name;\n\t}", "public function getName() {\n\t\treturn $this->_name;\n\t}", "public function get_name(): string\n {\n return $this->name;\n }", "function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\r\n $parsed = Parser::parseClassName(get_class());\r\n return $parsed['className'];\r\n }", "public function getName()\n {\n return $this->getValue('name');\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function getName() {\n\t\treturn $this->name;\n\t}", "public function name()\n\t{\n\t\treturn $this->name;\n\t}", "public function name()\n\t{\n\t\treturn $this->name;\n\t}" ]
[ "0.8145252", "0.81059104", "0.79843503", "0.7875069", "0.7621859", "0.71461004", "0.7101458", "0.705496", "0.705496", "0.705496", "0.705496", "0.705496", "0.705496", "0.705496", "0.70394325", "0.70209575", "0.69877225", "0.69877225", "0.69877225", "0.6984164", "0.6965933", "0.6965933", "0.69652396", "0.69386864", "0.69140494", "0.68974113", "0.68967915", "0.68593174", "0.68486273", "0.68120587", "0.68120587", "0.67868453", "0.6775167", "0.6775155", "0.6755135", "0.6755135", "0.6755135", "0.6752984", "0.674242", "0.6710877", "0.670616", "0.6703415", "0.67011756", "0.6691306", "0.668469", "0.66830266", "0.66830266", "0.66790146", "0.66775", "0.66692185", "0.6668179", "0.66607153", "0.6660571", "0.6660436", "0.6660436", "0.6660436", "0.6660436", "0.66595274", "0.6658804", "0.66557944", "0.6651633", "0.66399175", "0.6633721", "0.6629492", "0.662811", "0.66218275", "0.6617998", "0.66178477", "0.66178477", "0.6610472", "0.6607344", "0.6605626", "0.66048145", "0.66030926", "0.66030926", "0.66030926", "0.66030926", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65967", "0.65966654", "0.65966654" ]
0.0
-1